File tree 1 file changed +14
-5
lines changed
1 file changed +14
-5
lines changed Original file line number Diff line number Diff line change 22
22
23
23
void bmct::show_vcc_plain (std::ostream &out)
24
24
{
25
- out << " \n " << " VERIFICATION CONDITIONS:" << " \n " << " \n " ;
26
-
27
25
bool has_threads=equation.has_threads ();
26
+ bool first=true ;
28
27
29
28
for (symex_target_equationt::SSA_stepst::iterator
30
29
s_it=equation.SSA_steps .begin ();
@@ -34,6 +33,11 @@ void bmct::show_vcc_plain(std::ostream &out)
34
33
if (!s_it->is_assert ())
35
34
continue ;
36
35
36
+ if (first)
37
+ first=false ;
38
+ else
39
+ out << ' \n ' ;
40
+
37
41
if (s_it->source .pc ->source_location .is_not_nil ())
38
42
out << s_it->source .pc ->source_location << " \n " ;
39
43
@@ -74,8 +78,6 @@ void bmct::show_vcc_plain(std::ostream &out)
74
78
std::string string_value=
75
79
from_expr (ns, s_it->source .pc ->function , s_it->cond_expr );
76
80
out << " {" << 1 << " } " << string_value << " \n " ;
77
-
78
- out << " \n " ;
79
81
}
80
82
}
81
83
@@ -162,7 +164,14 @@ void bmct::show_vcc()
162
164
break ;
163
165
164
166
case ui_message_handlert::uit::PLAIN:
165
- show_vcc_plain (out);
167
+ status () << " VERIFICATION CONDITIONS:\n " << eom;
168
+ if (have_file)
169
+ show_vcc_plain (out);
170
+ else
171
+ {
172
+ show_vcc_plain (status ());
173
+ status () << eom;
174
+ }
166
175
break ;
167
176
}
168
177
You can’t perform that action at this time.
0 commit comments