Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
frama-c
Commits
e5faf939
Commit
e5faf939
authored
4 years ago
by
Basile Desloges
Browse files
Options
Downloads
Patches
Plain Diff
[eacsl:runtime] Merge RTL pragmas into the user's AST
parent
620fc8b2
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/plugins/e-acsl/src/project_initializer/rtl.ml
+8
-4
8 additions, 4 deletions
src/plugins/e-acsl/src/project_initializer/rtl.ml
with
8 additions
and
4 deletions
src/plugins/e-acsl/src/project_initializer/rtl.ml
+
8
−
4
View file @
e5faf939
...
@@ -156,8 +156,10 @@ let lookup_rtl_globals rtl_ast =
...
@@ -156,8 +156,10 @@ let lookup_rtl_globals rtl_ast =
|
GAnnot
_
::
l
->
|
GAnnot
_
::
l
->
(* ignoring annotations from the AST *)
(* ignoring annotations from the AST *)
do_globals
acc
l
do_globals
acc
l
|
GAsm
_
|
GPragma
_
|
GText
_
as
g
::
_l
->
|
GPragma
_
as
g
::
l
->
Kernel
.
fatal
"unexpected global %a"
Printer
.
pp_global
g
do_it
Symbols
.
mem_global
acc
l
g
|
GAsm
_
|
GText
_
as
g
::
_l
->
Options
.
fatal
"unexpected global %a"
Printer
.
pp_global
g
in
in
do_globals
[]
rtl_ast
.
globals
do_globals
[]
rtl_ast
.
globals
...
@@ -245,8 +247,10 @@ let insert_rtl_globals rtl_prj rtl_globals ast =
...
@@ -245,8 +247,10 @@ let insert_rtl_globals rtl_prj rtl_globals ast =
acc
acc
in
in
add
acc
l
add
acc
l
|
GAnnot
_
|
GAsm
_
|
GPragma
_
|
GText
_
as
g
::
_l
->
|
GPragma
_
as
g
::
l
->
Kernel
.
fatal
"unexpected global %a"
Printer
.
pp_global
g
add
(
g
::
acc
)
l
|
GAnnot
_
|
GAsm
_
|
GText
_
as
g
::
_l
->
Options
.
fatal
"unexpected global %a"
Printer
.
pp_global
g
in
in
ast
.
globals
<-
add
ast
.
globals
rtl_globals
ast
.
globals
<-
add
ast
.
globals
rtl_globals
...
...
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