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
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
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
Charles Southerland
frama-c
Commits
d892bdaa
Commit
d892bdaa
authored
4 years ago
by
Allan Blanchard
Browse files
Options
Downloads
Patches
Plain Diff
[wp] wp_nullable(_pointers) -> (_args)
parent
735a817f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/plugins/wp/RefUsage.ml
+2
-2
2 additions, 2 deletions
src/plugins/wp/RefUsage.ml
src/plugins/wp/tests/wp_plugin/nullable_ext.i
+2
-2
2 additions, 2 deletions
src/plugins/wp/tests/wp_plugin/nullable_ext.i
with
4 additions
and
4 deletions
src/plugins/wp/RefUsage.ml
+
2
−
2
View file @
d892bdaa
...
...
@@ -848,7 +848,7 @@ struct
|
Logic_ptree
.
PLvar
s
->
let
lv
=
typing_context
.
Logic_typing
.
find_var
s
in
begin
match
lv
.
lv_origin
with
|
Some
vi
when
Cil
.
isPointerType
vi
.
vtype
->
|
Some
vi
when
Cil
.
isPointerType
vi
.
vtype
&&
vi
.
vformal
->
make_nullable
vi
;
Logic_const
.
tvar
~
loc
lv
|
_
->
...
...
@@ -864,7 +864,7 @@ struct
let
()
=
Acsl_extension
.
register_behavior
"wp_nullable_
pointer
s"
Nullable_extension
.
typer
false
"wp_nullable_
arg
s"
Nullable_extension
.
typer
false
module
HasNullable
=
State_builder
.
Option_ref
(
Datatype
.
Bool
)
...
...
This diff is collapsed.
Click to expand it.
src/plugins/wp/tests/wp_plugin/nullable_ext.i
+
2
−
2
View file @
d892bdaa
...
...
@@ -9,7 +9,7 @@ int x ;
int
*
g
;
/*@ assigns *g, *p, x ;
wp_nullable_
pointer
s p ;
wp_nullable_
arg
s p ;
*/
void
nullable_coherence
(
int
*
p
)
{
if(p == (void*)0){
...
...
@@ -23,7 +23,7 @@ void nullable_coherence(int* p){
}
/*@ assigns *p, *q, *r, *s, *t ;
wp_nullable_
pointer
s p, q, r ;
wp_nullable_
arg
s p, q, r ;
*/
void
nullable_in_context
(
int
*
p
,
int
*
q
,
int
*
r
,
int
*
s
,
int
*
t
)
{
*p = 42;
...
...
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