From a55025d1ab6f7b3525ccf42c874086d3a3da21c9 Mon Sep 17 00:00:00 2001 From: Xavier Leroy Date: Wed, 20 Jun 2018 17:27:38 +0200 Subject: clightgen: add info on configuration and platform to generated .v files (#238) Information about the run of clightgen is added to the generated .v file as definitions within a sub-module named Info. Closes: #226. --- exportclight/Clightgen.ml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'exportclight/Clightgen.ml') diff --git a/exportclight/Clightgen.ml b/exportclight/Clightgen.ml index 9cb0674e..1eb4fe03 100644 --- a/exportclight/Clightgen.ml +++ b/exportclight/Clightgen.ml @@ -53,7 +53,8 @@ let compile_c_ast sourcename csyntax ofile = end; (* Print Clight in Coq syntax *) let oc = open_out ofile in - ExportClight.print_program (Format.formatter_of_out_channel oc) clight; + ExportClight.print_program (Format.formatter_of_out_channel oc) + clight sourcename !option_normalize; close_out oc (* From C source to Clight *) -- cgit