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
243d5a20
Commit
243d5a20
authored
3 years ago
by
Allan Blanchard
Browse files
Options
Downloads
Patches
Plain Diff
[wp] Simplifies TacClear
parent
a384d0bb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/plugins/wp/TacClear.ml
+6
-6
6 additions, 6 deletions
src/plugins/wp/TacClear.ml
with
6 additions
and
6 deletions
src/plugins/wp/TacClear.ml
+
6
−
6
View file @
243d5a20
...
...
@@ -35,19 +35,19 @@ let condition original p = (* keep original kind of simple condition *)
let
tactical_step
step
=
Tactical
.
replace_single
~
at
:
step
.
id
(
"Removed"
,
Conditions
.
Have
Lang
.
F
.
p_true
)
module
TermLset
=
Qed
.
Listset
.
Make
(
Lang
.
F
.
QED
.
Term
)
let
tactical_inside
step
remove
=
let
rec
collect
p
=
let
remove
=
List
.
sort_uniq
Lang
.
F
.
compare
remove
in
let
collect
p
=
match
Lang
.
F
.
p_expr
p
with
|
And
ps
->
collect_list
ps
|
And
ps
->
ps
|
_
->
[
p
]
and
collect_list
=
function
|
[]
->
[]
|
p
::
l
->
List
.
rev_append
(
List
.
rev
@@
collect
p
)
(
collect_list
l
)
in
begin
match
step
.
condition
with
|
Type
p
|
Have
p
|
When
p
|
Core
p
|
Init
p
->
let
ps
=
Lang
.
F
.
e_props
@@
collect
p
in
let
ps
=
List
.
filter
(
fun
x
->
not
@@
List
.
mem
x
remove
)
ps
in
let
ps
=
TermLset
.
diff
ps
remove
in
let
cond
=
condition
step
@@
Lang
.
F
.
p_bool
@@
Lang
.
F
.
e_and
ps
in
Tactical
.
replace_single
~
at
:
step
.
id
(
"Filtered"
,
cond
)
...
...
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