summaryrefslogtreecommitdiff
path: root/src/theory/bv/theory_bv.cpp
diff options
context:
space:
mode:
authorajreynol <andrew.j.reynolds@gmail.com>2016-11-14 15:42:15 -0600
committerajreynol <andrew.j.reynolds@gmail.com>2016-11-14 15:42:29 -0600
commitdd7341edeab50ee0f19965874ab6c55942a0ef37 (patch)
treefcdf3c9d47fd5fe5b776a42dd52898f86b72d307 /src/theory/bv/theory_bv.cpp
parent31c0d3b5f464983eab6e72d234934b29ef2027b6 (diff)
Minor improvement to caching for extf bv inferences.
Diffstat (limited to 'src/theory/bv/theory_bv.cpp')
-rw-r--r--src/theory/bv/theory_bv.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/theory/bv/theory_bv.cpp b/src/theory/bv/theory_bv.cpp
index 139559125..b6b29410f 100644
--- a/src/theory/bv/theory_bv.cpp
+++ b/src/theory/bv/theory_bv.cpp
@@ -69,7 +69,7 @@ TheoryBV::TheoryBV(context::Context* c, context::UserContext* u,
d_calledPreregister(false),
d_needsLastCallCheck(false),
d_extf_range_infer(u),
- d_extf_collapse_infer(c)
+ d_extf_collapse_infer(u)
{
d_extt = new ExtTheory( this );
d_extt->addFunctionKind( kind::BITVECTOR_TO_NAT );
@@ -535,8 +535,9 @@ bool TheoryBV::doExtfInferences( std::vector< Node >& terms ) {
std::map< Node, Node >::iterator it = op_map.find( r );
if( it!=op_map.end() ){
Node parent = it->second;
- Node cterm = parent[0]==n ? parent : NodeManager::currentNM()->mkNode( parent.getOperator(), n );
- Trace("bv-extf-lemma-debug") << "BV extf collapse based on : " << n << std::endl;
+ //Node cterm = parent[0]==n ? parent : NodeManager::currentNM()->mkNode( parent.getOperator(), n );
+ Node cterm = parent[0].eqNode( n );
+ Trace("bv-extf-lemma-debug") << "BV extf collapse based on : " << cterm << std::endl;
if( d_extf_collapse_infer.find( cterm )==d_extf_collapse_infer.end() ){
d_extf_collapse_infer.insert( cterm );
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback