build_vtree

Function build_vtree 

Source
pub fn build_vtree(
    formula: &CnfFormula,
    spec: &str,
    options: &VtreeOptions,
) -> Result<Arc<Vtree>, Error>
Expand description

Build one vtree for the whole formula from a spec, such as "portfolio".

§Errors

  • Error::VtreeSpec: spec is not a spec of vitri’s grammar, or the construction failed, as it does for a formula with no variables.
  • Error::Environment: a VITRI_* vtree-selection setting in the environment is invalid.