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
6538c20a
Commit
6538c20a
authored
9 years ago
by
Manos Koukoutos
Browse files
Options
Downloads
Patches
Plain Diff
Use proper API
parent
5b8f8e37
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/scala/leon/utils/Library.scala
+8
-8
8 additions, 8 deletions
src/main/scala/leon/utils/Library.scala
with
8 additions
and
8 deletions
src/main/scala/leon/utils/Library.scala
+
8
−
8
View file @
6538c20a
...
@@ -8,17 +8,17 @@ import purescala.Types._
...
@@ -8,17 +8,17 @@ import purescala.Types._
import
purescala.DefOps._
import
purescala.DefOps._
case
class
Library
(
pgm
:
Program
)
{
case
class
Library
(
pgm
:
Program
)
{
lazy
val
List
=
lookup
(
"leon.collection.List"
).
collect
{
case
acd
:
AbstractClassDef
=>
acd
}
.
headOption
lazy
val
List
=
lookup
(
"leon.collection.List"
).
collect
First
{
case
acd
:
AbstractClassDef
=>
acd
}
lazy
val
Cons
=
lookup
(
"leon.collection.Cons"
).
collect
{
case
ccd
:
CaseClassDef
=>
ccd
}
.
headOption
lazy
val
Cons
=
lookup
(
"leon.collection.Cons"
).
collect
First
{
case
ccd
:
CaseClassDef
=>
ccd
}
lazy
val
Nil
=
lookup
(
"leon.collection.Nil"
).
collect
{
case
ccd
:
CaseClassDef
=>
ccd
}
.
headOption
lazy
val
Nil
=
lookup
(
"leon.collection.Nil"
).
collect
First
{
case
ccd
:
CaseClassDef
=>
ccd
}
lazy
val
Option
=
lookup
(
"leon.lang.Option"
).
collect
{
case
acd
:
AbstractClassDef
=>
acd
}
.
headOption
lazy
val
Option
=
lookup
(
"leon.lang.Option"
).
collect
First
{
case
acd
:
AbstractClassDef
=>
acd
}
lazy
val
Some
=
lookup
(
"leon.lang.Some"
).
collect
{
case
ccd
:
CaseClassDef
=>
ccd
}
.
headOption
lazy
val
Some
=
lookup
(
"leon.lang.Some"
).
collect
First
{
case
ccd
:
CaseClassDef
=>
ccd
}
lazy
val
None
=
lookup
(
"leon.lang.None"
).
collect
{
case
ccd
:
CaseClassDef
=>
ccd
}
.
headOption
lazy
val
None
=
lookup
(
"leon.lang.None"
).
collect
First
{
case
ccd
:
CaseClassDef
=>
ccd
}
lazy
val
String
=
lookup
(
"leon.lang.string.String"
).
collect
{
case
ccd
:
CaseClassDef
=>
ccd
}
.
headOption
lazy
val
String
=
lookup
(
"leon.lang.string.String"
).
collect
First
{
case
ccd
:
CaseClassDef
=>
ccd
}
lazy
val
setToList
=
lookup
(
"leon.collection.setToList"
).
collect
{
case
fd
:
FunDef
=>
fd
}
.
headOption
lazy
val
setToList
=
lookup
(
"leon.collection.setToList"
).
collect
First
{
case
fd
:
FunDef
=>
fd
}
def
lookup
(
name
:
String
)
:
Seq
[
Definition
]
=
{
def
lookup
(
name
:
String
)
:
Seq
[
Definition
]
=
{
pgm
.
lookupAll
(
name
)
pgm
.
lookupAll
(
name
)
...
...
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