File tree 4 files changed +5
-13
lines changed
regression/goto-instrument
generate-function-body-assert-false
generate-function-body-assert-false-assume-false
4 files changed +5
-13
lines changed Original file line number Diff line number Diff line change 5
5
^SIGNAL=0$
6
6
^VERIFICATION FAILED$
7
7
^\[main.assertion.1\] .* assertion 0: SUCCESS$
8
- ^\[crashes_program.assertion.1\] .* assertion false : FAILURE$
8
+ ^\[crashes_program.assertion.1\] .* undefined function should be unreachable : FAILURE$
Original file line number Diff line number Diff line change 3
3
--generate-function-body do_not_call_this --generate-function-body-options assert-false
4
4
^EXIT=10$
5
5
^SIGNAL=0$
6
- ^\[do_not_call_this.assertion.1\] .* assertion false : FAILURE$
6
+ ^\[do_not_call_this.assertion.1\] .* undefined function should be unreachable : FAILURE$
7
7
--
8
8
^warning: ignoring
Original file line number Diff line number Diff line change 5
5
^SIGNAL=0$
6
6
^VERIFICATION FAILED$
7
7
^\[main.assertion.1\] .* assertion does_not_get_reached: SUCCESS$
8
- ^\[should_be_generated.assertion.1\] .* assertion false : FAILURE$
8
+ ^\[should_be_generated.assertion.1\] .* undefined function should be unreachable : FAILURE$
Original file line number Diff line number Diff line change @@ -105,12 +105,8 @@ class assert_false_generate_function_bodiest : public generate_function_bodiest
105
105
};
106
106
auto assert_instruction =
107
107
add_instruction (goto_programt::make_assertion (false_exprt ()));
108
- const namespacet ns (symbol_table);
109
- std::ostringstream comment_stream;
110
- comment_stream << id2string (ID_assertion) << " "
111
- << format (assert_instruction->condition ());
112
108
assert_instruction->source_location_nonconst ().set_comment (
113
- comment_stream. str () );
109
+ " undefined function should be unreachable " );
114
110
assert_instruction->source_location_nonconst ().set_property_class (
115
111
ID_assertion);
116
112
add_instruction (goto_programt::make_end_function ());
@@ -136,12 +132,8 @@ class assert_false_then_assume_false_generate_function_bodiest
136
132
};
137
133
auto assert_instruction =
138
134
add_instruction (goto_programt::make_assertion (false_exprt ()));
139
- const namespacet ns (symbol_table);
140
- std::ostringstream comment_stream;
141
- comment_stream << id2string (ID_assertion) << " "
142
- << format (assert_instruction->condition ());
143
135
assert_instruction->source_location_nonconst ().set_comment (
144
- comment_stream. str () );
136
+ " undefined function should be unreachable " );
145
137
assert_instruction->source_location_nonconst ().set_property_class (
146
138
ID_assertion);
147
139
add_instruction (goto_programt::make_assumption (false_exprt ()));
You can’t perform that action at this time.
0 commit comments