Skip to content
This repository was archived by the owner on Aug 20, 2021. It is now read-only.

Commit fa26d68

Browse files
asymmetricd-xo
authored andcommitted
klab-prove: toggle deterministic functions
This fixes the non-determinism we were seeing in some proofs. The reason was that there was more than one function defined for `sizeWordStack`, one of which is problematic, and they were being chosen non-deterministically.
1 parent 5cf7825 commit fa26d68

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libexec/klab-prove

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ timeout "$TIMEOUT" "$KLAB_EVMS_PATH/deps/k/k-distribution/target/release/k/bin/k
132132
--smt_prelude "$KLAB_OUT/prelude.smt2" \
133133
--concrete-rules "$(join_by , ${concrete_rules[@]})" \
134134
--z3-tactic "(or-else (using-params smt :random-seed 3) (using-params smt :random-seed 2) (using-params smt :random-seed 1))" \
135+
--deterministic-functions \
135136
"$target_spec" >"$STDOUT" 2>"$STDERR" & kprove_child=$!
136137
wait "$kprove_child"
137138
result=$?

0 commit comments

Comments
 (0)