We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 75fd875 + fbfbfdd commit e4be814Copy full SHA for e4be814
1 file changed
src/main/scala/viper/carbon/modules/impls/DefaultDomainModule.scala
@@ -68,11 +68,7 @@ class DefaultDomainModule(val verifier: Verifier) extends DomainModule with Stat
68
}
69
70
override def translateDomainFuncApp(fa: sil.DomainFuncApp): Exp = {
71
- val domain = verifier.program.findDomain(fa.domainName)
72
- val funct = domain.functions.find(_.name == fa.funcname) match {
73
- case Some(f) => f
74
- case None => sys.error("Domain function " + fa.funcname + " not found in domain " + domain.name)
75
- }
+ val funct = verifier.program.findDomainFunction(fa.funcname)
76
if (funct.unique) {
77
Const(Identifier(funct.name))
78
} else {
0 commit comments