summaryrefslogtreecommitdiff
path: root/src/theory/builtin
diff options
context:
space:
mode:
authorAndres Noetzli <andres.noetzli@gmail.com>2020-07-13 19:48:07 -0700
committerGitHub <noreply@github.com>2020-07-13 21:48:07 -0500
commit78c0daa482b35b95c90dd058ee4dd8a981e1337f (patch)
treec45fe72ac96032b0e6f7ea53798443671ad08d86 /src/theory/builtin
parent84fe644cb1956119b7b35ede06ee93583eae1925 (diff)
Use TypeNode/Node in ArrayStoreAll (#4728)
This commit changes ArrayStoreAll to use Node/TypeNode instead of Expr/Type.
Diffstat (limited to 'src/theory/builtin')
-rw-r--r--src/theory/builtin/theory_builtin_rewriter.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/theory/builtin/theory_builtin_rewriter.cpp b/src/theory/builtin/theory_builtin_rewriter.cpp
index 245e7cb8a..456b0cbca 100644
--- a/src/theory/builtin/theory_builtin_rewriter.cpp
+++ b/src/theory/builtin/theory_builtin_rewriter.cpp
@@ -185,7 +185,7 @@ Node TheoryBuiltinRewriter::getLambdaForArrayRepresentationRec( TNode a, TNode b
}
}else if( a.getKind()==kind::STORE_ALL ){
ArrayStoreAll storeAll = a.getConst<ArrayStoreAll>();
- Node sa = Node::fromExpr(storeAll.getExpr());
+ Node sa = storeAll.getValue();
// convert the default value recursively (bounded by the number of arguments in bvl)
ret = getLambdaForArrayRepresentationRec( sa, bvl, bvlIndex+1, visited );
}
@@ -448,8 +448,7 @@ Node TheoryBuiltinRewriter::getArrayRepresentationForLambdaRec(TNode n,
}
Trace("builtin-rewrite-debug2") << " make array store all " << curr.getType() << " annotated : " << array_type << std::endl;
Assert(curr.getType().isSubtypeOf(array_type.getArrayConstituentType()));
- curr = nm->mkConst(
- ArrayStoreAll((ArrayType(array_type.toType())), curr.toExpr()));
+ curr = nm->mkConst(ArrayStoreAll(array_type, curr));
Trace("builtin-rewrite-debug2") << " build array..." << std::endl;
// can only build if default value is constant (since array store all must be constant)
Trace("builtin-rewrite-debug2") << " got constant base " << curr << std::endl;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback