Skip to content

Commit

Permalink
Hotfix bugs related to instantiation of symbolic expressions in type …
Browse files Browse the repository at this point in the history
…checker
  • Loading branch information
jhnaldo committed Dec 17, 2024
1 parent 23bbd3b commit 55c5c83
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/main/scala/esmeta/analyzer/tychecker/AbsTransfer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1295,8 +1295,11 @@ trait AbsTransferDecl { analyzer: TyChecker =>
sexpr: SymExpr,
map: Map[Sym, AbsValue],
)(using st: AbsState): Option[SymExpr] = sexpr match {
case SEBool(b) => Some(sexpr)
case SERef(ref) => None
case SEBool(b) => Some(sexpr)
case SERef(ref) =>
instantiate(ref, map).symty match
case SRef(ref) => Some(SERef(ref))
case _ => None
case SEExists(ref) => None
case SETypeCheck(base, ty) =>
instantiate(base, map) match
Expand Down

0 comments on commit 55c5c83

Please sign in to comment.