pub enum Command {
Show 18 variants
Sort(String),
Function {
name: String,
arg_sorts: Vec<String>,
ret_sort: String,
tags: Vec<AlgTag>,
meta: OpMeta,
},
Datatype {
name: String,
variants: Vec<Variant>,
},
Ruleset(String),
Let(String, Term),
Union(Term, Term),
Insert(Term),
Run {
ruleset: Option<String>,
limit: u64,
until: Option<RunGoal>,
},
PrintSize(Option<String>),
PrintStats(Option<String>),
Check(Term),
CheckEq(Term, Term),
CheckNeq(Term, Term),
Extract(Term),
AntiUnify {
left: Term,
right: Term,
playouts: u64,
algorithm: String,
cycle_mode: String,
},
CheckAu {
left: Term,
right: Term,
max_size: u32,
playouts: u64,
algorithm: String,
cycle_mode: String,
},
Push(bool),
Pop,
}Variants§
Sort(String)
Function
(function …) and (constructor …): the same declaration, distinguished only by
meta.is_constructor. Both register an operator with identical congruence and
matching behavior; a constructor additionally carries the extraction semantics
(FLAG_CONSTRUCTOR on its nodes, :cost, :unextractable).
Datatype
Ruleset(String)
(ruleset name) — declares a ruleset. Rules tagged :ruleset name join it, and
(run name N) runs exactly those rules.
Let(String, Term)
Union(Term, Term)
Insert(Term)
Run
(run [ruleset] N [:until (= a b) | :until (!= a b)]).
Fields
PrintSize(Option<String>)
(print-size) — per-operator node counts and the total — or (print-size Op), the
count for one operator.
PrintStats(Option<String>)
(print-stats) — the last run’s counters on stdout — or (print-stats :file "p.json"),
the same numbers as JSON in a file.
Check(Term)
CheckEq(Term, Term)
CheckNeq(Term, Term)
Extract(Term)
AntiUnify
CheckAu
Push(bool)
Pop
Trait Implementations§
impl Eq for Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.