Skip to content

Commit a2bf4d9

Browse files
Merge pull request diffblue#276 from danpoe/fixes/dependence-graph-remove-precondition
Fix dependence graph precondition failure
2 parents b302871 + 618b63d commit a2bf4d9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

regression/goto-analyzer/dependence-graph15/main.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ int g_out2;
66

77
extern int g_in;
88

9-
void main(void)
9+
int main(void)
1010
{
1111
int t1;
1212
int t2;
@@ -20,4 +20,6 @@ void main(void)
2020
g_out1 = 0;
2121

2222
g_out2 = t1;
23+
24+
return 0;
2325
}

src/analyses/dependence_graph.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,6 @@ void dep_graph_domaint::control_dependencies(
7272

7373
// Add new candidates
7474

75-
PRECONDITION(!control_dep_call_candidates.empty());
76-
7775
if(from->is_goto() || from->is_assume())
7876
control_dep_candidates.insert(from);
7977
else if(from->is_end_function())

0 commit comments

Comments
 (0)