Skip to content

Commit

Permalink
Allows more strictpure forms.
Browse files Browse the repository at this point in the history
  • Loading branch information
robby-phd committed Oct 7, 2024
1 parent dedd712 commit b29283d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions shared/src/main/scala/org/sireum/logika/Util.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2937,6 +2937,8 @@ object Util {
if (mi.ast.isStrictPure && mi.ast.bodyOpt.nonEmpty) {
mi.ast.bodyOpt.get.stmts match {
case ISZ(stmt: AST.Stmt.Var, _: AST.Stmt.Return) => return stmt.initOpt
case ISZ(stmt: AST.Stmt.Return) => return Some(AST.Stmt.Expr(stmt.expOpt.get, stmt.attr))
case ISZ(stmt: AST.Stmt.Expr) => return Some(stmt)
case stmts => halt(s"Infeasible: $stmts")
}
} else {
Expand Down

0 comments on commit b29283d

Please sign in to comment.