Skip to content
Snippets Groups Projects
Commit 8f0963fc authored by Manos Koukoutos's avatar Manos Koukoutos
Browse files

This looks like dead code

parent 5b32863a
No related branches found
No related tags found
No related merge requests found
...@@ -517,10 +517,9 @@ abstract class CEGISLike[T <% Typed](name: String) extends Rule(name) { ...@@ -517,10 +517,9 @@ abstract class CEGISLike[T <% Typed](name: String) extends Rule(name) {
excludedPrograms += bvs excludedPrograms += bvs
} }
def unfold(finalUnfolding: Boolean): Boolean = { def unfold() = {
termSize += 1 termSize += 1
updateCTree() updateCTree()
true
} }
/** /**
...@@ -545,7 +544,6 @@ abstract class CEGISLike[T <% Typed](name: String) extends Rule(name) { ...@@ -545,7 +544,6 @@ abstract class CEGISLike[T <% Typed](name: String) extends Rule(name) {
for ((c, alts) <- cTree) { for ((c, alts) <- cTree) {
val activeBs = alts.map(_._1).filter(isBActive) val activeBs = alts.map(_._1).filter(isBActive)
val ord = implicitly[Ordering[Identifier]]
val either = for (a1 <- activeBs; a2 <- activeBs if a1 < a2) yield { val either = for (a1 <- activeBs; a2 <- activeBs if a1 < a2) yield {
Or(Not(a1.toVariable), Not(a2.toVariable)) Or(Not(a1.toVariable), Not(a2.toVariable))
} }
...@@ -738,11 +736,7 @@ abstract class CEGISLike[T <% Typed](name: String) extends Rule(name) { ...@@ -738,11 +736,7 @@ abstract class CEGISLike[T <% Typed](name: String) extends Rule(name) {
var skipCESearch = false var skipCESearch = false
// Unfold formula // Unfold formula
val unfoldSuccess = ndProgram.unfold(unfolding == maxUnfoldings) ndProgram.unfold()
if (!unfoldSuccess) {
unfolding = maxUnfoldings
}
// Compute all programs that have not been excluded yet // Compute all programs that have not been excluded yet
var prunedPrograms: Set[Set[Identifier]] = ndProgram.allPrograms().toSet var prunedPrograms: Set[Set[Identifier]] = ndProgram.allPrograms().toSet
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment