@@ -304,10 +304,6 @@ signature module LangSig<Semantic Sem, DeltaSig D> {
304304}
305305
306306signature module UtilSig< Semantic Sem, DeltaSig DeltaParam> {
307- Sem:: Guard semEqFlowCond (
308- Sem:: SsaVariable v , Sem:: Expr e , DeltaParam:: Delta delta , boolean isEq , boolean testIsTrue
309- ) ;
310-
311307 predicate semSsaUpdateStep ( Sem:: SsaExplicitUpdate v , Sem:: Expr e , DeltaParam:: Delta delta ) ;
312308
313309 predicate semValueFlowStep ( Sem:: Expr e2 , Sem:: Expr e1 , DeltaParam:: Delta delta ) ;
@@ -447,7 +443,7 @@ module RangeStage<
447443 */
448444 cached
449445 predicate possibleReason ( Sem:: Guard guard ) {
450- guard = boundFlowCond ( _, _, _, _, _) or guard = semEqFlowCond ( _, _, _, _, _)
446+ guard = boundFlowCond ( _, _, _, _, _) or guard = eqFlowCond ( _, _, _, _, _)
451447 }
452448 }
453449
@@ -609,7 +605,7 @@ module RangeStage<
609605 testIsTrue0 )
610606 )
611607 or
612- result = semEqFlowCond ( v , e , delta , true , testIsTrue ) and
608+ result = eqFlowCond ( v , e , delta , true , testIsTrue ) and
613609 ( upper = true or upper = false )
614610 or
615611 // guard that tests whether `v2` is bounded by `e + delta + d1 - d2` and
@@ -630,7 +626,7 @@ module RangeStage<
630626 Sem:: SsaVariable v1 , Sem:: SsaVariable v2 , float delta
631627 ) {
632628 exists ( Sem:: Guard guardEq , D:: Delta d1 , D:: Delta d2 , boolean eqIsTrue |
633- guardEq = semEqFlowCond ( v1 , ssaRead ( v2 , d1 ) , d2 , true , eqIsTrue ) and
629+ guardEq = eqFlowCond ( v1 , ssaRead ( v2 , d1 ) , d2 , true , eqIsTrue ) and
634630 delta = D:: toFloat ( d2 ) - D:: toFloat ( d1 ) and
635631 guardEq .directlyControls ( result , eqIsTrue )
636632 )
@@ -695,7 +691,7 @@ module RangeStage<
695691 getTrackedTypeForSsaVariable ( v ) instanceof Sem:: IntegerType and
696692 exists ( Sem:: Guard guard , boolean testIsTrue |
697693 pos .hasReadOfVar ( v ) and
698- guard = semEqFlowCond ( v , e , delta , false , testIsTrue ) and
694+ guard = eqFlowCond ( v , e , delta , false , testIsTrue ) and
699695 guardDirectlyControlsSsaRead ( guard , pos , testIsTrue ) and
700696 reason = TSemCondReason ( guard )
701697 )
0 commit comments