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

moore simplification

parent e1be744c
Branches
Tags
No related merge requests found
......@@ -109,6 +109,8 @@ object ArithmeticNormalization {
case Times(_, IntLiteral(0)) => IntLiteral(0)
case Times(IntLiteral(i1), Times(IntLiteral(i2), t)) => Times(IntLiteral(i1*i2), t)
case Times(IntLiteral(i1), Times(t, IntLiteral(i2))) => Times(IntLiteral(i1*i2), t)
case Times(IntLiteral(i), UMinus(e)) => Times(IntLiteral(-i), e)
case Times(UMinus(e), IntLiteral(i)) => Times(e, IntLiteral(-i))
case Division(IntLiteral(i1), IntLiteral(i2)) => IntLiteral(i1 / i2)
case Division(e, IntLiteral(1)) => e
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment