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
95ec3228
Commit
95ec3228
authored
6 years ago
by
Patrick Baudin
Committed by
Julien Signoles
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[rte] trivial annotations includes validation from syntaxical rules
parent
4116d3bc
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
doc/rte/rte.tex
+1
-2
1 addition, 2 deletions
doc/rte/rte.tex
src/plugins/rte/options.ml
+5
-3
5 additions, 3 deletions
src/plugins/rte/options.ml
with
6 additions
and
5 deletions
doc/rte/rte.tex
+
1
−
2
View file @
95ec3228
...
@@ -875,8 +875,7 @@ left-values access \\
...
@@ -875,8 +875,7 @@ left-values access \\
\lstinline
|-rte-float-to-int|
&
boolean (true)
&
Generate annotations for
\lstinline
|-rte-float-to-int|
&
boolean (true)
&
Generate annotations for
casts from floating-point to integer
\\
casts from floating-point to integer
\\
\hline
\hline
\lstinline
|-rte-trivial-annotations|
&
boolean (true)
&
Generate status for
\lstinline
|-rte-trivial-annotations|
&
boolean (true)
&
Generate all annotations even when they trivially hold
\\
annotation through constant folding
\\
\hline
\hline
\lstinline
|-rte-warn|
&
boolean (true)
&
Emit warning on broken annotations
\\
\lstinline
|-rte-warn|
&
boolean (true)
&
Emit warning on broken annotations
\\
\hline
\hline
...
...
This diff is collapsed.
Click to expand it.
src/plugins/rte/options.ml
+
5
−
3
View file @
95ec3228
...
@@ -90,14 +90,16 @@ module DoPointerCall =
...
@@ -90,14 +90,16 @@ module DoPointerCall =
end
)
end
)
(* uses results of basic constant propagation in order to check
(* uses results of basic constant propagation in order to check
validity / invalidity of generated assertions, emitting a status if possible
validity / invalidity of generated assertions, emitting a status if possible.
Notice that annotations that can be considered valid from syntaxical rules
are also considered as trivial.
*)
*)
module
Trivial
=
module
Trivial
=
False
False
(
struct
(
struct
let
option_name
=
"-rte-trivial-annotations"
let
option_name
=
"-rte-trivial-annotations"
let
help
=
"generate annotations
for constant expressions, even when
\
let
help
=
"generate
all
annotations
even when they trivially hold
\
they trivially hold
"
(from evaluation of constant expressions, syntactical rules...)
"
(* if on, evaluates constants in order to check if assertions
(* if on, evaluates constants in order to check if assertions
are trivially true / false *)
are trivially true / false *)
end
)
end
)
...
...
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