Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Iris
RefinedC
Commits
c1eeca7c
Commit
c1eeca7c
authored
Jul 12, 2021
by
Rodolphe Lepigre
Browse files
Use relative paths whenever possible in code.
parent
8af3a34c
Pipeline
#50295
failed with stage
in 5 minutes and 39 seconds
Changes
34
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
frontend/main.ml
View file @
c1eeca7c
...
...
@@ -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
(* Generate the code file. *)
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
;
(* Generate the spec file. *)
let
mode
=
Spec
(
path
,
ca
.
ca_imports
,
ca
.
ca_inlined
,
ca
.
ca_typedefs
,
ctxt
)
in
...
...
linux/casestudies/proofs/page_alloc/generated_code.v
View file @
c1eeca7c
...
...
@@ -5,7 +5,7 @@ Set Default Proof Using "Type".
(* Generated from [linux/casestudies/page_alloc.c]. *)
Section
code
.
Definition
file_0
:
string
:
=
"
???
"
.
Definition
file_0
:
string
:
=
"
include/refinedc.h
"
.
Definition
file_1
:
string
:
=
"linux/casestudies/page_alloc.c"
.
Definition
loc_2
:
location_info
:
=
LocationInfo
file_0
49
2
49
47
.
Definition
loc_3
:
location_info
:
=
LocationInfo
file_0
49
9
49
46
.
...
...
linux/casestudies/proofs/page_alloc_find_buddy/generated_code.v
View file @
c1eeca7c
...
...
@@ -6,7 +6,7 @@ Set Default Proof Using "Type".
(* Generated from [linux/casestudies/page_alloc_find_buddy.c]. *)
Section
code
.
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_3
:
location_info
:
=
LocationInfo
file_1
49
9
49
46
.
Definition
loc_4
:
location_info
:
=
LocationInfo
file_1
49
9
49
32
.
...
...
linux/pkvm/proofs/early_alloc/generated_code.v
View file @
c1eeca7c
...
...
@@ -5,7 +5,7 @@ Set Default Proof Using "Type".
(* Generated from [linux/pkvm/early_alloc.c]. *)
Section
code
.
Definition
file_0
:
string
:
=
"
???
"
.
Definition
file_0
:
string
:
=
"
include/refinedc.h
"
.
Definition
file_1
:
string
:
=
"linux/pkvm/early_alloc.c"
.
Definition
loc_2
:
location_info
:
=
LocationInfo
file_0
49
2
49
47
.
Definition
loc_3
:
location_info
:
=
LocationInfo
file_0
49
9
49
46
.
...
...
tutorial/proofs/t00_intro/generated_code.v
View file @
c1eeca7c
...
...
@@ -5,7 +5,7 @@ Set Default Proof Using "Type".
(* Generated from [tutorial/t00_intro.c]. *)
Section
code
.
Definition
file_0
:
string
:
=
"
???
"
.
Definition
file_0
:
string
:
=
"
include/refinedc.h
"
.
Definition
file_1
:
string
:
=
"tutorial/t00_intro.c"
.
Definition
loc_2
:
location_info
:
=
LocationInfo
file_0
49
2
49
47
.
Definition
loc_3
:
location_info
:
=
LocationInfo
file_0
49
9
49
46
.
...
...
tutorial/proofs/t01_basic/generated_code.v
View file @
c1eeca7c
...
...
@@ -6,7 +6,7 @@ Set Default Proof Using "Type".
(* Generated from [tutorial/t01_basic.c]. *)
Section
code
.
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_3
:
location_info
:
=
LocationInfo
file_1
49
9
49
46
.
Definition
loc_4
:
location_info
:
=
LocationInfo
file_1
49
9
49
32
.
...
...
tutorial/proofs/t02_pointers/generated_code.v
View file @
c1eeca7c
...
...
@@ -5,7 +5,7 @@ Set Default Proof Using "Type".
(* Generated from [tutorial/t02_pointers.c]. *)
Section
code
.
Definition
file_0
:
string
:
=
"
???
"
.
Definition
file_0
:
string
:
=
"
include/refinedc.h
"
.
Definition
file_1
:
string
:
=
"tutorial/t02_pointers.c"
.
Definition
loc_2
:
location_info
:
=
LocationInfo
file_0
49
2
49
47
.
Definition
loc_3
:
location_info
:
=
LocationInfo
file_0
49
9
49
46
.
...
...
tutorial/proofs/t03_list/generated_code.v
View file @
c1eeca7c
...
...
@@ -6,7 +6,7 @@ Set Default Proof Using "Type".
(* Generated from [tutorial/t03_list.c]. *)
Section
code
.
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_3
:
location_info
:
=
LocationInfo
file_1
49
9
49
46
.
Definition
loc_4
:
location_info
:
=
LocationInfo
file_1
49
9
49
32
.
...
...
tutorial/proofs/t04_alloc/generated_code.v
View file @
c1eeca7c
...
...
@@ -5,7 +5,7 @@ Set Default Proof Using "Type".
(* Generated from [tutorial/t04_alloc.c]. *)
Section
code
.
Definition
file_0
:
string
:
=
"
???
"
.
Definition
file_0
:
string
:
=
"
include/refinedc.h
"
.
Definition
file_1
:
string
:
=
"tutorial/t04_alloc.c"
.
Definition
loc_2
:
location_info
:
=
LocationInfo
file_0
49
2
49
47
.
Definition
loc_3
:
location_info
:
=
LocationInfo
file_0
49
9
49
46
.
...
...
tutorial/proofs/t07_arrays/generated_code.v
View file @
c1eeca7c
...
...
@@ -5,7 +5,7 @@ Set Default Proof Using "Type".
(* Generated from [tutorial/t07_arrays.c]. *)
Section
code
.
Definition
file_0
:
string
:
=
"
???
"
.
Definition
file_0
:
string
:
=
"
include/refinedc.h
"
.
Definition
file_1
:
string
:
=
"tutorial/t07_arrays.c"
.
Definition
loc_2
:
location_info
:
=
LocationInfo
file_0
49
2
49
47
.
Definition
loc_3
:
location_info
:
=
LocationInfo
file_0
49
9
49
46
.
...
...
tutorial/proofs/t08_tree/generated_code.v
View file @
c1eeca7c
...
...
@@ -5,7 +5,7 @@ Set Default Proof Using "Type".
(* Generated from [tutorial/t08_tree.c]. *)
Section
code
.
Definition
file_0
:
string
:
=
"
???
"
.
Definition
file_0
:
string
:
=
"
include/refinedc.h
"
.
Definition
file_1
:
string
:
=
"tutorial/t08_tree.c"
.
Definition
loc_2
:
location_info
:
=
LocationInfo
file_0
49
2
49
47
.
Definition
loc_3
:
location_info
:
=
LocationInfo
file_0
49
9
49
46
.
...
...
tutorial/proofs/t09_switch/generated_code.v
View file @
c1eeca7c
...
...
@@ -5,7 +5,7 @@ Set Default Proof Using "Type".
(* Generated from [tutorial/t09_switch.c]. *)
Section
code
.
Definition
file_0
:
string
:
=
"
???
"
.
Definition
file_0
:
string
:
=
"
include/refinedc.h
"
.
Definition
file_1
:
string
:
=
"tutorial/t09_switch.c"
.
Definition
loc_2
:
location_info
:
=
LocationInfo
file_0
49
2
49
47
.
Definition
loc_3
:
location_info
:
=
LocationInfo
file_0
49
9
49
46
.
...
...
tutorial/proofs/t10_loops/generated_code.v
View file @
c1eeca7c
...
...
@@ -5,7 +5,7 @@ Set Default Proof Using "Type".
(* Generated from [tutorial/t10_loops.c]. *)
Section
code
.
Definition
file_0
:
string
:
=
"
???
"
.
Definition
file_0
:
string
:
=
"
include/refinedc.h
"
.
Definition
file_1
:
string
:
=
"tutorial/t10_loops.c"
.
Definition
loc_2
:
location_info
:
=
LocationInfo
file_0
49
2
49
47
.
Definition
loc_3
:
location_info
:
=
LocationInfo
file_0
49
9
49
46
.
...
...
tutorial/proofs/t11_tree_set/generated_code.v
View file @
c1eeca7c
...
...
@@ -6,7 +6,7 @@ Set Default Proof Using "Type".
(* Generated from [tutorial/t11_tree_set.c]. *)
Section
code
.
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_3
:
location_info
:
=
LocationInfo
file_1
49
9
49
46
.
Definition
loc_4
:
location_info
:
=
LocationInfo
file_1
49
9
49
32
.
...
...
Prev
1
2
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment