Skip to content

Commit

Permalink
CN: more diagnostic messages on failures
Browse files Browse the repository at this point in the history
  • Loading branch information
talsewell committed Sep 5, 2023
1 parent 7b03e9a commit 831e0b7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/cn/check.ml
Original file line number Diff line number Diff line change
Expand Up @@ -613,6 +613,8 @@ let rec check_pexpr (pe : 'bty mu_pexpr) ~(expect:BT.t)
else (warn_uf loc "mod_uf"; IT.mod_no_smt_ (v1, v2)))
| `False ->
let@ model = model () in
Pp.debug 1 (lazy (Pp.item "rem_t applied to (possibly) negative arguments"
(Pp.list IT.pp [v1; v2])));
let err = !^"Unsupported: rem_t applied to negative arguments" in
fail (fun ctxt ->
let msg = Generic_with_model {err; model; ctxt} in
Expand Down

0 comments on commit 831e0b7

Please sign in to comment.