Fixes cvc5/cvc5-projects#475.
InferInfo InferenceGenerator::empty(Node n, Node e)
{
Assert(n.getKind() == BAG_EMPTY);
- Assert(e.getType() == n.getType().getBagElementType());
+ Assert(e.getType().isSubtypeOf(n.getType().getBagElementType()));
InferInfo inferInfo(d_im, InferenceId::BAGS_EMPTY);
Node skolem = getSkolem(n, inferInfo);
regress1/bags/murxla1.smt2
regress1/bags/murxla2.smt2
regress1/bags/murxla3.smt2
+ regress1/bags/murxla4.smt2
regress1/bags/product1.smt2
regress1/bags/product2.smt2
regress1/bags/product3.smt2
--- /dev/null
+(set-logic ALL)
+(set-info :status sat)
+(declare-const x Int)
+(assert ((_ divisible 2) (bag.count 0.0 (bag 0.0 x))))
+(check-sat)