Failed assertion when using vc_boolType

5 views
Skip to first unread message

Stephan Falke

unread,
Sep 24, 2011, 5:51:33 AM9/24/11
to stp-users
Hi,

vc_boolType fails with assertion in NonMemberBVConstEvaluator
(consteval.cpp, failing assertion is in line 41). This method should
probably not be called in this case. The following patch seems to fix
the problem, but I am not sure whether this is the "right" fix.

Best regards,
Stephan


Index: src/AST/NodeFactory/SimplifyingNodeFactory.cpp
===================================================================
--- src/AST/NodeFactory/SimplifyingNodeFactory.cpp (revision 1398)
+++ src/AST/NodeFactory/SimplifyingNodeFactory.cpp (working copy)
@@ -39,7 +39,7 @@

// If all the parameters are constant, return the constant value.
// The bitblaster calls CreateNode with a boolean vector. We don't
try to simplify those.
- if (kind != BEEV::UNDEFINED && kind != BEEV::BITVECTOR && kind !=
BEEV::ARRAY)
+ if (kind != BEEV::UNDEFINED && kind != BEEV::BOOLEAN && kind !=
BEEV::BITVECTOR && kind != BEEV::ARRAY)
{
bool allConstant = true;

Trevor Hansen

unread,
Sep 27, 2011, 9:36:03 AM9/27/11
to stp-users
Hi Stephan, Thanks for the fix! It's applied in revision 1400.

Trevor.
Reply all
Reply to author
Forward
0 new messages