From 50f43fe0fe7a98914229fdb05ae4c4829785cd0a Mon Sep 17 00:00:00 2001 From: Levente Bajczi Date: Wed, 20 Nov 2024 21:45:48 +0100 Subject: [PATCH] fix theta-start.sh --- scripts/theta-start.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/theta-start.sh b/scripts/theta-start.sh index 64c64c5621..67125695b4 100755 --- a/scripts/theta-start.sh +++ b/scripts/theta-start.sh @@ -45,21 +45,23 @@ 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'" - TMPFILE=$(mktemp -d $PWD) + TMPFILE=$(mktemp -p $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" + rm "$TMPFILE" elif [ "$(basename "$property")" == "no-overflow.prp" ]; then transformed_property=$(dirname "$property")/unreach-call.prp echo "Mapping property '$property' to '$transformed_property'" - TMPFILE=$(mktemp -d $PWD) + TMPFILE=$(mktemp -p $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" + rm "$TMPFILE" else transformed_property="$property" fi