-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize performance of code optimizer
Ref. eng/recordflux/RecordFlux#1525
- Loading branch information
Showing
9 changed files
with
15,183 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
usage: rflx optimize [-h] DIRECTORY | ||
usage: rflx optimize [-h] [--timeout TIMEOUT] DIRECTORY | ||
|
||
positional arguments: | ||
DIRECTORY directory containing the generated code | ||
DIRECTORY directory containing the generated code | ||
|
||
options: | ||
-h, --help show this help message and exit | ||
-h, --help show this help message and exit | ||
--timeout TIMEOUT prover timeout in seconds (default: 1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
from __future__ import annotations | ||
|
||
import typing as ty | ||
|
||
from pydantic import BaseModel | ||
|
||
|
||
class ProofAttempt(BaseModel): | ||
result: str | ||
steps: int | ||
time: int | ||
|
||
|
||
class CheckTreeElement(BaseModel): | ||
proof_attempts: ty.Mapping[str, ProofAttempt] | ||
|
||
|
||
class Proof(BaseModel): | ||
file: str | ||
line: int | ||
col: int | ||
rule: str | ||
check_tree: ty.Sequence[CheckTreeElement] | ||
|
||
|
||
class SPARKFile(BaseModel): | ||
proof: ty.Sequence[Proof] |
Oops, something went wrong.