@@ -304,10 +304,6 @@ signature module LangSig<Semantic Sem, DeltaSig D> {
304
304
}
305
305
306
306
signature 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
-
311
307
predicate semSsaUpdateStep ( Sem:: SsaExplicitUpdate v , Sem:: Expr e , DeltaParam:: Delta delta ) ;
312
308
313
309
predicate semValueFlowStep ( Sem:: Expr e2 , Sem:: Expr e1 , DeltaParam:: Delta delta ) ;
@@ -447,7 +443,7 @@ module RangeStage<
447
443
*/
448
444
cached
449
445
predicate possibleReason ( Sem:: Guard guard ) {
450
- guard = boundFlowCond ( _, _, _, _, _) or guard = semEqFlowCond ( _, _, _, _, _)
446
+ guard = boundFlowCond ( _, _, _, _, _) or guard = eqFlowCond ( _, _, _, _, _)
451
447
}
452
448
}
453
449
@@ -609,7 +605,7 @@ module RangeStage<
609
605
testIsTrue0 )
610
606
)
611
607
or
612
- result = semEqFlowCond ( v , e , delta , true , testIsTrue ) and
608
+ result = eqFlowCond ( v , e , delta , true , testIsTrue ) and
613
609
( upper = true or upper = false )
614
610
or
615
611
// guard that tests whether `v2` is bounded by `e + delta + d1 - d2` and
@@ -630,7 +626,7 @@ module RangeStage<
630
626
Sem:: SsaVariable v1 , Sem:: SsaVariable v2 , float delta
631
627
) {
632
628
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
634
630
delta = D:: toFloat ( d2 ) - D:: toFloat ( d1 ) and
635
631
guardEq .directlyControls ( result , eqIsTrue )
636
632
)
@@ -695,7 +691,7 @@ module RangeStage<
695
691
getTrackedTypeForSsaVariable ( v ) instanceof Sem:: IntegerType and
696
692
exists ( Sem:: Guard guard , boolean testIsTrue |
697
693
pos .hasReadOfVar ( v ) and
698
- guard = semEqFlowCond ( v , e , delta , false , testIsTrue ) and
694
+ guard = eqFlowCond ( v , e , delta , false , testIsTrue ) and
699
695
guardDirectlyControlsSsaRead ( guard , pos , testIsTrue ) and
700
696
reason = TSemCondReason ( guard )
701
697
)
0 commit comments