Skip to content

Commit b3c4aeb

Browse files
committed
Fix bug in complexity calculation
By definition exprts have at least size (complexity) 1, so check for complexity == 1 not complexity == 0.
1 parent bc00629 commit b3c4aeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/goto-symex/complexity_limiter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ complexity_limitert::check_complexity(goto_symex_statet &state)
137137
return complexity_violationt::NONE;
138138

139139
std::size_t complexity = state.guard.as_expr().bounded_size(max_complexity);
140-
if(complexity == 0)
140+
if(complexity == 1)
141141
return complexity_violationt::NONE;
142142

143143
auto &current_call_stack = state.call_stack();

0 commit comments

Comments
 (0)