24
24
#include < util/cprover_prefix.h>
25
25
26
26
#include < langapi/mode.h>
27
- #include < langapi/languages.h>
28
27
#include < langapi/language_util.h>
29
28
30
- #include < ansi-c/ansi_c_language.h>
31
-
32
29
#include < goto-programs/xml_goto_trace.h>
33
30
#include < goto-programs/json_goto_trace.h>
34
31
#include < goto-programs/graphml_witness.h>
@@ -222,8 +219,6 @@ void bmct::show_program()
222
219
{
223
220
unsigned count=1 ;
224
221
225
- languagest languages (ns, new_ansi_c_language ());
226
-
227
222
std::cout << " \n " << " Program constraints:" << " \n " ;
228
223
229
224
for (const auto &step : equation.SSA_steps )
@@ -233,13 +228,14 @@ void bmct::show_program()
233
228
234
229
if (step.is_assignment ())
235
230
{
236
- std::string string_value;
237
- languages. from_expr (step.cond_expr , string_value );
231
+ std::string string_value=
232
+ from_expr (ns, " " , step.cond_expr );
238
233
std::cout << " (" << count << " ) " << string_value << " \n " ;
239
234
240
235
if (!step.guard .is_true ())
241
236
{
242
- languages.from_expr (step.guard , string_value);
237
+ std::string string_value=
238
+ from_expr (ns, " " , step.guard );
243
239
std::cout << std::string (std::to_string (count).size ()+3 , ' ' );
244
240
std::cout << " guard: " << string_value << " \n " ;
245
241
}
@@ -248,14 +244,15 @@ void bmct::show_program()
248
244
}
249
245
else if (step.is_assert ())
250
246
{
251
- std::string string_value;
252
- languages. from_expr (step.cond_expr , string_value );
247
+ std::string string_value=
248
+ from_expr (ns, " " , step.cond_expr );
253
249
std::cout << " (" << count << " ) ASSERT("
254
250
<< string_value <<" ) " << " \n " ;
255
251
256
252
if (!step.guard .is_true ())
257
253
{
258
- languages.from_expr (step.guard , string_value);
254
+ std::string string_value=
255
+ from_expr (ns, " " , step.guard );
259
256
std::cout << std::string (std::to_string (count).size ()+3 , ' ' );
260
257
std::cout << " guard: " << string_value << " \n " ;
261
258
}
@@ -264,14 +261,15 @@ void bmct::show_program()
264
261
}
265
262
else if (step.is_assume ())
266
263
{
267
- std::string string_value;
268
- languages. from_expr (step.cond_expr , string_value );
264
+ std::string string_value=
265
+ from_expr (ns, " " , step.cond_expr );
269
266
std::cout << " (" << count << " ) ASSUME("
270
267
<< string_value <<" ) " << " \n " ;
271
268
272
269
if (!step.guard .is_true ())
273
270
{
274
- languages.from_expr (step.guard , string_value);
271
+ std::string string_value=
272
+ from_expr (ns, " " , step.guard );
275
273
std::cout << std::string (std::to_string (count).size ()+3 , ' ' );
276
274
std::cout << " guard: " << string_value << " \n " ;
277
275
}
@@ -280,24 +278,25 @@ void bmct::show_program()
280
278
}
281
279
else if (step.is_constraint ())
282
280
{
283
- std::string string_value;
284
- languages. from_expr (step.cond_expr , string_value );
281
+ std::string string_value=
282
+ from_expr (ns, " " , step.cond_expr );
285
283
std::cout << " (" << count << " ) CONSTRAINT("
286
284
<< string_value <<" ) " << " \n " ;
287
285
288
286
count++;
289
287
}
290
288
else if (step.is_shared_read () || step.is_shared_write ())
291
289
{
292
- std::string string_value;
293
- languages. from_expr (step.ssa_lhs , string_value );
290
+ std::string string_value=
291
+ from_expr (ns, " " , step.ssa_lhs );
294
292
std::cout << " (" << count << " ) SHARED_"
295
293
<< (step.is_shared_write ()?" WRITE" :" READ" )
296
294
<< " (" << string_value <<" )\n " ;
297
295
298
296
if (!step.guard .is_true ())
299
297
{
300
- languages.from_expr (step.guard , string_value);
298
+ std::string string_value=
299
+ from_expr (ns, " " , step.guard );
301
300
std::cout << std::string (std::to_string (count).size ()+3 , ' ' );
302
301
std::cout << " guard: " << string_value << " \n " ;
303
302
}
0 commit comments