@@ -47,30 +47,7 @@ def test_summarize(opcode: str) -> None:
47
47
claims .append (successor .to_rule (f'{ opcode } -SUMMARY' , claim = True ))
48
48
49
49
# 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)
64
50
for claim in claims :
65
51
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
75
52
else :
76
53
pytest .skip (f'{ opcode } ignored' )
0 commit comments