aboutsummaryrefslogtreecommitdiff
path: root/examples/xor/xor_epsilon.smtlib
diff options
context:
space:
mode:
authorericmarin <maarin.eric@gmail.com>2026-06-05 16:40:44 +0200
committerericmarin <maarin.eric@gmail.com>2026-06-10 14:28:22 +0200
commitd85de781b4a825fe0d1217e1e8ae5ec81dd70202 (patch)
treebf7d0539ff7410ca12d53be7a3e5a6530d277530 /examples/xor/xor_epsilon.smtlib
parentfcbbc960f43137aa170b78ba0be2d89aec3bc766 (diff)
downloadvein-d85de781b4a825fe0d1217e1e8ae5ec81dd70202.tar.gz
vein-d85de781b4a825fe0d1217e1e8ae5ec81dd70202.zip
balanced fanout
Diffstat (limited to 'examples/xor/xor_epsilon.smtlib')
-rw-r--r--examples/xor/xor_epsilon.smtlib15
1 files changed, 15 insertions, 0 deletions
diff --git a/examples/xor/xor_epsilon.smtlib b/examples/xor/xor_epsilon.smtlib
new file mode 100644
index 0000000..427243e
--- /dev/null
+++ b/examples/xor/xor_epsilon.smtlib
@@ -0,0 +1,15 @@
+; Epsilon 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 epsilon equivalence (epsilon = 0.1)
+(define-fun absolute ((x Real)) Real (if (>= x 0) x (- x)))
+(assert (> (absolute (- Y_0 Y_1)) 0.1))