Skip to content

Commit ac35347

Browse files
jhnaldod01c2
authored andcommitted
refactor: remove unnecessary SymTyLike type in general Analyzer def.
1 parent 6b22232 commit ac35347

3 files changed

Lines changed: 1 addition & 15 deletions

File tree

‎src/main/scala/esmeta/analyzer/Analyzer.scala‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@ abstract class Analyzer
3939
/** check reachability of return points */
4040
def reachable(rp: ReturnPoint): Boolean
4141

42-
/** symbolic types */
43-
type SymTy <: SymTyLike
44-
4542
/** abstract states */
4643
type AbsState <: AbsStateLike
4744

‎src/main/scala/esmeta/analyzer/DomainLike.scala‎

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,6 @@ trait DomainLikeDecl { self: Analyzer =>
2727
override def toString: String = stringify(this)(using domain.rule)
2828
}
2929

30-
/** Symbolic types */
31-
trait SymTyLike extends DomainElemLike[SymTy] { self: SymTy =>
32-
33-
/** abstract domain */
34-
def domain = SymTy
35-
36-
/** get string of symbolic type */
37-
def getString: String
38-
}
39-
val SymTy: DomainLike[SymTy]
40-
4130
/** abstract values */
4231
trait AbsValueLike extends DomainElemLike[AbsValue] { self: AbsValue =>
4332

‎src/main/scala/esmeta/analyzer/tychecker/SymTy.scala‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import esmeta.util.BaseUtils.*
1212
trait SymTyDecl { self: TyChecker =>
1313
import tyStringifier.given
1414

15-
enum SymTy extends SymTyLike {
15+
enum SymTy {
1616
case STy(ty: ValueTy)
1717
case SRef(ref: SymRef)
1818
case SNormal(symty: SymTy)

0 commit comments

Comments
 (0)