File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -2313,16 +2313,14 @@ void java_bytecode_convert_methodt::convert_athrow(
2313
2313
// we translate athrow into
2314
2314
// ASSERT false;
2315
2315
// ASSUME false:
2316
- code_assertt assert_code;
2317
- assert_code.assertion () = false_exprt ();
2316
+ code_assertt assert_code (false_exprt{});
2318
2317
source_locationt assert_location = location; // copy
2319
2318
assert_location.set_comment (" assertion at " + location.as_string ());
2320
2319
assert_location.set (" user-provided" , true );
2321
2320
assert_location.set_property_class (ID_assertion);
2322
2321
assert_code.add_source_location () = assert_location;
2323
2322
2324
- code_assumet assume_code;
2325
- assume_code.assumption () = false_exprt ();
2323
+ code_assumet assume_code (false_exprt{});
2326
2324
source_locationt assume_location = location; // copy
2327
2325
assume_location.set (" user-provided" , true );
2328
2326
assume_code.add_source_location () = assume_location;
Original file line number Diff line number Diff line change @@ -320,7 +320,7 @@ void shared_bufferst::write(
320
320
target=goto_program.insert_before (target);
321
321
target->guard =cond_expr;
322
322
target->type =ASSERT;
323
- target->code = code_assertt ();
323
+ target->code = code_assertt (cond_expr );
324
324
target->code .add_source_location ()=source_location;
325
325
target->source_location =source_location;
326
326
target++;
You can’t perform that action at this time.
0 commit comments