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
8d4a45fa
Commit
8d4a45fa
authored
11 years ago
by
Julien Signoles
Browse files
Options
Downloads
Patches
Plain Diff
[E-ACSL] fixed bug #1473 about removing the default project on a corner case
parent
cdbacc6c
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/e-acsl/TODO
+2
-0
2 additions, 0 deletions
src/plugins/e-acsl/TODO
src/plugins/e-acsl/doc/Changelog
+2
-0
2 additions, 0 deletions
src/plugins/e-acsl/doc/Changelog
src/plugins/e-acsl/main.ml
+22
-11
22 additions, 11 deletions
src/plugins/e-acsl/main.ml
with
26 additions
and
11 deletions
src/plugins/e-acsl/TODO
+
2
−
0
View file @
8d4a45fa
...
...
@@ -19,6 +19,7 @@
- loop invariant
- loop variant
- grep "not_yet" *.ml
- logical shift (at least in non GMP mode)
########
# CODE #
...
...
@@ -84,3 +85,4 @@ function call
- inclure exemple du E-ACSL Reference Manual
- inclure exemple du E-ACSL User Manual
- test arith.i: mettre les exemples du ACSL manual about div and modulo
- currently, tests require a non-free version of Frama-C
This diff is collapsed.
Click to expand it.
src/plugins/e-acsl/doc/Changelog
+
2
−
0
View file @
8d4a45fa
...
...
@@ -15,6 +15,8 @@
# E-ACSL: the Whole E-ACSL plug-in
###############################################################################
-* E-ACSL [2013/09/04] Fix bug when mixing -e-acsl-prepare and
running E-ACSL in another project (bts #!1473).
-* E-ACSL [2013/06/26] Fix crash with typedef on pointer types.
- E-ACSL [2013/06/21] Fewer unknown locations.
-* E-ACSL [2013/06/18] Fixed bug when generating RTEs on the E-ACSL
...
...
This diff is collapsed.
Click to expand it.
src/plugins/e-acsl/main.ml
+
22
−
11
View file @
8d4a45fa
...
...
@@ -43,7 +43,11 @@ let check =
(
Datatype
.
func
Datatype
.
unit
Datatype
.
bool
)
check
let
extended_ast_project
:
Project
.
t
option
ref
=
ref
None
type
extended_project
=
|
To_be_extended
|
Already_extended
of
Project
.
t
option
(* None = keep the current project *)
let
extended_ast_project
:
extended_project
ref
=
ref
To_be_extended
let
unmemoized_extend_ast
()
=
let
extend
()
=
...
...
@@ -89,27 +93,34 @@ E-ACSL is going to work on a copy.";
Kernel
.
Files
.
set
[
tmpfile
];
extend
()
)
()
;
prj
Some
prj
end
else
begin
extend
()
;
Project
.
current
()
None
end
let
extend_ast
()
=
match
!
extended_ast_project
with
|
None
->
|
To_be_extended
->
let
prj
=
unmemoized_extend_ast
()
in
extended_ast_project
:=
Some
prj
;
prj
|
Some
prj
->
extended_ast_project
:=
Already_extended
prj
;
(
match
prj
with
|
None
->
Project
.
current
()
|
Some
prj
->
prj
)
|
Already_extended
None
->
Project
.
current
()
|
Already_extended
(
Some
prj
)
->
prj
let
apply_on_e_acsl_ast
f
x
=
let
tmp_prj
=
extend_ast
()
in
let
res
=
Project
.
on
tmp_prj
f
x
in
if
not
(
Project
.
equal
tmp_prj
(
Project
.
current
()
))
then
begin
extended_ast_project
:=
None
;
Project
.
remove
~
project
:
tmp_prj
()
end
;
(
match
!
extended_ast_project
with
|
To_be_extended
->
assert
false
|
Already_extended
None
->
()
|
Already_extended
(
Some
prj
)
->
assert
(
Project
.
equal
prj
tmp_prj
);
extended_ast_project
:=
To_be_extended
;
Project
.
remove
~
project
:
tmp_prj
()
);
res
module
Resulting_projects
=
...
...
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