certora-cli-alpha-master 20241219.14.2.692388__tar.gz → 20241219.16.13.477788__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. {certora_cli_alpha_master-20241219.14.2.692388/certora_cli_alpha_master.egg-info → certora_cli_alpha_master-20241219.16.13.477788}/PKG-INFO +2 -2
  2. certora_cli_alpha_master-20241219.16.13.477788/README.md +1 -0
  3. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_cli/EVMVerifier/certoraContext.py +10 -4
  4. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_cli/EVMVerifier/certoraContextAttributes.py +8 -9
  5. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_cli/EVMVerifier/certoraParseBuildScript.py +5 -5
  6. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788/certora_cli_alpha_master.egg-info}/PKG-INFO +2 -2
  7. certora_cli_alpha_master-20241219.16.13.477788/certora_jars/CERTORA-CLI-VERSION-METADATA.json +1 -0
  8. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_jars/Typechecker.jar +0 -0
  9. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/setup.py +2 -2
  10. certora_cli_alpha_master-20241219.14.2.692388/README.md +0 -1
  11. certora_cli_alpha_master-20241219.14.2.692388/certora_jars/CERTORA-CLI-VERSION-METADATA.json +0 -1
  12. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/LICENSE +0 -0
  13. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/MANIFEST.in +0 -0
  14. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_bins/__init__.py +0 -0
  15. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_cli/EVMVerifier/Compiler/CompilerCollector.py +0 -0
  16. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_cli/EVMVerifier/Compiler/CompilerCollectorFactory.py +0 -0
  17. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_cli/EVMVerifier/Compiler/CompilerCollectorSol.py +0 -0
  18. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_cli/EVMVerifier/Compiler/CompilerCollectorSolBased.py +0 -0
  19. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_cli/EVMVerifier/Compiler/CompilerCollectorVy.py +0 -0
  20. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_cli/EVMVerifier/Compiler/CompilerCollectorYul.py +0 -0
  21. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_cli/EVMVerifier/Compiler/__init__.py +0 -0
  22. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_cli/EVMVerifier/__init__.py +0 -0
  23. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_cli/EVMVerifier/certoraBuild.py +0 -0
  24. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_cli/EVMVerifier/certoraBuildCacheManager.py +0 -0
  25. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_cli/EVMVerifier/certoraBuildDataClasses.py +0 -0
  26. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_cli/EVMVerifier/certoraCloudIO.py +0 -0
  27. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_cli/EVMVerifier/certoraCollectRunMetadata.py +0 -0
  28. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_cli/EVMVerifier/certoraCompilerParameters.py +0 -0
  29. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_cli/EVMVerifier/certoraConfigIO.py +0 -0
  30. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_cli/EVMVerifier/certoraContextClass.py +0 -0
  31. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_cli/EVMVerifier/certoraContextValidator.py +0 -0
  32. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_cli/EVMVerifier/certoraContractFuncs.py +0 -0
  33. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_cli/EVMVerifier/certoraExtensionInfo.py +0 -0
  34. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_cli/EVMVerifier/certoraJobList.py +0 -0
  35. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_cli/EVMVerifier/certoraMiniSpecParser.py +0 -0
  36. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_cli/EVMVerifier/certoraNodeFilters.py +0 -0
  37. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_cli/EVMVerifier/certoraSourceFinders.py +0 -0
  38. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_cli/EVMVerifier/certoraType.py +0 -0
  39. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_cli/EVMVerifier/certoraVerifyGenerator.py +0 -0
  40. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_cli/EquivalenceCheck/Eq_default.conf +0 -0
  41. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_cli/EquivalenceCheck/Eq_mc_no_out_template.spec +0 -0
  42. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_cli/EquivalenceCheck/Eq_mc_template.spec +0 -0
  43. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_cli/EquivalenceCheck/Eq_sanity.conf +0 -0
  44. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_cli/EquivalenceCheck/Eq_template.spec +0 -0
  45. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_cli/EquivalenceCheck/__init__.py +0 -0
  46. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_cli/EquivalenceCheck/equivCheck.py +0 -0
  47. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_cli/EquivalenceCheck/sanity.spec +0 -0
  48. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_cli/Mutate/__init__.py +0 -0
  49. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_cli/Mutate/mutateApp.py +0 -0
  50. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_cli/Mutate/mutateAttributes.py +0 -0
  51. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_cli/Mutate/mutateConstants.py +0 -0
  52. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_cli/Mutate/mutateUtil.py +0 -0
  53. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_cli/Mutate/mutateValidate.py +0 -0
  54. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_cli/Shared/ExpectedComparator.py +0 -0
  55. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_cli/Shared/__init__.py +0 -0
  56. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_cli/Shared/certoraAttrUtil.py +0 -0
  57. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_cli/Shared/certoraLogging.py +0 -0
  58. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_cli/Shared/certoraUtils.py +0 -0
  59. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_cli/Shared/certoraValidateFuncs.py +0 -0
  60. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_cli/__init__.py +0 -0
  61. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_cli/certoraEqCheck.py +0 -0
  62. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_cli/certoraMutate.py +0 -0
  63. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_cli/certoraRun.py +0 -0
  64. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_cli/certoraSolanaProver.py +0 -0
  65. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_cli/rustMutator.py +0 -0
  66. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_cli_alpha_master.egg-info/SOURCES.txt +0 -0
  67. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_cli_alpha_master.egg-info/dependency_links.txt +0 -0
  68. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_cli_alpha_master.egg-info/entry_points.txt +0 -0
  69. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_cli_alpha_master.egg-info/requires.txt +0 -0
  70. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_cli_alpha_master.egg-info/top_level.txt +0 -0
  71. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/certora_jars/__init__.py +0 -0
  72. {certora_cli_alpha_master-20241219.14.2.692388 → certora_cli_alpha_master-20241219.16.13.477788}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: certora-cli-alpha-master
3
- Version: 20241219.14.2.692388
3
+ Version: 20241219.16.13.477788
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 fbf627f. Build and Run scripts for executing the Certora Prover on Solidity smart contracts.
26
+ Commit 6339cbf. Build and Run scripts for executing the Certora Prover on Solidity smart contracts.
@@ -0,0 +1 @@
1
+ Commit 6339cbf. Build and Run scripts for executing the Certora Prover on Solidity smart contracts.
@@ -1,10 +1,10 @@
1
1
  import argparse
2
2
  import hashlib
3
3
  import json
4
- import logging
5
4
  import os
6
5
  import re
7
6
  import sys
7
+ import logging
8
8
 
9
9
 
10
10
  from pathlib import Path
@@ -106,9 +106,15 @@ def get_local_run_cmd(context: CertoraContext) -> str:
106
106
  @return: A command for running the prover locally
107
107
  """
108
108
  run_args = []
109
- if context.is_tac or Attrs.is_rust_app():
109
+
110
+ if hasattr(context, 'rust_executables'):
111
+ run_args.append(os.path.join(context.rust_project_directory, context.rust_executables))
112
+ elif context.is_tac or Attrs.is_rust_app():
110
113
  # For Rust app we assume the files holds the executable for the prover, currently we support a single file
111
- run_args.append(context.files[0])
114
+ try:
115
+ run_args.append(context.files[0])
116
+ except Exception:
117
+ raise RuntimeError("get_local_run_cmd: cannot find context.files[0]")
112
118
 
113
119
  if Attrs.is_evm_app() and context.cache is not None:
114
120
  run_args.extend(['-cache', context.cache])
@@ -231,7 +237,7 @@ def get_args(args_list: Optional[List[str]] = None) -> CertoraContext:
231
237
 
232
238
  validator = Cv.CertoraContextValidator(context)
233
239
  validator.validate()
234
- if Attrs.is_evm_app():
240
+ if Attrs.is_evm_app() or Attrs.is_rust_app():
235
241
  current_build_directory = Util.get_build_dir()
236
242
  if context.build_dir is not None and current_build_directory != context.build_dir:
237
243
  Util.reset_certora_internal_dir(context.build_dir)
@@ -161,6 +161,14 @@ class CommonAttributes(AttrUtil.Attributes):
161
161
  disables_build_cache=False
162
162
  )
163
163
 
164
+ BUILD_DIR = AttrUtil.AttributeDefinition(
165
+ attr_validation_func=Vf.validate_build_dir,
166
+ argparse_args={
167
+ 'action': AttrUtil.UniqueStore
168
+ },
169
+ affects_build_cache_key=False,
170
+ disables_build_cache=False
171
+ )
164
172
 
165
173
  class DeprecatedAttributes(AttrUtil.Attributes):
166
174
  AUTO_NONDET_DIFFICULT_INTERNAL_FUNCS = AttrUtil.AttributeDefinition(
@@ -639,15 +647,6 @@ class EvmAttributes(AttrUtil.Attributes):
639
647
  disables_build_cache=False
640
648
  )
641
649
 
642
- BUILD_DIR = AttrUtil.AttributeDefinition(
643
- attr_validation_func=Vf.validate_build_dir,
644
- argparse_args={
645
- 'action': AttrUtil.UniqueStore
646
- },
647
- affects_build_cache_key=False,
648
- disables_build_cache=False
649
- )
650
-
651
650
  DISABLE_LOCAL_TYPECHECKING = AttrUtil.AttributeDefinition(
652
651
  arg_type=AttrUtil.AttrArgType.BOOLEAN,
653
652
  argparse_args={
@@ -1,19 +1,19 @@
1
1
  import subprocess
2
2
  import json
3
- from pathlib import Path
3
+ import logging
4
4
 
5
5
  from EVMVerifier.certoraContextClass import CertoraContext
6
6
  from Shared import certoraUtils as Util
7
- import os
7
+
8
+ build_script_logger = logging.getLogger("build_script")
8
9
 
9
10
 
10
11
  def run_script_and_parse_json(context: CertoraContext) -> None:
11
12
  if not context.build_script:
12
13
  return
13
14
  try:
14
- env = os.environ.copy()
15
- result = subprocess.run(["python3", Path(context.build_script).resolve(), '--json'], capture_output=True, text=True,
16
- env=env, cwd=Path(context.build_script).resolve().parent)
15
+ build_script_logger.info(f"Building from script {context.build_script}")
16
+ result = subprocess.run([context.build_script, '--json'], capture_output=True, text=True)
17
17
 
18
18
  # Check if the script executed successfully
19
19
  if result.returncode != 0:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: certora-cli-alpha-master
3
- Version: 20241219.14.2.692388
3
+ Version: 20241219.16.13.477788
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 fbf627f. Build and Run scripts for executing the Certora Prover on Solidity smart contracts.
26
+ Commit 6339cbf. Build and Run scripts for executing the Certora Prover on Solidity smart contracts.
@@ -0,0 +1 @@
1
+ {"name": "certora-cli-alpha-master", "tag": "", "branch": "master", "commit": "6339cbf", "timestamp": "20241219.16.13.477788", "version": "20241219.16.13.477788+6339cbf"}
@@ -3,11 +3,11 @@ import setuptools
3
3
 
4
4
  setuptools.setup(
5
5
  name="certora-cli-alpha-master",
6
- version="20241219.14.2.692388",
6
+ version="20241219.16.13.477788",
7
7
  author="Certora",
8
8
  author_email="support@certora.com",
9
9
  description="Runner for the Certora Prover",
10
- long_description="Commit fbf627f. Build and Run scripts for executing the Certora Prover on Solidity smart contracts.",
10
+ long_description="Commit 6339cbf. Build and Run scripts for executing the Certora Prover on Solidity smart contracts.",
11
11
  long_description_content_type="text/markdown",
12
12
  url="https://pypi.org/project/certora-cli-alpha-master",
13
13
  packages=setuptools.find_packages(),
@@ -1 +0,0 @@
1
- Commit fbf627f. Build and Run scripts for executing the Certora Prover on Solidity smart contracts.
@@ -1 +0,0 @@
1
- {"name": "certora-cli-alpha-master", "tag": "", "branch": "master", "commit": "fbf627f", "timestamp": "20241219.14.2.692388", "version": "20241219.14.2.692388+fbf627f"}