Skip to content
Snippets Groups Projects
Commit 8e47b9dd authored by Régis Blanc's avatar Régis Blanc
Browse files

simplify also pre/post-condition

parent d9831192
No related branches found
No related tags found
No related merge requests found
...@@ -12,9 +12,11 @@ object Simplificator extends Pass { ...@@ -12,9 +12,11 @@ object Simplificator extends Pass {
def apply(pgm: Program): Program = { def apply(pgm: Program): Program = {
val allFuns = pgm.definedFunctions val allFuns = pgm.definedFunctions
allFuns.foreach(fd => fd.body.map(body => { allFuns.foreach(fd => {
fd.body = Some(simplifyLets(body)) fd.body = fd.body.map(simplifyLets)
})) fd.precondition = fd.precondition.map(simplifyLets)
fd.postcondition = fd.postcondition.map(simplifyLets)
})
pgm pgm
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment