From 912ecbb64a47bd77f5828a21ba008608bcd5b351 Mon Sep 17 00:00:00 2001 From: Siddharth Bhat Date: Tue, 23 Dec 2025 13:57:37 +0100 Subject: [PATCH] chore: add failing medusa test --- Medusa/Medusa/FailingTests.lean | 46 ++++++++++++++++++++++++++++++--- 1 file changed, 42 insertions(+), 4 deletions(-) diff --git a/Medusa/Medusa/FailingTests.lean b/Medusa/Medusa/FailingTests.lean index 75030e0292..5a1d3bb1bb 100644 --- a/Medusa/Medusa/FailingTests.lean +++ b/Medusa/Medusa/FailingTests.lean @@ -3,12 +3,50 @@ ---- Failing Tests import Medusa.BitVec.BVGeneralize -set_option trace.profiler true -set_option trace.profiler.threshold 1 -set_option trace.Generalize true +-- set_option trace.profiler true +-- set_option trace.profiler.threshold 1 +-- set_option trace.Generalize true variable {x y : BitVec 32} -#generalize BitVec.signExtend 34 (BitVec.zeroExtend 33 x) = BitVec.zeroExtend 34 x +/-- +info: Processing constants assignment: {} +--- +info: Performing deductive search +--- +info: Could not find a generalized form from just deductive search +--- +info: Performing enumerative search using a sketch of the LHS +--- +info: Performing bottom-up enumerative search one level at a time +--- +info: Running with 0 allowed conjunctions +--- +info: Negative examples for ((signExtend 8 (zeroExtend 7 var1#7})}) == (zeroExtend 8 var1#7})) : [{1 → 0x40#7}, + {1 → 0x7f#7}, + {1 → 0x5f#7}] +--- +info: Precondition Synthesis: Processing level 0 +--- +info: Raw generalization result: (if (((true && (var9482#8