Skip to main content

objective_is_bare_wire

Function objective_is_bare_wire 

Source
pub fn objective_is_bare_wire(objective: &str) -> bool
Expand description

Whether an optimize.objective value is a bare wire reference — a single identifier read directly off the phase kernel — versus an inline expression (operators, calls, dots, whitespace) that must be synthesized. A bare reference is left untouched (no synthesis, current behavior); an expression is lowered to OBJECTIVE_WIRE.