Skip to content
Snippets Groups Projects
Commit 1724c1a6 authored by Etienne Kneuss's avatar Etienne Kneuss Committed by Philippe Suter
Browse files

Fix pc being propagated to ADTSplit's sub problems

parent 76305bb8
No related branches found
No related tags found
No related merge requests found
......@@ -51,7 +51,8 @@ case object ADTSplit extends Rule("ADT Split.") {
val args = ccd.fieldsIds.map(id => FreshIdentifier(id.name, true).setType(id.getType)).toList
val subPhi = subst(id -> CaseClass(ccd, args.map(Variable(_))), p.phi)
val subProblem = Problem(args ::: oas, p.pc, subPhi, p.xs)
val subPC = subst(id -> CaseClass(ccd, args.map(Variable(_))), p.pc)
val subProblem = Problem(args ::: oas, subPC, subPhi, p.xs)
val subPattern = CaseClassPattern(None, ccd, args.map(id => WildcardPattern(Some(id))))
(ccd, subProblem, subPattern)
......
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