Skip to content

Commit 89cf6fe

Browse files
committed
Throw appropriate exceptions when converting constraints
1 parent 2ae66c2 commit 89cf6fe

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

src/goto-symex/symex_target_equation.cpp

+13-4
Original file line numberDiff line numberDiff line change
@@ -523,10 +523,19 @@ void symex_target_equationt::convert_constraints(
523523
{
524524
if(step.is_constraint())
525525
{
526-
if(step.ignore)
527-
continue;
528-
529-
decision_procedure.set_to_true(step.cond_expr);
526+
if(!step.ignore)
527+
{
528+
try
529+
{
530+
decision_procedure.set_to_true(step.cond_expr);
531+
}
532+
catch(const bitvector_conversion_exceptiont &conversion_exception)
533+
{
534+
util_throw_with_nested(
535+
equation_conversion_exceptiont(
536+
"Error converting constraints for step", step));
537+
}
538+
}
530539
}
531540
}
532541
}

0 commit comments

Comments
 (0)