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
9845f777
Commit
9845f777
authored
8 years ago
by
Boris Yakobowski
Browse files
Options
Downloads
Patches
Plain Diff
Adapt to trunk branch feature/virgile/filecheck-result
(removal of field return_stmt)
parent
231db080
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/plugins/e-acsl/dup_functions.ml
+3
-4
3 additions, 4 deletions
src/plugins/e-acsl/dup_functions.ml
src/plugins/e-acsl/visit.ml
+1
-1
1 addition, 1 deletion
src/plugins/e-acsl/visit.ml
with
4 additions
and
5 deletions
src/plugins/e-acsl/dup_functions.ml
+
3
−
4
View file @
9845f777
...
...
@@ -191,16 +191,15 @@ let dup_fundec loc spec bhv kf vi new_vi =
sbody
=
body
;
smaxstmtid
=
None
;
sallstmts
=
[]
;
sspec
=
new_spec
}
,
return
sspec
=
new_spec
}
let
dup_global
loc
old_prj
spec
bhv
kf
vi
new_vi
=
let
name
=
vi
.
vname
in
Options
.
feedback
~
dkey
~
level
:
2
"entering in function %s"
name
;
let
fundec
,
return
=
dup_fundec
loc
spec
bhv
kf
vi
new_vi
in
let
fundec
=
dup_fundec
loc
spec
bhv
kf
vi
new_vi
in
let
fct
=
Definition
(
fundec
,
loc
)
in
let
new_spec
=
fundec
.
sspec
in
let
new_kf
=
{
fundec
=
fct
;
return_stmt
=
Some
return
;
spec
=
new_spec
}
in
let
new_kf
=
{
fundec
=
fct
;
spec
=
new_spec
}
in
Kernel_function
.
Hashtbl
.
add
fct_tbl
new_kf
()
;
Globals
.
Functions
.
register
new_kf
;
Globals
.
Functions
.
replace_by_definition
new_spec
fundec
loc
;
...
...
This diff is collapsed.
Click to expand it.
src/plugins/e-acsl/visit.ml
+
1
−
1
View file @
9845f777
...
...
@@ -206,7 +206,7 @@ class e_acsl_visitor prj generate = object (self)
(* Create and register [__e_acsl_globals_init] as kernel
function *)
let
kf
=
{
fundec
=
fct
;
return_stmt
=
Some
return
;
spec
=
spec
}
{
fundec
=
fct
;
spec
=
spec
}
in
Globals
.
Functions
.
register
kf
;
Globals
.
Functions
.
replace_by_definition
...
...
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