Fixes #2007. We currently do not support generating models when
`--arrays-weak-equiv` is enabled. This commit adds a corresponding
user-facing error message.
reason << "global-negate";
return true;
}
+ else if (opts.arrays.arraysWeakEquivalence)
+ {
+ reason << "arrays-weak-equiv";
+ return true;
+ }
return false;
}
regress0/arrays/issue6276.smt2
regress0/arrays/issue6807-idem-rew.smt2
regress0/arrays/issue7596-define-array-uminus.smt2
+ regress0/arrays/issue8103-1-weak-equiv-models.smt2
regress0/arrays/swap_t1_np_nf_ai_00005_007.cvc.smtv1.smt2
regress0/arrays/x2.smtv1.smt2
regress0/arrays/x3.smtv1.smt2
--- /dev/null
+; COMMAND-LINE: --produce-models --arrays-weak-equiv
+; SCRUBBER: grep -o "Cannot use arrays-weak-equiv with model generation"
+; EXPECT: Cannot use arrays-weak-equiv with model generation
+; EXIT: 1
+(set-logic ALL)
+(declare-const a (Array (_ BitVec 64) (_ BitVec 64)))
+(declare-const b (_ BitVec 64))
+(assert (= (store a #x1111111111111111 b)
+ (store a b #x1111111111111111)))
+(check-sat)