Skip to content

Commit

Permalink
Merge pull request #152 from kylebd99/patch-1
Browse files Browse the repository at this point in the history
One-line change to fix error message
  • Loading branch information
0x0f0f0f authored Apr 28, 2023
2 parents 6961623 + bf09e5e commit b6400e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EGraphs/saturation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ Instantiate argument for dynamic rule application in e-graph
function instantiate_actual_param!(bindings::Bindings, g::EGraph, i)
ecid, literal_position = bindings[i]
ecid <= 0 && error("unbound pattern variable $pat in rule $rule")
eclass = g[ecid]
if literal_position > 0
eclass = g[ecid]
@assert eclass[literal_position] isa ENodeLiteral
return eclass[literal_position].value
end
Expand Down

0 comments on commit b6400e7

Please sign in to comment.