LibOpEveryNP

Git Source

Opcode to return the last item out of N items if they are all true, else 0.

Functions

integrity

function integrity(IntegrityCheckStateNP memory, Operand operand) internal pure returns (uint256, uint256);

run

EVERY is the last nonzero item, else 0.

function run(InterpreterStateNP memory, Operand operand, Pointer stackTop) internal pure returns (Pointer);

referenceFn

Gas intensive reference implementation of EVERY for testing.

function referenceFn(InterpreterStateNP memory, Operand, uint256[] memory inputs) internal pure returns (uint256[] memory outputs);