certora-cli-alpha-master 20241218.9.15.614352__py3-none-macosx_10_9_universal2.whl → 20241218.11.17.90997__py3-none-macosx_10_9_universal2.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -1577,7 +1577,17 @@ class CertoraBuildGenerator:
1577
1577
  while queue:
1578
1578
  pop = queue.pop(0)
1579
1579
  if isinstance(pop, dict) and node_id_attrb in pop:
1580
- container[int(pop[node_id_attrb])] = pop
1580
+ idAttr = pop[node_id_attrb]
1581
+ if isinstance(idAttr, int):
1582
+ container[int(idAttr)] = pop
1583
+ elif isinstance(idAttr, list) and len(idAttr) == 1 and isinstance(idAttr[0], int):
1584
+ # In the bug reported in https://certora.atlassian.net/browse/CERT-7643 the id field is a list
1585
+ # instead of a single integer - we except that the first element of the list is the actual id
1586
+ # and unpack it.
1587
+ container[int(idAttr[0])] = pop
1588
+ else:
1589
+ raise Exception(f"Unexpected type of attribute `{node_id_attrb}`, was {idAttr}, expected an integer or an int-typed list of length 1")
1590
+
1581
1591
  for key, value in pop.items():
1582
1592
  if (node_type_attrb in pop and
1583
1593
  pop[node_type_attrb] == "InlineAssembly" and key == "externalReferences"):
@@ -765,7 +765,11 @@ class CloudVerification:
765
765
  short_output=Ctx.is_minimal_cli_output(self.context))
766
766
  elif Attrs.is_evm_app() and self.context.is_bytecode:
767
767
  # We zip the bytecode jsons and the spec
768
- paths = []
768
+ paths = [Util.get_certora_build_file(), Util.get_certora_verify_file(),
769
+ Util.get_certora_metadata_file()]
770
+ if Util.get_certora_sources_dir().exists():
771
+ paths.append(Util.get_certora_sources_dir())
772
+
769
773
  for bytecode_json in self.context.bytecode_jsons:
770
774
  paths.append(Path(bytecode_json))
771
775
  paths.append(Path(self.context.bytecode_spec))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: certora-cli-alpha-master
3
- Version: 20241218.9.15.614352
3
+ Version: 20241218.11.17.90997
4
4
  Summary: Runner for the Certora Prover
5
5
  Home-page: https://pypi.org/project/certora-cli-alpha-master
6
6
  Author: Certora
@@ -23,4 +23,4 @@ Requires-Dist: StrEnum
23
23
  Requires-Dist: tomli
24
24
  Requires-Dist: universalmutator
25
25
 
26
- Commit e8f20ac. Build and Run scripts for executing the Certora Prover on Solidity smart contracts.
26
+ Commit d6bc648. Build and Run scripts for executing the Certora Prover on Solidity smart contracts.
@@ -7,10 +7,10 @@ certora_cli/certoraRun.py,sha256=rnczNnSoYRuUKOkIN7_0cRxjiVDK0x4NJxOT4KNkYdg,118
7
7
  certora_cli/certoraSolanaProver.py,sha256=3Vb05zd5PqkU5CmCNzYvmYfbC-hsmU6Tt390msjQlOc,5898
8
8
  certora_cli/rustMutator.py,sha256=wSE_4qDegDhItxHw7dtcFzDMgYCTsVxW4yFGxYRHlQc,14418
9
9
  certora_cli/EVMVerifier/__init__.py,sha256=AJxj90KAGh1JqAsxKqDBTL2rFbqgtkhDfW_XmxSHft0,159
10
- certora_cli/EVMVerifier/certoraBuild.py,sha256=omIs-4cQWR-IT3WTckXMZe9EZMyk2e-hSfRqG7iQJHo,203131
10
+ certora_cli/EVMVerifier/certoraBuild.py,sha256=TqPfOSjcuY0zWJYTx1d401zJdIbnLyECa9T5koXRKzM,203842
11
11
  certora_cli/EVMVerifier/certoraBuildCacheManager.py,sha256=ZSVCsdTkFFtawuNJ8VK3wJOb01Uyu5e8viPQ8wTziSQ,12563
12
12
  certora_cli/EVMVerifier/certoraBuildDataClasses.py,sha256=4IhvOA_fg-ij5RM9RRlvDDoS7imfp4Zru-AgHhxcHc0,13314
13
- certora_cli/EVMVerifier/certoraCloudIO.py,sha256=ZZDjMsSkp0ZN5IA1JczhJa2m16s0nC3DBcHHDv5J2kc,54931
13
+ certora_cli/EVMVerifier/certoraCloudIO.py,sha256=b26JbU3aTEU0BO7gIlJ14tosQfv3wgVqRRqm80WVF9w,55165
14
14
  certora_cli/EVMVerifier/certoraCollectRunMetadata.py,sha256=selEf-p7UW8_70-AbPfa5659ki6WcGrBwfPkUQWKhFU,10322
15
15
  certora_cli/EVMVerifier/certoraCompilerParameters.py,sha256=PDKW3K_lNeRNPHisW0e5hYtfu6unDRjJUop-yItGHO0,762
16
16
  certora_cli/EVMVerifier/certoraConfigIO.py,sha256=oyNOyBjVWFfB1dmj0jNnEwvokM7UMoGZ91luSh-cFGk,4634
@@ -54,12 +54,12 @@ certora_cli/Shared/certoraAttrUtil.py,sha256=IbIIvTbtPzmPSSrK7VIWZNitkz1iwvW_e0g
54
54
  certora_cli/Shared/certoraLogging.py,sha256=5Lx-XWKl7GnwnWi7KlwTLIfsEvUvCTZ8KeyfNyi_6RU,13323
55
55
  certora_cli/Shared/certoraUtils.py,sha256=8EGXrxfIxu34VTx46QeTx6tTYLdwpTLT9ulVQijmD9Y,53624
56
56
  certora_cli/Shared/certoraValidateFuncs.py,sha256=OOjPAkcfrURZDD4oDjOMBFTvY6wwQSXboXzu-47AUbY,36871
57
- certora_jars/CERTORA-CLI-VERSION-METADATA.json,sha256=oIHEsPv6EWW2eY3zHtD5Rw2BXE4rMIT5tvpXReiO028,168
58
- certora_jars/Typechecker.jar,sha256=3TMGXhPUE0ZA7VL2s1pBssueSZHz4tizjU_VWw8D9l4,16680403
57
+ certora_jars/CERTORA-CLI-VERSION-METADATA.json,sha256=aJr_phqKl46UGt4gmHz0aUh9e_5wcBfsgpvfpSQ0peY,170
58
+ certora_jars/Typechecker.jar,sha256=nhqacPa2WbEFydquWqRMYE7e9QrTk02D-i14bq234qY,16684237
59
59
  certora_jars/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
60
- certora_cli_alpha_master-20241218.9.15.614352.dist-info/LICENSE,sha256=VeEBJLgfzZqyAUfjLoKUztf7KJBBUjtZ1ap99eQubOo,1065
61
- certora_cli_alpha_master-20241218.9.15.614352.dist-info/METADATA,sha256=hSOGVkYCHixaTeWME2D0tE3u61SxlzDnEc9UAv7Xq6s,837
62
- certora_cli_alpha_master-20241218.9.15.614352.dist-info/WHEEL,sha256=N3Zagyg8u7FcZiPCx4UnuNyRRYq7IQpu24eWYyuhGOQ,110
63
- certora_cli_alpha_master-20241218.9.15.614352.dist-info/entry_points.txt,sha256=Y90wInBDlKPSU3YnuTn3JqAsSgPRTDHc8lf6BfKILjY,261
64
- certora_cli_alpha_master-20241218.9.15.614352.dist-info/top_level.txt,sha256=8C77w3JLanY0-NW45vpJsjRssyCqVP-qmPiN9FjWiX4,38
65
- certora_cli_alpha_master-20241218.9.15.614352.dist-info/RECORD,,
60
+ certora_cli_alpha_master-20241218.11.17.90997.dist-info/LICENSE,sha256=VeEBJLgfzZqyAUfjLoKUztf7KJBBUjtZ1ap99eQubOo,1065
61
+ certora_cli_alpha_master-20241218.11.17.90997.dist-info/METADATA,sha256=pEPwRQH9M1NcNL9WibB5WS4oVvEIlodkpRbIR-w92SM,837
62
+ certora_cli_alpha_master-20241218.11.17.90997.dist-info/WHEEL,sha256=N3Zagyg8u7FcZiPCx4UnuNyRRYq7IQpu24eWYyuhGOQ,110
63
+ certora_cli_alpha_master-20241218.11.17.90997.dist-info/entry_points.txt,sha256=Y90wInBDlKPSU3YnuTn3JqAsSgPRTDHc8lf6BfKILjY,261
64
+ certora_cli_alpha_master-20241218.11.17.90997.dist-info/top_level.txt,sha256=8C77w3JLanY0-NW45vpJsjRssyCqVP-qmPiN9FjWiX4,38
65
+ certora_cli_alpha_master-20241218.11.17.90997.dist-info/RECORD,,
@@ -1 +1 @@
1
- {"name": "certora-cli-alpha-master", "tag": "", "branch": "master", "commit": "e8f20ac", "timestamp": "20241218.9.15.614352", "version": "20241218.9.15.614352+e8f20ac"}
1
+ {"name": "certora-cli-alpha-master", "tag": "", "branch": "master", "commit": "d6bc648", "timestamp": "20241218.11.17.090997", "version": "20241218.11.17.090997+d6bc648"}
Binary file