diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2011-04-27 00:49:02 +0000 |
---|---|---|
committer | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2011-04-27 00:49:02 +0000 |
commit | c21ca8353370eb44aa6318e6ee4bffee64197fd8 (patch) | |
tree | 4f67e58bad5c372034c34df2681b818b3c164488 /src/util/trans_closure.cpp | |
parent | 97111ecb8681838f2d201420cda12ca9fc7184ed (diff) |
cleaned up some of the hacks in the datatypes theory solver, working on using Transitive Closure to detect cycles, added rewrite rule for disinguished ground terms
Diffstat (limited to 'src/util/trans_closure.cpp')
-rw-r--r-- | src/util/trans_closure.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/util/trans_closure.cpp b/src/util/trans_closure.cpp index 092dfb358..a31dc3378 100644 --- a/src/util/trans_closure.cpp +++ b/src/util/trans_closure.cpp @@ -89,5 +89,17 @@ void TransitiveClosure::debugPrintMatrix() } } +unsigned TransitiveClosureNode::d_counter = 0; + +unsigned TransitiveClosureNode::getId( Node i ){ + std::map< Node, unsigned >::iterator it = nodeMap.find( i ); + if( it==nodeMap.end() ){ + nodeMap[i] = d_counter; + d_counter++; + return d_counter-1; + } + return it->second; +} + }/* CVC4 namespace */ |