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
b80729cf
Commit
b80729cf
authored
4 years ago
by
Loïc Correnson
Browse files
Options
Downloads
Patches
Plain Diff
[wp] avoid calling RefUsage from context menu
parent
042194ec
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/wp/GuiNavigator.ml
+1
-1
1 addition, 1 deletion
src/plugins/wp/GuiNavigator.ml
src/plugins/wp/RefUsage.ml
+1
-0
1 addition, 0 deletions
src/plugins/wp/RefUsage.ml
src/plugins/wp/RefUsage.mli
+1
-0
1 addition, 0 deletions
src/plugins/wp/RefUsage.mli
with
3 additions
and
1 deletion
src/plugins/wp/GuiNavigator.ml
+
1
−
1
View file @
b80729cf
...
@@ -406,7 +406,7 @@ let model_varinfo :
...
@@ -406,7 +406,7 @@ let model_varinfo :
match
item
with
match
item
with
|
PLval
(
Some
kf
,
_
,
(
Var
x
,
NoOffset
))
|
PLval
(
Some
kf
,
_
,
(
Var
x
,
NoOffset
))
|
PTermLval
(
Some
kf
,
_
,
_
,
(
TVar
{
lv_origin
=
Some
x
}
,
TNoOffset
))
|
PTermLval
(
Some
kf
,
_
,
_
,
(
TVar
{
lv_origin
=
Some
x
}
,
TNoOffset
))
when
button
=
1
->
when
button
=
1
&&
RefUsage
.
is_computed
()
->
begin
begin
let
init
=
WpStrategy
.
is_main_init
kf
in
let
init
=
WpStrategy
.
is_main_init
kf
in
let
acc
=
RefUsage
.
get
~
kf
~
init
x
in
let
acc
=
RefUsage
.
get
~
kf
~
init
x
in
...
...
This diff is collapsed.
Click to expand it.
src/plugins/wp/RefUsage.ml
+
1
−
0
View file @
b80729cf
...
@@ -817,6 +817,7 @@ module S = State_builder.Option_ref(D)
...
@@ -817,6 +817,7 @@ module S = State_builder.Option_ref(D)
(* compute_usage is called once per project *)
(* compute_usage is called once per project *)
let
usage
()
=
S
.
memo
compute_usage
let
usage
()
=
S
.
memo
compute_usage
let
is_computed
()
=
S
.
is_computed
()
(* ---------------------------------------------------------------------- *)
(* ---------------------------------------------------------------------- *)
(* --- API --- *)
(* --- API --- *)
...
...
This diff is collapsed.
Click to expand it.
src/plugins/wp/RefUsage.mli
+
1
−
0
View file @
b80729cf
...
@@ -41,3 +41,4 @@ val iter: ?kf:kernel_function -> ?init:bool -> (varinfo -> access -> unit) -> un
...
@@ -41,3 +41,4 @@ val iter: ?kf:kernel_function -> ?init:bool -> (varinfo -> access -> unit) -> un
val
print
:
varinfo
->
access
->
Format
.
formatter
->
unit
val
print
:
varinfo
->
access
->
Format
.
formatter
->
unit
val
dump
:
unit
->
unit
val
dump
:
unit
->
unit
val
compute
:
unit
->
unit
val
compute
:
unit
->
unit
val
is_computed
:
unit
->
bool
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