diff options
author | Son Ho | 2021-11-29 21:48:26 +0100 |
---|---|---|
committer | Son Ho | 2021-11-29 21:48:26 +0100 |
commit | 919f76f09756f7da532c1226267ece1af0532763 (patch) | |
tree | b8f60a9b68baa14bdccf6a7588ac711ab34d56fe /src/main.ml | |
parent | 73a6829b39a84f7dca796d5a1d7ec2ff00795c2b (diff) |
Fix some issues and start printing modules
Diffstat (limited to 'src/main.ml')
-rw-r--r-- | src/main.ml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.ml b/src/main.ml index dfa4025c..d2779657 100644 --- a/src/main.ml +++ b/src/main.ml @@ -4,8 +4,6 @@ open Print module T = Types module A = CfimAst -(*let print_type_definition =*) - (* This is necessary to have a backtrace when raising exceptions - for some * reason, the -g option doesn't work *) let () = Printexc.record_backtrace true @@ -13,5 +11,7 @@ let () = Printexc.record_backtrace true let () = let json = Yojson.Basic.from_file "../charon/charon/tests/test1.cfim" in match cfim_module_of_json json with - | Error s -> Printf.printf "error: %s\n" s - | Ok _ast -> print_endline "Ok" + | Error s -> log#error "error: %s\n" s + | Ok m -> + (* Print the module *) + log#ldebug (lazy (Print.Module.module_to_string m)) |