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
bc0f175b
Commit
bc0f175b
authored
12 years ago
by
Julien Signoles
Browse files
Options
Downloads
Patches
Plain Diff
[E-ACSL] better handling of already-proven properties
parent
47dd0895
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/pre_visit.ml
+8
-8
8 additions, 8 deletions
src/plugins/e-acsl/pre_visit.ml
src/plugins/e-acsl/tests/e-acsl-runtime/linear_search.i
+1
-1
1 addition, 1 deletion
src/plugins/e-acsl/tests/e-acsl-runtime/linear_search.i
with
9 additions
and
9 deletions
src/plugins/e-acsl/pre_visit.ml
+
8
−
8
View file @
bc0f175b
...
@@ -53,6 +53,11 @@ let reset () =
...
@@ -53,6 +53,11 @@ let reset () =
(* Duplicating property statuses *)
(* Duplicating property statuses *)
(* ********************************************************************** *)
(* ********************************************************************** *)
let
reemit
=
function
|
Property
.
IPBehavior
_
|
Property
.
IPAxiom
_
|
Property
.
IPAxiomatic
_
|
Property
.
IPPredicate
(
Property
.
PKAssumes
_
,
_
,
_
,
_
)
->
false
|
_
->
true
let
copy_ppt
old_prj
new_prj
old_ppt
new_ppt
=
let
copy_ppt
old_prj
new_prj
old_ppt
new_ppt
=
let
module
P
=
Property_status
in
let
module
P
=
Property_status
in
let
selection
=
State_selection
.
of_list
[
P
.
self
;
Emitter
.
self
]
in
let
selection
=
State_selection
.
of_list
[
P
.
self
;
Emitter
.
self
]
in
...
@@ -60,13 +65,8 @@ let copy_ppt old_prj new_prj old_ppt new_ppt =
...
@@ -60,13 +65,8 @@ let copy_ppt old_prj new_prj old_ppt new_ppt =
Project
.
on
~
selection
new_prj
Project
.
on
~
selection
new_prj
(
fun
s
->
(
fun
s
->
let
e
=
match
l
with
[]
->
assert
false
|
e
::
_
->
e
in
let
e
=
match
l
with
[]
->
assert
false
|
e
::
_
->
e
in
(* Options.feedback "HERE %a --> %a (%a)" Property.pretty new_ppt
let
emitter
=
Emitter
.
Usable_emitter
.
get
e
.
P
.
emitter
in
P.Emitted_status.pretty s Project.pretty new_prj;*)
P
.
emit
emitter
~
hyps
:
e
.
P
.
properties
new_ppt
s
)
if
not
e
.
P
.
logical_consequence
then
let
emitter
=
Emitter
.
Usable_emitter
.
get
e
.
P
.
emitter
in
(* Options.feedback "EMIT %a --> %a (%a)" Property.pretty new_ppt
P.Emitted_status.pretty s Project.pretty new_prj;*)
P
.
emit
emitter
~
hyps
:
e
.
P
.
properties
new_ppt
s
)
s
s
in
in
let
copy
()
=
let
copy
()
=
...
@@ -77,7 +77,7 @@ let copy_ppt old_prj new_prj old_ppt new_ppt =
...
@@ -77,7 +77,7 @@ let copy_ppt old_prj new_prj old_ppt new_ppt =
emit
P
.
True
i
.
P
.
valid
;
emit
P
.
True
i
.
P
.
valid
;
emit
P
.
False_and_reachable
i
.
P
.
invalid
emit
P
.
False_and_reachable
i
.
P
.
invalid
in
in
if
not
(
Options
.
Valid
.
get
()
)
then
Queue
.
add
copy
actions
if
reemit
old_ppt
&&
not
(
Options
.
Valid
.
get
()
)
then
Queue
.
add
copy
actions
(* ********************************************************************** *)
(* ********************************************************************** *)
(* Duplicating functions *)
(* Duplicating functions *)
...
...
This diff is collapsed.
Click to expand it.
src/plugins/e-acsl/tests/e-acsl-runtime/linear_search.i
+
1
−
1
View file @
bc0f175b
/* run.config
/* run.config
COMMENT: linear search (example of the
TAP
'1
2
article)
COMMENT: linear search (example of the
SAC
'1
3
article)
EXECNOW: LOG gen_linear_search.c BIN gen_linear_search.out @frama-c@ -e-acsl-share ./share/e-acsl ./tests/e-acsl-runtime/linear_search.i -e-acsl -then-on e-acsl -print -ocode ./tests/e-acsl-runtime/result/gen_linear_search.c > /dev/null && ./gcc_test.sh linear_search
EXECNOW: LOG gen_linear_search.c BIN gen_linear_search.out @frama-c@ -e-acsl-share ./share/e-acsl ./tests/e-acsl-runtime/linear_search.i -e-acsl -then-on e-acsl -print -ocode ./tests/e-acsl-runtime/result/gen_linear_search.c > /dev/null && ./gcc_test.sh linear_search
EXECNOW: LOG gen_linear_search2.c BIN gen_linear_search2.out @frama-c@ -e-acsl-share ./share/e-acsl ./tests/e-acsl-runtime/linear_search.i -e-acsl-gmp-only -e-acsl -then-on e-acsl -print -ocode ./tests/e-acsl-runtime/result/gen_linear_search2.c > /dev/null && ./gcc_test.sh linear_search2
EXECNOW: LOG gen_linear_search2.c BIN gen_linear_search2.out @frama-c@ -e-acsl-share ./share/e-acsl ./tests/e-acsl-runtime/linear_search.i -e-acsl-gmp-only -e-acsl -then-on e-acsl -print -ocode ./tests/e-acsl-runtime/result/gen_linear_search2.c > /dev/null && ./gcc_test.sh linear_search2
*/
*/
...
...
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