-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Put SSL rules for sequences behind a flag and test suite file
- Loading branch information
1 parent
85bf080
commit 9624864
Showing
12 changed files
with
55 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/test/resources/synthesis/sequences/paper-benchmarks/sll/sll-ith.syn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# -c 1 -o 1 -b true | ||
# -c 1 -o 1 -b true --sequenceRules true | ||
|
||
##### | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
src/test/resources/synthesis/sequences/paper-benchmarks/sll/sll-length.syn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# -c 1 -o 1 | ||
# -c 1 -o 1 --sequenceRules true | ||
|
||
##### | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
src/test/resources/synthesis/sequences/project-benchmarks/llist_ith.syn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# -c 2 -o 2 -b true | ||
# -c 2 -o 2 -b true --sequenceRules true | ||
|
||
##### | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
src/test/resources/synthesis/sequences/project-benchmarks/sll-ith.syn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# -c 1 -o 1 -b true | ||
# -c 1 -o 1 -b true --sequenceRules true | ||
|
||
##### | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
src/test/resources/synthesis/sequences/project-benchmarks/sll-length.syn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# -c 1 -o 1 | ||
# -c 1 -o 1 --sequenceRules true | ||
|
||
##### | ||
|
||
|
34 changes: 34 additions & 0 deletions
34
src/test/scala/org/tygus/suslik/synthesis/SequencesTests.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package org.tygus.suslik.synthesis | ||
|
||
import org.scalatest.{FunSpec, Matchers} | ||
|
||
/** | ||
* @author Abhishek Sharma, Aidan Denlinger | ||
*/ | ||
|
||
class SequencesTests extends FunSpec with Matchers with SynthesisRunnerUtil { | ||
|
||
override def doRun(testName: String, desc: String, in: String, out: String, params: SynConfig = defaultConfig): Unit = { | ||
super.doRun(testName, desc, in, out, params) | ||
it(desc) { | ||
synthesizeFromSpec(testName, in, out, params) | ||
} | ||
} | ||
|
||
describe("Pure synthesis with sequences") { | ||
runAllTestsFromDir("sequences/pure") | ||
} | ||
|
||
describe("Linked lists with sequences") { | ||
runAllTestsFromDir("sequences/llist") | ||
} | ||
|
||
describe("Doubly-linked list with sequence of elements") { | ||
runAllTestsFromDir("sequences/paper-benchmarks/dll") | ||
} | ||
|
||
describe("Singly-linked list with sequence of elements") { | ||
runAllTestsFromDir("sequences/paper-benchmarks/sll") | ||
} | ||
|
||
} |