Skip to content
Snippets Groups Projects
Commit 4e61f65e authored by Etienne Kneuss's avatar Etienne Kneuss
Browse files

Look in ws as well

parent 5f0ee7d5
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,7 @@ import purescala.Extractors._
case object UnusedInput extends NormalizingRule("UnusedInput") {
def instantiateOn(implicit hctx: SearchContext, p: Problem): Traversable[RuleInstantiation] = {
val unused = p.as.toSet -- variablesOf(p.phi) -- variablesOf(p.pc)
val unused = p.as.toSet -- variablesOf(p.phi) -- variablesOf(p.pc) -- variablesOf(p.ws)
if (!unused.isEmpty) {
val sub = p.copy(as = p.as.filterNot(unused))
......
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