aboutsummaryrefslogtreecommitdiff
path: root/examples/xor/xor_strict.vnnlib
diff options
context:
space:
mode:
authormirenn <me@mirenn.dev>2026-03-26 20:28:38 +0100
committermirenn <me@mirenn.dev>2026-03-26 21:27:10 +0100
commit3414dd9a6a412e5e87b19daef6b1c9ab630c749d (patch)
tree80a29ac6b7baee3bbfe4f161fc893fd5948d9409 /examples/xor/xor_strict.vnnlib
parent2858539772fafe11b09eb4ea4eafed9d2b2e1905 (diff)
downloadvein-3414dd9a6a412e5e87b19daef6b1c9ab630c749d.tar.gz
vein-3414dd9a6a412e5e87b19daef6b1c9ab630c749d.zip
added LICENSE
Diffstat (limited to 'examples/xor/xor_strict.vnnlib')
-rw-r--r--examples/xor/xor_strict.vnnlib14
1 files changed, 14 insertions, 0 deletions
diff --git a/examples/xor/xor_strict.vnnlib b/examples/xor/xor_strict.vnnlib
new file mode 100644
index 0000000..bead476
--- /dev/null
+++ b/examples/xor/xor_strict.vnnlib
@@ -0,0 +1,14 @@
+; Strict Equivalence for XOR
+
+; Constant declaration
+(declare-const X_0 Real)
+(declare-const X_1 Real)
+(declare-const Y_0 Real)
+(declare-const Y_1 Real)
+
+; Bounded inputs: X must be 0 or 1
+(assert (or (= X_0 0) (= X_0 1)))
+(assert (or (= X_1 0) (= X_1 1)))
+
+; Violation of strict equivalence: outputs are different
+(assert (not (= Y_0 Y_1)))