Skip to content
Snippets Groups Projects
Commit 311bca9c authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Merge branch 'persist-hash-predicates-call' into 'master'

Fix update_persistent_hash for CallInstruction with predicates (Closes #58 on gitlab)

Closes #58

See merge request !99
parents 2f0cac0b 515d6f80
No related branches found
No related tags found
No related merge requests found
......@@ -999,6 +999,11 @@ class CallInstruction(MultiAssignmentBase):
if field_name in ["assignees", "expression"]:
key_builder.update_for_pymbolic_expression(
key_hash, getattr(self, field_name))
elif field_name == "predicates":
preds = sorted(self.predicates, key=str)
for pred in preds:
key_builder.update_for_pymbolic_expression(
key_hash, pred)
else:
key_builder.rec(key_hash, getattr(self, field_name))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment