certora-cli-alpha-master 20250526.10.46.667239__py3-none-any.whl → 20250526.12.4.11266__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- certora_cli/CertoraProver/certoraBuild.py +15 -7
- {certora_cli_alpha_master-20250526.10.46.667239.dist-info → certora_cli_alpha_master-20250526.12.4.11266.dist-info}/METADATA +2 -2
- {certora_cli_alpha_master-20250526.10.46.667239.dist-info → certora_cli_alpha_master-20250526.12.4.11266.dist-info}/RECORD +9 -9
- certora_jars/CERTORA-CLI-VERSION-METADATA.json +1 -1
- certora_jars/Typechecker.jar +0 -0
- {certora_cli_alpha_master-20250526.10.46.667239.dist-info → certora_cli_alpha_master-20250526.12.4.11266.dist-info}/LICENSE +0 -0
- {certora_cli_alpha_master-20250526.10.46.667239.dist-info → certora_cli_alpha_master-20250526.12.4.11266.dist-info}/WHEEL +0 -0
- {certora_cli_alpha_master-20250526.10.46.667239.dist-info → certora_cli_alpha_master-20250526.12.4.11266.dist-info}/entry_points.txt +0 -0
- {certora_cli_alpha_master-20250526.10.46.667239.dist-info → certora_cli_alpha_master-20250526.12.4.11266.dist-info}/top_level.txt +0 -0
@@ -3542,8 +3542,9 @@ class CertoraBuildGenerator:
|
|
3542
3542
|
raise Util.CertoraUserInputError(f"collect_sources: {path_to_file} does not exist cwd - {Path.cwd()}."
|
3543
3543
|
f"abs - {os.path.normpath(Path.cwd() / path_to_file)}")
|
3544
3544
|
|
3545
|
-
sources = set()
|
3546
|
-
|
3545
|
+
sources = set(sources_from_SDCs)
|
3546
|
+
if context.files:
|
3547
|
+
sources.update(Path(p) for p in context.files) # all files in "files" attribute are uploaded
|
3547
3548
|
sources |= certora_verify_generator.get_spec_files()
|
3548
3549
|
if Util.PACKAGE_FILE.exists():
|
3549
3550
|
add_to_sources(Util.PACKAGE_FILE)
|
@@ -3652,7 +3653,8 @@ def build_source_tree(sources: Set[Path], context: CertoraContext, overwrite: bo
|
|
3652
3653
|
build_logger.debug("Couldn't copy repro conf to certora sources.", exc_info=e)
|
3653
3654
|
raise
|
3654
3655
|
|
3655
|
-
def build_from_scratch(
|
3656
|
+
def build_from_scratch(context: CertoraContext,
|
3657
|
+
certora_build_generator: CertoraBuildGenerator,
|
3656
3658
|
certora_verify_generator: CertoraVerifyGenerator,
|
3657
3659
|
build_cache_enabled: bool) -> CachedFiles:
|
3658
3660
|
"""
|
@@ -3678,9 +3680,15 @@ def build_from_scratch(certora_build_generator: CertoraBuildGenerator,
|
|
3678
3680
|
may_store_in_build_cache = True
|
3679
3681
|
absolute_sources_dir = Util.get_certora_sources_dir().absolute()
|
3680
3682
|
for sdc in certora_build_generator.SDCs.values():
|
3683
|
+
|
3684
|
+
# add to cache also source files that were found in the SDCs (e.g., storage extensions)
|
3685
|
+
paths_set = sdc.all_contract_files
|
3686
|
+
for p in context.files:
|
3687
|
+
paths_set.add(Path(p).absolute())
|
3688
|
+
|
3681
3689
|
# the contract files in SDCs are relative to .certora_sources. Which isn't good for us here.
|
3682
3690
|
# Need to be relative to original paths
|
3683
|
-
for f in
|
3691
|
+
for f in paths_set:
|
3684
3692
|
if is_relative_to(f, absolute_sources_dir):
|
3685
3693
|
rel_f = f.relative_to(absolute_sources_dir)
|
3686
3694
|
else:
|
@@ -3729,7 +3737,7 @@ def build_from_cache_or_scratch(context: CertoraContext,
|
|
3729
3737
|
cached_files: Optional[CachedFiles] = None
|
3730
3738
|
|
3731
3739
|
if not context.build_cache:
|
3732
|
-
cached_files = build_from_scratch(certora_build_generator,
|
3740
|
+
cached_files = build_from_scratch(context, certora_build_generator,
|
3733
3741
|
certora_verify_generator,
|
3734
3742
|
False)
|
3735
3743
|
return cache_hit, False, cached_files
|
@@ -3740,7 +3748,7 @@ def build_from_cache_or_scratch(context: CertoraContext,
|
|
3740
3748
|
build_cache_disabling_options = certora_build_cache_manager.cache_disabling_options(context)
|
3741
3749
|
build_logger.warning("Requested to enable the build cache, but the build cache is not applicable "
|
3742
3750
|
f"to this run because of the given options: {build_cache_disabling_options}")
|
3743
|
-
cached_files = build_from_scratch(certora_build_generator,
|
3751
|
+
cached_files = build_from_scratch(context, certora_build_generator,
|
3744
3752
|
certora_verify_generator,
|
3745
3753
|
False)
|
3746
3754
|
return cache_hit, False, cached_files
|
@@ -3766,7 +3774,7 @@ def build_from_cache_or_scratch(context: CertoraContext,
|
|
3766
3774
|
cache_hit = True
|
3767
3775
|
else:
|
3768
3776
|
# rebuild
|
3769
|
-
cached_files = build_from_scratch(certora_build_generator,
|
3777
|
+
cached_files = build_from_scratch(context, certora_build_generator,
|
3770
3778
|
certora_verify_generator,
|
3771
3779
|
True)
|
3772
3780
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: certora-cli-alpha-master
|
3
|
-
Version: 20250526.
|
3
|
+
Version: 20250526.12.4.11266
|
4
4
|
Summary: Runner for the Certora Prover
|
5
5
|
Home-page: https://pypi.org/project/certora-cli-alpha-master
|
6
6
|
Author: Certora
|
@@ -37,4 +37,4 @@ Dynamic: requires-dist
|
|
37
37
|
Dynamic: requires-python
|
38
38
|
Dynamic: summary
|
39
39
|
|
40
|
-
Commit
|
40
|
+
Commit fb0ab44. Build and Run scripts for executing the Certora Prover on Solidity smart contracts.
|
@@ -9,7 +9,7 @@ certora_cli/certoraSolanaProver.py,sha256=7hu-YJJNA_P5eAJq_jYh6IGjiUf0PegGUBRCJ5
|
|
9
9
|
certora_cli/certoraSorobanProver.py,sha256=qE6b_vicC8KgOvUz7UTOaDuXT3UW0MMhq3keQgUVvzs,2865
|
10
10
|
certora_cli/rustMutator.py,sha256=6AvOGU8Ijz89zW_ZJCWlfXkeobJsk7EsqZhK7Eqwn-Y,14544
|
11
11
|
certora_cli/CertoraProver/__init__.py,sha256=QHNr-PJQAoyuPgTkO7gg23GRchiWSXglWNG7yLSQZvs,849
|
12
|
-
certora_cli/CertoraProver/certoraBuild.py,sha256=
|
12
|
+
certora_cli/CertoraProver/certoraBuild.py,sha256=WMaRg4VNdH_1k-GTfv-0USfIkQ7Gtdg3Y23bZHQVLVQ,212071
|
13
13
|
certora_cli/CertoraProver/certoraBuildCacheManager.py,sha256=dzXC8A-V9gr1GGsPYglQLlFLoR2Tk4dTJuMHaxXBfgw,13257
|
14
14
|
certora_cli/CertoraProver/certoraBuildDataClasses.py,sha256=8tPny9-pasC7CCRKQclaVQ3qcEDNa6EdOUu1ZWh0MZY,14704
|
15
15
|
certora_cli/CertoraProver/certoraBuildRust.py,sha256=l81mZHGOhfSL8jme6I_O_aAiu3wxdHAg-jPEFQvFFdg,5936
|
@@ -64,12 +64,12 @@ certora_cli/Shared/certoraUtils.py,sha256=fWb0-zZMCT_lRvhaPhf8GeXUySW6I0enChv1aO
|
|
64
64
|
certora_cli/Shared/certoraValidateFuncs.py,sha256=WG4UiyES8u49o3XmuRIvNf79rcpWFuCKtV__QUptOEQ,41852
|
65
65
|
certora_cli/Shared/proverCommon.py,sha256=-Lw6_zEIlPA7i_n6xOUsmJeUKjqYWAnGW9GKWBB_GC0,11171
|
66
66
|
certora_cli/Shared/rustProverCommon.py,sha256=NIZ5ECbhuiMegyRAl07CV3r68MFG2tBNKgUAQoV4uLI,2049
|
67
|
-
certora_jars/CERTORA-CLI-VERSION-METADATA.json,sha256=
|
68
|
-
certora_jars/Typechecker.jar,sha256=
|
67
|
+
certora_jars/CERTORA-CLI-VERSION-METADATA.json,sha256=Z5fTvHoKmZzYhjb3QApl0TWAxkJtDRGcotEdLTpIZgI,168
|
68
|
+
certora_jars/Typechecker.jar,sha256=YmHkpQvlOMlyWMVGwrG1zP2g54WRTVwCFhPOvtxnEvM,17137905
|
69
69
|
certora_jars/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
70
|
-
certora_cli_alpha_master-20250526.
|
71
|
-
certora_cli_alpha_master-20250526.
|
72
|
-
certora_cli_alpha_master-20250526.
|
73
|
-
certora_cli_alpha_master-20250526.
|
74
|
-
certora_cli_alpha_master-20250526.
|
75
|
-
certora_cli_alpha_master-20250526.
|
70
|
+
certora_cli_alpha_master-20250526.12.4.11266.dist-info/LICENSE,sha256=UGKSKIJSetF8m906JLKqNLkUS2CL60XfQdNvxBvpQXo,620
|
71
|
+
certora_cli_alpha_master-20250526.12.4.11266.dist-info/METADATA,sha256=vAkoH7AfEB2W8grElDQcfbm3Y3G0LXK7MHiFpA-Fmis,1246
|
72
|
+
certora_cli_alpha_master-20250526.12.4.11266.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
|
73
|
+
certora_cli_alpha_master-20250526.12.4.11266.dist-info/entry_points.txt,sha256=_SQ5_uYOAJXtqEW992nIvq7blW9cWFSUVEdbMGuy--4,443
|
74
|
+
certora_cli_alpha_master-20250526.12.4.11266.dist-info/top_level.txt,sha256=8C77w3JLanY0-NW45vpJsjRssyCqVP-qmPiN9FjWiX4,38
|
75
|
+
certora_cli_alpha_master-20250526.12.4.11266.dist-info/RECORD,,
|
@@ -1 +1 @@
|
|
1
|
-
{"name": "certora-cli-alpha-master", "tag": "", "branch": "master", "commit": "
|
1
|
+
{"name": "certora-cli-alpha-master", "tag": "", "branch": "master", "commit": "fb0ab44", "timestamp": "20250526.12.4.011266", "version": "20250526.12.4.011266+fb0ab44"}
|
certora_jars/Typechecker.jar
CHANGED
Binary file
|
File without changes
|
File without changes
|
File without changes
|