Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
inox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
LARA
inox
Commits
e36ef7c4
Commit
e36ef7c4
authored
8 years ago
by
Manos Koukoutos
Browse files
Options
Downloads
Patches
Plain Diff
Add CollectorWithPC constructor
parent
a3d1a433
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/scala/inox/transformers/CollectorWithPC.scala
+26
-0
26 additions, 0 deletions
src/main/scala/inox/transformers/CollectorWithPC.scala
src/main/scala/inox/transformers/TransformerWithPC.scala
+0
-3
0 additions, 3 deletions
src/main/scala/inox/transformers/TransformerWithPC.scala
with
26 additions
and
3 deletions
src/main/scala/inox/transformers/CollectorWithPC.scala
0 → 100644
+
26
−
0
View file @
e36ef7c4
/* Copyright 2009-2016 EPFL, Lausanne */
package
inox
package
transformers
/** A [[Collector]] that collects path conditions */
trait
CollectorWithPC
extends
TransformerWithPC
with
Collector
object
CollectorWithPC
{
def
apply
[
T
](
p
:
Program
)(
f
:
PartialFunction
[(
p.trees.Expr
,
p.symbols.Path
)
,
T
])
=
{
new
CollectorWithPC
{
type
R
=
T
val
trees
:
p.trees.
type
=
p
.
trees
val
symbols
:
p.symbols.
type
=
p
.
symbols
import
trees.Expr
import
symbols.Path
val
initEnv
:
Path
=
Path
.
empty
protected
def
step
(
e
:
Expr
,
env
:
Path
)
:
List
[(
T
,
Path
)]
=
{
f
.
lift
((
e
,
env
)).
map
((
_
,
env
)).
toList
}
}
}
}
This diff is collapsed.
Click to expand it.
src/main/scala/inox/transformers/TransformerWithPC.scala
+
0
−
3
View file @
e36ef7c4
...
@@ -95,6 +95,3 @@ trait TransformerWithPC extends Transformer {
...
@@ -95,6 +95,3 @@ trait TransformerWithPC extends Transformer {
}
}
}
}
/** A [[Collector]] that collects path conditions */
trait
CollectorWithPC
extends
TransformerWithPC
with
Collector
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