-
Notifications
You must be signed in to change notification settings - Fork 41
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
Goto-transcoder action #236
base: main
Are you sure you want to change the base?
Conversation
fixes on action script removed checkout subfolder fixed typo
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.
Looks good. Thanks
|
||
echo "Checking contracts with goto-transcoder" | ||
|
||
if [ ! -d "goto-transcoder" ]; then |
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.
can you please add this folder to the git ignore file?
############## | ||
# PARAMETERS # | ||
############## | ||
contract_folder=target/kani_verify_std/target/x86_64-unknown-linux-gnu/debug/deps |
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.
nit... can you pass this as an argument to Kani script and the goto-transcoder script instead of relying here on the location where Kani stores their temporary files?
# PARAMETERS # | ||
############## | ||
contract_folder=target/kani_verify_std/target/x86_64-unknown-linux-gnu/debug/deps | ||
supported_regex=checked_unchecked.*.out |
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.
Can you also make this an argument so users can easily try out their new harnesses.
|
||
cd goto-transcoder | ||
while IFS= read -r line; do | ||
contract=`echo "$line" | awk '{match($0, /(_RNv.*).out/, arr); print arr[1]}'` |
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.
can you document what this is doing please?
continue | ||
fi | ||
echo "Running: goto-transcoder $contract $contract_folder/$line $contract.esbmc.goto" | ||
cargo run cbmc2esbmc $contract ../$contract_folder/$line $contract.esbmc.goto |
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.
does your Cargo.toml
file define a workspace? Can you please make sure that running this command won't try to modify this repository root Cargo.toml
? Thanks!
@@ -0,0 +1,37 @@ | |||
# This workflow executes the supported contracts in goto-transcoder | |||
|
|||
name: Run GOTO Transcoder (ESBMC) |
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.
We need to include a section in our book about the new tool. See Kani example https://model-checking.github.io/verify-rust-std/tools.html
Resolves #108
This PR enables the use of goto-transcoder for the following contracts:
The version of ESBMC used contains the following solvers:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.