Skip to content

Commit d0f7727

Browse files
committed
use colors in goto-analyzer
failures are red, passing properties are green
1 parent b370920 commit d0f7727

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/goto-analyzer/static_verifier.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,12 +178,12 @@ bool static_verifier(
178178

179179
if(e.is_true())
180180
{
181-
out << "Success";
181+
out << green() << "Success" << reset();
182182
pass++;
183183
}
184184
else if(e.is_false())
185185
{
186-
out << "Failure (if reachable)";
186+
out << red() << "Failure" << reset() << " (if reachable)";
187187
fail++;
188188
}
189189
else if(domain.is_bottom())
@@ -204,10 +204,11 @@ bool static_verifier(
204204
}
205205
}
206206

207-
m.status() << "Summary: "
207+
m.status() << bold() << "Summary: "
208208
<< pass << " pass, "
209209
<< fail << " fail if reachable, "
210-
<< unknown << " unknown\n";
210+
<< unknown << " unknown"
211+
<< reset() << eom;
211212

212213
return false;
213214
}

0 commit comments

Comments
 (0)