Skip to content

Commit

Permalink
Removing old assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
leventeBajczi committed Nov 20, 2024
1 parent f070ea0 commit a48e089
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scripts/theta-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,18 @@ echo "Verifying input '$IN' with property '$property' using arguments '$modified
if [ "$(basename "$property")" == "termination.prp" ]; then
transformed_property=$(dirname "$property")/unreach-call.prp
echo "Mapping property '$property' to '$transformed_property'"
python3 "$scriptdir"/specification-transformation/src/specification-transformation.py --from-property termination --to-property reachability --algorithm InstrumentationOperator $IN
TMPFILE=$(mktemp -d $PWD)
sed 's/__VERIFIER_assert/__OLD_VERIFIER_assert/g;s/reach_error/old_reach_error/g' "$IN" > "$TMPFILE"
python3 "$scriptdir"/specification-transformation/src/specification-transformation.py --from-property termination --to-property reachability --algorithm InstrumentationOperator "$TMPFILE"
#"$scriptdir"/offset.sh "$IN" "output/transformed_program.c" > witness-mapping.yml
modified_args="$modified_args --input-file-for-witness $IN"
IN="output/transformed_program.c"
elif [ "$(basename "$property")" == "no-overflow.prp" ]; then
transformed_property=$(dirname "$property")/unreach-call.prp
echo "Mapping property '$property' to '$transformed_property'"
python3 "$scriptdir"/specification-transformation/src/specification-transformation.py --from-property no-overflow --to-property reachability --algorithm InstrumentationOperator $IN
TMPFILE=$(mktemp -d $PWD)
sed 's/__VERIFIER_assert/__OLD_VERIFIER_assert/g;s/reach_error/old_reach_error/g' "$IN" > "$TMPFILE"
python3 "$scriptdir"/specification-transformation/src/specification-transformation.py --from-property no-overflow --to-property reachability --algorithm InstrumentationOperator "$TMPFILE"
#"$scriptdir"/offset.sh "$IN" "output/transformed_program.c" > witness-mapping.yml
modified_args="$modified_args --input-file-for-witness $IN"
IN="output/transformed_program.c"
Expand Down

0 comments on commit a48e089

Please sign in to comment.