Skip to content

Commit 5349a0d

Browse files
committed
fix AAM GC bug
1 parent ca1494e commit 5349a0d

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

code/shared/src/main/scala/maf/modular/scheme/aam/AAMAsbtractCounting.scala renamed to code/shared/src/main/scala/maf/modular/scheme/aam/AAMAbstractCounting.scala

File renamed without changes.

code/shared/src/main/scala/maf/modular/scheme/aam/AAMGC.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ trait AAMGC extends AAMScheme:
5858
def restrictEnv(f: Frame): Frame = f match
5959
case IffK(c, a, ρ, t, aₖ) => IffK(c, a, ρ.restrictTo(c.fv ++ a.fv), t, aₖ)
6060
case SeqK(r, ρ, t, aₖ) => SeqK(r, ρ.restrictTo(fv(r)), t, aₖ)
61-
case LetK(l, v, a, b, ρ, t, aₖ) => LetK(l, v, a, b, ρ.restrictTo(fv(l.map(_._2))), t, aₖ)
61+
case LetK(l, v, a, b, ρ, t, aₖ) => LetK(l, v, a, b, ρ.restrictTo(fv(l.map(_._2) ++ b)), t, aₖ)
6262
case LtsK(l, v, b, ρ, t, aₖ) => LtsK(l, v, b, ρ.restrictTo(fv(l.map(_._2) ++ b)), t, aₖ)
6363
case LtrK(l, a, b, ρ, t, aₖ) => LtrK(l, a, b, ρ.restrictTo(fv(l.map(_._2) ++ b)), t, aₖ)
6464
case FunK(a, r, ρ, t, aₖ) => FunK(a, r, ρ.restrictTo(fv(r)), t, aₖ)

code/shared/src/main/scala/maf/modular/scheme/aam/AAMInstances.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,7 @@ class SchemeAAMAnalysis(prg: SchemeExp, k: Int)
1010
with AAMCallSiteSensitivity(k)
1111
with FIFOWorklistAlgorithm[SchemeExp]
1212

13-
class SchemeAAMGCAnalysis(prg: SchemeExp, k: Int) extends SchemeAAMAnalysis(prg, k) with AAMAbstractCounting with AAMGC with AAMAnalysisResults
13+
class SchemeAAMGCAnalysis(prg: SchemeExp, k: Int) extends SchemeAAMAnalysis(prg, k)
14+
with AAMAbstractCounting
15+
with AAMGC
16+
with AAMAnalysisResults

0 commit comments

Comments
 (0)