File tree Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -22,9 +22,8 @@ Author: Daniel Kroening, kroening@kroening.com
2222
2323void bmct::show_vcc_plain (std::ostream &out)
2424{
25- out << " \n " << " VERIFICATION CONDITIONS:" << " \n " << " \n " ;
26-
2725 bool has_threads=equation.has_threads ();
26+ bool first=true ;
2827
2928 for (symex_target_equationt::SSA_stepst::iterator
3029 s_it=equation.SSA_steps .begin ();
@@ -34,6 +33,11 @@ void bmct::show_vcc_plain(std::ostream &out)
3433 if (!s_it->is_assert ())
3534 continue ;
3635
36+ if (first)
37+ first=false ;
38+ else
39+ out << ' \n ' ;
40+
3741 if (s_it->source .pc ->source_location .is_not_nil ())
3842 out << s_it->source .pc ->source_location << " \n " ;
3943
@@ -74,8 +78,6 @@ void bmct::show_vcc_plain(std::ostream &out)
7478 std::string string_value=
7579 from_expr (ns, s_it->source .pc ->function , s_it->cond_expr );
7680 out << " {" << 1 << " } " << string_value << " \n " ;
77-
78- out << " \n " ;
7981 }
8082}
8183
@@ -162,7 +164,14 @@ void bmct::show_vcc()
162164 break ;
163165
164166 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+ }
166175 break ;
167176 }
168177
You can’t perform that action at this time.
0 commit comments