File tree 3 files changed +20
-4
lines changed
regression/unwind-bounds/unwind_fp
3 files changed +20
-4
lines changed Original file line number Diff line number Diff line change
1
+ #define N (int)( (10./2.) + 0.5)
2
+
3
+ void some (void );
4
+
5
+ void main (void )
6
+ {
7
+ int i ;
8
+ for (i = 0 ; i < N ; i ++ )
9
+ some ();
10
+ }
Original file line number Diff line number Diff line change
1
+ CORE
2
+ main.c
3
+ --unwind-bounds
4
+ ^main.0: 5$
5
+ ^EXIT=0$
6
+ ^SIGNAL=0$
7
+ --
8
+ ^warning: ignoring
Original file line number Diff line number Diff line change @@ -520,8 +520,7 @@ void unwind_boundst::handle_self_loop(
520
520
521
521
exprt cond=loop->guard ;
522
522
523
- entry_state.values .replace_const .replace (cond);
524
- cond=simplify_expr (cond, ns);
523
+ entry_state.ai_simplify (cond, ns);
525
524
526
525
bool c=cond.is_false ();
527
526
@@ -605,8 +604,7 @@ void unwind_boundst::handle_loop(
605
604
while (true )
606
605
{
607
606
exprt cond=loop_cond (loop);
608
- next_entry_state.values .replace_const .replace (cond);
609
- cond=simplify_expr (cond, ns);
607
+ next_entry_state.ai_simplify (cond, ns);
610
608
611
609
bool c=cond.is_false ();
612
610
You can’t perform that action at this time.
0 commit comments