File tree 3 files changed +4
-5
lines changed
3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ struct symex_configt final
59
59
bool simplify_opt;
60
60
bool unwinding_assertions;
61
61
bool partial_loops;
62
- std::string debug_level;
62
+ mp_integer debug_level;
63
63
64
64
explicit symex_configt (const optionst &options);
65
65
};
Original file line number Diff line number Diff line change @@ -458,8 +458,6 @@ void goto_symext::symex_trace(
458
458
{
459
459
PRECONDITION (code.arguments ().size () >= 2 );
460
460
461
- int debug_thresh = unsafe_string2int (symex_config.debug_level );
462
-
463
461
mp_integer debug_lvl;
464
462
optionalt<mp_integer> maybe_debug =
465
463
numeric_cast<mp_integer>(code.arguments ()[0 ]);
@@ -473,7 +471,7 @@ void goto_symext::symex_trace(
473
471
code.arguments ()[1 ].op0 ().id () == ID_string_constant,
474
472
" CBMC_trace expects string constant as second argument" );
475
473
476
- if (mp_integer (debug_thresh)>= debug_lvl)
474
+ if (symex_config. debug_level >= debug_lvl)
477
475
{
478
476
std::list<exprt> vars;
479
477
Original file line number Diff line number Diff line change 18
18
#include < util/make_unique.h>
19
19
#include < util/replace_symbol.h>
20
20
#include < util/std_expr.h>
21
+ #include < util/string2int.h>
21
22
#include < util/symbol_table.h>
22
23
23
24
#include < analyses/dirty.h>
@@ -33,7 +34,7 @@ symex_configt::symex_configt(const optionst &options)
33
34
simplify_opt(options.get_bool_option(" simplify" )),
34
35
unwinding_assertions(options.get_bool_option(" unwinding-assertions" )),
35
36
partial_loops(options.get_bool_option(" partial-loops" )),
36
- debug_level(options.get_option(" debug-level" ))
37
+ debug_level(unsafe_string2int( options.get_option(" debug-level" ) ))
37
38
{
38
39
}
39
40
You can’t perform that action at this time.
0 commit comments