-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updating prover #260
Merged
Merged
Updating prover #260
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
d0d90aa
Added `#halt` rule to signify end of execution.
dkcumming 07d64c2
[BROKEN] Added `KMIRSemantics` with explicit terminal rules.
dkcumming 8ec8d4c
Added booster as backend target
dkcumming e61684c
Added `runLemma` `doneLemma` paradigm
dkcumming 39bcbbe
added simplify init
dkcumming edaa357
failing proof working again
dkcumming 24755af
Fixed proof failure information
dkcumming 2d4f13d
Moved halt rules so that SYMBOLIC module could see them
dkcumming cd948ee
Added empty start-finish MIR program for verification
dkcumming b8977d9
Moved `#halt` back to `MIR` and `MIR-SYMBOLIC` now imports `MIR`
dkcumming 1cb379d
Corrected empty-program.k and added Rust and Mir for it
dkcumming 8cd3f2e
Added naming to proofs in simple-spec.k
dkcumming 236a2c2
added empty-program.k to CI
dkcumming 47014fe
removed duplicate rule in `MIR` module
dkcumming 95562f6
removing commented out imports
dkcumming 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 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 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 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 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 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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
requires "../../../../k-src/mir.md" | ||
|
||
module VERIFICATION | ||
imports K-EQUAL | ||
imports BASIC-K | ||
imports MIR-SYMBOLIC | ||
|
||
// LocalTokens will have parsing error if they are not enumerated here | ||
syntax LocalToken ::= "_1" [token] | ||
syntax LocalToken ::= "_2" [token] | ||
syntax LocalToken ::= "_3" [token] | ||
syntax LocalToken ::= "_4" [token] | ||
|
||
syntax BBId ::= "bb0" [token] | ||
endmodule | ||
|
||
module EMPTY-PROGRAM | ||
imports VERIFICATION | ||
|
||
claim | ||
<k> | ||
fn main :: .FunctionPath ( .ParameterList ) -> ( ) { .DebugList let mut _0 : ( ) ; .BindingList .ScopeList bb0 : { .Statements return ; } .BasicBlockList } .Mir ~> . | ||
=> | ||
#halt ~> . | ||
</k> | ||
<callStack> .List </callStack> | ||
<returncode> 4 => 0 </returncode> | ||
<phase> Initialization => Finalization </phase> | ||
<functions> .Bag => ?_ </functions> | ||
endmodule |
This file contains 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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// WARNING: This output format is intended for human consumers only | ||
// and is subject to change without notice. Knock yourself out. | ||
fn main() -> () { | ||
let mut _0: (); | ||
|
||
bb0: { | ||
return; | ||
} | ||
} |
This file contains 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
fn main() { | ||
42; | ||
} |
This file contains 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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
requires "../../../../k-src/mir.md" | ||
|
||
module VERIFICATION | ||
imports K-EQUAL | ||
imports BASIC-K | ||
imports MIR-SYMBOLIC | ||
|
||
// LocalTokens will have parsing error if they are not enumerated here | ||
syntax LocalToken ::= "_1" [token] | ||
syntax LocalToken ::= "_2" [token] | ||
syntax LocalToken ::= "_3" [token] | ||
syntax LocalToken ::= "_4" [token] | ||
endmodule | ||
|
||
module LEMMAS | ||
imports VERIFICATION | ||
|
||
// For testing | ||
claim <k> runLemma(isRValueResult(_:RValueResult)) => doneLemma(true) ...</k> | ||
claim <k> runLemma(isRValueResult(_:MIRValue)) => doneLemma(true) ...</k> | ||
endmodule |
This file contains 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 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
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 believe that the RPC-based prover supports functional claims directly these days, so this run / done workaround is only strictly needed for the text-based
kprove
workflow. Feel free to leave it in for your own development purposes, but just making you aware!