[K-Bug] AssertionError for incomplete rule
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 45/100
Direzione di ricerca
Reproduce the failure with kompile a.k using the definition shown in the issue. Start at Outer.offsetLine, following the stack through Outer.makeStringSentence and Outer.Bubble, and inspect how the end-of-stream IOException is handled. Done means incomplete rules produce a reasonable error containing the relevant line and column instead of an AssertionError.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What component is the issue in?
Front-End
Which command
- kompile
- kast
- krun
- kprove
- kprovex
- ksearch
What K Version?
v7.1.121-0-g894298664c
Operating System
Linux
K Definitions (If Possible)
a.k:
module A
imports INT
rule [my-rule]:
rule 1 => 2
endmodule
Steps to Reproduce
kompile a.k
This produces the following error:
[Error] Internal: Uncaught exception thrown of type AssertionError.
Please rerun your program with the --debug flag to generate a stack trace, and
file a bug report at https://github.com/runtimeverification/k/issues
(AssertionError: did not expect IOException)
If I run kompile with --debug:
java.lang.AssertionError: did not expect IOException
at org.kframework.parser.outer.Outer.offsetLine(Outer.java:270)
at org.kframework.parser.outer.Outer.makeStringSentence(Outer.java:223)
at org.kframework.parser.outer.Outer.Bubble(Outer.java:442)
at org.kframework.parser.outer.Outer.Sentence(Outer.java:749)
at org.kframework.parser.outer.Outer.Module(Outer.java:661)
at org.kframework.parser.outer.Outer.Start(Outer.java:607)
at org.kframework.parser.outer.Outer.parse(Outer.java:79)
at org.kframework.parser.ParserUtils.slurp(ParserUtils.java:117)
at org.kframework.parser.ParserUtils.loadModules(ParserUtils.java:220)
at org.kframework.parser.ParserUtils.loadDefinition(ParserUtils.java:393)
at org.kframework.parser.ParserUtils.loadDefinition(ParserUtils.java:355)
at org.kframework.kompile.DefinitionParsing.parseDefinition(DefinitionParsing.java:308)
at org.kframework.kompile.DefinitionParsing.parseDefinitionAndResolveBubbles(DefinitionParsing.java:231)
at org.kframework.kompile.Kompile.parseDefinition(Kompile.java:389)
at org.kframework.kompile.Kompile.run(Kompile.java:212)
at org.kframework.kompile.KompileFrontEnd.run(KompileFrontEnd.java:91)
at org.kframework.main.FrontEnd.main(FrontEnd.java:60)
at org.kframework.main.Main.runApplication(Main.java:127)
at org.kframework.main.Main.runApplication(Main.java:117)
at org.kframework.main.Main.main(Main.java:58)
Caused by: java.io.IOException: PGCC end of stream
at org.kframework.parser.outer.AbstractCharStream.fillBuff(AbstractCharStream.java:278)
at org.kframework.parser.outer.AbstractCharStream.readChar(AbstractCharStream.java:367)
at org.kframework.parser.outer.Outer.offsetLine(Outer.java:269)
... 19 more
[Error] Internal: Uncaught exception thrown of type AssertionError
(AssertionError: did not expect IOException)
Expected Results
A reasonable error containing the line and column where the error occurred.
- Lingua principale
- Python
- Stelle
- 591
- Fork
- 163
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di runtimeverification/k
-
Introduce composable symbolic execution interface in pyxForse di nuovo libera @Stevengre l’ha presa 97 giorni fa e non c’è nessuna pull request aperta. Aperta
runtimeverification/k#4939 · 1 assegnatario ·
-
Concolic ExplorerAperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 32/100
runtimeverification/k#4937 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 30/100
runtimeverification/k#4936 ·
-
Accelerating all-path reachability proofs with one-path reachability proofsForse di nuovo libera @Stevengre l’ha presa 103 giorni fa e non c’è nessuna pull request aperta. Apertatype:epic
runtimeverification/k#4934 · 4 commenti · 1 assegnatario ·
-
Support progressive depth halving as a generic policy in `Prover.advance_proof`Forse di nuovo libera @Stevengre l’ha presa 123 giorni fa e non c’è nessuna pull request aperta. Aperta
runtimeverification/k#4924 · 1 assegnatario ·
Tutte le issue di runtimeverification/k
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
PedestrianDynamics/pyFDS-Evac#343 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
theskumar/python-dotenv#708 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
I maintainer di solito rispondono entro 2 giorni
-
Docs Timedelta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
pandas-dev/pandas#69919 ·
I maintainer di solito rispondono entro 1 giorno
-
API documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
zephyrproject-rtos/west#1009 · 2 commenti ·
I maintainer di solito rispondono entro 3 giorni