aboutsummaryrefslogtreecommitdiff
path: root/src/Reflection/Z/ArithmeticSimplifier.v
diff options
context:
space:
mode:
Diffstat (limited to 'src/Reflection/Z/ArithmeticSimplifier.v')
-rw-r--r--src/Reflection/Z/ArithmeticSimplifier.v2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Reflection/Z/ArithmeticSimplifier.v b/src/Reflection/Z/ArithmeticSimplifier.v
index d4b880990..68731f7b6 100644
--- a/src/Reflection/Z/ArithmeticSimplifier.v
+++ b/src/Reflection/Z/ArithmeticSimplifier.v
@@ -88,6 +88,7 @@ Section language.
=> match interp_as_expr_or_const args with
| Some (inl l, inl r)
=> Op (OpConst (interp_op _ _ opc (l, r))) TT
+ | Some (inl v, inr e)
| Some (inr e, inl v)
=> if (v =? 0)%Z
then Op (OpConst 0%Z) TT
@@ -99,6 +100,7 @@ Section language.
=> match interp_as_expr_or_const args with
| Some (inl l, inl r)
=> Op (OpConst (interp_op _ _ opc (l, r))) TT
+ | Some (inl v, inr e)
| Some (inr e, inl v)
=> if (v =? 0)%Z
then e