Skip to content

Commit 7a489d3

Browse files
rod-chapmanhanno-becker
authored andcommitted
CBMC: Stabilize proof of polyvecl_pointwise_acc_montgomery
1. Introduce z3_smt_only wrapper that sets tactic.default_tactic=smt 2. Use that script in CBMC proof of polyvecl_pointwise_acc_montgomery Signed-off-by: Rod Chapman <rodchap@amazon.com>
1 parent 9243b88 commit 7a489d3

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

proofs/cbmc/lib/z3_smt_only

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
# Copyright (c) The mldsa-native project authors
3+
# Copyright (c) The mlkem-native project authors
4+
# SPDX-License-Identifier: Apache-2.0 OR ISC OR MIT
5+
6+
# Disable initial simplify tactic and go straight to main SMT tactic
7+
# This can prevent divergence of Z3 on different platforms
8+
z3 tactic.default_tactic=smt "$@"

proofs/cbmc/polyvecl_pointwise_acc_montgomery/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ USE_DYNAMIC_FRAMES=1
2626

2727
# Disable any setting of EXTERNAL_SAT_SOLVER, and choose SMT backend instead
2828
EXTERNAL_SAT_SOLVER=
29-
CBMCFLAGS=--external-smt2-solver $(PROOF_ROOT)/lib/z3_no_bv_extract --z3
29+
CBMCFLAGS=--external-smt2-solver $(PROOF_ROOT)/lib/z3_smt_only --z3
3030
CBMCFLAGS += --slice-formula
3131
CBMCFLAGS += --no-array-field-sensitivity
3232

0 commit comments

Comments
 (0)