@@ -436,22 +436,8 @@ fn set_postcond_false(&crate_ctxt ccx, node_id id) {
436
436
}
437
437
438
438
fn pure_exp ( & crate_ctxt ccx, node_id id, & prestate p) -> bool {
439
- auto changed = false ;
440
- changed = extend_prestate_ann ( ccx, id, p) || changed;
441
- changed = extend_poststate_ann ( ccx, id, p) || changed;
442
- ret changed;
443
- }
444
-
445
- fn fixed_point_states ( & fn_ctxt fcx, fn ( & fn_ctxt , & _fn ) -> bool f,
446
- & _fn start ) {
447
- auto changed = f ( fcx, start) ;
448
- if ( changed) {
449
- ret fixed_point_states ( fcx, f, start) ;
450
- } else {
451
- // we're done!
452
-
453
- ret;
454
- }
439
+ ret extend_prestate_ann ( ccx, id, p) |
440
+ extend_poststate_ann ( ccx, id, p) ;
455
441
}
456
442
457
443
fn num_constraints ( fn_info m) -> uint { ret m. num_constraints ; }
@@ -733,7 +719,7 @@ fn forget_in_poststate(&fn_ctxt fcx, &poststate p, node_id dead_v) -> bool {
733
719
case ( some ( ?d_id) ) {
734
720
for ( norm_constraint c in constraints( fcx) ) {
735
721
if ( constraint_mentions ( fcx, c, d_id) ) {
736
- changed = clear_in_poststate_ ( c. bit_num , p) || changed ;
722
+ changed | = clear_in_poststate_ ( c. bit_num , p) ;
737
723
}
738
724
}
739
725
}
@@ -752,7 +738,7 @@ fn forget_in_poststate_still_init(&fn_ctxt fcx, &poststate p, node_id dead_v)
752
738
case ( some ( ?d_id) ) {
753
739
for ( norm_constraint c in constraints( fcx) ) {
754
740
if ( non_init_constraint_mentions ( fcx, c, d_id) ) {
755
- changed = clear_in_poststate_ ( c. bit_num , p) || changed ;
741
+ changed | = clear_in_poststate_ ( c. bit_num , p) ;
756
742
}
757
743
}
758
744
}
0 commit comments