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
e63a7953
Commit
e63a7953
authored
5 years ago
by
Julien Signoles
Browse files
Options
Downloads
Patches
Plain Diff
[archi] R.I.P. visit
parent
d1d2c3fa
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/plugins/e-acsl/src/code_generator/visit.ml
+0
-68
0 additions, 68 deletions
src/plugins/e-acsl/src/code_generator/visit.ml
src/plugins/e-acsl/src/code_generator/visit.mli
+0
-29
0 additions, 29 deletions
src/plugins/e-acsl/src/code_generator/visit.mli
with
0 additions
and
97 deletions
src/plugins/e-acsl/src/code_generator/visit.ml
deleted
100644 → 0
+
0
−
68
View file @
d1d2c3fa
(**************************************************************************)
(* *)
(* This file is part of the Frama-C's E-ACSL plug-in. *)
(* *)
(* Copyright (C) 2012-2019 *)
(* CEA (Commissariat à l'énergie atomique et aux énergies *)
(* alternatives) *)
(* *)
(* you can redistribute it and/or modify it under the terms of the GNU *)
(* Lesser General Public License as published by the Free Software *)
(* Foundation, version 2.1. *)
(* *)
(* It is distributed in the hope that it will be useful, *)
(* but WITHOUT ANY WARRANTY; without even the implied warranty of *)
(* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *)
(* GNU Lesser General Public License for more details. *)
(* *)
(* See the GNU Lesser General Public License version 2.1 *)
(* for more details (enclosed in the file licenses/LGPLv2.1). *)
(* *)
(**************************************************************************)
(* ************************************************************************** *)
(* Visitor *)
(* ************************************************************************** *)
(* the main visitor performing e-acsl checking and C code generator *)
class
e_acsl_visitor
prj
generate
=
object
(
self
)
inherit
Visitor
.
generic_frama_c_visitor
(
if
generate
then
Visitor_behavior
.
copy
prj
else
Visitor_behavior
.
inplace
()
)
(* Add mappings from global variables to their initializers in [global_vars].
Note that the below function captures only [SingleInit]s. All compound
initializers containing SingleInits (except for empty compound
initializers) are unrapped and thrown away. *)
method
!
vinit
vi
off
_
=
if
generate
then
if
Mmodel_analysis
.
must_model_vi
vi
then
begin
is_initializer
<-
vi
.
vglob
;
Cil
.
DoChildrenPost
(
fun
i
->
(
match
is_initializer
with
|
true
->
(
match
i
with
|
CompoundInit
(
_
,
[]
)
->
(* Case of an empty CompoundInit, treat it as if there were
no initializer at all *)
()
|
CompoundInit
(
_
,_
)
|
SingleInit
_
->
(* TODO: [off] should be the one of the new project while it is
from the old project *)
Global_observer
.
add_initializer
vi
off
i
)
|
false
->
()
);
is_initializer
<-
false
;
i
)
end
else
Cil
.
JustCopy
else
Cil
.
SkipChildren
end
(*
Local Variables:
compile-command: "make -C ../.."
End:
*)
This diff is collapsed.
Click to expand it.
src/plugins/e-acsl/src/code_generator/visit.mli
deleted
100644 → 0
+
0
−
29
View file @
d1d2c3fa
(**************************************************************************)
(* *)
(* This file is part of the Frama-C's E-ACSL plug-in. *)
(* *)
(* Copyright (C) 2012-2019 *)
(* CEA (Commissariat à l'énergie atomique et aux énergies *)
(* alternatives) *)
(* *)
(* you can redistribute it and/or modify it under the terms of the GNU *)
(* Lesser General Public License as published by the Free Software *)
(* Foundation, version 2.1. *)
(* *)
(* It is distributed in the hope that it will be useful, *)
(* but WITHOUT ANY WARRANTY; without even the implied warranty of *)
(* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *)
(* GNU Lesser General Public License for more details. *)
(* *)
(* See the GNU Lesser General Public License version 2.1 *)
(* for more details (enclosed in the file licenses/LGPLv2.1). *)
(* *)
(**************************************************************************)
val
do_visit
:
?
prj
:
Project
.
t
->
bool
->
Visitor
.
frama_c_visitor
(*
Local Variables:
compile-command: "make -C ../.."
End:
*)
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