Skip to content

Commit bacb22f

Browse files
author
kroening
committed
output the iteration number in XML
git-svn-id: svn+ssh://svn.cprover.org/srv/svn/cbmc/trunk@5035 6afb6bc1-c8e4-404c-8f48-9ae832c5b171
1 parent 0998230 commit bacb22f

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

src/solvers/refinement/bv_refinement_loop.cpp

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ Author: Daniel Kroening, kroening@kroening.com
66
77
\*******************************************************************/
88

9+
#include <iostream>
10+
11+
#include <util/i2string.h>
12+
#include <util/xml.h>
13+
914
#include "bv_refinement.h"
1015

1116
/*******************************************************************\
@@ -75,7 +80,15 @@ decision_proceduret::resultt bv_refinementt::dec_solve()
7580
iteration++;
7681

7782
status() << "BV-Refinement: iteration " << iteration << eom;
78-
83+
84+
// output the very same information in a structured fashion
85+
if(ui==ui_message_handlert::XML_UI)
86+
{
87+
xmlt xml("refinement-iteration");
88+
xml.data=i2string(iteration);
89+
std::cout << xml << '\n';
90+
}
91+
7992
switch(prop_solve())
8093
{
8194
case D_SATISFIABLE:

0 commit comments

Comments
 (0)