summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKathy Gray2015-01-21 16:43:00 +0000
committerKathy Gray2015-01-21 16:43:00 +0000
commit873ee3f940f80b965d03cd1f39f2042cf684ecda (patch)
tree763eb0bfb83204131b6c538d1ecab793e27cce6c /src
parent4f511f96b830d81766c049f578e95ff02d56c599 (diff)
turn negative numbers into 0-n in Lem ast backend
Diffstat (limited to 'src')
-rw-r--r--src/pretty_print.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pretty_print.ml b/src/pretty_print.ml
index 63480693..11d420dd 100644
--- a/src/pretty_print.ml
+++ b/src/pretty_print.ml
@@ -54,7 +54,7 @@ let lemnum default n = match n with
| 64 -> "sixtyfour"
| 127 -> "onetwentyseven"
| 128 -> "onetwentyeight"
- | _ -> default n
+ | _ -> if n >= 0 then default n else ("(zero - " ^ (default n) ^ ")")
let pp_format_id (Id_aux(i,_)) =
match i with