File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -1490,20 +1490,16 @@ void goto_checkt::add_guarded_claim(
1490
1490
1491
1491
if (assertions.insert (guarded_expr).second )
1492
1492
{
1493
- goto_program_instruction_typet type=
1494
- enable_assert_to_assume?ASSUME:ASSERT;
1495
-
1496
- goto_programt::targett t = new_code.add (goto_programt::instructiont (
1497
- static_cast <const codet &>(get_nil_irep ()),
1498
- source_location,
1499
- type,
1500
- std::move (guarded_expr),
1501
- {}));
1493
+ auto t = new_code.add (
1494
+ enable_assert_to_assume ? goto_programt::make_assumption (
1495
+ std::move (guarded_expr), source_location)
1496
+ : goto_programt::make_assertion (
1497
+ std::move (guarded_expr), source_location));
1502
1498
1503
1499
std::string source_expr_string;
1504
1500
get_language_from_mode (mode)->from_expr (src_expr, source_expr_string, ns);
1505
1501
1506
- t->source_location .set_comment (comment+ " in " + source_expr_string);
1502
+ t->source_location .set_comment (comment + " in " + source_expr_string);
1507
1503
t->source_location .set_property_class (property_class);
1508
1504
}
1509
1505
}
You can’t perform that action at this time.
0 commit comments