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
9260e22e
Commit
9260e22e
authored
3 years ago
by
Andre Maroneze
Browse files
Options
Downloads
Patches
Plain Diff
[Eva] add wkey for 'ensures \false' check
parent
d9d9175e
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/plugins/value/engine/transfer_logic.ml
+1
-1
1 addition, 1 deletion
src/plugins/value/engine/transfer_logic.ml
src/plugins/value/self.ml
+1
-0
1 addition, 0 deletions
src/plugins/value/self.ml
src/plugins/value/self.mli
+1
-0
1 addition, 0 deletions
src/plugins/value/self.mli
with
3 additions
and
1 deletion
src/plugins/value/engine/transfer_logic.ml
+
1
−
1
View file @
9260e22e
...
@@ -359,7 +359,7 @@ module Make
...
@@ -359,7 +359,7 @@ module Make
|
Postcondition
(
PostLeaf
|
PostUseSpec
)
->
true
|
Postcondition
(
PostLeaf
|
PostUseSpec
)
->
true
|
_
->
false
)
|
_
->
false
)
&&
pr
.
pred_content
<>
Pfalse
then
&&
pr
.
pred_content
<>
Pfalse
then
Self
.
warning
~
once
:
true
~
source
Self
.
warning
~
once
:
true
~
source
~
wkey
:
Self
.
wkey_ensures_false
"@[%a:@ this postcondition@ evaluates to@ false@ in this@ context.\
"@[%a:@ this postcondition@ evaluates to@ false@ in this@ context.\
@ If it is valid,@ either@ a precondition@ was not@ verified@ \
@ If it is valid,@ either@ a precondition@ was not@ verified@ \
for this@ call%t,@ or some assigns/from@ clauses@ are \
for this@ call%t,@ or some assigns/from@ clauses@ are \
...
...
This diff is collapsed.
Click to expand it.
src/plugins/value/self.ml
+
1
−
0
View file @
9260e22e
...
@@ -132,3 +132,4 @@ let wkey_invalid_assigns = register_warn_category "invalid-assigns"
...
@@ -132,3 +132,4 @@ let wkey_invalid_assigns = register_warn_category "invalid-assigns"
let
()
=
set_warn_status
wkey_invalid_assigns
Log
.
Wfeedback
let
()
=
set_warn_status
wkey_invalid_assigns
Log
.
Wfeedback
let
wkey_experimental
=
register_warn_category
"experimental"
let
wkey_experimental
=
register_warn_category
"experimental"
let
wkey_unknown_size
=
register_warn_category
"unknown-size"
let
wkey_unknown_size
=
register_warn_category
"unknown-size"
let
wkey_ensures_false
=
register_warn_category
"ensures-false"
This diff is collapsed.
Click to expand it.
src/plugins/value/self.mli
+
1
−
0
View file @
9260e22e
...
@@ -77,3 +77,4 @@ val wkey_signed_overflow : warn_category
...
@@ -77,3 +77,4 @@ val wkey_signed_overflow : warn_category
val
wkey_invalid_assigns
:
warn_category
val
wkey_invalid_assigns
:
warn_category
val
wkey_experimental
:
warn_category
val
wkey_experimental
:
warn_category
val
wkey_unknown_size
:
warn_category
val
wkey_unknown_size
:
warn_category
val
wkey_ensures_false
:
warn_category
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