This PR fixes a bug found by cvc5 fuzzy sygus.
}
Node rep = NormalForm::constructBagFromElements(tn, elementReps);
rep = Rewriter::rewrite(rep);
-
Trace("bags-model") << "rep of " << n << " is: " << rep << std::endl;
- for (std::pair<Node, Node> pair : elementReps)
- {
- m->assertSkeleton(pair.first);
- m->assertSkeleton(pair.second);
- }
m->assertEquality(rep, n, true);
m->assertSkeleton(rep);
}
regress1/bags/emptybag1.smt2
regress1/bags/fuzzy1.smt2
regress1/bags/fuzzy2.smt2
+ regress1/bags/fuzzy3.smt2
regress1/bags/intersection_min1.smt2
regress1/bags/intersection_min2.smt2
regress1/bags/issue5759.smt2
--- /dev/null
+(set-logic ALL)
+(set-info :status sat)
+(set-option :produce-models true)
+(declare-fun A () (Bag (Tuple Int Int)))
+(declare-fun B () (Bag (Tuple Int Int)))
+(declare-fun c () Int)
+(declare-fun d () (Tuple Int Int))
+(assert
+ (not
+ (=
+ (= A (difference_remove (bag d c) A))
+ (= A (bag (tuple c c) c)))))
+(check-sat)