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
c7fd9476
Commit
c7fd9476
authored
13 years ago
by
Julien Signoles
Browse files
Options
Downloads
Patches
Plain Diff
[e-acsl] remove useless commented code
parent
678a99c8
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/e-acsl/visit.ml
+0
-87
0 additions, 87 deletions
src/plugins/e-acsl/visit.ml
with
0 additions
and
87 deletions
src/plugins/e-acsl/visit.ml
+
0
−
87
View file @
c7fd9476
...
@@ -106,94 +106,7 @@ end
...
@@ -106,94 +106,7 @@ end
(* ************************************************************************** *)
(* ************************************************************************** *)
(* Environments *)
(* Environments *)
(* ************************************************************************** *)
(* ************************************************************************** *)
(*
module New_block : sig
val is_empty: unit -> bool
val push: stmt -> unit
val finalize: stmt -> block
end = struct
let stmts = ref []
let push s = stmts := s :: !stmts
let is_empty () = !stmts = []
let finalize s =
let l = s :: !stmts in
stmts := [];
mkBlock (List.rev l)
end
module New_vars: sig
val push: typ -> (varinfo -> exp (* the var as exp *) -> stmt list) -> exp
(* the closure as argument indicates how to initialize the given varinfo *)
val push_and_mpz_init:
(varinfo -> exp (* the var as exp *) -> stmt list) -> exp
(* the closure as argument indicates how to initialize the given varinfo *)
val finalize: unit -> (varinfo * exp * bool) list
(* return the environment and reset it in order to be used again.
Each item of the returned list contains:
- the generated varinfo
- a C expression corresponding to this varinfo
- a boolean which is true iff the generated varinfo is a mpz_t variable. *)
end = struct
(* the finalizer resets the counter in order to keep it small. However, Cil
visitor is dummy: it believes that my counter is its own and thus change it
to keep it stricly growing. Too bad! :-(
Could be a real issue in practice since **many** variables are generated
for E-ACSL (at least one variable by integer constant). *)
let var_cpt = ref 0
let vlist = ref []
let push_list ty mk_stmts =
incr var_cpt;
let is_t = Mpz.is_t ty in
if is_t then Mpz.is_now_referenced ();
let v =
makeVarinfo
~logic:false
~generated:true
false (* is a global? *)
false (* is a formal? *)
("e_acsl_" ^ string_of_int !var_cpt)
ty
in
let e = new_lval v in
let stmts = mk_stmts v e in
List.iter New_block.push stmts;
vlist := (v, e, is_t) :: !vlist;
e
let push ty mk_stmts = push_list ty (fun v e -> mk_stmts v e)
let push_and_mpz_init mk_stmts =
push_list Mpz.t (fun v e -> Mpz.init e :: mk_stmts v e)
let finalize () =
var_cpt := 0;
let l = !vlist in
vlist := [];
l
end
module New_annotations : sig
val push: stmt -> predicate named -> unit
val finalize : (unit -> unit) Queue.t -> unit
end = struct
let q = Queue.create ()
let push s p = Queue.add (fun () -> Annotations.add_assert s [ !self ] p) q
let finalize dest_q = Queue.transfer q dest_q
end
*)
module
Env
:
sig
module
Env
:
sig
type
t
type
t
val
empty
:
t
val
empty
:
t
...
...
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