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
fc34351a
Commit
fc34351a
authored
11 years ago
by
Julien Signoles
Browse files
Options
Downloads
Patches
Plain Diff
why tabulations?
parent
982ff459
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/plugins/e-acsl/pre_analysis.ml
+45
-45
45 additions, 45 deletions
src/plugins/e-acsl/pre_analysis.ml
with
45 additions
and
45 deletions
src/plugins/e-acsl/pre_analysis.ml
+
45
−
45
View file @
fc34351a
...
...
@@ -401,51 +401,51 @@ module rec Transfer
in
Dataflow
.
Post
(
fun
state
->
let
state
=
Env
.
default_varinfos
state
in
let
state
=
if
(
is_first
||
is_last
)
&&
Misc
.
is_generated_kf
kf
then
Annotations
.
fold_behaviors
(
fun
_
bhv
s
->
let
handle_annot
test
f
s
=
if
test
then
f
(
fun
_
p
s
->
register_predicate
kf
p
s
)
kf
bhv
.
b_name
s
else
s
in
let
s
=
handle_annot
is_first
Annotations
.
fold_requires
s
in
let
s
=
handle_annot
is_first
Annotations
.
fold_assumes
s
in
handle_annot
is_last
(
fun
f
->
Annotations
.
fold_ensures
(
fun
e
(
_
,
p
)
->
f
e
p
))
s
)
kf
state
else
state
in
let
state
=
Annotations
.
fold_code_annot
(
fun
_
->
register_code_annot
kf
)
stmt
state
in
let
state
=
if
stmt
.
ghost
then
let
rtes
=
Rte
.
stmt
kf
stmt
in
List
.
fold_left
(
fun
state
a
->
register_code_annot
kf
a
state
)
state
rtes
else
state
in
let
state
=
(* take initializers into account *)
if
is_first
then
let
main
,
lib
=
Globals
.
entry_point
()
in
if
Kernel_function
.
equal
kf
main
&&
not
lib
then
register_initializers
state
else
state
else
state
in
Some
state
)
let
state
=
Env
.
default_varinfos
state
in
let
state
=
if
(
is_first
||
is_last
)
&&
Misc
.
is_generated_kf
kf
then
Annotations
.
fold_behaviors
(
fun
_
bhv
s
->
let
handle_annot
test
f
s
=
if
test
then
f
(
fun
_
p
s
->
register_predicate
kf
p
s
)
kf
bhv
.
b_name
s
else
s
in
let
s
=
handle_annot
is_first
Annotations
.
fold_requires
s
in
let
s
=
handle_annot
is_first
Annotations
.
fold_assumes
s
in
handle_annot
is_last
(
fun
f
->
Annotations
.
fold_ensures
(
fun
e
(
_
,
p
)
->
f
e
p
))
s
)
kf
state
else
state
in
let
state
=
Annotations
.
fold_code_annot
(
fun
_
->
register_code_annot
kf
)
stmt
state
in
let
state
=
if
stmt
.
ghost
then
let
rtes
=
Rte
.
stmt
kf
stmt
in
List
.
fold_left
(
fun
state
a
->
register_code_annot
kf
a
state
)
state
rtes
else
state
in
let
state
=
(* take initializers into account *)
if
is_first
then
let
main
,
lib
=
Globals
.
entry_point
()
in
if
Kernel_function
.
equal
kf
main
&&
not
lib
then
register_initializers
state
else
state
else
state
in
Some
state
)
(** The (backwards) transfer function for an instruction. The
[(Cil.CurrentLoc.get ())] is set before calling this. If it returns
...
...
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