Commit bc20bee 1 parent 61eeb81 commit bc20bee Copy full SHA for bc20bee
File tree 2 files changed +2
-21
lines changed
2 files changed +2
-21
lines changed Original file line number Diff line number Diff line change @@ -1562,22 +1562,10 @@ object evaluator extends EvaluationRules {
1562
1562
(Q : (State , Seq [Term ], Verifier ) => VerificationResult )
1563
1563
: VerificationResult = {
1564
1564
1565
- def transformPotentialFuncApp (t : Term ) = t match {
1566
- case app@ App (fun : HeapDepFun , _) =>
1567
- /** Heap-dependent functions that are used as tTriggerSets should be used
1568
- * in the limited version, because it allows for more instantiations.
1569
- * Keep this code in sync with [[viper.silicon.supporters.ExpressionTranslator.translate ]]
1570
- *
1571
- */
1572
- app.copy(applicable = functionSupporter.limitedVersion(fun))
1573
- case other =>
1574
- other
1575
- }
1576
-
1577
1565
val (cachedTriggerTerms, remainingTriggerExpressions) =
1578
1566
exps.map {
1579
1567
case pt @ (_ : ast.PossibleTrigger | _ : ast.FieldAccess | _ : ast.LabelledOld | _ : ast.Old ) =>
1580
- val cachedTrigger = s.possibleTriggers.get(pt).map(t => transformPotentialFuncApp(t))
1568
+ val cachedTrigger = s.possibleTriggers.get(pt)
1581
1569
(cachedTrigger, if (cachedTrigger.isDefined) None else Some (pt))
1582
1570
case e => (None , Some (e))
1583
1571
}.unzip match {
Original file line number Diff line number Diff line change @@ -89,14 +89,7 @@ trait ExpressionTranslator {
89
89
val body = eQuant.exp
90
90
val vars = eQuant.variables map (_.localVar)
91
91
92
- /** IMPORTANT: Keep in sync with [[viper.silicon.rules.evaluator.evalTrigger ]] */
93
- val translatedTriggers = eTriggers map (triggerSet => Trigger (triggerSet.exps map (trigger =>
94
- f(trigger) match {
95
- case app @ App (fun : HeapDepFun , _) =>
96
- app.copy(applicable = functionSupporter.limitedVersion(fun))
97
- case other => other
98
- }
99
- )))
92
+ val translatedTriggers = eTriggers map (triggerSet => Trigger (triggerSet.exps map (trigger => f(trigger))))
100
93
val weight = sourceQuant.info.getUniqueInfo[WeightedQuantifier ] match {
101
94
case Some (w) =>
102
95
if (w.weight >= 0 ) {
You can’t perform that action at this time.
0 commit comments