|
|
@@ -0,0 +1,13 @@
|
|
|
+#!/usr/bin/env bash
|
|
|
+set -euo pipefail
|
|
|
+# Target-scoped fallback: frame_tx_contract requests Bitwuzla, which is not in
|
|
|
+# the minimal Debian image. Use Z3 only for this target and emit a solver map.
|
|
|
+repo="${1:?source repository path}"
|
|
|
+work="${2:?formal work root}"
|
|
|
+mkdir -p "$work"
|
|
|
+src="$repo/tests/formal/frame_tx_contract.sby"
|
|
|
+tmp="$work/frame_tx_contract-z3.sby"
|
|
|
+sed 's/^smtbmc bitwuzla$/smtbmc z3/' "$src" > "$tmp"
|
|
|
+printf '%s\n' '{"schema":"prod2u-solver-map-v1","target":"frame_tx_contract","requested":"bitwuzla","selected":"z3","reason":"bitwuzla unavailable in authorized container"}' > "$work/solver-map.json"
|
|
|
+cd "$repo/tests/formal"
|
|
|
+exec /usr/local/bin/sby -f -d "$work/frame_tx_contract" "$tmp" bmc
|