Skip to content

Commit cf00a53

Browse files
Merge pull request #7163 from thomasspriggs/tas/goto-analyzer-warning
Add warning about unsound simplification in goto-analyzer
2 parents cfb192d + 5598615 commit cf00a53

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
void main()
3+
{
4+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
CORE
2+
main.c
3+
--vsd --vsd-values constants
4+
\*\*\*\* WARNING\: This simplification is currently known to be unsound for input programs which include recursion\. Do not use it if soundness is important for your use case\.
5+
^SIGNAL=0$
6+
^EXIT=0$
7+
--

src/goto-analyzer/static_simplifier.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ bool static_simplifier(
5656

5757
messaget m(message_handler);
5858
m.status() << "Simplifying program" << messaget::eom;
59+
m.warning() << "**** WARNING: This simplification is currently known to be "
60+
"unsound for input programs which include recursion. Do not "
61+
"use it if soundness is important for your use case."
62+
<< messaget::eom;
5963

6064
for(auto &gf_entry : goto_model.goto_functions.function_map)
6165
{

0 commit comments

Comments
 (0)