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
61211735
Commit
61211735
authored
9 years ago
by
Etienne Kneuss
Browse files
Options
Downloads
Patches
Plain Diff
Only rely on decomposing rules so that we don't waste time testing
printing of cegis result
parent
bec7c1af
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/test/scala/leon/regression/synthesis/StablePrintingSuite.scala
+23
-1
23 additions, 1 deletion
...scala/leon/regression/synthesis/StablePrintingSuite.scala
with
23 additions
and
1 deletion
src/test/scala/leon/regression/synthesis/StablePrintingSuite.scala
+
23
−
1
View file @
61211735
...
@@ -10,6 +10,7 @@ import leon.purescala.ScalaPrinter
...
@@ -10,6 +10,7 @@ import leon.purescala.ScalaPrinter
import
leon.purescala.PrinterContext
import
leon.purescala.PrinterContext
import
leon.purescala.PrinterOptions
import
leon.purescala.PrinterOptions
import
leon.synthesis._
import
leon.synthesis._
import
leon.synthesis.rules._
import
scala.collection.mutable.Stack
import
scala.collection.mutable.Stack
import
scala.io.Source
import
scala.io.Source
...
@@ -28,6 +29,27 @@ class StablePrintingSuite extends LeonRegressionSuite {
...
@@ -28,6 +29,27 @@ class StablePrintingSuite extends LeonRegressionSuite {
private
def
testIterativeSynthesis
(
cat
:
String
,
f
:
File
,
depth
:
Int
)
{
private
def
testIterativeSynthesis
(
cat
:
String
,
f
:
File
,
depth
:
Int
)
{
val
decompRules
=
List
[
Rule
](
Unification
.
DecompTrivialClash
,
Unification
.
OccursCheck
,
// probably useless
Disunification
.
Decomp
,
ADTDual
,
CaseSplit
,
IfSplit
,
UnusedInput
,
EquivalentInputs
,
UnconstrainedOutput
,
OptimisticGround
,
EqualitySplit
,
InequalitySplit
,
rules
.
Assert
,
DetupleOutput
,
DetupleInput
,
ADTSplit
,
IntInduction
,
InnerCaseSplit
)
def
getChooses
(
ctx
:
LeonContext
,
content
:
String
)
:
(
Program
,
SynthesisSettings
,
Seq
[
ChooseInfo
])
=
{
def
getChooses
(
ctx
:
LeonContext
,
content
:
String
)
:
(
Program
,
SynthesisSettings
,
Seq
[
ChooseInfo
])
=
{
val
opts
=
SynthesisSettings
()
val
opts
=
SynthesisSettings
()
val
pipeline
=
leon
.
utils
.
TemporaryInputPhase
andThen
val
pipeline
=
leon
.
utils
.
TemporaryInputPhase
andThen
...
@@ -85,7 +107,7 @@ class StablePrintingSuite extends LeonRegressionSuite {
...
@@ -85,7 +107,7 @@ class StablePrintingSuite extends LeonRegressionSuite {
val
hctx
=
SearchContext
(
sctx
,
ci
,
search
.
g
.
root
,
search
)
val
hctx
=
SearchContext
(
sctx
,
ci
,
search
.
g
.
root
,
search
)
val
problem
=
ci
.
problem
val
problem
=
ci
.
problem
info
(
j
.
info
(
"synthesis "
+
problem
.
asString
(
sctx
.
context
)))
info
(
j
.
info
(
"synthesis "
+
problem
.
asString
(
sctx
.
context
)))
val
apps
=
sctx
.
r
ules
flatMap
{
_
.
instantiateOn
(
hctx
,
problem
)}
val
apps
=
decompR
ules
flatMap
{
_
.
instantiateOn
(
hctx
,
problem
)}
for
(
a
<-
apps
)
{
for
(
a
<-
apps
)
{
a
.
apply
(
hctx
)
match
{
a
.
apply
(
hctx
)
match
{
...
...
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