Skip to content

Commit b6400e7

Browse files
authored
Merge pull request #152 from kylebd99/patch-1
One-line change to fix error message
2 parents 6961623 + bf09e5e commit b6400e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/EGraphs/saturation.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,8 @@ Instantiate argument for dynamic rule application in e-graph
192192
function instantiate_actual_param!(bindings::Bindings, g::EGraph, i)
193193
ecid, literal_position = bindings[i]
194194
ecid <= 0 && error("unbound pattern variable $pat in rule $rule")
195+
eclass = g[ecid]
195196
if literal_position > 0
196-
eclass = g[ecid]
197197
@assert eclass[literal_position] isa ENodeLiteral
198198
return eclass[literal_position].value
199199
end

0 commit comments

Comments
 (0)