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
391019fd
Commit
391019fd
authored
6 years ago
by
Loïc Correnson
Browse files
Options
Downloads
Patches
Plain Diff
[rte] make option remove-trivial local
parent
c501007b
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/rte/visit.ml
+4
-3
4 additions, 3 deletions
src/plugins/rte/visit.ml
with
4 additions
and
3 deletions
src/plugins/rte/visit.ml
+
4
−
3
View file @
391019fd
...
@@ -53,6 +53,7 @@ open Cil_datatype
...
@@ -53,6 +53,7 @@ open Cil_datatype
*)
*)
type
to_annotate
=
{
type
to_annotate
=
{
remove_trivial
:
bool
;
initialized
:
bool
;
initialized
:
bool
;
mem_access
:
bool
;
mem_access
:
bool
;
div_mod
:
bool
;
div_mod
:
bool
;
...
@@ -70,6 +71,7 @@ type to_annotate = {
...
@@ -70,6 +71,7 @@ type to_annotate = {
}
}
let
annotate_all
=
{
let
annotate_all
=
{
remove_trivial
=
false
;
initialized
=
true
;
initialized
=
true
;
mem_access
=
true
;
mem_access
=
true
;
div_mod
=
true
;
div_mod
=
true
;
...
@@ -89,6 +91,7 @@ let annotate_all = {
...
@@ -89,6 +91,7 @@ let annotate_all = {
(** Which annotations should be added, deduced from the options of RTE and
(** Which annotations should be added, deduced from the options of RTE and
the kernel itself. *)
the kernel itself. *)
let
annotate_from_options
()
=
{
let
annotate_from_options
()
=
{
remove_trivial
=
Options
.
Trivial
.
get
()
;
initialized
=
Options
.
DoInitialized
.
get
()
;
initialized
=
Options
.
DoInitialized
.
get
()
;
mem_access
=
Options
.
DoMemAccess
.
get
()
;
mem_access
=
Options
.
DoMemAccess
.
get
()
;
div_mod
=
Options
.
DoDivMod
.
get
()
;
div_mod
=
Options
.
DoDivMod
.
get
()
;
...
@@ -182,10 +185,9 @@ class annot_visitor kf to_annot on_alarm = object (self)
...
@@ -182,10 +185,9 @@ class annot_visitor kf to_annot on_alarm = object (self)
self
#
get_filling_actions
self
#
get_filling_actions
method
private
generate_assertion
:
'
a
.
'
a
Rte
.
alarm_gen
->
'
a
->
unit
=
method
private
generate_assertion
:
'
a
.
'
a
Rte
.
alarm_gen
->
'
a
->
unit
=
let
remove_trivial
=
not
(
Options
.
Trivial
.
get
()
)
in
fun
fgen
->
fun
fgen
->
let
on_alarm
?
status
a
=
on_alarm
self
#
current_kinstr
?
status
a
in
let
on_alarm
?
status
a
=
on_alarm
self
#
current_kinstr
?
status
a
in
fgen
~
remove_trivial
~
on_alarm
fgen
~
remove_trivial
:
to_annot
.
remove_trivial
~
on_alarm
method
!
vstmt
s
=
match
s
.
skind
with
method
!
vstmt
s
=
match
s
.
skind
with
|
UnspecifiedSequence
l
->
|
UnspecifiedSequence
l
->
...
@@ -422,7 +424,6 @@ let rte_annotations stmt =
...
@@ -422,7 +424,6 @@ let rte_annotations stmt =
stmt
stmt
[]
[]
(** {2 List of all RTEs on a given Cil object} *)
(** {2 List of all RTEs on a given Cil object} *)
let
get_annotations
from
kf
stmt
x
=
let
get_annotations
from
kf
stmt
x
=
...
...
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