summaryrefslogtreecommitdiff
path: root/abstract/abs_interp.ml
diff options
context:
space:
mode:
authorAlex Auvolat <alex.auvolat@ansys.com>2014-06-19 13:47:00 +0200
committerAlex Auvolat <alex.auvolat@ansys.com>2014-06-19 13:47:00 +0200
commitf4200a0aa90e2641ce1b0b1c54d00d9d4dd3b73e (patch)
tree53b82c4d758d11936f0ee0d106ea0aaf75d48f61 /abstract/abs_interp.ml
parent8286c7c23a47c166aa87337a3146cdf3b278b144 (diff)
downloadscade-analyzer-f4200a0aa90e2641ce1b0b1c54d00d9d4dd3b73e.tar.gz
scade-analyzer-f4200a0aa90e2641ce1b0b1c54d00d9d4dd3b73e.zip
Did most of the boring stuff. Now, work on the abstract domain.
Diffstat (limited to 'abstract/abs_interp.ml')
-rw-r--r--abstract/abs_interp.ml7
1 files changed, 3 insertions, 4 deletions
diff --git a/abstract/abs_interp.ml b/abstract/abs_interp.ml
index 1d3e20a..7950144 100644
--- a/abstract/abs_interp.ml
+++ b/abstract/abs_interp.ml
@@ -27,14 +27,10 @@ end = struct
}
-
-
(* init state *)
let init_state widen_delay rp =
let f = Formula.eliminate_not (Transform.f_of_prog rp false) in
- let cl = Formula.conslist_of_f f in
let f_g = Formula.eliminate_not (Transform.f_of_prog rp true) in
- let cl_g = Formula.conslist_of_f f_g in
let env = List.fold_left
(fun env (_, id, ty) -> E.addvar env id ty)
@@ -58,6 +54,9 @@ end = struct
let env = E.apply_f env init_f in
+ let cl = Formula.conslist_of_f f in
+ let cl_g = Formula.conslist_of_f f_g in
+
{ rp; widen_delay;
f; cl; f_g; cl_g;
guarantees; env }