@@ -121,7 +121,7 @@ void validate_nondets_converted(
121
121
}
122
122
}
123
123
124
- REQUIRE (! nondet_exists);
124
+ REQUIRE_FALSE ( nondet_exists);
125
125
REQUIRE (allocate_exists);
126
126
}
127
127
@@ -145,7 +145,7 @@ void load_and_test_method(
145
145
remove_virtual_functions (model_function);
146
146
147
147
// Then test both situations.
148
- THEN (" Replace nondet should work when remove returns has been called." )
148
+ THEN (" Replace nondet should work after remove returns has been called." )
149
149
{
150
150
remove_returns (model_function, [](const irep_idt &) { return false ; });
151
151
@@ -154,7 +154,7 @@ void load_and_test_method(
154
154
validate_nondet_method_removed (goto_function.body .instructions );
155
155
}
156
156
157
- THEN (" Replace nondet should work when remove returns hasn't been called." )
157
+ THEN (" Replace nondet should work before remove returns has been called." )
158
158
{
159
159
replace_java_nondet (model_function);
160
160
@@ -166,24 +166,20 @@ void load_and_test_method(
166
166
object_factory_parameterst params{};
167
167
168
168
THEN (
169
- " Replace and convert nondet should work when remove returns has been "
169
+ " Replace and convert nondet should work after remove returns has been "
170
170
" called." )
171
171
{
172
+ remove_returns (model_function, [](const irep_idt &) { return false ; });
173
+
172
174
replace_java_nondet (model_function);
173
175
174
176
convert_nondet (model_function, null_message_handler, params, ID_java);
175
177
176
- remove_returns (model_function, [](const irep_idt &) { return false ; });
177
-
178
- std::stringstream out;
179
- goto_function.body .output (namespacet (symbol_table), " " , out);
180
- std::string res = out.str ();
181
-
182
178
validate_nondets_converted (goto_function.body .instructions );
183
179
}
184
180
185
181
THEN (
186
- " Replace and convert nondet should work when remove returns hasn't been "
182
+ " Replace and convert nondet should work before remove returns has been "
187
183
" called." )
188
184
{
189
185
replace_java_nondet (model_function);
0 commit comments