Fixed TestTheoryWhiteBagsRewriter.map failure (#7103)
authormudathirmahgoub <mudathirmahgoub@gmail.com>
Wed, 1 Sep 2021 13:47:26 +0000 (08:47 -0500)
committerGitHub <noreply@github.com>
Wed, 1 Sep 2021 13:47:26 +0000 (13:47 +0000)
Fixed TestTheoryWhiteBagsRewriter.map failure

test/unit/theory/theory_bags_rewriter_white.cpp

index e63fb3b20b3a272d36e86de07fb4d65b4619ce2c..a05d7643742ea99e53fadbc034e257c479bbb6a1 100644 (file)
@@ -697,8 +697,9 @@ TEST_F(TestTheoryWhiteBagsRewriter, to_set)
 
 TEST_F(TestTheoryWhiteBagsRewriter, map)
 {
-  Node emptybagString =
-      d_nodeManager->mkConst(EmptyBag(d_nodeManager->stringType()));
+  TypeNode bagStringType =
+      d_nodeManager->mkBagType(d_nodeManager->stringType());
+  Node emptybagString = d_nodeManager->mkConst(EmptyBag(bagStringType));
 
   Node one = d_nodeManager->mkConst(Rational(1));
   Node x = d_nodeManager->mkBoundVar("x", d_nodeManager->integerType());
@@ -710,8 +711,8 @@ TEST_F(TestTheoryWhiteBagsRewriter, map)
   // (bag.map (lambda ((x U))  t) emptybag) = emptybag
   Node n1 = d_nodeManager->mkNode(BAG_MAP, lambda, emptybagString);
   RewriteResponse response1 = d_rewriter->postRewrite(n1);
-  TypeNode type = d_nodeManager->mkBagType(d_nodeManager->integerType());
-  Node emptybagInteger = d_nodeManager->mkConst(EmptyBag(type));
+  TypeNode bagIntType = d_nodeManager->mkBagType(d_nodeManager->integerType());
+  Node emptybagInteger = d_nodeManager->mkConst(EmptyBag(bagIntType));
   ASSERT_TRUE(response1.d_node == emptybagInteger
               && response1.d_status == REWRITE_AGAIN_FULL);