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
46b4a943
Commit
46b4a943
authored
9 years ago
by
Manos Koukoutos
Browse files
Options
Downloads
Patches
Plain Diff
Get rid of invalid benchmark
parent
85003922
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/test/resources/regression/verification/newsolvers/valid/Choose1.scala
+0
-42
0 additions, 42 deletions
...es/regression/verification/newsolvers/valid/Choose1.scala
with
0 additions
and
42 deletions
src/test/resources/regression/verification/newsolvers/valid/Choose1.scala
deleted
100644 → 0
+
0
−
42
View file @
85003922
/* Copyright 2009-2014 EPFL, Lausanne */
import
leon.annotation._
import
leon.lang.synthesis._
import
leon.lang._
object
Choose1
{
sealed
abstract
class
List
case
class
Cons
(
head
:
Int
,
tail
:
List
)
extends
List
case
class
Nil
()
extends
List
def
size
(
l
:
List
)
:
BigInt
=
(
l
match
{
case
Nil
()
=>
BigInt
(
0
)
case
Cons
(
_
,
t
)
=>
1
+
size
(
t
)
})
ensuring
(
res
=>
res
>=
0
)
def
content
(
l
:
List
)
:
Set
[
Int
]
=
l
match
{
case
Nil
()
=>
Set
.
empty
[
Int
]
case
Cons
(
x
,
xs
)
=>
Set
(
x
)
++
content
(
xs
)
}
def
listOfSize
(
i
:
BigInt
)
:
List
=
{
require
(
i
>=
0
)
if
(
i
==
BigInt
(
0
))
{
Nil
()
}
else
{
choose
{
(
res
:
List
)
=>
size
(
res
)
==
i
}
}
}
ensuring
(
size
(
_
)
==
i
)
def
listOfSize2
(
i
:
BigInt
)
:
List
=
{
require
(
i
>=
0
)
if
(
i
>
0
)
{
Cons
(
0
,
listOfSize
(
i
-
1
))
}
else
{
Nil
()
}
}
ensuring
(
size
(
_
)
==
i
)
}
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