Skip to content

Commit 0a5d365

Browse files
author
martin
committed
Add a caveat that failures are only assertion failures if they are reachable.
1 parent 273d23e commit 0a5d365

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/goto-analyzer/static_analyzer.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ void static_analyzert<analyzerT>::plain_text_report()
120120
if(simplified.is_true())
121121
{ result() << "SUCCESS"; pass++; }
122122
else if(simplified.is_false())
123-
{ result() << "FAILURE"; fail++; }
123+
{ result() << "FAILURE (if reachable)"; fail++; }
124124
else
125125
{ result() << "UNKNOWN"; unknown++; }
126126
result() << eom;
@@ -169,7 +169,7 @@ void static_analyzert<analyzerT>::json_report()
169169
if(simplified.is_true())
170170
j["status"]=json_stringt("SUCCESS");
171171
else if(simplified.is_false())
172-
j["status"]=json_stringt("FAILURE");
172+
j["status"]=json_stringt("FAILURE (if reachable)");
173173
else
174174
j["status"]=json_stringt("UNKNOWN");
175175

@@ -219,7 +219,7 @@ void static_analyzert<analyzerT>::xml_report()
219219
if(simplified.is_true())
220220
x.set_attribute("status", "SUCCESS");
221221
else if(simplified.is_false())
222-
x.set_attribute("status", "FAILURE");
222+
x.set_attribute("status", "FAILURE (if reachable)");
223223
else
224224
x.set_attribute("status", "UNKNOWN");
225225

0 commit comments

Comments
 (0)