Skip to content

Commit a4cc2cc

Browse files
committed
finish the test process on STOP
1 parent 048d31b commit a4cc2cc

File tree

2 files changed

+0
-25
lines changed

2 files changed

+0
-25
lines changed

kevm-pyk/src/tests/integration/test_summarize.py

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -47,30 +47,7 @@ def test_summarize(opcode: str) -> None:
4747
claims.append(successor.to_rule(f'{opcode}-SUMMARY', claim = True))
4848

4949
# prove the correctness of the summary
50-
# KRequire('edsl.md'),
51-
# module = KFlatModule(f'{opcode}-SUMMARY', claims)
52-
# with open(summarizer.save_directory / proof.id / f'{opcode.lower()}-summary.k', 'w') as f:
53-
# res_lines = 'requires "edsl.md"\n'
54-
# res_lines += summarizer.kevm.pretty_print(module)
55-
# splited_lines = res_lines.split('\n')
56-
# splited_lines.insert(2, ' imports public EDSL')
57-
# res_lines = '\n'.join(splited_lines)
58-
# f.write(res_lines)
59-
60-
# int = 0
61-
# print(len(claims))
62-
# proof_result = summarizer.explore(APRProof.from_claim(summarizer.kevm.definition, claims[2], {}, summarizer.proof_dir))
63-
# print(proof_result)
6450
for claim in claims:
6551
assert summarizer.explore(APRProof.from_claim(summarizer.kevm.definition, claim, {}, summarizer.proof_dir))
66-
# # TODO: fix the sort issue caused by `APRProof.from_claim`
67-
# # print(f'validating {claim.att[Atts.LABEL]}')
68-
# # _subst = {'_USEGAS_CELL': KVariable('_USEGAS_CELL', sort = 'Bool')}
69-
# # subst = CSubst(Subst(_subst), ())
70-
# summary_proof = APRProof.from_claim(summarizer.kevm.definition, claim, {}, summarizer.proof_dir)
71-
# # summary_proof.kcfg.let_node(1, cterm = subst(summary_proof.kcfg.get_node(1).cterm), attrs = summary_proof.kcfg.get_node(1).attrs)
72-
# proof_result = summarizer.explore(summary_proof)
73-
# # print(f'{claim.att[Atts.LABEL]} proof result: {proof_result}')
74-
# assert proof_result
7552
else:
7653
pytest.skip(f'{opcode} ignored')

xx

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)