Skip to content

Commit

Permalink
Merge pull request #47 from NethermindEth/ElijahVlasov/meaningful-ass…
Browse files Browse the repository at this point in the history
…ert-labels

Make assert labels more meaningful
  • Loading branch information
ElijahVlasov authored Jan 19, 2023
2 parents 5c5e04b + a5e95b3 commit db1e3a4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ skip_gitignore = true

[tool.poetry]
name = "horus-compile"
version = "0.0.6.4"
version = "0.0.6.5"
authors = ["Nethermind <[email protected]>"]
description = "Use formally verified annotations in your Cairo code"
classifiers = [
Expand Down
2 changes: 1 addition & 1 deletion src/horus/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.0.6.4"
__version__ = "0.0.6.5"
2 changes: 1 addition & 1 deletion src/horus/compiler/preprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def add_dummy_label_with_assert(self, assrt: CodeElementCheck):
)
)

name = f"!dummy_label_{self.current_fresh_index}"
name = f"!anonymous_assert_label_{self.current_fresh_index}"
self.current_fresh_index += 1
self.identifiers.add_identifier(
name=self.current_scope + name,
Expand Down
2 changes: 1 addition & 1 deletion tests/golden/assert_test.gold
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"invariants": {
"__main__.main.!dummy_label_0": {
"__main__.main.!anonymous_assert_label_0": {
"sexpr": [
"(= 1 (memory ap))"
],
Expand Down

0 comments on commit db1e3a4

Please sign in to comment.