This repository was archived by the owner on Apr 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Regression new updated expected output #1044
Draft
ehildenb
wants to merge
4
commits into
master
Choose a base branch
from
regression-new-proofs
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
a71f988
regression-new/: switch . => .K in many places
ehildenb e4e58e7
!!! regression-new: update all expected output
ehildenb c3fc28a
Merge e4e58e70d52c972d46a5649f4afcedf020e6ab11 into 8b0b6d760e43018fd…
ehildenb db06b9e
Set Version: 0.1.756
rv-auditor File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.1.755 | ||
0.1.756 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api" | |
|
||
[tool.poetry] | ||
name = "pyk" | ||
version = "0.1.755" | ||
version = "0.1.756" | ||
description = "" | ||
authors = [ | ||
"Runtime Verification, Inc. <[email protected]>", | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
usage: pyk kompile [-h] [--verbose] [--debug] [--warnings WARNINGS] [-w2e] [-I INCLUDES] | ||
[--main-module MAIN_MODULE] [--syntax-module SYNTAX_MODULE] | ||
[--md-selector MD_SELECTOR] [--output-definition DEFINITION_DIR] [--backend BACKEND] | ||
[--type-inference-mode TYPE_INFERENCE_MODE] [--emit-json] [-ccopt CCOPTS] | ||
[--no-llvm-kompile] [--with-llvm-library] [--enable-llvm-debug] | ||
[--llvm-kompile-type LLVM_KOMPILE_TYPE] [--llvm-kompile-output LLVM_KOMPILE_OUTPUT] | ||
[--read-only-kompiled-directory] [-O0] [-O1] [-O2] [-O3] [--enable-search] | ||
[--coverage] [--gen-bison-parser] [--gen-glr-bison-parser] [--bison-lists] | ||
usage: pyk kompile [-h] [--verbose] [--debug] [--warnings WARNINGS] [-w2e] | ||
[-I INCLUDES] [--main-module MAIN_MODULE] | ||
[--syntax-module SYNTAX_MODULE] [--md-selector MD_SELECTOR] | ||
[--output-definition DEFINITION_DIR] [--backend BACKEND] | ||
[--type-inference-mode TYPE_INFERENCE_MODE] [--emit-json] | ||
[-ccopt CCOPTS] [--no-llvm-kompile] [--with-llvm-library] | ||
[--enable-llvm-debug] | ||
[--llvm-kompile-type LLVM_KOMPILE_TYPE] | ||
[--llvm-kompile-output LLVM_KOMPILE_OUTPUT] | ||
[--read-only-kompiled-directory] [-O0] [-O1] [-O2] [-O3] | ||
[--enable-search] [--coverage] [--gen-bison-parser] | ||
[--gen-glr-bison-parser] [--bison-lists] | ||
[--llvm-proof-hint-instrumentation] [--no-exc-wrap] | ||
main_file | ||
pyk kompile: error: the following arguments are required: main_file |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,38 @@ | ||
<T> | ||
<k> | ||
"done" ~> .K | ||
</k> | ||
<nextFunction> | ||
3 | ||
</nextFunction> | ||
<functions> | ||
<function> | ||
<fId> | ||
0 | ||
</fId> | ||
</function> <function> | ||
<fId> | ||
1 | ||
</fId> | ||
</function> <function> | ||
<fId> | ||
2 | ||
</fId> | ||
</function> | ||
</functions> | ||
<contracts> | ||
<contract> | ||
<cName> | ||
foo ~> .K | ||
</cName> | ||
<cFunctions> | ||
f1 |-> 0 | ||
f2 |-> 1 | ||
f3 |-> 2 | ||
</cFunctions> | ||
</contract> | ||
</contracts> | ||
</T> | ||
<generatedTop> | ||
<T> | ||
<k> | ||
"done" ~> .K | ||
</k> | ||
<nextFunction> | ||
3 | ||
</nextFunction> | ||
<functions> | ||
<function> | ||
<fId> | ||
0 | ||
</fId> | ||
</function> <function> | ||
<fId> | ||
2 | ||
</fId> | ||
</function> <function> | ||
<fId> | ||
1 | ||
</fId> | ||
</function> | ||
</functions> | ||
<contracts> | ||
<contract> | ||
<cName> | ||
foo ~> .K | ||
</cName> | ||
<cFunctions> | ||
f1 |-> 0 f3 |-> 2 f2 |-> 1 | ||
</cFunctions> | ||
</contract> | ||
</contracts> | ||
</T> | ||
<generatedCounter> | ||
0 | ||
</generatedCounter> | ||
</generatedTop> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,33 @@ | ||
[Error] Compiler: Only claims and simplification rules are allowed in proof modules. | ||
[Error] Compiler: Only claims and simplification rules are allowed in proof | ||
modules. | ||
Source(rule-spec.k) | ||
Location(6,10,6,43) | ||
6 | rule <k> doIt(foo) => doIt(0) ... </k> | ||
. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
[Error] Compiler: Had 1 structural errors. | ||
Traceback (most recent call last): | ||
File "/home/dev/src/pyk/src/pyk/ktool/kprove.py", line 105, in _kprove | ||
return run_process(run_args, logger=_LOGGER, env=env, check=check) | ||
File "/home/dev/src/pyk/src/pyk/utils.py", line 451, in run_process | ||
res.check_returncode() | ||
File "/usr/lib/python3.10/subprocess.py", line 457, in check_returncode | ||
raise CalledProcessError(self.returncode, self.args, self.stdout, | ||
subprocess.CalledProcessError: Command '('kprove', 'rule-spec.k', '--definition', 'errorClaim-kompiled', '--output', 'json', '--type-inference-mode', 'checked', '--dry-run', '--emit-json-spec', '/tmp/tmppacrxgx1')' returned non-zero exit status 113. | ||
|
||
The above exception was the direct cause of the following exception: | ||
|
||
Traceback (most recent call last): | ||
File "<string>", line 1, in <module> | ||
File "/home/dev/src/pyk/src/pyk/__main__.py", line 90, in main | ||
execute(options) | ||
File "/home/dev/src/pyk/src/pyk/__main__.py", line 252, in exec_prove | ||
proofs = kprove.prove_rpc(options=options) | ||
File "/home/dev/src/pyk/src/pyk/ktool/kprove.py", line 380, in prove_rpc | ||
all_claims = self.get_claims( | ||
File "/home/dev/src/pyk/src/pyk/ktool/kprove.py", line 425, in get_claims | ||
flat_module_list = self.get_claim_modules( | ||
File "/home/dev/src/pyk/src/pyk/ktool/kprove.py", line 400, in get_claim_modules | ||
_kprove( | ||
File "/home/dev/src/pyk/src/pyk/ktool/kprove.py", line 107, in _kprove | ||
raise RuntimeError( | ||
RuntimeError: ('Command kprove exited with code 113 for: rule-spec.k', '', None) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,39 @@ | ||
[Error] Compiler: Found syntax declaration in proof module. Only tokens for existing sorts are allowed. | ||
[Error] Compiler: Found syntax declaration in proof module. Only tokens for | ||
existing sorts are allowed. | ||
Source(syntax-spec.k) | ||
Location(6,18,6,29) | ||
6 | syntax X ::= "errorHere" | ||
. ^~~~~~~~~~~ | ||
[Error] Compiler: Found syntax declaration in proof module. Only tokens for existing sorts are allowed. | ||
[Error] Compiler: Found syntax declaration in proof module. Only tokens for | ||
existing sorts are allowed. | ||
Source(syntax-spec.k) | ||
Location(7,5,7,13) | ||
7 | syntax Y | ||
. ^~~~~~~~ | ||
[Error] Compiler: Had 2 structural errors. | ||
Traceback (most recent call last): | ||
File "/home/dev/src/pyk/src/pyk/ktool/kprove.py", line 105, in _kprove | ||
return run_process(run_args, logger=_LOGGER, env=env, check=check) | ||
File "/home/dev/src/pyk/src/pyk/utils.py", line 451, in run_process | ||
res.check_returncode() | ||
File "/usr/lib/python3.10/subprocess.py", line 457, in check_returncode | ||
raise CalledProcessError(self.returncode, self.args, self.stdout, | ||
subprocess.CalledProcessError: Command '('kprove', 'syntax-spec.k', '--definition', 'errorClaim-kompiled', '--output', 'json', '--type-inference-mode', 'checked', '--dry-run', '--emit-json-spec', '/tmp/tmp2z_mabgd')' returned non-zero exit status 113. | ||
|
||
The above exception was the direct cause of the following exception: | ||
|
||
Traceback (most recent call last): | ||
File "<string>", line 1, in <module> | ||
File "/home/dev/src/pyk/src/pyk/__main__.py", line 90, in main | ||
execute(options) | ||
File "/home/dev/src/pyk/src/pyk/__main__.py", line 252, in exec_prove | ||
proofs = kprove.prove_rpc(options=options) | ||
File "/home/dev/src/pyk/src/pyk/ktool/kprove.py", line 380, in prove_rpc | ||
all_claims = self.get_claims( | ||
File "/home/dev/src/pyk/src/pyk/ktool/kprove.py", line 425, in get_claims | ||
flat_module_list = self.get_claim_modules( | ||
File "/home/dev/src/pyk/src/pyk/ktool/kprove.py", line 400, in get_claim_modules | ||
_kprove( | ||
File "/home/dev/src/pyk/src/pyk/ktool/kprove.py", line 107, in _kprove | ||
raise RuntimeError( | ||
RuntimeError: ('Command kprove exited with code 113 for: syntax-spec.k', '', None) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[Error] Compiler: Had 1 parsing errors. | ||
[Error] Compiler: Illegal circular relation: Exp < ExpList < Exp | ||
[Error] Compiler: Illegal circular relation: ExpList < Exp < ExpList | ||
[ERROR] Running process failed with returncode 113: | ||
kompile checkCircularList.k --md-selector k --emit-json --warnings none --no-exc-wrap --backend llvm --output-definition checkCircularList-kompiled --type-inference-mode checked |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
[Error] Inner Parser: Priority filter exception. Cannot use lguard as an immediate child of plus. Consider using parentheses around lguard | ||
Source(priorityError.k) | ||
Location(21,19,21,22) | ||
21 | rule . => 1 + l 2 // unable to disambiguate - error | ||
. ^~~ | ||
Location(21,20,21,23) | ||
21 | rule .K => 1 + l 2 // unable to disambiguate - error | ||
. ^~~ | ||
[Error] Inner Parser: Priority filter exception. Cannot use rguard as an immediate child of plus. Consider using parentheses around rguard | ||
Source(priorityError.k) | ||
Location(22,15,22,18) | ||
22 | rule . => 1 r + 2 // unable to disambiguate - error | ||
. ^~~ | ||
Location(22,16,22,19) | ||
22 | rule .K => 1 r + 2 // unable to disambiguate - error | ||
. ^~~ | ||
[Error] Inner Parser: Parsing ambiguity. | ||
1: syntax Exp ::= "l" Exp [klabel(lguard), symbol] | ||
lguard(rguard(#token("1","Int"))) | ||
2: syntax Exp ::= Exp "r" [klabel(rguard), symbol] | ||
rguard(lguard(#token("1","Int"))) | ||
Source(priorityError.k) | ||
Location(23,15,23,20) | ||
23 | rule . => l 1 r // ambiguous - error | ||
. ^~~~~ | ||
Location(23,16,23,21) | ||
23 | rule .K => l 1 r // ambiguous - error | ||
. ^~~~~ | ||
[Error] Compiler: Had 3 parsing errors. | ||
[ERROR] Running process failed with returncode 113: | ||
kompile priorityError.k --md-selector k --emit-json --warnings none --no-exc-wrap --backend llvm --output-definition priorityError-kompiled --type-inference-mode checked |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,27 @@ | ||
kore-exec: [] Warning (WarnStuckClaimState): | ||
The configuration's term unifies with the destination's term, but the implication check between the conditions has failed. Location: a2-spec.k:7:1-8:18 | ||
Context: | ||
(InfoReachability) while checking the implication | ||
#Ceil ( bar ( X ) ) | ||
#And | ||
#Not ( #Ceil ( baz ( X ) ) | ||
#And | ||
{ | ||
bar ( X ) | ||
#Equals | ||
baz ( X ) | ||
} ) | ||
#And | ||
<k> | ||
end ( bar ( X ) ) ~> .K | ||
</k> | ||
#And | ||
{ | ||
true | ||
#Equals | ||
X <Int 0 | ||
} | ||
[Error] Prover: backend terminated because the configuration cannot be rewritten further. See output for more details. | ||
APRProof: A2-SPEC.s2 | ||
status: ProofStatus.FAILED | ||
admitted: False | ||
nodes: 5 | ||
pending: 0 | ||
failing: 1 | ||
vacuous: 0 | ||
stuck: 1 | ||
terminal: 0 | ||
refuted: 0 | ||
bounded: 0 | ||
execution time: 0s | ||
Subproofs: 0 | ||
1 Failure nodes. (0 pending and 1 failing) | ||
|
||
Failing nodes: | ||
|
||
Node id: 5 | ||
Failure reason: | ||
Matching failed. | ||
The following cells failed matching individually (antecedent #Implies consequent): | ||
K_CELL: end ( bar ( X:Int ) ) #Implies end ( baz ( X:Int ) ) | ||
Path condition: | ||
#Ceil ( bar ( X:Int ) ) | ||
Failed to generate a model. | ||
|
||
Join the Runtime Verification Discord server for support: https://discord.gg/CurfmXNtbN | ||
Comment on lines
-1
to
+27
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This failure information message contains largely the same information as the original message, basically the part that failed and path condition to it. Are we happy with this new way of presenting information? |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess for these errors we can:
--no-wrap-exc
topyk prove ...
, and pass it through tokprove --dry-run ...
pyk prove ...
similar to what we do forkompile
The only challenge is that here we are using a temporary file as the JSON dump, and that will show up in the error message. So I guess we also need to:
--tmp-dir ...
forpyk prove ...
, and use that directory for dumping the temporary files.OR
OR