Basic extraction of record patterns

This commit is contained in:
Chris Smowton
2023-11-01 16:05:53 +00:00
parent 293cc67494
commit daccd04087
10 changed files with 93 additions and 42 deletions

View File

@@ -82,7 +82,7 @@ private predicate step(Node n1, Node n2) {
)
or
exists(PatternCase pc |
pc.getDecl() = def.(BaseSsaUpdate).getDefiningExpr() and
pc.getPattern() = def.(BaseSsaUpdate).getDefiningExpr() and
(
pc.getSwitch().getExpr() = n1.asExpr()
or