diff options
author | Son Ho | 2024-03-29 16:13:13 +0100 |
---|---|---|
committer | Son Ho | 2024-03-29 16:13:13 +0100 |
commit | c26dcd0a0e5dd35d486d3eed374644b115574408 (patch) | |
tree | d7c10bdc9e03d026d722181b580fe5ea376efd48 /compiler/Extract.ml | |
parent | 9403920e1e46157089f78bc42c553eec38181fa9 (diff) |
Add some missing error messages
Diffstat (limited to '')
-rw-r--r-- | compiler/Extract.ml | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/compiler/Extract.ml b/compiler/Extract.ml index ad204f7a..d6a5f0fc 100644 --- a/compiler/Extract.ml +++ b/compiler/Extract.ml @@ -1876,11 +1876,8 @@ let extract_global_decl_hol4_opaque (meta : Meta.meta) (ctx : extraction_ctx) let extract_global_decl (ctx : extraction_ctx) (fmt : F.formatter) (global : global_decl) (body : fun_decl) (interface : bool) : unit = let meta = body.meta in - cassert __FILE__ __LINE__ body.is_global_decl_body body.meta - "TODO: Error message"; - cassert __FILE__ __LINE__ - (body.signature.inputs = []) - body.meta "TODO: Error message"; + sanity_check __FILE__ __LINE__ body.is_global_decl_body body.meta; + sanity_check __FILE__ __LINE__ (body.signature.inputs = []) body.meta; (* Add a break then the name of the corresponding LLBC declaration *) F.pp_print_break fmt 0 0; |