Module sunscreen_fhe_program::traversal
source · [−]Expand description
Functions related to getting more information about a node in the execution graph. E.g. getting operands for operations.
Functions
Gets the two input operands and returns a tuple of left, right. For some operations
(i.e. subtraction), order matters. While it’s erroneous for a binary operations to have
anything other than a single left and single right operand, having more operands will result
in one being selected arbitrarily. Validating the
FheProgram
will
reveal having the wrong number of operands.Gets the single unary input operand for the given node. If the
FheProgram
is malformed and the node has more than one UnaryOperand, one will be selected arbitrarily.
As such, one should validate the FheProgram
before calling this method.