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
27ebe2c2
Commit
27ebe2c2
authored
6 years ago
by
David Bühler
Browse files
Options
Downloads
Patches
Plain Diff
[Eva] Fixes the storage of unmarshallable domains.
parent
ceb9a93e
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/value/domains/domain_store.ml
+26
-2
26 additions, 2 deletions
src/plugins/value/domains/domain_store.ml
with
26 additions
and
2 deletions
src/plugins/value/domains/domain_store.ml
+
26
−
2
View file @
27ebe2c2
...
...
@@ -40,14 +40,38 @@ module Make (Domain: InputDomain) = struct
let
dependencies
=
[
Db
.
Value
.
self
]
let
size
=
16
module
Storage
=
State_builder
.
Ref
(
Datatype
.
Bool
)
module
type
Ref
=
sig
val
get
:
unit
->
bool
val
set
:
bool
->
unit
end
(* Boolean reference saved on the disk. *)
module
Bool_Ref_State
=
State_builder
.
Ref
(
Datatype
.
Bool
)
(
struct
let
dependencies
=
dependencies
let
name
=
name
^
".Storage"
let
default
()
=
false
end
)
(* Boolean reference. Not saved on the disk. *)
module
Bool_Ref
=
struct
let
x
=
ref
false
let
set
y
=
x
:=
y
let
get
()
=
!
x
end
(* A boolean reference indicating whether the states of the domain have been
saved. False by default, it becomes true when the engine calls
[register_global_state] at the start of the analysis.
If the domain is unmarshallable, its states cannot be saved on the
disk, and this boolean should not be saved either. *)
module
Storage
=
(
val
(
if
Descr
.
is_unmarshable
Domain
.
descr
then
(
module
Bool_Ref
)
else
(
module
Bool_Ref_State
))
:
Ref
)
module
Global_State
=
State_builder
.
Option_ref
(
Domain
)
(
struct
...
...
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