factor_agent.gate.vocabulary.Vocabulary.execute#

Vocabulary.execute(code)[source]#

Run candidate code, which passed _checks.static_reasons, and return the names it bound.

The fields are new operators every time, so two executions share no node; the NaN-preserving stand-ins add the bar mask. -x of an operator is MulConst(x, -1) and a ** b is Pow(a, b) (a number b as a ConstantOp), when the vocabulary has them.

Raises:
Exception

Whatever the code raises, for the Gate to report back to it.