Commit c1eeca7c authored by Rodolphe Lepigre's avatar Rodolphe Lepigre
Browse files

Use relative paths whenever possible in code.

parent 8af3a34c
Pipeline #50295 failed with stage
in 5 minutes and 39 seconds
...@@ -204,7 +204,7 @@ let run : config -> string -> unit = fun cfg c_file -> ...@@ -204,7 +204,7 @@ let run : config -> string -> unit = fun cfg c_file ->
let coq_ast = Ail_to_coq.translate c_file ail_ast in let coq_ast = Ail_to_coq.translate c_file ail_ast in
(* Generate the code file. *) (* Generate the code file. *)
let open Coq_pp in let open Coq_pp in
let mode = Code(ca.ca_code_imports) in let mode = Code(root_dir, ca.ca_code_imports) in
write mode code_file coq_ast; write mode code_file coq_ast;
(* Generate the spec file. *) (* Generate the spec file. *)
let mode = Spec(path, ca.ca_imports, ca.ca_inlined, ca.ca_typedefs, ctxt) in let mode = Spec(path, ca.ca_imports, ca.ca_inlined, ca.ca_typedefs, ctxt) in
......
...@@ -5,7 +5,7 @@ Set Default Proof Using "Type". ...@@ -5,7 +5,7 @@ Set Default Proof Using "Type".
(* Generated from [linux/casestudies/page_alloc.c]. *) (* Generated from [linux/casestudies/page_alloc.c]. *)
Section code. Section code.
Definition file_0 : string := "???". Definition file_0 : string := "include/refinedc.h".
Definition file_1 : string := "linux/casestudies/page_alloc.c". Definition file_1 : string := "linux/casestudies/page_alloc.c".
Definition loc_2 : location_info := LocationInfo file_0 49 2 49 47. Definition loc_2 : location_info := LocationInfo file_0 49 2 49 47.
Definition loc_3 : location_info := LocationInfo file_0 49 9 49 46. Definition loc_3 : location_info := LocationInfo file_0 49 9 49 46.
......
...@@ -6,7 +6,7 @@ Set Default Proof Using "Type". ...@@ -6,7 +6,7 @@ Set Default Proof Using "Type".
(* Generated from [linux/casestudies/page_alloc_find_buddy.c]. *) (* Generated from [linux/casestudies/page_alloc_find_buddy.c]. *)
Section code. Section code.
Definition file_0 : string := "linux/casestudies/page_alloc_find_buddy.c". Definition file_0 : string := "linux/casestudies/page_alloc_find_buddy.c".
Definition file_1 : string := "???". Definition file_1 : string := "include/refinedc.h".
Definition loc_2 : location_info := LocationInfo file_1 49 2 49 47. Definition loc_2 : location_info := LocationInfo file_1 49 2 49 47.
Definition loc_3 : location_info := LocationInfo file_1 49 9 49 46. Definition loc_3 : location_info := LocationInfo file_1 49 9 49 46.
Definition loc_4 : location_info := LocationInfo file_1 49 9 49 32. Definition loc_4 : location_info := LocationInfo file_1 49 9 49 32.
......
...@@ -5,7 +5,7 @@ Set Default Proof Using "Type". ...@@ -5,7 +5,7 @@ Set Default Proof Using "Type".
(* Generated from [linux/pkvm/early_alloc.c]. *) (* Generated from [linux/pkvm/early_alloc.c]. *)
Section code. Section code.
Definition file_0 : string := "???". Definition file_0 : string := "include/refinedc.h".
Definition file_1 : string := "linux/pkvm/early_alloc.c". Definition file_1 : string := "linux/pkvm/early_alloc.c".
Definition loc_2 : location_info := LocationInfo file_0 49 2 49 47. Definition loc_2 : location_info := LocationInfo file_0 49 2 49 47.
Definition loc_3 : location_info := LocationInfo file_0 49 9 49 46. Definition loc_3 : location_info := LocationInfo file_0 49 9 49 46.
......
...@@ -5,7 +5,7 @@ Set Default Proof Using "Type". ...@@ -5,7 +5,7 @@ Set Default Proof Using "Type".
(* Generated from [tutorial/t00_intro.c]. *) (* Generated from [tutorial/t00_intro.c]. *)
Section code. Section code.
Definition file_0 : string := "???". Definition file_0 : string := "include/refinedc.h".
Definition file_1 : string := "tutorial/t00_intro.c". Definition file_1 : string := "tutorial/t00_intro.c".
Definition loc_2 : location_info := LocationInfo file_0 49 2 49 47. Definition loc_2 : location_info := LocationInfo file_0 49 2 49 47.
Definition loc_3 : location_info := LocationInfo file_0 49 9 49 46. Definition loc_3 : location_info := LocationInfo file_0 49 9 49 46.
......
...@@ -6,7 +6,7 @@ Set Default Proof Using "Type". ...@@ -6,7 +6,7 @@ Set Default Proof Using "Type".
(* Generated from [tutorial/t01_basic.c]. *) (* Generated from [tutorial/t01_basic.c]. *)
Section code. Section code.
Definition file_0 : string := "tutorial/t01_basic.c". Definition file_0 : string := "tutorial/t01_basic.c".
Definition file_1 : string := "???". Definition file_1 : string := "include/refinedc.h".
Definition loc_2 : location_info := LocationInfo file_1 49 2 49 47. Definition loc_2 : location_info := LocationInfo file_1 49 2 49 47.
Definition loc_3 : location_info := LocationInfo file_1 49 9 49 46. Definition loc_3 : location_info := LocationInfo file_1 49 9 49 46.
Definition loc_4 : location_info := LocationInfo file_1 49 9 49 32. Definition loc_4 : location_info := LocationInfo file_1 49 9 49 32.
......
...@@ -5,7 +5,7 @@ Set Default Proof Using "Type". ...@@ -5,7 +5,7 @@ Set Default Proof Using "Type".
(* Generated from [tutorial/t02_pointers.c]. *) (* Generated from [tutorial/t02_pointers.c]. *)
Section code. Section code.
Definition file_0 : string := "???". Definition file_0 : string := "include/refinedc.h".
Definition file_1 : string := "tutorial/t02_pointers.c". Definition file_1 : string := "tutorial/t02_pointers.c".
Definition loc_2 : location_info := LocationInfo file_0 49 2 49 47. Definition loc_2 : location_info := LocationInfo file_0 49 2 49 47.
Definition loc_3 : location_info := LocationInfo file_0 49 9 49 46. Definition loc_3 : location_info := LocationInfo file_0 49 9 49 46.
......
...@@ -6,7 +6,7 @@ Set Default Proof Using "Type". ...@@ -6,7 +6,7 @@ Set Default Proof Using "Type".
(* Generated from [tutorial/t03_list.c]. *) (* Generated from [tutorial/t03_list.c]. *)
Section code. Section code.
Definition file_0 : string := "tutorial/t03_list.c". Definition file_0 : string := "tutorial/t03_list.c".
Definition file_1 : string := "???". Definition file_1 : string := "include/refinedc.h".
Definition loc_2 : location_info := LocationInfo file_1 49 2 49 47. Definition loc_2 : location_info := LocationInfo file_1 49 2 49 47.
Definition loc_3 : location_info := LocationInfo file_1 49 9 49 46. Definition loc_3 : location_info := LocationInfo file_1 49 9 49 46.
Definition loc_4 : location_info := LocationInfo file_1 49 9 49 32. Definition loc_4 : location_info := LocationInfo file_1 49 9 49 32.
......
...@@ -5,7 +5,7 @@ Set Default Proof Using "Type". ...@@ -5,7 +5,7 @@ Set Default Proof Using "Type".
(* Generated from [tutorial/t04_alloc.c]. *) (* Generated from [tutorial/t04_alloc.c]. *)
Section code. Section code.
Definition file_0 : string := "???". Definition file_0 : string := "include/refinedc.h".
Definition file_1 : string := "tutorial/t04_alloc.c". Definition file_1 : string := "tutorial/t04_alloc.c".
Definition loc_2 : location_info := LocationInfo file_0 49 2 49 47. Definition loc_2 : location_info := LocationInfo file_0 49 2 49 47.
Definition loc_3 : location_info := LocationInfo file_0 49 9 49 46. Definition loc_3 : location_info := LocationInfo file_0 49 9 49 46.
......
...@@ -5,7 +5,7 @@ Set Default Proof Using "Type". ...@@ -5,7 +5,7 @@ Set Default Proof Using "Type".
(* Generated from [tutorial/t07_arrays.c]. *) (* Generated from [tutorial/t07_arrays.c]. *)
Section code. Section code.
Definition file_0 : string := "???". Definition file_0 : string := "include/refinedc.h".
Definition file_1 : string := "tutorial/t07_arrays.c". Definition file_1 : string := "tutorial/t07_arrays.c".
Definition loc_2 : location_info := LocationInfo file_0 49 2 49 47. Definition loc_2 : location_info := LocationInfo file_0 49 2 49 47.
Definition loc_3 : location_info := LocationInfo file_0 49 9 49 46. Definition loc_3 : location_info := LocationInfo file_0 49 9 49 46.
......
...@@ -5,7 +5,7 @@ Set Default Proof Using "Type". ...@@ -5,7 +5,7 @@ Set Default Proof Using "Type".
(* Generated from [tutorial/t08_tree.c]. *) (* Generated from [tutorial/t08_tree.c]. *)
Section code. Section code.
Definition file_0 : string := "???". Definition file_0 : string := "include/refinedc.h".
Definition file_1 : string := "tutorial/t08_tree.c". Definition file_1 : string := "tutorial/t08_tree.c".
Definition loc_2 : location_info := LocationInfo file_0 49 2 49 47. Definition loc_2 : location_info := LocationInfo file_0 49 2 49 47.
Definition loc_3 : location_info := LocationInfo file_0 49 9 49 46. Definition loc_3 : location_info := LocationInfo file_0 49 9 49 46.
......
...@@ -5,7 +5,7 @@ Set Default Proof Using "Type". ...@@ -5,7 +5,7 @@ Set Default Proof Using "Type".
(* Generated from [tutorial/t09_switch.c]. *) (* Generated from [tutorial/t09_switch.c]. *)
Section code. Section code.
Definition file_0 : string := "???". Definition file_0 : string := "include/refinedc.h".
Definition file_1 : string := "tutorial/t09_switch.c". Definition file_1 : string := "tutorial/t09_switch.c".
Definition loc_2 : location_info := LocationInfo file_0 49 2 49 47. Definition loc_2 : location_info := LocationInfo file_0 49 2 49 47.
Definition loc_3 : location_info := LocationInfo file_0 49 9 49 46. Definition loc_3 : location_info := LocationInfo file_0 49 9 49 46.
......
...@@ -5,7 +5,7 @@ Set Default Proof Using "Type". ...@@ -5,7 +5,7 @@ Set Default Proof Using "Type".
(* Generated from [tutorial/t10_loops.c]. *) (* Generated from [tutorial/t10_loops.c]. *)
Section code. Section code.
Definition file_0 : string := "???". Definition file_0 : string := "include/refinedc.h".
Definition file_1 : string := "tutorial/t10_loops.c". Definition file_1 : string := "tutorial/t10_loops.c".
Definition loc_2 : location_info := LocationInfo file_0 49 2 49 47. Definition loc_2 : location_info := LocationInfo file_0 49 2 49 47.
Definition loc_3 : location_info := LocationInfo file_0 49 9 49 46. Definition loc_3 : location_info := LocationInfo file_0 49 9 49 46.
......
...@@ -6,7 +6,7 @@ Set Default Proof Using "Type". ...@@ -6,7 +6,7 @@ Set Default Proof Using "Type".
(* Generated from [tutorial/t11_tree_set.c]. *) (* Generated from [tutorial/t11_tree_set.c]. *)
Section code. Section code.
Definition file_0 : string := "tutorial/t11_tree_set.c". Definition file_0 : string := "tutorial/t11_tree_set.c".
Definition file_1 : string := "???". Definition file_1 : string := "include/refinedc.h".
Definition loc_2 : location_info := LocationInfo file_1 49 2 49 47. Definition loc_2 : location_info := LocationInfo file_1 49 2 49 47.
Definition loc_3 : location_info := LocationInfo file_1 49 9 49 46. Definition loc_3 : location_info := LocationInfo file_1 49 9 49 46.
Definition loc_4 : location_info := LocationInfo file_1 49 9 49 32. Definition loc_4 : location_info := LocationInfo file_1 49 9 49 32.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment