Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
RefinedC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Iris
RefinedC
Commits
7a774b2a
Commit
7a774b2a
authored
4 years ago
by
Rodolphe Lepigre
Browse files
Options
Downloads
Patches
Plain Diff
Fix absolute path problem.
parent
702124a2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!2
Dune build
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
frontend/main.ml
+2
-1
2 additions, 1 deletion
frontend/main.ml
with
2 additions
and
1 deletion
frontend/main.ml
+
2
−
1
View file @
7a774b2a
...
...
@@ -192,9 +192,10 @@ let run : config -> string -> unit = fun cfg c_file ->
let
ca
=
parse_annots
(
Cerb_wrapper
.
cpp_lines
cpp_config
c_file
)
in
let
ctxt
=
List
.
map
(
fun
s
->
"Context "
^
s
)
ca
.
ca_context
in
(* Do the translation to Ail, analyse, and generate our AST. *)
Sys
.
chdir
root_dir
;
(* Move to the root to get relative paths. *)
let
c_file
=
Filename
.
relative_path
root_dir
c_file
in
let
ail_ast
=
Cerb_wrapper
.
c_file_to_ail
cpp_config
c_file
in
if
not
cfg
.
no_analysis
then
Warn
.
warn_file
ail_ast
;
let
c_file
=
Filename
.
relative_path
root_dir
c_file
in
let
coq_ast
=
Ail_to_coq
.
translate
c_file
ail_ast
in
(* Generate the code file. *)
let
open
Coq_pp
in
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment