@@ -377,11 +377,11 @@ class EGraphDecl:
377377 def __hash__ (self ) -> int :
378378 return hash ((
379379 type (self ),
380- tuple (self .let_bindings .items ()),
381- tuple ((value , tp , exprs ) for value , (tp , exprs ) in self .e_classes .items ()),
382- tuple (self .sets .items ()),
380+ frozenset (self .let_bindings .items ()),
381+ frozenset ((value , tp , exprs ) for value , (tp , exprs ) in self .e_classes .items ()),
382+ frozenset (self .sets .items ()),
383383 self .expr_actions ,
384- tuple (self .costs .items ()),
384+ frozenset (self .costs .items ()),
385385 self .subsumed ,
386386 ))
387387
@@ -509,7 +509,7 @@ def to_grounded(expr: ExprDecl) -> ExprDecl:
509509 )
510510 actions .extend (ChangeDecl (tp , cast ("CallDecl" , to_grounded (call )), "subsume" ) for tp , call in self .subsumed )
511511
512- # Now add any remaining call s that weren't part of any other actions
512+ # Now add any remaining calls that weren't part of any other actions
513513 actions .extend (
514514 ExprActionDecl (TypedExprDecl (tp , to_grounded (expr )))
515515 for (tp , expr ) in single_e_class_calls
0 commit comments