Stephan Falke
unread,Sep 24, 2011, 5:51:33 AM9/24/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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;