Commit 23c010b
committed
Correct number of srcs in
When constructing the inverse match, `complete` was allocating a vector
with length of the forward match. This isn't quite the right number.
What you want is to use the actual number of srcs (or failing that
the maximum number that appears in the matching). In practice, this
was mostly working out, because an overestimate is fine here and
usually there are more variables than equations, but there don't
have to be in all places where Matching is used. Fix that by defaulting
`complete` to the maximum used src and explicitly passing the correct
number of sources in a few places.complete
1 parent 4b81cfa commit 23c010b
File tree
2 files changed
+3
-3
lines changed- src
- structural_transformation
2 files changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
| 127 | + | |
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| |||
0 commit comments