Struct WmcManager
pub struct WmcManager { /* private fields */ }Implementations§
§impl WmcManager
impl WmcManager
pub fn new(_ps: &PathSum) -> Self
pub fn enable_precise_gpmc_weights(&mut self, precision_bits: usize)
pub fn encode_trace(&mut self, ps: &PathSum) -> Result<()>
pub fn to_dimacs_string(&self, tool_name: &str) -> String
pub fn has_exact_unweighted_tautology(
&self,
normalization_twice_log2: usize,
) -> bool
pub fn has_exact_unweighted_tautology( &self, normalization_twice_log2: usize, ) -> bool
Exact WMC shortcut, restricted to tautological, unweighted CNF.
Each assignment to the declared variables satisfies every clause, so the count is exactly 2^variables. Only accept when this matches the trace normalization exponent. This never reasons from Ganak’s floating stdout or assumes that zero path variables imply SAT.
pub fn try_to_dimacs_string(&self, tool_name: &str) -> Result<String>
pub fn solve(&self, tool_name: &str) -> Result<Complex<f64>>
pub fn solve(&self, tool_name: &str) -> Result<Complex<f64>>
Backward-compatible entrypoint for callers that do not own a deadline. The public verification path uses solve_with_deadline instead.
pub fn solve_with_deadline( &self, tool_name: &str, deadline: Option<Instant>, ) -> Result<Complex<f64>>
pub fn observe_with_deadline(
&self,
tool_name: &str,
deadline: Option<Instant>,
) -> Result<SolverObservation>
pub fn observe_with_deadline( &self, tool_name: &str, deadline: Option<Instant>, ) -> Result<SolverObservation>
Opt-in typed native measurement; ordinary solve APIs remain compatible.
pub fn solve_with_deadline_printed(
&self,
tool_name: &str,
deadline: Option<Instant>,
) -> Result<PrintedCount>
pub fn solve_with_deadline_printed( &self, tool_name: &str, deadline: Option<Instant>, ) -> Result<PrintedCount>
Preserve the solver’s original decimal result through a typed boundary. The returned precision interval covers printed digits only.
pub fn solve_with_deadline_distance_printed(
&self,
tool_name: &str,
deadline: Option<Instant>,
) -> Result<PrintedCount>
pub fn solve_with_deadline_distance_printed( &self, tool_name: &str, deadline: Option<Instant>, ) -> Result<PrintedCount>
Typed result for the public distance-mode verifier, preserving the selected solver (GPMC effective default 30 digits, native Ganak mode 6).
pub fn solve_with_deadline_distance_printed_precision(
&self,
tool_name: &str,
deadline: Option<Instant>,
digits: u32,
) -> Result<PrintedCount>
pub fn solve_with_deadline_distance_printed_precision( &self, tool_name: &str, deadline: Option<Instant>, digits: u32, ) -> Result<PrintedCount>
Explicit per-call precision: no second solver call or global state.
pub fn numerical_weight_count(&self) -> usize
pub fn numerical_weight_count(&self) -> usize
Number of phase-weight literals used in a conditional f64 input budget.