[sledge] Check equality of logical variables by id only

Summary: Term.compare already ignores Var names, make Term.equal do so as well.

Reviewed By: jvillard

Differential Revision: D20663961

fbshipit-source-id: 59e7aa880
master
Josh Berdine 5 years ago committed by Facebook GitHub Bot
parent c8e75e3b82
commit e7217ac5fe

@ -97,6 +97,12 @@ end = struct
| Var {id= i; name= _}, Var {id= j; name= _} when i > 0 && j > 0 ->
Int.compare i j
| _ -> compare x y
let equal x y =
match (x, y) with
| Var {id= i; name= _}, Var {id= j; name= _} when i > 0 && j > 0 ->
Int.equal i j
| _ -> equal x y
end
include T

Loading…
Cancel
Save