pub enum CommandOutput {
PrintFunctionSize(usize),
PrintAllFunctionsSize(Vec<(String, usize)>),
ExtractBest(TermDag, DefaultCost, TermId),
ExtractVariants(TermDag, Vec<TermId>),
ProveExists {
proof_store: ProofStore,
proof_id: ProofId,
},
OverallStatistics(RunReport),
PrintFunction(Function, TermDag, Vec<(TermId, TermId)>, PrintFunctionMode),
RunSchedule(RunReport),
UserDefined(Arc<dyn UserDefinedCommandOutput>),
}Expand description
Output from a command.
Variants§
PrintFunctionSize(usize)
The size of a function
PrintAllFunctionsSize(Vec<(String, usize)>)
The name of all functions and their sizes
ExtractBest(TermDag, DefaultCost, TermId)
The best term found after extracting
ExtractVariants(TermDag, Vec<TermId>)
The variants of a function found after extracting. Like normal extraction, but has to choose one extraction per e-node in the e-class.
ProveExists
A high-level proof witnessing constructor existence
OverallStatistics(RunReport)
The report from all runs
PrintFunction(Function, TermDag, Vec<(TermId, TermId)>, PrintFunctionMode)
A printed function and all its values
RunSchedule(RunReport)
The report from a single run
UserDefined(Arc<dyn UserDefinedCommandOutput>)
A user defined output
Implementations§
Source§impl CommandOutput
impl CommandOutput
Sourcepub fn snapshot_stable_under_proof_encoding(outputs: &[CommandOutput]) -> String
pub fn snapshot_stable_under_proof_encoding(outputs: &[CommandOutput]) -> String
Render command outputs to a string that is identical whether the program
ran normally or under proof encoding (--proofs). Drops outputs that
legitimately differ or are non-deterministic (timing, PrintFunction
per #793, extraction variants) and reduces ExtractBest to its cost.
Trait Implementations§
Source§impl Clone for CommandOutput
impl Clone for CommandOutput
Source§fn clone(&self) -> CommandOutput
fn clone(&self) -> CommandOutput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CommandOutput
impl Debug for CommandOutput
Auto Trait Implementations§
impl !RefUnwindSafe for CommandOutput
impl !UnwindSafe for CommandOutput
impl Freeze for CommandOutput
impl Send for CommandOutput
impl Sync for CommandOutput
impl Unpin for CommandOutput
impl UnsafeUnpin for CommandOutput
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more