mirror of
https://github.com/CatalaLang/catala.git
synced 2024-09-19 16:28:12 +03:00
[skip ci] Z3encoding: proper error message for ill-formed unary operators
This commit is contained in:
parent
d6205369bb
commit
f342c89482
@ -198,8 +198,11 @@ let rec translate_op (ctx : context) (op : operator) (args : expr Pos.marked lis
|
||||
let ctx, e1 =
|
||||
match args with
|
||||
| [ e1 ] -> translate_expr ctx e1
|
||||
(* TODO: Print term for error message *)
|
||||
| _ -> failwith "[Z3 encoding] Ill-formed unary operator application"
|
||||
| _ ->
|
||||
failwith
|
||||
(Format.asprintf "[Z3 encoding] Ill-formed unary operator application: %a"
|
||||
(Print.format_expr ctx.ctx_decl)
|
||||
(EApp ((EOp op, Pos.no_pos), args), Pos.no_pos))
|
||||
in
|
||||
|
||||
match uop with
|
||||
|
Loading…
Reference in New Issue
Block a user