Skip to content

Commit de40333

Browse files
author
Daniel Kroening
committed
fix vacuous conjuncts
1 parent 76ae912 commit de40333

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/symex/path_search.cpp

+5-3
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,8 @@ bool path_searcht::drop_state(const statet &state)
293293
return true;
294294

295295
// unwinding limit -- loops
296-
if(unwind_limit>=0 && pc->is_backwards_goto())
296+
if(unwind_limit!=std::numeric_limits<unsigned>::max() &&
297+
pc->is_backwards_goto())
297298
{
298299
bool stop=false;
299300

@@ -319,7 +320,8 @@ bool path_searcht::drop_state(const statet &state)
319320
}
320321

321322
// unwinding limit -- recursion
322-
if(unwind_limit>=0 && pc->is_function_call())
323+
if(unwind_limit!=std::numeric_limits<unsigned>::max() &&
324+
pc->is_function_call())
323325
{
324326
bool stop=false;
325327

@@ -347,7 +349,7 @@ bool path_searcht::drop_state(const statet &state)
347349
}
348350

349351
// search time limit (--max-search-time)
350-
if(time_limit>=0 &&
352+
if(time_limit!=std::numeric_limits<unsigned>::max() &&
351353
current_time().get_t()>start_time.get_t()+time_limit*1000)
352354
return true;
353355

0 commit comments

Comments
 (0)