We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b302871 + 618b63d commit a2bf4d9Copy full SHA for a2bf4d9
regression/goto-analyzer/dependence-graph15/main.c
@@ -6,7 +6,7 @@ int g_out2;
6
7
extern int g_in;
8
9
-void main(void)
+int main(void)
10
{
11
int t1;
12
int t2;
@@ -20,4 +20,6 @@ void main(void)
20
g_out1 = 0;
21
22
g_out2 = t1;
23
+
24
+ return 0;
25
}
src/analyses/dependence_graph.cpp
@@ -72,8 +72,6 @@ void dep_graph_domaint::control_dependencies(
72
73
// Add new candidates
74
75
- PRECONDITION(!control_dep_call_candidates.empty());
76
-
77
if(from->is_goto() || from->is_assume())
78
control_dep_candidates.insert(from);
79
else if(from->is_end_function())
0 commit comments