Skip to content

Commit

Permalink
Fix warnings in bootstrapped test file
Browse files Browse the repository at this point in the history
  • Loading branch information
mattam82 committed Oct 11, 2022
1 parent eb17bf0 commit 87dff37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 1 addition & 4 deletions bootstrap/certicoqc/certicoqc_plugin_wrapper.ml
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,7 @@ let fix_term (p : Ast0.term) : Ast0.term =
| Coq_tProj (p, t) -> Coq_tProj (p, aux t)
| Coq_tFix (mfix, i) -> Coq_tFix (map aux_def mfix, i)
| Coq_tCoFix (mfix, i) -> Coq_tCoFix (map aux_def mfix, i)
| Coq_tInt i ->
Printf.printf "Fixing prim int: %s\n" (Uint63.to_string i);
Printf.printf "is_int? %b\n" (Obj.is_int (Obj.repr i));
Coq_tInt i
| Coq_tInt i -> Coq_tInt i
| Coq_tFloat f -> Coq_tFloat f
and aux_pred { puinst = puinst; pparams = pparams; pcontext = pcontext; preturn = preturn } =
{ puinst; pparams = map aux pparams; pcontext; preturn = aux preturn }
Expand Down
1 change: 1 addition & 0 deletions bootstrap/certicoqc/test.v
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@ Definition certicoqc (opts : Options) (p : Template.Ast.Env.program) :=
let () := coq_msg_info "certicoqc called" in
compile opts p.

Set Warnings "-primitive-turned-into-axiom".
Time CertiCoqC Compile -build_dir "tests" -time -O 1 certicoqc.

0 comments on commit 87dff37

Please sign in to comment.