diff --git a/README.md b/README.md index e72c706..8a76fe4 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ Based on [instructions.csv](https://github.com/ton-community/ton-docs/blob/main/ | JSON key | Status | Description | ------------ | ----------- | ----------- | doc | ✅ Implemented | Provides human-readable information about instructions. Can be useful to provide integrated docs to user, for example, in disassembler. -| bytecode | ✅ Implemented | Describes instruction encoding. It contains information to determine, which instruction we are currently decoding and how to parse its operands. +| bytecode | ✅ Implemented | Describes instruction encoding. It contains information to build assemblers and disassemblers. | value_flow | ✅ Implemented | Describes how instruction changes current stack. This part of specification allows to analyze how instructions interact with each other, so it becomes possible to implement high-level tools such as decompilers. | control_flow | ✅ Implemented | Describes code flow (operations with cc register). It helps to reconstruct a control flow graph. This part mainly contains semantics of cont_* category instructions. For example, both JMPX and CALLX transfers execution to continuation on stack, but only CALLX returns and JMPX is not. | aliases | ✅ Implemented | Specifies instruction aliases. Can be used to provide to user information about special cases (for example, SWAP is a special case of XCHG_0i with i = 1). @@ -36,100 +36,85 @@ However, nothing can stop you from just copying `cp0.json` (and `schema.json` if ```json [ { - "mnemonic": "LDU", - "doc": { - "category": "cell_parse", - "description": "Loads an unsigned `cc+1`-bit integer `x` from _Slice_ `s`.", - "gas": "26", - "fift": "[cc+1] LDU" - }, - "bytecode": { - "doc_opcode": "D3cc", - "tlb": "#D3 cc:uint8", - "prefix": "D3", - "operands": [ - { - "name": "c", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] + "mnemonic": "LDU", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Loads an unsigned `cc+1`-bit integer `x` from _Slice_ `s`.", + "gas": "26", + "fift": "[cc+1] LDU", + "fift_examples": [], + "opcode": "D3cc", + "stack": "s - x s'" + }, + "bytecode": { + "tlb": "#D3 cc:uint8", + "prefix": "D3", + "operands": [ + { + "name": "c", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] }, - "value_flow": { - "doc_stack": "s - x s'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - } - ] - } + "outputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "s2", "value_types": ["Slice"] } + ], + "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } }, { - "mnemonic": "EXECUTE", - "doc": { - "category": "cont_basic", - "description": "_Calls_, or _executes_, continuation `c`.", - "gas": "18", - "fift": "EXECUTE\nCALLX" + "mnemonic": "EXECUTE", + "since_version": 0, + "doc": { + "category": "cont_basic", + "description": "_Calls_, or _executes_, continuation `c`.", + "gas": "18", + "fift": "EXECUTE\nCALLX", + "fift_examples": [], + "opcode": "D8", + "stack": "c - " + }, + "bytecode": { "tlb": "#D8", "prefix": "D8", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Continuation"] } + ], + "registers": [] }, - "bytecode": { - "doc_opcode": "D8", - "tlb": "#D8", - "prefix": "D8", - "operands": [] - }, - "value_flow": { - "doc_stack": "c - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Continuation"] - } - ] - }, - "outputs": { - "stack": [ - ] + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { + "branches": [ + { + "type": "variable", + "var_name": "c", + "save": { + "c0": { + "type": "cc", + "save": { "c0": { "type": "register", "index": 0 } } + } } - }, - "control_flow": { - "branches": [ - { - "type": "variable", - "var_name": "c", - "save": { - "c0": { - "type": "cc", - "save": { - "c0": { "type": "register", "index": 0 } - } - } - } - } - ] - } + } + ], + "nobranch": false + } } ] ``` @@ -138,115 +123,125 @@ However, nothing can stop you from just copying `cp0.json` (and `schema.json` if | Key | Description | | --- | ----------- | | mnemonic | How instruction is named in [original TVM implementation](https://github.com/ton-blockchain/ton/blob/master/crypto/vm). Not necessarily unique (currently only DEBUG is not unique). Required. -| doc | Free-form human-friendly information which should be used for documentation purposes only. +| since_version | Global version (ConfigParam 8) which enables this instruction. Version 9999 means that instruction has no global version and currently unavailable in mainnet. +| doc | Free-form human-friendly information which should be used for documentation purposes only. Required. | doc.category | Category of instruction (examples: cont_loops, stack_basic, dict_get). Required. -| doc.description | Free-form markdown description of instruction. Optional. -| doc.gas | Free-form description of gas amount used by instruction. Optional. -| doc.fift | Free-form fift usage description. Optional. -| doc.fift_examples | Optional array of usage examples in Fift. Each array element is object with `fift` and `description` keys. -| bytecode | Information related to bytecode format of an instruction. Assuming that each instruction has format `prefix || operand_1 || operand_2 || ...` (also some operands may be refs, not bitstring part). -| bytecode.doc_opcode | Free-form bytecode format description. Optional. +| doc.description | Free-form markdown description of instruction. Required. +| doc.gas | Free-form description of gas amount used by instruction. Required. +| doc.fift | Free-form fift usage description. Required. +| doc.fift_examples | Array of usage examples in Fift. Each array element is object with `fift` and `description` keys. Required. +| doc.opcode | Free-form bytecode format description. Required. +| doc.stack | Free-form description of stack inputs and outputs. Usually the form is `[inputs] - [outputs]` where `[inputs]` are consumed stack values and `outputs` are produced stack values (top of stack is the last value). Required. +| bytecode | Information related to bytecode format of an instruction. Assuming that each instruction has format `prefix || operand_1 || operand_2 || ...` (also some operands may be refs, not bitstring part). Required. | bytecode.tlb | TL-b bytecode format description. Required. | bytecode.prefix | Prefix to determine next instruction to parse. It is a hex bitstring as in TL-b (suffixed with `_` if bit length is not divisible by 4, trailing `'1' + '0' * x` must be removed). Required. | bytecode.operands_range_check | In TVM, it is possible for instructions to have overlapping prefixes, so to determine actual instruction it is required to read next `length` bits after prefix as uint `i` and check `from <= i <= to`. Optional, there is no operands check in case of absence. -| bytecode.operands | Describes how to parse operands. Order of objects in this array represents the actual order of operands in instruction. Optional, no operands in case of absence. +| bytecode.operands | Describes how to parse operands. Order of objects in this array represents the actual order of operands in instruction. Required. | bytecode.operands[i].name | Operand variable name. Allowed chars are `a-zA-Z0-9_`, must not begin with digit or underscore and must not end with underscore. Required. -| bytecode.operands[i].loader | Loader function for operand. Must be one of `int`, `uint`, `ref`, `pushint_long`, `subslice`. Loaders are described below. Required. -| bytecode.operands[i].loader_args | Arguments for loader function, specified below. Optional, no arguments in case of absence. -| bytecode.operands[i].internal | Internal flag. If true, this operand is used as a subslice length variable, should be used only for serialization/deserialization, humans and implementations do not need them. Optional, default is false. -| value_flow | Information related to usage of stack and registers by instruction. Optional. -| value_flow.doc_stack | Free-form description of stack inputs and outputs. Usually the form is `[inputs] - [outputs]` where `[inputs]` are consumed stack values and `outputs` are produced stack values (top of stack is the last value). Optional. -| value_flow.inputs | Incoming values constraints. Input is unconstrained if absent. -| value_flow.inputs.stack | Defines how current stack is used by instruction. Instruction must not operate on stack entries other than defined here. Required. +| bytecode.operands[i].type | Type of operand. Must be one of `int`, `uint`, `ref`, `pushint_long`, `subslice`. Types are described below. Required. +| bytecode.operands[i].* | Additional options for types, specified below. +| value_flow | Information related to usage of stack and registers by instruction. Required. +| value_flow.inputs | Incoming values constraints. Required. +| value_flow.inputs.registers | Defines how registers is used by instruction. Instruction must not operate on registers other than defined here. Required. +| value_flow.inputs.registers[i] | Register which is access by instruction. +| value_flow.inputs.registers[i].type | Type of register: "constant", "variable", "special". Required. +| value_flow.inputs.registers[i].* | Properties for registers of each type are described below. +| value_flow.inputs.stack | Defines how current stack is used by instruction. Instruction must not operate on stack entries other than defined here. Optional, input stack is unconstrained if absent. | value_flow.inputs.stack[i] | Stack entry or group of stack entries. | value_flow.inputs.stack[i].type | Type of stack entry. Can be one of "simple", "const", "conditional", "array". Required. | value_flow.inputs.stack[i].* | Properties for stack entries of each type are described below. -| value_flow.outputs | Outgoing values constraints. Output is unconstrained if absent. Identical to value_flow.inputs. -| control_flow | Information related to current cc modification by instruction. Optional. -| control_flow.branches | Array of possible branches of an instruction. Specifies all possible values of cc after instruction execution. Empty by default (no branches can be taken by instruction). Each branch described by a `Continuation` object described below. -| control_flow.nobranch | Can this instruction not perform any of specified branches in certain cases (do not modify cc)? False by default. +| value_flow.outputs | Outgoing values constraints. Required. Identical to value_flow.inputs. +| control_flow | Information related to current cc modification by instruction. Required. +| control_flow.branches | Array of possible branches of an instruction. Specifies all possible values of cc after instruction execution. Required. Each branch described by a `Continuation` object described below. +| control_flow.nobranch | Can this instruction not perform any of specified branches in certain cases (do not modify cc)? Required. If instruction has no control flow, nobranch is true and branches are empty. + +### Operand Types Specification and Examples +`display_hints` property is available for `uint`, `int`, `ref` and `subslice` operand types. For `ref` and `subslice` there is `continuation` and `dictionary` hint types, and for `uint` there is `add`, `stack`, `register`, `pushint4`, `optional_nargs` and `plduz` hints. +| display_hints[i].type | Description +| --------------------- | ----------- +| continuation | Slice from this operand (type = ref, subslice) is a continuation. +| dictionary | Slice from this operand (type = ref, subslice) is a dictionary with key size defined in `size_var` property of a hint. +| add | Some constant must be added in order to correctly display this operand (type = uint). `[cc+1] LDU` <=> `{ "type": "add", "value": 1 }`. +| stack | This operand (type = uint) is a stack entry reference (`s0` for example). +| register | This operand (type = uint) is a register reference (`c0` for example). +| pushint4 | To display this operand (type = uint), 16 must be substracted, but only if operand value > 10. For example, 0xF displayed as -1, 0xA is 10 and 0xB is -5. +| optional_nargs | 0xF is displayed as -1, other values left untouched (type = uint). +| plduz | This operand (type = uint) is displayed as `32*(c+1)`. If value is not divisible by 32 during assembly, error should be raised. -### Loaders Specification and Examples #### uint ```json { "name": "i", - "loader": "uint", - "loader_args": { - "size": 4 - } + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [{ "type": "stack" }, { "type": "add", "value": 1 }] } ``` -Loads unsigned `size`-bit int from bytecode. Argument `size` of type `integer` is required. +Type of unsigned `size`-bit integer with valid values in range `min_value`...`max_value`. Arguments `size`, `min_value`, `max_value` of type `number` and `display_hints` of type `array` are required. #### int ```json { "name": "i", - "loader": "int", - "loader_args": { - "size": 4 - } + "type": "int", + "size": 4, + "min_value": -8, + "max_value": 7, + "display_hints": [] } ``` -Loads signed `size`-bit int from bytecode. Argument `size` of type `integer` is required. +Type of signed `size`-bit integer with valid values in range `min_value`...`max_value`. Arguments `size`, `min_value`, `max_value` of type `number` and `display_hints` of type `array` are required. #### ref ```json { "name": "c", - "loader": "ref" + "type": "ref", + "display_hints": [{ "type": "continuation" }] } ``` -Loads a single reference from bytecode. Unlike `subslice` with `refs_add = 1`, should dereference instead of returning empty cell with a single reference. No arguments are required. +Type of a single reference. Unlike `subslice` with `refs_add = 1`, should dereference instead of returning empty cell with a single reference. #### pushint_long ```json { "name": "x", - "loader": "pushint_long" + "type": "pushint_long" } ``` -Special loader which currently is used only in `PUSHINT_LONG` instruction. Loads 5-bit uint `size` and then loads and returns integer of bit size `8 * size + 19`. No arguments are required. +Special type which currently is used only in `PUSHINT_LONG` instruction. Consists of 5-bit uint `size` and integer of bit size `8 * size + 19`. #### subslice ```json -[ - { - "name": "r", - "loader": "uint", - "loader_args": { - "size": 2 - }, - "internal": true - }, - { - "name": "x", - "loader": "uint", - "loader_args": { - "size": 5 - }, - "internal": true - }, - { - "name": "slice", - "loader": "subslice", - "loader_args": { - "bits_length_var": "x", - "bits_padding": 1, - "refs_length_var": "r", - "refs_add": 1, - "completion_tag": true - } - } -] +{ + "name": "slice", + "type": "subslice", + "bits_length_var_size": 5, + "refs_length_var_size": 2, + "bits_padding": 1, + "refs_add": 1, + "completion_tag": true, + "max_bits": 248, + "min_bits": 0, + "max_refs": 4, + "min_refs": 1, + "display_hints": [] +} ``` +_TLB notation: `r:(## 2) xx:(## 5) c:((r + 1) * ^Cell) ssss:((8 * xx + 1) * Bit)`_ -Loads subslice of bit length `{bits_length_var} * 8 + bits_padding` and ref count `{refs_length_var} + refs_add`. If `completion_tag` argument with value `true` is passed, remove completion tag from bitstring (trailing `'1' + '0' * x`). Length variables are usually `"internal": true` because they should not be showed to user or provided to an implementation. +Loads `r` uint of size `refs_length_var_size` (if present), `x` uint of size `bits_length_var_size`. Then loads subslice of bit length `x * 8 + bits_padding` and ref count `r + refs_add`. If `completion_tag` argument with value `true` is passed, remove completion tag from bitstring (trailing `'1' + '0' * x`). | Argument | Description | -------- | ----------- -| bits_length_var | Name of (previously parsed) operand which contains bit length to load. Optional, assuming this part of bit length is 0 if absent. -| bits_padding | Constant integer value to add to length of bitstring to load. Optional, assuming 0 if absent. -| refs_length_var | Name of (previously parsed) operand which contains ref count to load. Optional, assuming this part of ref count is 0 if absent. -| refs_add | Constant integer value to add to ref count. Optional, assuming 1 if absent. -| completion_tag | Boolean flag, tells to remove trailing `'1' + '0' * x` from bitstring if true. Optional, assuming false if absent. +| bits_length_var_size | Size of bit length operand. Required. +| bits_padding | Constant integer value to add to length of bitstring to load. Required. +| refs_length_var_size | Size of ref count operand. Optional, assuming no refs if absent. +| refs_add | Constant integer value to add to ref count. Optional, assuming 0 if absent. +| completion_tag | Boolean flag, tells to remove trailing `'1' + '0' * x` from bitstring if true. Required. +| max_bits | Hint for maximum bits available to store for this operand. Required. +| min_bits | Hint for minimum bits available to store for this operand. Required. +| max_refs | Hint for maximum refs available to store for this operand. Required. +| min_refs | Hint for minimum refs available to store for this operand. Required. +| display_hints | Set of hints for converters between Asm.fif and bytecode representations. Required. ### Stack Entry Specification and Examples @@ -356,6 +351,40 @@ Specifies a bunch of stack entries with length from variable `length_var`, usual 1. Each variable name is unique across `operands`, `value_flow`, and `control_flow` sections of each instruction. Assumed that variables are immutable, so if variable `x` is defined both in inputs and outputs, it goes to output without any modification. 2. Value flow describes only `cc` stack usage before the actual jump or call. Subsequent continuations may have a separate stack, so this will be defined in control flow section of this spec. +### Register Specification and Examples +#### constant +```json +{ + "type": "constant", + "index": 0 +} +``` +Represents `c{index}` register. + +#### variable +```json +{ + "type": "variable", + "var_name": "i" +} +``` +Represents `c{{var_name}}` register. Its number is taken from variable `var_name`, defined in stack inputs or operands. + +#### special +```json +{ + "type": "special", + "name": "gas" +} +``` +```json +{ + "type": "special", + "name": "cstate" +} +``` +Represents gas registers (used by app_gas instructions) and cstate (used by COMMIT instruction). + ### Continuations Specification and Examples Each object represents a continuation, which can be constructed in several ways: * from a variable (operand or stack) diff --git a/cp0.json b/cp0.json index 46b4b04..4610f2d 100644 --- a/cp0.json +++ b/cp0.json @@ -1,43920 +1,33985 @@ -{ - "$schema": "./schema.json", - "instructions": [ - { - "mnemonic": "NOP", - "doc": { - "category": "stack_basic", - "description": "Does nothing.", - "gas": "18", - "fift": "NOP" - }, - "bytecode": { - "doc_opcode": "00", - "tlb": "#00", - "prefix": "00", - "operands": [] - }, - "value_flow": { - "doc_stack": "-", - "inputs": { - "stack": [] - }, - "outputs": { - "stack": [] - } - } - }, - { - "mnemonic": "XCHG_0I", - "doc": { - "category": "stack_basic", - "description": "Interchanges `s0` with `s[i]`, `1 <= i <= 15`.", - "gas": "18", - "fift": "s[i] XCHG0" - }, - "bytecode": { - "doc_opcode": "0i", - "tlb": "#0 i:(## 4) {1 <= i}", - "prefix": "0", - "operands_range_check": { - "length": 4, - "from": 1, - "to": 15 - }, - "operands": [ - { - "name": "i", - "loader": "uint", - "loader_args": { - "size": 4 - } - } - ] - }, - "value_flow": { - "doc_stack": "" - } - }, - { - "mnemonic": "XCHG_IJ", - "doc": { - "category": "stack_basic", - "description": "Interchanges `s[i]` with `s[j]`, `1 <= i < j <= 15`.", - "gas": "26", - "fift": "s[i] s[j] XCHG" - }, - "bytecode": { - "doc_opcode": "10ij", - "tlb": "#10 i:(## 4) j:(## 4) {1 <= i} {i + 1 <= j}", - "prefix": "10", - "operands_range_check": { - "length": 4, - "from": 1, - "to": 15 - }, - "operands": [ - { - "name": "i", - "loader": "uint", - "loader_args": { - "size": 4 - } - }, - { - "name": "j", - "loader": "uint", - "loader_args": { - "size": 4 - } - } - ] - }, - "value_flow": { - "doc_stack": "" - } - }, - { - "mnemonic": "XCHG_0I_LONG", - "doc": { - "category": "stack_basic", - "description": "Interchanges `s0` with `s[ii]`, `0 <= ii <= 255`.", - "gas": "26", - "fift": "s0 [ii] s() XCHG" - }, - "bytecode": { - "doc_opcode": "11ii", - "tlb": "#11 ii:uint8", - "prefix": "11", - "operands": [ - { - "name": "i", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "" - } - }, - { - "mnemonic": "XCHG_1I", - "doc": { - "category": "stack_basic", - "description": "Interchanges `s1` with `s[i]`, `2 <= i <= 15`.", - "gas": "18", - "fift": "s1 s[i] XCHG" - }, - "bytecode": { - "doc_opcode": "1i", - "tlb": "#1 i:(## 4) {2 <= i}", - "prefix": "1", - "operands_range_check": { - "length": 4, - "from": 2, - "to": 15 - }, - "operands": [ - { - "name": "i", - "loader": "uint", - "loader_args": { - "size": 4 - } - } - ] - }, - "value_flow": { - "doc_stack": "" - } - }, - { - "mnemonic": "PUSH", - "doc": { - "category": "stack_basic", - "description": "Pushes a copy of the old `s[i]` into the stack.", - "gas": "18", - "fift": "s[i] PUSH" - }, - "bytecode": { - "doc_opcode": "2i", - "tlb": "#2 i:uint4", - "prefix": "2", - "operands": [ - { - "name": "i", - "loader": "uint", - "loader_args": { - "size": 4 - } - } - ] - }, - "value_flow": { - "doc_stack": "" - } - }, - { - "mnemonic": "POP", - "doc": { - "category": "stack_basic", - "description": "Pops the old `s0` value into the old `s[i]`.", - "gas": "18", - "fift": "s[i] POP" - }, - "bytecode": { - "doc_opcode": "3i", - "tlb": "#3 i:uint4", - "prefix": "3", - "operands": [ - { - "name": "i", - "loader": "uint", - "loader_args": { - "size": 4 - } - } - ] - }, - "value_flow": { - "doc_stack": "" - } - }, - { - "mnemonic": "XCHG3", - "doc": { - "category": "stack_complex", - "description": "Equivalent to `s2 s[i] XCHG` `s1 s[j] XCHG` `s[k] XCHG0`.", - "gas": "26", - "fift": "s[i] s[j] s[k] XCHG3" - }, - "bytecode": { - "doc_opcode": "4ijk", - "tlb": "#4 i:uint4 j:uint4 k:uint4", - "prefix": "4", - "operands": [ - { - "name": "i", - "loader": "uint", - "loader_args": { - "size": 4 - } - }, - { - "name": "j", - "loader": "uint", - "loader_args": { - "size": 4 - } - }, - { - "name": "k", - "loader": "uint", - "loader_args": { - "size": 4 - } - } - ] - }, - "value_flow": { - "doc_stack": "" - } - }, - { - "mnemonic": "XCHG2", - "doc": { - "category": "stack_complex", - "description": "Equivalent to `s1 s[i] XCHG` `s[j] XCHG0`.", - "gas": "26", - "fift": "s[i] s[j] XCHG2" - }, - "bytecode": { - "doc_opcode": "50ij", - "tlb": "#50 i:uint4 j:uint4", - "prefix": "50", - "operands": [ - { - "name": "i", - "loader": "uint", - "loader_args": { - "size": 4 - } - }, - { - "name": "j", - "loader": "uint", - "loader_args": { - "size": 4 - } - } - ] - }, - "value_flow": { - "doc_stack": "" - } - }, - { - "mnemonic": "XCPU", - "doc": { - "category": "stack_complex", - "description": "Equivalent to `s[i] XCHG0` `s[j] PUSH`.", - "gas": "26", - "fift": "s[i] s[j] XCPU" - }, - "bytecode": { - "doc_opcode": "51ij", - "tlb": "#51 i:uint4 j:uint4", - "prefix": "51", - "operands": [ - { - "name": "i", - "loader": "uint", - "loader_args": { - "size": 4 - } - }, - { - "name": "j", - "loader": "uint", - "loader_args": { - "size": 4 - } - } - ] - }, - "value_flow": { - "doc_stack": "" - } - }, - { - "mnemonic": "PUXC", - "doc": { - "category": "stack_complex", - "description": "Equivalent to `s[i] PUSH` `SWAP` `s[j] XCHG0`.", - "gas": "26", - "fift": "s[i] s[j-1] PUXC" - }, - "bytecode": { - "doc_opcode": "52ij", - "tlb": "#52 i:uint4 j:uint4", - "prefix": "52", - "operands": [ - { - "name": "i", - "loader": "uint", - "loader_args": { - "size": 4 - } - }, - { - "name": "j", - "loader": "uint", - "loader_args": { - "size": 4 - } - } - ] - }, - "value_flow": { - "doc_stack": "" - } - }, - { - "mnemonic": "PUSH2", - "doc": { - "category": "stack_complex", - "description": "Equivalent to `s[i] PUSH` `s[j+1] PUSH`.", - "gas": "26", - "fift": "s[i] s[j] PUSH2" - }, - "bytecode": { - "doc_opcode": "53ij", - "tlb": "#53 i:uint4 j:uint4", - "prefix": "53", - "operands": [ - { - "name": "i", - "loader": "uint", - "loader_args": { - "size": 4 - } - }, - { - "name": "j", - "loader": "uint", - "loader_args": { - "size": 4 - } - } - ] - }, - "value_flow": { - "doc_stack": "" - } - }, - { - "mnemonic": "XCHG3_ALT", - "doc": { - "category": "stack_complex", - "description": "Long form of `XCHG3`.", - "gas": "34", - "fift": "s[i] s[j] s[k] XCHG3_l" - }, - "bytecode": { - "doc_opcode": "540ijk", - "tlb": "#540 i:uint4 j:uint4 k:uint4", - "prefix": "540", - "operands": [ - { - "name": "i", - "loader": "uint", - "loader_args": { - "size": 4 - } - }, - { - "name": "j", - "loader": "uint", - "loader_args": { - "size": 4 - } - }, - { - "name": "k", - "loader": "uint", - "loader_args": { - "size": 4 - } - } - ] - }, - "value_flow": { - "doc_stack": "" - } - }, - { - "mnemonic": "XC2PU", - "doc": { - "category": "stack_complex", - "description": "Equivalent to `s[i] s[j] XCHG2` `s[k] PUSH`.", - "gas": "34", - "fift": "s[i] s[j] s[k] XC2PU" - }, - "bytecode": { - "doc_opcode": "541ijk", - "tlb": "#541 i:uint4 j:uint4 k:uint4", - "prefix": "541", - "operands": [ - { - "name": "i", - "loader": "uint", - "loader_args": { - "size": 4 - } - }, - { - "name": "j", - "loader": "uint", - "loader_args": { - "size": 4 - } - }, - { - "name": "k", - "loader": "uint", - "loader_args": { - "size": 4 - } - } - ] - }, - "value_flow": { - "doc_stack": "" - } - }, - { - "mnemonic": "XCPUXC", - "doc": { - "category": "stack_complex", - "description": "Equivalent to `s1 s[i] XCHG` `s[j] s[k-1] PUXC`.", - "gas": "34", - "fift": "s[i] s[j] s[k-1] XCPUXC" - }, - "bytecode": { - "doc_opcode": "542ijk", - "tlb": "#542 i:uint4 j:uint4 k:uint4", - "prefix": "542", - "operands": [ - { - "name": "i", - "loader": "uint", - "loader_args": { - "size": 4 - } - }, - { - "name": "j", - "loader": "uint", - "loader_args": { - "size": 4 - } - }, - { - "name": "k", - "loader": "uint", - "loader_args": { - "size": 4 - } - } - ] - }, - "value_flow": { - "doc_stack": "" - } - }, - { - "mnemonic": "XCPU2", - "doc": { - "category": "stack_complex", - "description": "Equivalent to `s[i] XCHG0` `s[j] s[k] PUSH2`.", - "gas": "34", - "fift": "s[i] s[j] s[k] XCPU2" - }, - "bytecode": { - "doc_opcode": "543ijk", - "tlb": "#543 i:uint4 j:uint4 k:uint4", - "prefix": "543", - "operands": [ - { - "name": "i", - "loader": "uint", - "loader_args": { - "size": 4 - } - }, - { - "name": "j", - "loader": "uint", - "loader_args": { - "size": 4 - } - }, - { - "name": "k", - "loader": "uint", - "loader_args": { - "size": 4 - } - } - ] - }, - "value_flow": { - "doc_stack": "" - } - }, - { - "mnemonic": "PUXC2", - "doc": { - "category": "stack_complex", - "description": "Equivalent to `s[i] PUSH` `s2 XCHG0` `s[j] s[k] XCHG2`.", - "gas": "34", - "fift": "s[i] s[j-1] s[k-1] PUXC2" - }, - "bytecode": { - "doc_opcode": "544ijk", - "tlb": "#544 i:uint4 j:uint4 k:uint4", - "prefix": "544", - "operands": [ - { - "name": "i", - "loader": "uint", - "loader_args": { - "size": 4 - } - }, - { - "name": "j", - "loader": "uint", - "loader_args": { - "size": 4 - } - }, - { - "name": "k", - "loader": "uint", - "loader_args": { - "size": 4 - } - } - ] - }, - "value_flow": { - "doc_stack": "" - } - }, - { - "mnemonic": "PUXCPU", - "doc": { - "category": "stack_complex", - "description": "Equivalent to `s[i] s[j-1] PUXC` `s[k] PUSH`.", - "gas": "34", - "fift": "s[i] s[j-1] s[k-1] PUXCPU" - }, - "bytecode": { - "doc_opcode": "545ijk", - "tlb": "#545 i:uint4 j:uint4 k:uint4", - "prefix": "545", - "operands": [ - { - "name": "i", - "loader": "uint", - "loader_args": { - "size": 4 - } - }, - { - "name": "j", - "loader": "uint", - "loader_args": { - "size": 4 - } - }, - { - "name": "k", - "loader": "uint", - "loader_args": { - "size": 4 - } - } - ] - }, - "value_flow": { - "doc_stack": "" - } - }, - { - "mnemonic": "PU2XC", - "doc": { - "category": "stack_complex", - "description": "Equivalent to `s[i] PUSH` `SWAP` `s[j] s[k-1] PUXC`.", - "gas": "34", - "fift": "s[i] s[j-1] s[k-2] PU2XC" - }, - "bytecode": { - "doc_opcode": "546ijk", - "tlb": "#546 i:uint4 j:uint4 k:uint4", - "prefix": "546", - "operands": [ - { - "name": "i", - "loader": "uint", - "loader_args": { - "size": 4 - } - }, - { - "name": "j", - "loader": "uint", - "loader_args": { - "size": 4 - } - }, - { - "name": "k", - "loader": "uint", - "loader_args": { - "size": 4 - } - } - ] - }, - "value_flow": { - "doc_stack": "" - } - }, - { - "mnemonic": "PUSH3", - "doc": { - "category": "stack_complex", - "description": "Equivalent to `s[i] PUSH` `s[j+1] s[k+1] PUSH2`.", - "gas": "34", - "fift": "s[i] s[j] s[k] PUSH3" - }, - "bytecode": { - "doc_opcode": "547ijk", - "tlb": "#547 i:uint4 j:uint4 k:uint4", - "prefix": "547", - "operands": [ - { - "name": "i", - "loader": "uint", - "loader_args": { - "size": 4 - } - }, - { - "name": "j", - "loader": "uint", - "loader_args": { - "size": 4 - } - }, - { - "name": "k", - "loader": "uint", - "loader_args": { - "size": 4 - } - } - ] - }, - "value_flow": { - "doc_stack": "" - } - }, - { - "mnemonic": "BLKSWAP", - "doc": { - "category": "stack_complex", - "description": "Permutes two blocks `s[j+i+1] \u0432\u0402\u00a6 s[j+1]` and `s[j] \u0432\u0402\u00a6 s0`.\n`0 <= i,j <= 15`\nEquivalent to `[i+1] [j+1] REVERSE` `[j+1] 0 REVERSE` `[i+j+2] 0 REVERSE`.", - "gas": "26", - "fift": "[i+1] [j+1] BLKSWAP" - }, - "bytecode": { - "doc_opcode": "55ij", - "tlb": "#55 i:uint4 j:uint4", - "prefix": "55", - "operands": [ - { - "name": "i", - "loader": "uint", - "loader_args": { - "size": 4 - } - }, - { - "name": "j", - "loader": "uint", - "loader_args": { - "size": 4 - } - } - ] - }, - "value_flow": { - "doc_stack": "" - } - }, - { - "mnemonic": "PUSH_LONG", - "doc": { - "category": "stack_complex", - "description": "Pushes a copy of the old `s[ii]` into the stack.\n`0 <= ii <= 255`", - "gas": "26", - "fift": "[ii] s() PUSH" - }, - "bytecode": { - "doc_opcode": "56ii", - "tlb": "#56 ii:uint8", - "prefix": "56", - "operands": [ - { - "name": "i", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "" - } - }, - { - "mnemonic": "POP_LONG", - "doc": { - "category": "stack_complex", - "description": "Pops the old `s0` value into the old `s[ii]`.\n`0 <= ii <= 255`", - "gas": "26", - "fift": "[ii] s() POP" - }, - "bytecode": { - "doc_opcode": "57ii", - "tlb": "#57 ii:uint8", - "prefix": "57", - "operands": [ - { - "name": "i", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "" - } - }, - { - "mnemonic": "ROT", - "doc": { - "category": "stack_complex", - "description": "Equivalent to `1 2 BLKSWAP` or to `s2 s1 XCHG2`.", - "gas": "18", - "fift": "ROT" - }, - "bytecode": { - "doc_opcode": "58", - "tlb": "#58", - "prefix": "58", - "operands": [] - }, - "value_flow": { - "doc_stack": "a b c - b c a" - } - }, - { - "mnemonic": "ROTREV", - "doc": { - "category": "stack_complex", - "description": "Equivalent to `2 1 BLKSWAP` or to `s2 s2 XCHG2`.", - "gas": "18", - "fift": "ROTREV\n-ROT" - }, - "bytecode": { - "doc_opcode": "59", - "tlb": "#59", - "prefix": "59", - "operands": [] - }, - "value_flow": { - "doc_stack": "a b c - c a b" - } - }, - { - "mnemonic": "SWAP2", - "doc": { - "category": "stack_complex", - "description": "Equivalent to `2 2 BLKSWAP` or to `s3 s2 XCHG2`.", - "gas": "18", - "fift": "SWAP2\n2SWAP" - }, - "bytecode": { - "doc_opcode": "5A", - "tlb": "#5A", - "prefix": "5A", - "operands": [] - }, - "value_flow": { - "doc_stack": "a b c d - c d a b" - } - }, - { - "mnemonic": "DROP2", - "doc": { - "category": "stack_complex", - "description": "Equivalent to `DROP` `DROP`.", - "gas": "18", - "fift": "DROP2\n2DROP" - }, - "bytecode": { - "doc_opcode": "5B", - "tlb": "#5B", - "prefix": "5B", - "operands": [] - }, - "value_flow": { - "doc_stack": "a b - " - } - }, - { - "mnemonic": "DUP2", - "doc": { - "category": "stack_complex", - "description": "Equivalent to `s1 s0 PUSH2`.", - "gas": "18", - "fift": "DUP2\n2DUP" - }, - "bytecode": { - "doc_opcode": "5C", - "tlb": "#5C", - "prefix": "5C", - "operands": [] - }, - "value_flow": { - "doc_stack": "a b - a b a b" - } - }, - { - "mnemonic": "OVER2", - "doc": { - "category": "stack_complex", - "description": "Equivalent to `s3 s2 PUSH2`.", - "gas": "18", - "fift": "OVER2\n2OVER" - }, - "bytecode": { - "doc_opcode": "5D", - "tlb": "#5D", - "prefix": "5D", - "operands": [] - }, - "value_flow": { - "doc_stack": "a b c d - a b c d a b" - } - }, - { - "mnemonic": "REVERSE", - "doc": { - "category": "stack_complex", - "description": "Reverses the order of `s[j+i+1] \u0432\u0402\u00a6 s[j]`.", - "gas": "26", - "fift": "[i+2] [j] REVERSE" - }, - "bytecode": { - "doc_opcode": "5Eij", - "tlb": "#5E i:uint4 j:uint4", - "prefix": "5E", - "operands": [ - { - "name": "i", - "loader": "uint", - "loader_args": { - "size": 4 - } - }, - { - "name": "j", - "loader": "uint", - "loader_args": { - "size": 4 - } - } - ] - }, - "value_flow": { - "doc_stack": "" - } - }, - { - "mnemonic": "BLKDROP", - "doc": { - "category": "stack_complex", - "description": "Equivalent to `DROP` performed `i` times.", - "gas": "26", - "fift": "[i] BLKDROP" - }, - "bytecode": { - "doc_opcode": "5F0i", - "tlb": "#5F0 i:uint4", - "prefix": "5F0", - "operands": [ - { - "name": "i", - "loader": "uint", - "loader_args": { - "size": 4 - } - } - ] - }, - "value_flow": { - "doc_stack": "" - } - }, - { - "mnemonic": "BLKPUSH", - "doc": { - "category": "stack_complex", - "description": "Equivalent to `PUSH s(j)` performed `i` times.\n`1 <= i <= 15`, `0 <= j <= 15`.", - "gas": "26", - "fift": "[i] [j] BLKPUSH" - }, - "bytecode": { - "doc_opcode": "5Fij", - "tlb": "#5F i:(## 4) j:uint4 {1 <= i}", - "prefix": "5F", - "operands_range_check": { - "length": 4, - "from": 1, - "to": 15 - }, - "operands": [ - { - "name": "i", - "loader": "uint", - "loader_args": { - "size": 4 - } - }, - { - "name": "j", - "loader": "uint", - "loader_args": { - "size": 4 - } - } - ] - }, - "value_flow": { - "doc_stack": "" - } - }, - { - "mnemonic": "PICK", - "doc": { - "category": "stack_complex", - "description": "Pops integer `i` from the stack, then performs `s[i] PUSH`.", - "gas": "18", - "fift": "PICK\nPUSHX" - }, - "bytecode": { - "doc_opcode": "60", - "tlb": "#60", - "prefix": "60", - "operands": [] - }, - "value_flow": { - "doc_stack": "" - } - }, - { - "mnemonic": "ROLLX", - "doc": { - "category": "stack_complex", - "description": "Pops integer `i` from the stack, then performs `1 [i] BLKSWAP`.", - "gas": "18", - "fift": "ROLLX" - }, - "bytecode": { - "doc_opcode": "61", - "tlb": "#61", - "prefix": "61", - "operands": [] - }, - "value_flow": { - "doc_stack": "" - } - }, - { - "mnemonic": "-ROLLX", - "doc": { - "category": "stack_complex", - "description": "Pops integer `i` from the stack, then performs `[i] 1 BLKSWAP`.", - "gas": "18", - "fift": "-ROLLX\nROLLREVX" - }, - "bytecode": { - "doc_opcode": "62", - "tlb": "#62", - "prefix": "62", - "operands": [] - }, - "value_flow": { - "doc_stack": "" - } - }, - { - "mnemonic": "BLKSWX", - "doc": { - "category": "stack_complex", - "description": "Pops integers `i`,`j` from the stack, then performs `[i] [j] BLKSWAP`.", - "gas": "18", - "fift": "BLKSWX" - }, - "bytecode": { - "doc_opcode": "63", - "tlb": "#63", - "prefix": "63", - "operands": [] - }, - "value_flow": { - "doc_stack": "" - } - }, - { - "mnemonic": "REVX", - "doc": { - "category": "stack_complex", - "description": "Pops integers `i`,`j` from the stack, then performs `[i] [j] REVERSE`.", - "gas": "18", - "fift": "REVX" - }, - "bytecode": { - "doc_opcode": "64", - "tlb": "#64", - "prefix": "64", - "operands": [] - }, - "value_flow": { - "doc_stack": "" - } - }, - { - "mnemonic": "DROPX", - "doc": { - "category": "stack_complex", - "description": "Pops integer `i` from the stack, then performs `[i] BLKDROP`.", - "gas": "18", - "fift": "DROPX" - }, - "bytecode": { - "doc_opcode": "65", - "tlb": "#65", - "prefix": "65", - "operands": [] - }, - "value_flow": { - "doc_stack": "" - } - }, - { - "mnemonic": "TUCK", - "doc": { - "category": "stack_complex", - "description": "Equivalent to `SWAP` `OVER` or to `s1 s1 XCPU`.", - "gas": "18", - "fift": "TUCK" - }, - "bytecode": { - "doc_opcode": "66", - "tlb": "#66", - "prefix": "66", - "operands": [] - }, - "value_flow": { - "doc_stack": "a b - b a b" - } - }, - { - "mnemonic": "XCHGX", - "doc": { - "category": "stack_complex", - "description": "Pops integer `i` from the stack, then performs `s[i] XCHG`.", - "gas": "18", - "fift": "XCHGX" - }, - "bytecode": { - "doc_opcode": "67", - "tlb": "#67", - "prefix": "67", - "operands": [] - }, - "value_flow": { - "doc_stack": "" - } - }, - { - "mnemonic": "DEPTH", - "doc": { - "category": "stack_complex", - "description": "Pushes the current depth of the stack.", - "gas": "18", - "fift": "DEPTH" - }, - "bytecode": { - "doc_opcode": "68", - "tlb": "#68", - "prefix": "68", - "operands": [] - }, - "value_flow": { - "doc_stack": "- depth", - "inputs": { - "stack": [] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "depth", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "CHKDEPTH", - "doc": { - "category": "stack_complex", - "description": "Pops integer `i` from the stack, then checks whether there are at least `i` elements, generating a stack underflow exception otherwise.", - "gas": "18/58", - "fift": "CHKDEPTH" - }, - "bytecode": { - "doc_opcode": "69", - "tlb": "#69", - "prefix": "69", - "operands": [] - }, - "value_flow": { - "doc_stack": "i -", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - ] - } - } - }, - { - "mnemonic": "ONLYTOPX", - "doc": { - "category": "stack_complex", - "description": "Pops integer `i` from the stack, then removes all but the top `i` elements.", - "gas": "18", - "fift": "ONLYTOPX" - }, - "bytecode": { - "doc_opcode": "6A", - "tlb": "#6A", - "prefix": "6A", - "operands": [] - }, - "value_flow": { - "doc_stack": "" - } - }, - { - "mnemonic": "ONLYX", - "doc": { - "category": "stack_complex", - "description": "Pops integer `i` from the stack, then leaves only the bottom `i` elements. Approximately equivalent to `DEPTH` `SWAP` `SUB` `DROPX`.", - "gas": "18", - "fift": "ONLYX" - }, - "bytecode": { - "doc_opcode": "6B", - "tlb": "#6B", - "prefix": "6B", - "operands": [] - }, - "value_flow": { - "doc_stack": "" - } - }, - { - "mnemonic": "BLKDROP2", - "doc": { - "category": "stack_complex", - "description": "Drops `i` stack elements under the top `j` elements.\n`1 <= i <= 15`, `0 <= j <= 15`\nEquivalent to `[i+j] 0 REVERSE` `[i] BLKDROP` `[j] 0 REVERSE`.", - "gas": "26", - "fift": "[i] [j] BLKDROP2" - }, - "bytecode": { - "doc_opcode": "6Cij", - "tlb": "#6C i:(## 4) j:uint4 {1 <= i}", - "prefix": "6C", - "operands_range_check": { - "length": 4, - "from": 1, - "to": 15 - }, - "operands": [ - { - "name": "i", - "loader": "uint", - "loader_args": { - "size": 4 - } - }, - { - "name": "j", - "loader": "uint", - "loader_args": { - "size": 4 - } - } - ] - }, - "value_flow": { - "doc_stack": "" - } - }, - { - "mnemonic": "NULL", - "doc": { - "category": "tuple", - "description": "Pushes the only value of type _Null_.", - "gas": "18", - "fift": "NULL\nPUSHNULL" - }, - "bytecode": { - "doc_opcode": "6D", - "tlb": "#6D", - "prefix": "6D", - "operands": [] - }, - "value_flow": { - "doc_stack": " - null", - "inputs": { - "stack": [ - ] - }, - "outputs": { - "stack": [ - { - "type": "const", - "value": null, - "value_type": "Null" - } - ] - } - } - }, - { - "mnemonic": "ISNULL", - "doc": { - "category": "tuple", - "description": "Checks whether `x` is a _Null_, and returns `-1` or `0` accordingly.", - "gas": "18", - "fift": "ISNULL" - }, - "bytecode": { - "doc_opcode": "6E", - "tlb": "#6E", - "prefix": "6E", - "operands": [] - }, - "value_flow": { - "doc_stack": "x - ?", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "TUPLE", - "doc": { - "category": "tuple", - "description": "Creates a new _Tuple_ `t=(x_1, \u0432\u0402\u00a6 ,x_n)` containing `n` values `x_1`,..., `x_n`.\n`0 <= n <= 15`", - "gas": "26+n", - "fift": "[n] TUPLE" - }, - "bytecode": { - "doc_opcode": "6F0n", - "tlb": "#6F0 n:uint4", - "prefix": "6F0", - "operands": [ - { - "name": "n", - "loader": "uint", - "loader_args": { - "size": 4 - } - } - ] - }, - "value_flow": { - "doc_stack": "x_1 ... x_n - t", - "inputs": { - "stack": [ - { - "type": "array", - "name": "tuple_elements", - "length_var": "n", - "array_entry": [ - { - "type": "simple", - "name": "x" - } - ] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "t", - "value_types": ["Tuple"] - } - ] - } - } - }, - { - "mnemonic": "INDEX", - "doc": { - "category": "tuple", - "description": "Returns the `k`-th element of a _Tuple_ `t`.\n`0 <= k <= 15`.", - "gas": "26", - "fift": "[k] INDEX" - }, - "bytecode": { - "doc_opcode": "6F1k", - "tlb": "#6F1 k:uint4", - "prefix": "6F1", - "operands": [ - { - "name": "k", - "loader": "uint", - "loader_args": { - "size": 4 - } - } - ] - }, - "value_flow": { - "doc_stack": "t - x", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "t", - "value_types": ["Tuple"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x" - } - ] - } - } - }, - { - "mnemonic": "UNTUPLE", - "doc": { - "category": "tuple", - "description": "Unpacks a _Tuple_ `t=(x_1,...,x_n)` of length equal to `0 <= n <= 15`.\nIf `t` is not a _Tuple_, or if `|t| != n`, a type check exception is thrown.", - "gas": "26+n", - "fift": "[n] UNTUPLE" - }, - "bytecode": { - "doc_opcode": "6F2n", - "tlb": "#6F2 n:uint4", - "prefix": "6F2", - "operands": [ - { - "name": "n", - "loader": "uint", - "loader_args": { - "size": 4 - } - } - ] - }, - "value_flow": { - "doc_stack": "t - x_1 ... x_n", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "t", - "value_types": ["Tuple"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "array", - "name": "tuple_elements", - "length_var": "n", - "array_entry": [ - { - "type": "simple", - "name": "x" - } - ] - } - ] - } - } - }, - { - "mnemonic": "UNPACKFIRST", - "doc": { - "category": "tuple", - "description": "Unpacks first `0 <= k <= 15` elements of a _Tuple_ `t`.\nIf `|t|= |t|`, throws a range check exception.", - "gas": "26+|t|", - "fift": "[k] SETINDEX" - }, - "bytecode": { - "doc_opcode": "6F5k", - "tlb": "#6F5 k:uint4", - "prefix": "6F5", - "operands": [ - { - "name": "k", - "loader": "uint", - "loader_args": { - "size": 4 - } - } - ] - }, - "value_flow": { - "doc_stack": "t x - t'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "t", - "value_types": ["Tuple"] - }, - { - "type": "simple", - "name": "x" - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "t2", - "value_types": ["Tuple"] - } - ] - } - } - }, - { - "mnemonic": "INDEXQ", - "doc": { - "category": "tuple", - "description": "Returns the `k`-th element of a _Tuple_ `t`, where `0 <= k <= 15`. In other words, returns `x_{k+1}` if `t=(x_1,...,x_n)`. If `k>=n`, or if `t` is _Null_, returns a _Null_ instead of `x`.", - "gas": "26", - "fift": "[k] INDEXQ" - }, - "bytecode": { - "doc_opcode": "6F6k", - "tlb": "#6F6 k:uint4", - "prefix": "6F6", - "operands": [ - { - "name": "k", - "loader": "uint", - "loader_args": { - "size": 4 - } - } - ] - }, - "value_flow": { - "doc_stack": "t - x", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "t", - "value_types": ["Tuple", "Null"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x" - } - ] - } - } - }, - { - "mnemonic": "SETINDEXQ", - "doc": { - "category": "tuple", - "description": "Sets the `k`-th component of _Tuple_ `t` to `x`, where `0 <= k < 16`, and returns the resulting _Tuple_ `t'`.\nIf `|t| <= k`, first extends the original _Tuple_ to length `n\u0432\u0402\u2122=k+1` by setting all new components to _Null_. If the original value of `t` is _Null_, treats it as an empty _Tuple_. If `t` is not _Null_ or _Tuple_, throws an exception. If `x` is _Null_ and either `|t| <= k` or `t` is _Null_, then always returns `t'=t` (and does not consume tuple creation gas).", - "gas": "26+|t\u0432\u0402\u2122|", - "fift": "[k] SETINDEXQ" - }, - "bytecode": { - "doc_opcode": "6F7k", - "tlb": "#6F7 k:uint4", - "prefix": "6F7", - "operands": [ - { - "name": "k", - "loader": "uint", - "loader_args": { - "size": 4 - } - } - ] - }, - "value_flow": { - "doc_stack": "t x - t'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "t", - "value_types": ["Tuple", "Null"] - }, - { - "type": "simple", - "name": "x" - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "t2", - "value_types": ["Tuple", "Null"] - } - ] - } - } - }, - { - "mnemonic": "TUPLEVAR", - "doc": { - "category": "tuple", - "description": "Creates a new _Tuple_ `t` of length `n` similarly to `TUPLE`, but with `0 <= n <= 255` taken from the stack.", - "gas": "26+n", - "fift": "TUPLEVAR" - }, - "bytecode": { - "doc_opcode": "6F80", - "tlb": "#6F80", - "prefix": "6F80", - "operands": [] - }, - "value_flow": { - "doc_stack": "x_1 ... x_n n - t", - "inputs": { - "stack": [ - { - "type": "array", - "name": "tuple_elements", - "length_var": "n", - "array_entry": [ - { - "type": "simple", - "name": "x" - } - ] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "t", - "value_types": ["Tuple"] - } - ] - } - } - }, - { - "mnemonic": "INDEXVAR", - "doc": { - "category": "tuple", - "description": "Similar to `k INDEX`, but with `0 <= k <= 254` taken from the stack.", - "gas": "26", - "fift": "INDEXVAR" - }, - "bytecode": { - "doc_opcode": "6F81", - "tlb": "#6F81", - "prefix": "6F81", - "operands": [] - }, - "value_flow": { - "doc_stack": "t k - x", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "t", - "value_types": ["Tuple"] - }, - { - "type": "simple", - "name": "k", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x" - } - ] - } - } - }, - { - "mnemonic": "UNTUPLEVAR", - "doc": { - "category": "tuple", - "description": "Similar to `n UNTUPLE`, but with `0 <= n <= 255` taken from the stack.", - "gas": "26+n", - "fift": "UNTUPLEVAR" - }, - "bytecode": { - "doc_opcode": "6F82", - "tlb": "#6F82", - "prefix": "6F82", - "operands": [] - }, - "value_flow": { - "doc_stack": "t n - x_1 ... x_n", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "t", - "value_types": ["Tuple"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "array", - "name": "tuple_elements", - "length_var": "n", - "array_entry": [ - { - "type": "simple", - "name": "x" - } - ] - } - ] - } - } - }, - { - "mnemonic": "UNPACKFIRSTVAR", - "doc": { - "category": "tuple", - "description": "Similar to `n UNPACKFIRST`, but with `0 <= n <= 255` taken from the stack.", - "gas": "26+n", - "fift": "UNPACKFIRSTVAR" - }, - "bytecode": { - "doc_opcode": "6F83", - "tlb": "#6F83", - "prefix": "6F83", - "operands": [] - }, - "value_flow": { - "doc_stack": "t n - x_1 ... x_n", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "t", - "value_types": ["Tuple"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "array", - "name": "tuple_elements", - "length_var": "n", - "array_entry": [ - { - "type": "simple", - "name": "x" - } - ] - } - ] - } - } - }, - { - "mnemonic": "EXPLODEVAR", - "doc": { - "category": "tuple", - "description": "Similar to `n EXPLODE`, but with `0 <= n <= 255` taken from the stack.", - "gas": "26+m", - "fift": "EXPLODEVAR" - }, - "bytecode": { - "doc_opcode": "6F84", - "tlb": "#6F84", - "prefix": "6F84", - "operands": [] - }, - "value_flow": { - "doc_stack": "t n - x_1 ... x_m m", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "t", - "value_types": ["Tuple"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "array", - "name": "tuple_elements", - "length_var": "m", - "array_entry": [ - { - "type": "simple", - "name": "x" - } - ] - }, - { - "type": "simple", - "name": "m", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "SETINDEXVAR", - "doc": { - "category": "tuple", - "description": "Similar to `k SETINDEX`, but with `0 <= k <= 254` taken from the stack.", - "gas": "26+|t\u0432\u0402\u2122|", - "fift": "SETINDEXVAR" - }, - "bytecode": { - "doc_opcode": "6F85", - "tlb": "#6F85", - "prefix": "6F85", - "operands": [] - }, - "value_flow": { - "doc_stack": "t x k - t'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "t", - "value_types": ["Tuple"] - }, - { - "type": "simple", - "name": "x" - }, - { - "type": "simple", - "name": "k", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "t2", - "value_types": ["Tuple"] - } - ] - } - } - }, - { - "mnemonic": "INDEXVARQ", - "doc": { - "category": "tuple", - "description": "Similar to `n INDEXQ`, but with `0 <= k <= 254` taken from the stack.", - "gas": "26", - "fift": "INDEXVARQ" - }, - "bytecode": { - "doc_opcode": "6F86", - "tlb": "#6F86", - "prefix": "6F86", - "operands": [] - }, - "value_flow": { - "doc_stack": "t k - x", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "t", - "value_types": ["Tuple", "Null"] - }, - { - "type": "simple", - "name": "k", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x" - } - ] - } - } - }, - { - "mnemonic": "SETINDEXVARQ", - "doc": { - "category": "tuple", - "description": "Similar to `k SETINDEXQ`, but with `0 <= k <= 254` taken from the stack.", - "gas": "26+|t\u0432\u0402\u2122|", - "fift": "SETINDEXVARQ" - }, - "bytecode": { - "doc_opcode": "6F87", - "tlb": "#6F87", - "prefix": "6F87", - "operands": [] - }, - "value_flow": { - "doc_stack": "t x k - t'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "t", - "value_types": ["Tuple", "Null"] - }, - { - "type": "simple", - "name": "x" - }, - { - "type": "simple", - "name": "k", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "t2", - "value_types": ["Tuple", "Null"] - } - ] - } - } - }, - { - "mnemonic": "TLEN", - "doc": { - "category": "tuple", - "description": "Returns the length of a _Tuple_.", - "gas": "26", - "fift": "TLEN" - }, - "bytecode": { - "doc_opcode": "6F88", - "tlb": "#6F88", - "prefix": "6F88", - "operands": [] - }, - "value_flow": { - "doc_stack": "t - n", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "t", - "value_types": ["Tuple"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QTLEN", - "doc": { - "category": "tuple", - "description": "Similar to `TLEN`, but returns `-1` if `t` is not a _Tuple_.", - "gas": "26", - "fift": "QTLEN" - }, - "bytecode": { - "doc_opcode": "6F89", - "tlb": "#6F89", - "prefix": "6F89", - "operands": [] - }, - "value_flow": { - "doc_stack": "t - n or -1", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "t", - "value_types": ["Tuple"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "ISTUPLE", - "doc": { - "category": "tuple", - "description": "Returns `-1` or `0` depending on whether `t` is a _Tuple_.", - "gas": "26", - "fift": "ISTUPLE" - }, - "bytecode": { - "doc_opcode": "6F8A", - "tlb": "#6F8A", - "prefix": "6F8A", - "operands": [] - }, - "value_flow": { - "doc_stack": "t - ?", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "t", - "value_types": ["Tuple"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "LAST", - "doc": { - "category": "tuple", - "description": "Returns the last element of a non-empty _Tuple_ `t`.", - "gas": "26", - "fift": "LAST" - }, - "bytecode": { - "doc_opcode": "6F8B", - "tlb": "#6F8B", - "prefix": "6F8B", - "operands": [] - }, - "value_flow": { - "doc_stack": "t - x", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "t", - "value_types": ["Tuple"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x" - } - ] - } - } - }, - { - "mnemonic": "TPUSH", - "doc": { - "category": "tuple", - "description": "Appends a value `x` to a _Tuple_ `t=(x_1,...,x_n)`, but only if the resulting _Tuple_ `t'=(x_1,...,x_n,x)` is of length at most 255. Otherwise throws a type check exception.", - "gas": "26+|t\u0432\u0402\u2122|", - "fift": "TPUSH\nCOMMA" - }, - "bytecode": { - "doc_opcode": "6F8C", - "tlb": "#6F8C", - "prefix": "6F8C", - "operands": [] - }, - "value_flow": { - "doc_stack": "t x - t'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "t", - "value_types": ["Tuple"] - }, - { - "type": "simple", - "name": "x" - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "t2", - "value_types": ["Tuple"] - } - ] - } - } - }, - { - "mnemonic": "TPOP", - "doc": { - "category": "tuple", - "description": "Detaches the last element `x=x_n` from a non-empty _Tuple_ `t=(x_1,...,x_n)`, and returns both the resulting _Tuple_ `t'=(x_1,...,x_{n-1})` and the original last element `x`.", - "gas": "26+|t\u0432\u0402\u2122|", - "fift": "TPOP" - }, - "bytecode": { - "doc_opcode": "6F8D", - "tlb": "#6F8D", - "prefix": "6F8D", - "operands": [] - }, - "value_flow": { - "doc_stack": "t - t' x", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "t", - "value_types": ["Tuple"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "t2", - "value_types": ["Tuple"] - }, - { - "type": "simple", - "name": "x" - } - ] - } - } - }, - { - "mnemonic": "NULLSWAPIF", - "doc": { - "category": "tuple", - "description": "Pushes a _Null_ under the topmost _Integer_ `x`, but only if `x!=0`.", - "gas": "26", - "fift": "NULLSWAPIF" - }, - "bytecode": { - "doc_opcode": "6FA0", - "tlb": "#6FA0", - "prefix": "6FA0", - "operands": [] - }, - "value_flow": { - "doc_stack": "x - x or null x", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "x", - "match": [ - {"value": 0, "stack": []} - ], - "else": [ - { - "type": "const", - "value": null, - "value_type": "Null" - } - ] - }, - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "NULLSWAPIFNOT", - "doc": { - "category": "tuple", - "description": "Pushes a _Null_ under the topmost _Integer_ `x`, but only if `x=0`. May be used for stack alignment after quiet primitives such as `PLDUXQ`.", - "gas": "26", - "fift": "NULLSWAPIFNOT" - }, - "bytecode": { - "doc_opcode": "6FA1", - "tlb": "#6FA1", - "prefix": "6FA1", - "operands": [] - }, - "value_flow": { - "doc_stack": "x - x or null x", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "x", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "const", - "value": null, - "value_type": "Null" - } - ] - } - ], - "else": [] - }, - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "NULLROTRIF", - "doc": { - "category": "tuple", - "description": "Pushes a _Null_ under the second stack entry from the top, but only if the topmost _Integer_ `y` is non-zero.", - "gas": "26", - "fift": "NULLROTRIF" - }, - "bytecode": { - "doc_opcode": "6FA2", - "tlb": "#6FA2", - "prefix": "6FA2", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - x y or null x y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x" - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "y", - "match": [ - {"value": 0, "stack": []} - ], - "else": [ - { - "type": "const", - "value": null, - "value_type": "Null" - } - ] - }, - { - "type": "simple", - "name": "x" - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "NULLROTRIFNOT", - "doc": { - "category": "tuple", - "description": "Pushes a _Null_ under the second stack entry from the top, but only if the topmost _Integer_ `y` is zero. May be used for stack alignment after quiet primitives such as `LDUXQ`.", - "gas": "26", - "fift": "NULLROTRIFNOT" - }, - "bytecode": { - "doc_opcode": "6FA3", - "tlb": "#6FA3", - "prefix": "6FA3", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - x y or null x y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x" - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "y", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "const", - "value": null, - "value_type": "Null" - } - ] - } - ], - "else": [] - }, - { - "type": "simple", - "name": "x" - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "NULLSWAPIF2", - "doc": { - "category": "tuple", - "description": "Pushes two nulls under the topmost _Integer_ `x`, but only if `x!=0`.\nEquivalent to `NULLSWAPIF` `NULLSWAPIF`.", - "gas": "26", - "fift": "NULLSWAPIF2" - }, - "bytecode": { - "doc_opcode": "6FA4", - "tlb": "#6FA4", - "prefix": "6FA4", - "operands": [] - }, - "value_flow": { - "doc_stack": "x - x or null null x", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "x", - "match": [ - {"value": 0, "stack": []} - ], - "else": [ - { - "type": "const", - "value": null, - "value_type": "Null" - }, - { - "type": "const", - "value": null, - "value_type": "Null" - } - ] - }, - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "NULLSWAPIFNOT2", - "doc": { - "category": "tuple", - "description": "Pushes two nulls under the topmost _Integer_ `x`, but only if `x=0`.\nEquivalent to `NULLSWAPIFNOT` `NULLSWAPIFNOT`.", - "gas": "26", - "fift": "NULLSWAPIFNOT2" - }, - "bytecode": { - "doc_opcode": "6FA5", - "tlb": "#6FA5", - "prefix": "6FA5", - "operands": [] - }, - "value_flow": { - "doc_stack": "x - x or null null x", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "x", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "const", - "value": null, - "value_type": "Null" - }, - { - "type": "const", - "value": null, - "value_type": "Null" - } - ] - } - ], - "else": [] - }, - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "NULLROTRIF2", - "doc": { - "category": "tuple", - "description": "Pushes two nulls under the second stack entry from the top, but only if the topmost _Integer_ `y` is non-zero.\nEquivalent to `NULLROTRIF` `NULLROTRIF`.", - "gas": "26", - "fift": "NULLROTRIF2" - }, - "bytecode": { - "doc_opcode": "6FA6", - "tlb": "#6FA6", - "prefix": "6FA6", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - x y or null null x y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x" - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "y", - "match": [ - {"value": 0, "stack": []} - ], - "else": [ - { - "type": "const", - "value": null, - "value_type": "Null" - }, - { - "type": "const", - "value": null, - "value_type": "Null" - } - ] - }, - { - "type": "simple", - "name": "x" - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "NULLROTRIFNOT2", - "doc": { - "category": "tuple", - "description": "Pushes two nulls under the second stack entry from the top, but only if the topmost _Integer_ `y` is zero.\nEquivalent to `NULLROTRIFNOT` `NULLROTRIFNOT`.", - "gas": "26", - "fift": "NULLROTRIFNOT2" - }, - "bytecode": { - "doc_opcode": "6FA7", - "tlb": "#6FA7", - "prefix": "6FA7", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - x y or null null x y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x" - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "y", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "const", - "value": null, - "value_type": "Null" - }, - { - "type": "const", - "value": null, - "value_type": "Null" - } - ] - } - ], - "else": [] - }, - { - "type": "simple", - "name": "x" - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "INDEX2", - "doc": { - "category": "tuple", - "description": "Recovers `x=(t_{i+1})_{j+1}` for `0 <= i,j <= 3`.\nEquivalent to `[i] INDEX` `[j] INDEX`.", - "gas": "26", - "fift": "[i] [j] INDEX2" - }, - "bytecode": { - "doc_opcode": "6FBij", - "tlb": "#6FB i:uint2 j:uint2", - "prefix": "6FB", - "operands": [ - { - "name": "i", - "loader": "uint", - "loader_args": { - "size": 2 - } - }, - { - "name": "j", - "loader": "uint", - "loader_args": { - "size": 2 - } - } - ] - }, - "value_flow": { - "doc_stack": "t - x", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "t", - "value_types": ["Tuple"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x" - } - ] - } - } - }, - { - "mnemonic": "INDEX3", - "doc": { - "category": "tuple", - "description": "Recovers `x=t_{i+1}_{j+1}_{k+1}`.\n`0 <= i,j,k <= 3`\nEquivalent to `[i] [j] INDEX2` `[k] INDEX`.", - "gas": "26", - "fift": "[i] [j] [k] INDEX3" - }, - "bytecode": { - "doc_opcode": "6FE_ijk", - "tlb": "#6FE_ i:uint2 j:uint2 k:uint2", - "prefix": "6FE_", - "operands": [ - { - "name": "i", - "loader": "uint", - "loader_args": { - "size": 2 - } - }, - { - "name": "j", - "loader": "uint", - "loader_args": { - "size": 2 - } - }, - { - "name": "k", - "loader": "uint", - "loader_args": { - "size": 2 - } - } - ] - }, - "value_flow": { - "doc_stack": "t - x", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "t", - "value_types": ["Tuple"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x" - } - ] - } - } - }, - { - "mnemonic": "PUSHINT_4", - "doc": { - "category": "const_int", - "description": "Pushes integer `x` into the stack. `-5 <= x <= 10`.\nHere `i` equals four lower-order bits of `x` (`i=x mod 16`).", - "gas": "18", - "fift": "[x] PUSHINT\n[x] INT" - }, - "bytecode": { - "doc_opcode": "7i", - "tlb": "#7 i:uint4", - "prefix": "7", - "operands": [ - { - "name": "i", - "loader": "uint", - "loader_args": { - "size": 4 - } - } - ] - }, - "value_flow": { - "doc_stack": "- x", - "inputs": { - "stack": [] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "PUSHINT_8", - "doc": { - "category": "const_int", - "description": "Pushes integer `xx`. `-128 <= xx <= 127`.", - "gas": "26", - "fift": "[xx] PUSHINT\n[xx] INT" - }, - "bytecode": { - "doc_opcode": "80xx", - "tlb": "#80 xx:int8", - "prefix": "80", - "operands": [ - { - "name": "x", - "loader": "int", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "- xx", - "inputs": { - "stack": [] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "PUSHINT_16", - "doc": { - "category": "const_int", - "description": "Pushes integer `xxxx`. `-2^15 <= xx < 2^15`.", - "gas": "34", - "fift": "[xxxx] PUSHINT\n[xxxx] INT" - }, - "bytecode": { - "doc_opcode": "81xxxx", - "tlb": "#81 xxxx:int16", - "prefix": "81", - "operands": [ - { - "name": "x", - "loader": "int", - "loader_args": { - "size": 16 - } - } - ] - }, - "value_flow": { - "doc_stack": "- xxxx", - "inputs": { - "stack": [] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "PUSHINT_LONG", - "doc": { - "category": "const_int", - "description": "Pushes integer `xxx`.\n_Details:_ 5-bit `0 <= l <= 30` determines the length `n=8l+19` of signed big-endian integer `xxx`.\nThe total length of this instruction is `l+4` bytes or `n+13=8l+32` bits.", - "gas": "23", - "fift": "[xxx] PUSHINT\n[xxx] INT" - }, - "bytecode": { - "doc_opcode": "82lxxx", - "tlb": "#82 l:(## 5) xxx:(int (8 * l + 19))", - "prefix": "82", - "operands_range_check": { - "length": 5, - "from": 0, - "to": 30 - }, - "operands": [ - { - "name": "x", - "loader": "pushint_long", - "loader_args": {} - } - ] - }, - "value_flow": { - "doc_stack": "- xxx", - "inputs": { - "stack": [] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "PUSHPOW2", - "doc": { - "category": "const_int", - "description": "(Quietly) pushes `2^(xx+1)` for `0 <= xx <= 255`.\n`2^256` is a `NaN`.", - "gas": "26", - "fift": "[xx+1] PUSHPOW2" - }, - "bytecode": { - "doc_opcode": "83xx", - "tlb": "#83 xx:uint8", - "prefix": "83", - "operands_range_check": { - "length": 8, - "from": 0, - "to": 254 - }, - "operands": [ - { - "name": "x", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "- 2^(xx+1)", - "inputs": { - "stack": [] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "PUSHNAN", - "doc": { - "category": "const_int", - "description": "Pushes a `NaN`.", - "gas": "26", - "fift": "PUSHNAN" - }, - "bytecode": { - "doc_opcode": "83FF", - "tlb": "#83FF", - "prefix": "83FF", - "operands": [] - }, - "value_flow": { - "doc_stack": "- NaN", - "inputs": { - "stack": [] - }, - "outputs": { - "stack": [ - { - "type": "const", - "value_type": "Integer", - "value": null - } - ] - } - } - }, - { - "mnemonic": "PUSHPOW2DEC", - "doc": { - "category": "const_int", - "description": "Pushes `2^(xx+1)-1` for `0 <= xx <= 255`.", - "gas": "26", - "fift": "[xx+1] PUSHPOW2DEC" - }, - "bytecode": { - "doc_opcode": "84xx", - "tlb": "#84 xx:uint8", - "prefix": "84", - "operands": [ - { - "name": "x", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "- 2^(xx+1)-1", - "inputs": { - "stack": [] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "PUSHNEGPOW2", - "doc": { - "category": "const_int", - "description": "Pushes `-2^(xx+1)` for `0 <= xx <= 255`.", - "gas": "26", - "fift": "[xx+1] PUSHNEGPOW2" - }, - "bytecode": { - "doc_opcode": "85xx", - "tlb": "#85 xx:uint8", - "prefix": "85", - "operands": [ - { - "name": "x", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "- -2^(xx+1)", - "inputs": { - "stack": [] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "PUSHREF", - "doc": { - "category": "const_data", - "description": "Pushes the reference `ref` into the stack.\n_Details:_ Pushes the first reference of `cc.code` into the stack as a _Cell_ (and removes this reference from the current continuation).", - "gas": "18", - "fift": "[ref] PUSHREF" - }, - "bytecode": { - "doc_opcode": "88", - "tlb": "#88 c:^Cell", - "prefix": "88", - "operands": [ - { - "name": "c", - "loader": "ref", - "loader_args": {} - } - ] - }, - "value_flow": { - "doc_stack": "- c", - "inputs": { - "stack": [] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Cell"] - } - ] - } - } - }, - { - "mnemonic": "PUSHREFSLICE", - "doc": { - "category": "const_data", - "description": "Similar to `PUSHREF`, but converts the cell into a _Slice_.", - "gas": "118/43", - "fift": "[ref] PUSHREFSLICE" - }, - "bytecode": { - "doc_opcode": "89", - "tlb": "#89 c:^Cell", - "prefix": "89", - "operands": [ - { - "name": "c", - "loader": "ref", - "loader_args": {} - } - ] - }, - "value_flow": { - "doc_stack": "- s", - "inputs": { - "stack": [] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "PUSHREFCONT", - "doc": { - "category": "const_data", - "description": "Similar to `PUSHREFSLICE`, but makes a simple ordinary _Continuation_ out of the cell.", - "gas": "118/43", - "fift": "[ref] PUSHREFCONT" - }, - "bytecode": { - "doc_opcode": "8A", - "tlb": "#8A c:^Cell", - "prefix": "8A", - "operands": [ - { - "name": "c", - "loader": "ref", - "loader_args": {} - } - ] - }, - "value_flow": { - "doc_stack": "- cont", - "inputs": { - "stack": [] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Continuation"] - } - ] - } - } - }, - { - "mnemonic": "PUSHSLICE", - "doc": { - "category": "const_data", - "description": "Pushes the slice `slice` into the stack.\n_Details:_ Pushes the (prefix) subslice of `cc.code` consisting of its first `8x+4` bits and no references (i.e., essentially a bitstring), where `0 <= x <= 15`.\nA completion tag is assumed, meaning that all trailing zeroes and the last binary one (if present) are removed from this bitstring.\nIf the original bitstring consists only of zeroes, an empty slice will be pushed.", - "gas": "22", - "fift": "[slice] PUSHSLICE\n[slice] SLICE" - }, - "bytecode": { - "doc_opcode": "8Bxsss", - "tlb": "#8B x:(## 4) sss:((8 * x + 4) * Bit)", - "prefix": "8B", - "operands": [ - { - "name": "x", - "loader": "uint", - "loader_args": { - "size": 4 - }, - "internal": true - }, - { - "name": "s", - "loader": "subslice", - "loader_args": { - "bits_length_var": "x", - "bits_padding": 4, - "completion_tag": true - } - } - ] - }, - "value_flow": { - "doc_stack": "- s", - "inputs": { - "stack": [] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "PUSHSLICE_REFS", - "doc": { - "category": "const_data", - "description": "Pushes the slice `slice` into the stack.\n_Details:_ Pushes the (prefix) subslice of `cc.code` consisting of its first `1 <= r+1 <= 4` references and up to first `8xx+1` bits of data, with `0 <= xx <= 31`.\nA completion tag is also assumed.", - "gas": "25", - "fift": "[slice] PUSHSLICE\n[slice] SLICE" - }, - "bytecode": { - "doc_opcode": "8Crxxssss", - "tlb": "#8C r:(## 2) xx:(## 5) c:((r + 1) * ^Cell) ssss:((8 * xx + 1) * Bit)", - "prefix": "8C", - "operands": [ - { - "name": "r", - "loader": "uint", - "loader_args": { - "size": 2 - }, - "internal": true - }, - { - "name": "x", - "loader": "uint", - "loader_args": { - "size": 5 - }, - "internal": true - }, - { - "name": "slice", - "loader": "subslice", - "loader_args": { - "bits_length_var": "x", - "bits_padding": 1, - "refs_length_var": "r", - "refs_add": 1, - "completion_tag": true - } - } - ] - }, - "value_flow": { - "doc_stack": "- s", - "inputs": { - "stack": [] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "PUSHSLICE_LONG", - "doc": { - "category": "const_data", - "description": "Pushes the slice `slice` into the stack.\n_Details:_ Pushes the subslice of `cc.code` consisting of `0 <= r <= 4` references and up to `8xx+6` bits of data, with `0 <= xx <= 127`.\nA completion tag is assumed.", - "gas": "28", - "fift": "[slice] PUSHSLICE\n[slice] SLICE", - "fift_examples": [ - { - "fift": "x{} PUSHSLICE x{ABCD1234} PUSHSLICE b{01101} PUSHSLICE", - "description": "Examples of `PUSHSLICE`. `x{}` is an empty slice. `x{...}` is a hexadecimal literal. `b{...}` is a binary literal. More on slice literals [here](https://github.com/Piterden/TON-docs/blob/master/Fift.%20A%20Brief%20Introduction.md#user-content-51-slice-literals). Note that the assembler can replace `PUSHSLICE` with `PUSHREFSLICE` in certain situations (e.g. if there’s not enough space in the current continuation)." - }, - { - "fift": " PUSHREF PUSHREFSLICE", - "description": "Examples of `PUSHREF` and `PUSHREFSLICE`. More on building cells in fift [here](https://github.com/Piterden/TON-docs/blob/master/Fift.%20A%20Brief%20Introduction.md#user-content-52-builder-primitives)." - } - ] - }, - "bytecode": { - "doc_opcode": "8Drxxsssss", - "tlb": "#8D r:(#<= 4) xx:(## 7) c:(r * ^Cell) ssss:((8 * xx + 6) * Bit)", - "prefix": "8D", - "operands_range_check": { - "length": 3, - "from": 0, - "to": 4 - }, - "operands": [ - { - "name": "r", - "loader": "uint", - "loader_args": { - "size": 3 - }, - "internal": true - }, - { - "name": "x", - "loader": "uint", - "loader_args": { - "size": 7 - }, - "internal": true - }, - { - "name": "slice", - "loader": "subslice", - "loader_args": { - "bits_length_var": "x", - "bits_padding": 6, - "refs_length_var": "r", - "completion_tag": true - } - } - ] - }, - "value_flow": { - "doc_stack": "- s", - "inputs": { - "stack": [] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "PUSHCONT", - "doc": { - "category": "const_data", - "description": "Pushes a continuation made from `builder`.\n_Details:_ Pushes the simple ordinary continuation `cccc` made from the first `0 <= r <= 3` references and the first `0 <= xx <= 127` bytes of `cc.code`.", - "gas": "26", - "fift": "[builder] PUSHCONT\n[builder] CONT" - }, - "bytecode": { - "doc_opcode": "8F_rxxcccc", - "tlb": "#8F_ r:(## 2) xx:(## 7) c:(r * ^Cell) ssss:((8 * xx) * Bit)", - "prefix": "8F_", - "operands": [ - { - "name": "r", - "loader": "uint", - "loader_args": { - "size": 2 - }, - "internal": true - }, - { - "name": "x", - "loader": "uint", - "loader_args": { - "size": 7 - }, - "internal": true - }, - { - "name": "s", - "loader": "subslice", - "loader_args": { - "bits_length_var": "x", - "bits_padding": 0, - "refs_length_var": "r" - } - } - ] - }, - "value_flow": { - "doc_stack": "- c", - "inputs": { - "stack": [] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Continuation"] - } - ] - } - } - }, - { - "mnemonic": "PUSHCONT_SHORT", - "doc": { - "category": "const_data", - "description": "Pushes a continuation made from `builder`.\n_Details:_ Pushes an `x`-byte continuation for `0 <= x <= 15`.", - "gas": "18", - "fift": "[builder] PUSHCONT\n[builder] CONT", - "fift_examples": [ - { - "fift": "<{ code }> PUSHCONT <{ code }> CONT CONT:<{ code }>", - "description": "Pushes a continuation with code `code`. Note that the assembler can replace `PUSHCONT` with `PUSHREFCONT` in certain situations (e.g. if there’s not enough space in the current continuation)." - } - ] - }, - "bytecode": { - "doc_opcode": "9xccc", - "tlb": "#9 x:(## 4) ssss:((8 * x) * Bit)", - "prefix": "9", - "operands": [ - { - "name": "x", - "loader": "uint", - "loader_args": { - "size": 4 - }, - "internal": true - }, - { - "name": "s", - "loader": "subslice", - "loader_args": { - "bits_length_var": "x", - "bits_padding": 0 - } - } - ] - }, - "value_flow": { - "doc_stack": "- c", - "inputs": { - "stack": [] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Continuation"] - } - ] - } - } - }, - { - "mnemonic": "ADD", - "doc": { - "category": "arithm_basic", - "description": "", - "gas": "18", - "fift": "ADD" - }, - "bytecode": { - "doc_opcode": "A0", - "tlb": "#A0", - "prefix": "A0", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - x+y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "SUB", - "doc": { - "category": "arithm_basic", - "description": "", - "gas": "18", - "fift": "SUB" - }, - "bytecode": { - "doc_opcode": "A1", - "tlb": "#A1", - "prefix": "A1", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - x-y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "SUBR", - "doc": { - "category": "arithm_basic", - "description": "Equivalent to `SWAP` `SUB`.", - "gas": "18", - "fift": "SUBR" - }, - "bytecode": { - "doc_opcode": "A2", - "tlb": "#A2", - "prefix": "A2", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - y-x", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "NEGATE", - "doc": { - "category": "arithm_basic", - "description": "Equivalent to `-1 MULCONST` or to `ZERO SUBR`.\nNotice that it triggers an integer overflow exception if `x=-2^256`.", - "gas": "18", - "fift": "NEGATE" - }, - "bytecode": { - "doc_opcode": "A3", - "tlb": "#A3", - "prefix": "A3", - "operands": [] - }, - "value_flow": { - "doc_stack": "x - -x", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "INC", - "doc": { - "category": "arithm_basic", - "description": "Equivalent to `1 ADDCONST`.", - "gas": "18", - "fift": "INC" - }, - "bytecode": { - "doc_opcode": "A4", - "tlb": "#A4", - "prefix": "A4", - "operands": [] - }, - "value_flow": { - "doc_stack": "x - x+1", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DEC", - "doc": { - "category": "arithm_basic", - "description": "Equivalent to `-1 ADDCONST`.", - "gas": "18", - "fift": "DEC" - }, - "bytecode": { - "doc_opcode": "A5", - "tlb": "#A5", - "prefix": "A5", - "operands": [] - }, - "value_flow": { - "doc_stack": "x - x-1", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "ADDCONST", - "doc": { - "category": "arithm_basic", - "description": "`-128 <= cc <= 127`.", - "gas": "26", - "fift": "[cc] ADDCONST\n[cc] ADDINT\n[-cc] SUBCONST\n[-cc] SUBINT" - }, - "bytecode": { - "doc_opcode": "A6cc", - "tlb": "#A6 cc:int8", - "prefix": "A6", - "operands": [ - { - "name": "c", - "loader": "int", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x - x+cc", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "MULCONST", - "doc": { - "category": "arithm_basic", - "description": "`-128 <= cc <= 127`.", - "gas": "26", - "fift": "[cc] MULCONST\n[cc] MULINT" - }, - "bytecode": { - "doc_opcode": "A7cc", - "tlb": "#A7 cc:int8", - "prefix": "A7", - "operands": [ - { - "name": "c", - "loader": "int", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x - x*cc", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "MUL", - "doc": { - "category": "arithm_basic", - "description": "", - "gas": "18", - "fift": "MUL" - }, - "bytecode": { - "doc_opcode": "A8", - "tlb": "#A8", - "prefix": "A8", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - x*y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "ADDDIVMOD", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "26", - "fift": "ADDDIVMOD" - }, - "bytecode": { - "doc_opcode": "A900", - "tlb": "#A900", - "prefix": "A900", - "operands": [] - }, - "value_flow": { - "doc_stack": "x w z - q=floor((x+w)/z) r=(x+w)-zq", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "w", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "q", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "ADDDIVMODR", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "26", - "fift": "ADDDIVMODR" - }, - "bytecode": { - "doc_opcode": "A901", - "tlb": "#A901", - "prefix": "A901", - "operands": [] - }, - "value_flow": { - "doc_stack": "x w z - q=round((x+w)/z) r=(x+w)-zq", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "w", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "q", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "ADDDIVMODC", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "26", - "fift": "ADDDIVMODC" - }, - "bytecode": { - "doc_opcode": "A902", - "tlb": "#A902", - "prefix": "A902", - "operands": [] - }, - "value_flow": { - "doc_stack": "x w y - q=ceil((x+w)/z) r=(x+w)-zq", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "w", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "q", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DIV", - "doc": { - "category": "arithm_div", - "description": "`q=floor(x/y)`, `r=x-y*q`", - "gas": "26", - "fift": "DIV" - }, - "bytecode": { - "doc_opcode": "A904", - "tlb": "#A904", - "prefix": "A904", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - q", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DIVR", - "doc": { - "category": "arithm_div", - "description": "`q\u0432\u0402\u2122=round(x/y)`, `r\u0432\u0402\u2122=x-y*q\u0432\u0402\u2122`", - "gas": "26", - "fift": "DIVR" - }, - "bytecode": { - "doc_opcode": "A905", - "tlb": "#A905", - "prefix": "A905", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - q\u0432\u0402\u2122", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DIVC", - "doc": { - "category": "arithm_div", - "description": "`q\u0432\u0402\u2122\u0432\u0402\u2122=ceil(x/y)`, `r\u0432\u0402\u2122\u0432\u0402\u2122=x-y*q\u0432\u0402\u2122\u0432\u0402\u2122`", - "gas": "26", - "fift": "DIVC" - }, - "bytecode": { - "doc_opcode": "A906", - "tlb": "#A906", - "prefix": "A906", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - q''", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "MOD", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "26", - "fift": "MOD" - }, - "bytecode": { - "doc_opcode": "A908", - "tlb": "#A908", - "prefix": "A908", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - r", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "MODR", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "26", - "fift": "MODR" - }, - "bytecode": { - "doc_opcode": "A909", - "tlb": "#A909", - "prefix": "A909", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - r", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "MODC", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "26", - "fift": "MODC" - }, - "bytecode": { - "doc_opcode": "A90A", - "tlb": "#A90A", - "prefix": "A90A", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - r", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DIVMOD", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "26", - "fift": "DIVMOD" - }, - "bytecode": { - "doc_opcode": "A90C", - "tlb": "#A90C", - "prefix": "A90C", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - q r", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "q", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DIVMODR", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "26", - "fift": "DIVMODR" - }, - "bytecode": { - "doc_opcode": "A90D", - "tlb": "#A90D", - "prefix": "A90D", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - q' r'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "q", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DIVMODC", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "26", - "fift": "DIVMODC" - }, - "bytecode": { - "doc_opcode": "A90E", - "tlb": "#A90E", - "prefix": "A90E", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - q'' r''", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "q", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "ADDRSHIFTMOD", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "26", - "fift": "ADDRSHIFTMOD" - }, - "bytecode": { - "doc_opcode": "A920", - "tlb": "#A920", - "prefix": "A920", - "operands": [] - }, - "value_flow": { - "doc_stack": "x w z - q=floor((x+w)/2^z) r=(x+w)-q*2^z", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "w", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "q", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "ADDRSHIFTMODR", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "26", - "fift": "ADDRSHIFTMODR" - }, - "bytecode": { - "doc_opcode": "A921", - "tlb": "#A921", - "prefix": "A921", - "operands": [] - }, - "value_flow": { - "doc_stack": "x w z - q=round((x+w)/2^z) r=(x+w)-q*2^z", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "w", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "q", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "ADDRSHIFTMODC", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "26", - "fift": "ADDRSHIFTMODC" - }, - "bytecode": { - "doc_opcode": "A922", - "tlb": "#A922", - "prefix": "A922", - "operands": [] - }, - "value_flow": { - "doc_stack": "x w z - q=ceil((x+w)/2^z) r=(x+w)-q*2^z", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "w", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "q", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "RSHIFTR_VAR", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "26", - "fift": "RSHIFTR" - }, - "bytecode": { - "doc_opcode": "A925", - "tlb": "#A925", - "prefix": "A925", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - round(x/2^y)", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "RSHIFTC_VAR", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "26", - "fift": "RSHIFTC" - }, - "bytecode": { - "doc_opcode": "A926", - "tlb": "#A926", - "prefix": "A926", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - ceil(x/2^y)", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "MODPOW2_VAR", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "26", - "fift": "MODPOW2" - }, - "bytecode": { - "doc_opcode": "A928", - "tlb": "#A928", - "prefix": "A928", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - x mod 2^y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "MODPOW2R_VAR", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "26", - "fift": "MODPOW2R" - }, - "bytecode": { - "doc_opcode": "A929", - "tlb": "#A929", - "prefix": "A929", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - x mod 2^y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "MODPOW2C_VAR", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "26", - "fift": "MODPOW2C" - }, - "bytecode": { - "doc_opcode": "A92A", - "tlb": "#A92A", - "prefix": "A92A", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - x mod 2^y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "RSHIFTMOD_VAR", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "26", - "fift": "RSHIFTMOD" - }, - "bytecode": { - "doc_opcode": "A92C", - "tlb": "#A92C", - "prefix": "A92C", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - q=floor(x/2^y) r=x-q*2^y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "q", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "RSHIFTMODR_VAR", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "26", - "fift": "RSHIFTMODR" - }, - "bytecode": { - "doc_opcode": "A92D", - "tlb": "#A92D", - "prefix": "A92D", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - q=round(x/2^y) r=x-q*2^y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "q", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "RSHIFTMODC_VAR", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "26", - "fift": "RSHIFTMODC" - }, - "bytecode": { - "doc_opcode": "A92E", - "tlb": "#A92E", - "prefix": "A92E", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - q=ceil(x/2^y) r=x-q*2^y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "q", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "ADDRSHIFTMOD", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "34", - "fift": "[tt+1] ADDRSHIFT#MOD" - }, - "bytecode": { - "doc_opcode": "A930tt", - "tlb": "#A930 tt:uint8", - "prefix": "A930", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x w - q=floor((x+w)/2^(tt+1)) r=(x+w)-q*2^(tt+1)", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "w", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "q", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "ADDRSHIFTRMOD", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "34", - "fift": "[tt+1] ADDRSHIFTR#MOD" - }, - "bytecode": { - "doc_opcode": "A931tt", - "tlb": "#A931 tt:uint8", - "prefix": "A931", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x w - q=round((x+w)/2^(tt+1)) r=(x+w)-q*2^(tt+1)", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "w", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "q", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "ADDRSHIFTCMOD", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "34", - "fift": "[tt+1] ADDRSHIFTC#MOD" - }, - "bytecode": { - "doc_opcode": "A932tt", - "tlb": "#A932 tt:uint8", - "prefix": "A932", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x w - q=round((x+w)/2^(tt+1)) r=(x+w)-q*2^(tt+1)", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "w", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "q", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "RSHIFTR", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "34", - "fift": "[tt+1] RSHIFTR#" - }, - "bytecode": { - "doc_opcode": "A935tt", - "tlb": "#A935 tt:uint8", - "prefix": "A935", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x - round(x/2^(tt+1))", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "RSHIFTC", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "34", - "fift": "[tt+1] RSHIFTC#" - }, - "bytecode": { - "doc_opcode": "A936tt", - "tlb": "#A936 tt:uint8", - "prefix": "A936", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x - ceil(x/2^(tt+1))", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "MODPOW2", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "34", - "fift": "[tt+1] MODPOW2#" - }, - "bytecode": { - "doc_opcode": "A938tt", - "tlb": "#A938 tt:uint8", - "prefix": "A938", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x - x mod 2^(tt+1)", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "MODPOW2R", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "34", - "fift": "[tt+1] MODPOW2R#" - }, - "bytecode": { - "doc_opcode": "A939tt", - "tlb": "#A939 tt:uint8", - "prefix": "A939", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x - x mod 2^(tt+1)", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "MODPOW2C", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "34", - "fift": "[tt+1] MODPOW2C#" - }, - "bytecode": { - "doc_opcode": "A93Att", - "tlb": "#A93A tt:uint8", - "prefix": "A93A", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x - x mod 2^(tt+1)", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "RSHIFTMOD", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "34", - "fift": "[tt+1] RSHIFT#MOD" - }, - "bytecode": { - "doc_opcode": "A93Ctt", - "tlb": "#A93C tt:uint8", - "prefix": "A93C", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x - q=floor(x/2^(tt+1)) r=x-q*2^(tt+1)", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "q", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "RSHIFTRMOD", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "34", - "fift": "[tt+1] RSHIFTR#MOD" - }, - "bytecode": { - "doc_opcode": "A93Dtt", - "tlb": "#A93D tt:uint8", - "prefix": "A93D", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x - q=round(x/2^(tt+1)) r=x-q*2^(tt+1)", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "q", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "RSHIFTCMOD", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "34", - "fift": "[tt+1] RSHIFTC#MOD" - }, - "bytecode": { - "doc_opcode": "A93Ett", - "tlb": "#A93E tt:uint8", - "prefix": "A93E", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x - q=ceil(x/2^(tt+1)) r=x-q*2^(tt+1)", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "q", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "MULADDDIVMOD", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "26", - "fift": "MULADDDIVMOD" - }, - "bytecode": { - "doc_opcode": "A980", - "tlb": "#A980", - "prefix": "A980", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y w z - q=floor((xy+w)/z) r=(xy+w)-zq", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "w", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "q", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "MULADDDIVMODR", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "26", - "fift": "MULADDDIVMODR" - }, - "bytecode": { - "doc_opcode": "A981", - "tlb": "#A981", - "prefix": "A981", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y w z - q=round((xy+w)/z) r=(xy+w)-zq", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "w", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "q", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "MULADDDIVMODC", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "26", - "fift": "MULADDDIVMODC" - }, - "bytecode": { - "doc_opcode": "A982", - "tlb": "#A982", - "prefix": "A982", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y w z - q=ceil((xy+w)/z) r=(xy+w)-zq", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "w", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "q", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "MULDIV", - "doc": { - "category": "arithm_div", - "description": "`q=floor(x*y/z)`", - "gas": "26", - "fift": "MULDIV" - }, - "bytecode": { - "doc_opcode": "A984", - "tlb": "#A984", - "prefix": "A984", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y z - q", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "MULDIVR", - "doc": { - "category": "arithm_div", - "description": "`q'=round(x*y/z)`", - "gas": "26", - "fift": "MULDIVR" - }, - "bytecode": { - "doc_opcode": "A985", - "tlb": "#A985", - "prefix": "A985", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y z - q'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "MULDIVC", - "doc": { - "category": "arithm_div", - "description": "`q'=ceil(x*y/z)`", - "gas": "26", - "fift": "MULDIVC" - }, - "bytecode": { - "doc_opcode": "A986", - "tlb": "#A986", - "prefix": "A986", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y z - q'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "MULMOD", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "26", - "fift": "MULMOD" - }, - "bytecode": { - "doc_opcode": "A988", - "tlb": "#A988", - "prefix": "A988", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y z - x*y mod z", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "MULMODR", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "26", - "fift": "MULMODR" - }, - "bytecode": { - "doc_opcode": "A989", - "tlb": "#A989", - "prefix": "A989", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y z - x*y mod z", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "MULMODC", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "26", - "fift": "MULMODC" - }, - "bytecode": { - "doc_opcode": "A98A", - "tlb": "#A98A", - "prefix": "A98A", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y z - x*y mod z", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "MULDIVMOD", - "doc": { - "category": "arithm_div", - "description": "`q=floor(x*y/z)`, `r=x*y-z*q`", - "gas": "26", - "fift": "MULDIVMOD" - }, - "bytecode": { - "doc_opcode": "A98C", - "tlb": "#A98C", - "prefix": "A98C", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y z - q r", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "q", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "MULDIVMODR", - "doc": { - "category": "arithm_div", - "description": "`q=round(x*y/z)`, `r=x*y-z*q`", - "gas": "26", - "fift": "MULDIVMODR" - }, - "bytecode": { - "doc_opcode": "A98D", - "tlb": "#A98D", - "prefix": "A98D", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y z - q r", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "q", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "MULDIVMODC", - "doc": { - "category": "arithm_div", - "description": "`q=ceil(x*y/z)`, `r=x*y-z*q`", - "gas": "26", - "fift": "MULDIVMODC" - }, - "bytecode": { - "doc_opcode": "A98E", - "tlb": "#A98E", - "prefix": "A98E", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y z - q r", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "q", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "MULADDRSHIFTMOD", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "26", - "fift": "MULADDRSHIFTMOD" - }, - "bytecode": { - "doc_opcode": "A9A0", - "tlb": "#A9A0", - "prefix": "A9A0", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y w z - q=floor((xy+w)/2^z) r=(xy+w)-q*2^z", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "w", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "q", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "MULADDRSHIFTRMOD", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "26", - "fift": "MULADDRSHIFTRMOD" - }, - "bytecode": { - "doc_opcode": "A9A1", - "tlb": "#A9A1", - "prefix": "A9A1", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y w z - q=round((xy+w)/2^z) r=(xy+w)-q*2^z", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "w", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "q", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "MULADDRSHIFTCMOD", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "26", - "fift": "MULADDRSHIFTCMOD" - }, - "bytecode": { - "doc_opcode": "A9A2", - "tlb": "#A9A2", - "prefix": "A9A2", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y w z - q=ceil((xy+w)/2^z) r=(xy+w)-q*2^z", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "w", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "q", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "MULRSHIFT_VAR", - "doc": { - "category": "arithm_div", - "description": "`0 <= z <= 256`", - "gas": "26", - "fift": "MULRSHIFT" - }, - "bytecode": { - "doc_opcode": "A9A4", - "tlb": "#A9A4", - "prefix": "A9A4", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y z - floor(x*y/2^z)", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "MULRSHIFTR_VAR", - "doc": { - "category": "arithm_div", - "description": "`0 <= z <= 256`", - "gas": "26", - "fift": "MULRSHIFTR" - }, - "bytecode": { - "doc_opcode": "A9A5", - "tlb": "#A9A5", - "prefix": "A9A5", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y z - round(x*y/2^z)", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "MULRSHIFTC_VAR", - "doc": { - "category": "arithm_div", - "description": "`0 <= z <= 256`", - "gas": "26", - "fift": "MULRSHIFTC" - }, - "bytecode": { - "doc_opcode": "A9A6", - "tlb": "#A9A6", - "prefix": "A9A6", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y z - ceil(x*y/2^z)", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "MULMODPOW2_VAR", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "26", - "fift": "MULMODPOW2_VAR" - }, - "bytecode": { - "doc_opcode": "A9A8", - "tlb": "#A9A8", - "prefix": "A9A8", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y z - x*y mod 2^z", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "MULMODPOW2R_VAR", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "26", - "fift": "MULMODPOW2R_VAR" - }, - "bytecode": { - "doc_opcode": "A9A9", - "tlb": "#A9A9", - "prefix": "A9A9", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y z - x*y mod 2^z", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "MULMODPOW2C_VAR", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "26", - "fift": "MULMODPOW2C_VAR" - }, - "bytecode": { - "doc_opcode": "A9AA", - "tlb": "#A9AA", - "prefix": "A9AA", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y z - x*y mod 2^z", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "MULRSHIFTMOD_VAR", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "26", - "fift": "MULRSHIFTMOD_VAR" - }, - "bytecode": { - "doc_opcode": "A9AC", - "tlb": "#A9AC", - "prefix": "A9AC", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y z - q=floor(x*y/2^z) r=xy-q*2^z", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "MULRSHIFTRMOD_VAR", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "26", - "fift": "MULRSHIFTRMOD_VAR" - }, - "bytecode": { - "doc_opcode": "A9AD", - "tlb": "#A9AD", - "prefix": "A9AD", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y z - q=round(x*y/2^z) r=xy-q*2^z", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "MULRSHIFTCMOD_VAR", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "26", - "fift": "MULRSHIFTCMOD_VAR" - }, - "bytecode": { - "doc_opcode": "A9AE", - "tlb": "#A9AE", - "prefix": "A9AE", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y z - q=ceil(x*y/2^z) r=xy-q*2^z", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "MULADDRSHIFTMOD", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "34", - "fift": "[tt+1] MULADDRSHIFT#MOD" - }, - "bytecode": { - "doc_opcode": "A9B0tt", - "tlb": "#A9B0 tt:uint8", - "prefix": "A9B0", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x y w - q=floor((xy+w)/2^z) r=(xy+w)-q*2^z", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "w", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "MULADDRSHIFTRMOD", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "34", - "fift": "[tt+1] MULADDRSHIFTR#MOD" - }, - "bytecode": { - "doc_opcode": "A9B1tt", - "tlb": "#A9B1 tt:uint8", - "prefix": "A9B1", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x y w - q=round((xy+w)/2^z) r=(xy+w)-q*2^z", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "w", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "MULADDRSHIFTCMOD", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "34", - "fift": "[tt+1] MULADDRSHIFTC#MOD" - }, - "bytecode": { - "doc_opcode": "A9B2tt", - "tlb": "#A9B2 tt:uint8", - "prefix": "A9B2", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x y w - q=ceil((xy+w)/2^z) r=(xy+w)-q*2^z", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "w", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "MULRSHIFT", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "34", - "fift": "[tt+1] MULRSHIFT#" - }, - "bytecode": { - "doc_opcode": "A9B4tt", - "tlb": "#A9B4 tt:uint8", - "prefix": "A9B4", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x y - floor(x*y/2^(tt+1))", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "MULRSHIFTR", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "34", - "fift": "[tt+1] MULRSHIFTR#" - }, - "bytecode": { - "doc_opcode": "A9B5tt", - "tlb": "#A9B5 tt:uint8", - "prefix": "A9B5", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x y - round(x*y/2^(tt+1))", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "MULRSHIFTC", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "34", - "fift": "[tt+1] MULRSHIFTC#" - }, - "bytecode": { - "doc_opcode": "A9B6tt", - "tlb": "#A9B6 tt:uint8", - "prefix": "A9B6", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x y - ceil(x*y/2^(tt+1))", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "MULMODPOW2", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "34", - "fift": "[tt+1] MULMODPOW2#" - }, - "bytecode": { - "doc_opcode": "A9B8tt", - "tlb": "#A9B8 tt:uint8", - "prefix": "A9B8", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x y - x*y mod 2^(tt+1)", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "MULMODPOW2R", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "34", - "fift": "[tt+1] MULMODPOW2R#" - }, - "bytecode": { - "doc_opcode": "A9B9tt", - "tlb": "#A9B9 tt:uint8", - "prefix": "A9B9", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x y - x*y mod 2^(tt+1)", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "MULMODPOW2C", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "34", - "fift": "[tt+1] MULMODPOW2C#" - }, - "bytecode": { - "doc_opcode": "A9BAtt", - "tlb": "#A9BA tt:uint8", - "prefix": "A9BA", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x y - x*y mod 2^(tt+1)", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "MULRSHIFTMOD", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "34", - "fift": "MULRSHIFT#MOD" - }, - "bytecode": { - "doc_opcode": "A9BC", - "tlb": "#A9BC", - "prefix": "A9BC", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - q=floor(x*y/2^(tt+1)) r=xy-q*2^(tt+1)", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "MULRSHIFTRMOD", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "34", - "fift": "MULRSHIFTR#MOD" - }, - "bytecode": { - "doc_opcode": "A9BD", - "tlb": "#A9BD", - "prefix": "A9BD", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - q=round(x*y/2^(tt+1)) r=xy-q*2^(tt+1)", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "MULRSHIFTCMOD", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "34", - "fift": "MULRSHIFTC#MOD" - }, - "bytecode": { - "doc_opcode": "A9BE", - "tlb": "#A9BE", - "prefix": "A9BE", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - q=ceil(x*y/2^(tt+1)) r=xy-q*2^(tt+1)", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "LSHIFTADDDIVMOD_VAR", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "26", - "fift": "LSHIFTADDDIVMOD" - }, - "bytecode": { - "doc_opcode": "A9C0", - "tlb": "#A9C0", - "prefix": "A9C0", - "operands": [] - }, - "value_flow": { - "doc_stack": "x w z y - q=floor((x*2^y+w)/z) r=(x*2^y+w)-zq", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "w", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "LSHIFTADDDIVMODR_VAR", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "26", - "fift": "LSHIFTADDDIVMODR" - }, - "bytecode": { - "doc_opcode": "A9C1", - "tlb": "#A9C1", - "prefix": "A9C1", - "operands": [] - }, - "value_flow": { - "doc_stack": "x w z y - q=round((x*2^y+w)/z) r=(x*2^y+w)-zq", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "w", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "LSHIFTADDDIVMODC_VAR", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "26", - "fift": "LSHIFTADDDIVMODC" - }, - "bytecode": { - "doc_opcode": "A9C2", - "tlb": "#A9C2", - "prefix": "A9C2", - "operands": [] - }, - "value_flow": { - "doc_stack": "x w z y - q=round((x*2^y+w)/z) r=(x*2^y+w)-zq", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "w", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "LSHIFTDIV_VAR", - "doc": { - "category": "arithm_div", - "description": "`0 <= z <= 256`", - "gas": "26", - "fift": "LSHIFTDIV" - }, - "bytecode": { - "doc_opcode": "A9C4", - "tlb": "#A9C4", - "prefix": "A9C4", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y z - floor(2^z*x/y)", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "LSHIFTDIVR_VAR", - "doc": { - "category": "arithm_div", - "description": "`0 <= z <= 256`", - "gas": "26", - "fift": "LSHIFTDIVR" - }, - "bytecode": { - "doc_opcode": "A9C5", - "tlb": "#A9C5", - "prefix": "A9C5", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y z - round(2^z*x/y)", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "LSHIFTDIVC_VAR", - "doc": { - "category": "arithm_div", - "description": "`0 <= z <= 256`", - "gas": "26", - "fift": "LSHIFTDIVC" - }, - "bytecode": { - "doc_opcode": "A9C6", - "tlb": "#A9C6", - "prefix": "A9C6", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y z - ceil(2^z*x/y)", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "LSHIFTMOD_VAR", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "26", - "fift": "LSHIFTMOD" - }, - "bytecode": { - "doc_opcode": "A9C8", - "tlb": "#A9C8", - "prefix": "A9C8", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y z - 2^z*x mod y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "LSHIFTMODR_VAR", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "26", - "fift": "LSHIFTMODR" - }, - "bytecode": { - "doc_opcode": "A9C9", - "tlb": "#A9C9", - "prefix": "A9C9", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y z - 2^z*x mod y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "LSHIFTMODC_VAR", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "26", - "fift": "LSHIFTMODC" - }, - "bytecode": { - "doc_opcode": "A9CA", - "tlb": "#A9CA", - "prefix": "A9CA", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y z - 2^z*x mod y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "LSHIFTDIVMOD_VAR", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "26", - "fift": "LSHIFTDIVMOD" - }, - "bytecode": { - "doc_opcode": "A9CC", - "tlb": "#A9CC", - "prefix": "A9CC", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y z - q=floor(2^z*x/y) r=2^z*x-q*y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "LSHIFTDIVMODR_VAR", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "26", - "fift": "LSHIFTDIVMODR" - }, - "bytecode": { - "doc_opcode": "A9CD", - "tlb": "#A9CD", - "prefix": "A9CD", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y z - q=round(2^z*x/y) r=2^z*x-q*y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "LSHIFTDIVMODC_VAR", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "26", - "fift": "LSHIFTDIVMODC" - }, - "bytecode": { - "doc_opcode": "A9CE", - "tlb": "#A9CE", - "prefix": "A9CE", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y z - q=ceil(2^z*x/y) r=2^z*x-q*y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "LSHIFTADDDIVMOD", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "34", - "fift": "[tt+1] LSHIFT#ADDDIVMOD" - }, - "bytecode": { - "doc_opcode": "A9D0tt", - "tlb": "#A9D0 tt:uint8", - "prefix": "A9D0", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x w z - q=floor((x*2^y+w)/z) r=(x*2^y+w)-zq", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "w", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "LSHIFTADDDIVMODR", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "34", - "fift": "[tt+1] LSHIFT#ADDDIVMODR" - }, - "bytecode": { - "doc_opcode": "A9D1tt", - "tlb": "#A9D1 tt:uint8", - "prefix": "A9D1", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x w z - q=round((x*2^y+w)/z) r=(x*2^y+w)-zq", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "w", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "LSHIFTADDDIVMODC", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "34", - "fift": "[tt+1] LSHIFT#ADDDIVMODC" - }, - "bytecode": { - "doc_opcode": "A9D2tt", - "tlb": "#A9D2 tt:uint8", - "prefix": "A9D2", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x w z - q=ceil((x*2^y+w)/z) r=(x*2^y+w)-zq", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "w", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "LSHIFTDIV", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "34", - "fift": "[tt+1] LSHIFT#DIV" - }, - "bytecode": { - "doc_opcode": "A9D4tt", - "tlb": "#A9D4 tt:uint8", - "prefix": "A9D4", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x y - floor(2^(tt+1)*x/y)", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "LSHIFTDIVR", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "34", - "fift": "[tt+1] LSHIFT#DIVR" - }, - "bytecode": { - "doc_opcode": "A9D5tt", - "tlb": "#A9D5 tt:uint8", - "prefix": "A9D5", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x y - round(2^(tt+1)*x/y)", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "LSHIFTDIVC", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "26", - "fift": "[tt+1] LSHIFT#DIVC" - }, - "bytecode": { - "doc_opcode": "A9D6tt", - "tlb": "#A9D6 tt:uint8", - "prefix": "A9D6", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x y - ceil(2^(tt+1)*x/y)", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "LSHIFTMOD", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "34", - "fift": "[tt+1] LSHIFT#MOD" - }, - "bytecode": { - "doc_opcode": "A9D8tt", - "tlb": "#A9D8 tt:uint8", - "prefix": "A9D8", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x y - 2^(tt+1)*x mod y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "LSHIFTMODR", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "34", - "fift": "[tt+1] LSHIFT#MODR" - }, - "bytecode": { - "doc_opcode": "A9D9tt", - "tlb": "#A9D9 tt:uint8", - "prefix": "A9D9", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x y - 2^(tt+1)*x mod y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "LSHIFTMODC", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "34", - "fift": "[tt+1] LSHIFT#MODC" - }, - "bytecode": { - "doc_opcode": "A9DAtt", - "tlb": "#A9DA tt:uint8", - "prefix": "A9DA", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x y - 2^(tt+1)*x mod y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "LSHIFTDIVMOD", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "34", - "fift": "[tt+1] LSHIFT#DIVMOD" - }, - "bytecode": { - "doc_opcode": "A9DCtt", - "tlb": "#A9DC tt:uint8", - "prefix": "A9DC", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x y - q=floor(2^(tt+1)*x/y) r=2^(tt+1)*x-q*y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "LSHIFTDIVMODR", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "34", - "fift": "[tt+1] LSHIFT#DIVMODR" - }, - "bytecode": { - "doc_opcode": "A9DDtt", - "tlb": "#A9DD tt:uint8", - "prefix": "A9DD", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x y - q=round(2^(tt+1)*x/y) r=2^(tt+1)*x-q*y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "LSHIFTDIVMODC", - "doc": { - "category": "arithm_div", - "description": "", - "gas": "34", - "fift": "[tt+1] LSHIFT#DIVMODC" - }, - "bytecode": { - "doc_opcode": "A9DEtt", - "tlb": "#A9DE tt:uint8", - "prefix": "A9DE", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x y - q=ceil(2^(tt+1)*x/y) r=2^(tt+1)*x-q*y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "LSHIFT", - "doc": { - "category": "arithm_logical", - "description": "`0 <= cc <= 255`", - "gas": "26", - "fift": "[cc+1] LSHIFT#" - }, - "bytecode": { - "doc_opcode": "AAcc", - "tlb": "#AA cc:uint8", - "prefix": "AA", - "operands": [ - { - "name": "c", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x - x*2^(cc+1)", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "RSHIFT", - "doc": { - "category": "arithm_logical", - "description": "`0 <= cc <= 255`", - "gas": "18", - "fift": "[cc+1] RSHIFT#" - }, - "bytecode": { - "doc_opcode": "ABcc", - "tlb": "#AB cc:uint8", - "prefix": "AB", - "operands": [ - { - "name": "c", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x - floor(x/2^(cc+1))", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "LSHIFT_VAR", - "doc": { - "category": "arithm_logical", - "description": "`0 <= y <= 1023`", - "gas": "18", - "fift": "LSHIFT" - }, - "bytecode": { - "doc_opcode": "AC", - "tlb": "#AC", - "prefix": "AC", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - x*2^y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "RSHIFT_VAR", - "doc": { - "category": "arithm_logical", - "description": "`0 <= y <= 1023`", - "gas": "18", - "fift": "RSHIFT" - }, - "bytecode": { - "doc_opcode": "AD", - "tlb": "#AD", - "prefix": "AD", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - floor(x/2^y)", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "POW2", - "doc": { - "category": "arithm_logical", - "description": "`0 <= y <= 1023`\nEquivalent to `ONE` `SWAP` `LSHIFT`.", - "gas": "18", - "fift": "POW2" - }, - "bytecode": { - "doc_opcode": "AE", - "tlb": "#AE", - "prefix": "AE", - "operands": [] - }, - "value_flow": { - "doc_stack": "y - 2^y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "AND", - "doc": { - "category": "arithm_logical", - "description": "Bitwise and of two signed integers `x` and `y`, sign-extended to infinity.", - "gas": "18", - "fift": "AND" - }, - "bytecode": { - "doc_opcode": "B0", - "tlb": "#B0", - "prefix": "B0", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - x&y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "OR", - "doc": { - "category": "arithm_logical", - "description": "Bitwise or of two integers.", - "gas": "18", - "fift": "OR" - }, - "bytecode": { - "doc_opcode": "B1", - "tlb": "#B1", - "prefix": "B1", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - x|y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "XOR", - "doc": { - "category": "arithm_logical", - "description": "Bitwise xor of two integers.", - "gas": "18", - "fift": "XOR" - }, - "bytecode": { - "doc_opcode": "B2", - "tlb": "#B2", - "prefix": "B2", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - x xor y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "NOT", - "doc": { - "category": "arithm_logical", - "description": "Bitwise not of an integer.", - "gas": "26", - "fift": "NOT" - }, - "bytecode": { - "doc_opcode": "B3", - "tlb": "#B3", - "prefix": "B3", - "operands": [] - }, - "value_flow": { - "doc_stack": "x - ~x", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "FITS", - "doc": { - "category": "arithm_logical", - "description": "Checks whether `x` is a `cc+1`-bit signed integer for `0 <= cc <= 255` (i.e., whether `-2^cc <= x < 2^cc`).\nIf not, either triggers an integer overflow exception, or replaces `x` with a `NaN` (quiet version).", - "gas": "26/76", - "fift": "[cc+1] FITS" - }, - "bytecode": { - "doc_opcode": "B4cc", - "tlb": "#B4 cc:uint8", - "prefix": "B4", - "operands": [ - { - "name": "c", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x - x", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "UFITS", - "doc": { - "category": "arithm_logical", - "description": "Checks whether `x` is a `cc+1`-bit unsigned integer for `0 <= cc <= 255` (i.e., whether `0 <= x < 2^(cc+1)`).", - "gas": "26/76", - "fift": "[cc+1] UFITS" - }, - "bytecode": { - "doc_opcode": "B5cc", - "tlb": "#B5 cc:uint8", - "prefix": "B5", - "operands": [ - { - "name": "c", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x - x", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "FITSX", - "doc": { - "category": "arithm_logical", - "description": "Checks whether `x` is a `c`-bit signed integer for `0 <= c <= 1023`.", - "gas": "26/76", - "fift": "FITSX" - }, - "bytecode": { - "doc_opcode": "B600", - "tlb": "#B600", - "prefix": "B600", - "operands": [] - }, - "value_flow": { - "doc_stack": "x c - x", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "c", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "UFITSX", - "doc": { - "category": "arithm_logical", - "description": "Checks whether `x` is a `c`-bit unsigned integer for `0 <= c <= 1023`.", - "gas": "26/76", - "fift": "UFITSX" - }, - "bytecode": { - "doc_opcode": "B601", - "tlb": "#B601", - "prefix": "B601", - "operands": [] - }, - "value_flow": { - "doc_stack": "x c - x", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "c", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "BITSIZE", - "doc": { - "category": "arithm_logical", - "description": "Computes smallest `c >= 0` such that `x` fits into a `c`-bit signed integer (`-2^(c-1) <= c < 2^(c-1)`).", - "gas": "26", - "fift": "BITSIZE" - }, - "bytecode": { - "doc_opcode": "B602", - "tlb": "#B602", - "prefix": "B602", - "operands": [] - }, - "value_flow": { - "doc_stack": "x - c", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "UBITSIZE", - "doc": { - "category": "arithm_logical", - "description": "Computes smallest `c >= 0` such that `x` fits into a `c`-bit unsigned integer (`0 <= x < 2^c`), or throws a range check exception.", - "gas": "26", - "fift": "UBITSIZE" - }, - "bytecode": { - "doc_opcode": "B603", - "tlb": "#B603", - "prefix": "B603", - "operands": [] - }, - "value_flow": { - "doc_stack": "x - c", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "MIN", - "doc": { - "category": "arithm_logical", - "description": "Computes the minimum of two integers `x` and `y`.", - "gas": "26", - "fift": "MIN" - }, - "bytecode": { - "doc_opcode": "B608", - "tlb": "#B608", - "prefix": "B608", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - x or y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "MAX", - "doc": { - "category": "arithm_logical", - "description": "Computes the maximum of two integers `x` and `y`.", - "gas": "26", - "fift": "MAX" - }, - "bytecode": { - "doc_opcode": "B609", - "tlb": "#B609", - "prefix": "B609", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - x or y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "MINMAX", - "doc": { - "category": "arithm_logical", - "description": "Sorts two integers. Quiet version of this operation returns two `NaN`s if any of the arguments are `NaN`s.", - "gas": "26", - "fift": "MINMAX\nINTSORT2" - }, - "bytecode": { - "doc_opcode": "B60A", - "tlb": "#B60A", - "prefix": "B60A", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - x y or y x", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "r1", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r2", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "ABS", - "doc": { - "category": "arithm_logical", - "description": "Computes the absolute value of an integer `x`.", - "gas": "26", - "fift": "ABS" - }, - "bytecode": { - "doc_opcode": "B60B", - "tlb": "#B60B", - "prefix": "B60B", - "operands": [] - }, - "value_flow": { - "doc_stack": "x - |x|", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QADD", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "26", - "fift": "QADD" - }, - "bytecode": { - "doc_opcode": "B7A0", - "tlb": "#B7A0", - "prefix": "B7A0", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - x+y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QSUB", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "26", - "fift": "QSUB" - }, - "bytecode": { - "doc_opcode": "B7A1", - "tlb": "#B7A1", - "prefix": "B7A1", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - x-y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QSUBR", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "26", - "fift": "QSUBR" - }, - "bytecode": { - "doc_opcode": "B7A2", - "tlb": "#B7A2", - "prefix": "B7A2", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - y-x", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QNEGATE", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "26", - "fift": "QNEGATE" - }, - "bytecode": { - "doc_opcode": "B7A3", - "tlb": "#B7A3", - "prefix": "B7A3", - "operands": [] - }, - "value_flow": { - "doc_stack": "x - -x", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QINC", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "26", - "fift": "QINC" - }, - "bytecode": { - "doc_opcode": "B7A4", - "tlb": "#B7A4", - "prefix": "B7A4", - "operands": [] - }, - "value_flow": { - "doc_stack": "x - x+1", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QDEC", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "26", - "fift": "QDEC" - }, - "bytecode": { - "doc_opcode": "B7A5", - "tlb": "#B7A5", - "prefix": "B7A5", - "operands": [] - }, - "value_flow": { - "doc_stack": "x - x-1", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QMUL", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "26", - "fift": "QMUL" - }, - "bytecode": { - "doc_opcode": "B7A8", - "tlb": "#B7A8", - "prefix": "B7A8", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - x*y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QADDDIVMOD", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "34", - "fift": "QADDDIVMOD" - }, - "bytecode": { - "doc_opcode": "B7A900", - "tlb": "#B7A900", - "prefix": "B7A900", - "operands": [] - }, - "value_flow": { - "doc_stack": "x w z - q=floor((x+w)/z) r=(x+w)-zq", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "w", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "q", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QADDDIVMODR", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "34", - "fift": "QADDDIVMODR" - }, - "bytecode": { - "doc_opcode": "B7A901", - "tlb": "#B7A901", - "prefix": "B7A901", - "operands": [] - }, - "value_flow": { - "doc_stack": "x w z - q=round((x+w)/z) r=(x+w)-zq", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "w", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "q", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QADDDIVMODC", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "34", - "fift": "QADDDIVMODC" - }, - "bytecode": { - "doc_opcode": "B7A902", - "tlb": "#B7A902", - "prefix": "B7A902", - "operands": [] - }, - "value_flow": { - "doc_stack": "x w y - q=ceil((x+w)/z) r=(x+w)-zq", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "w", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "q", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QDIV", - "doc": { - "category": "arithm_quiet", - "description": "Division returns `NaN` if `y=0`.", - "gas": "34", - "fift": "QDIV" - }, - "bytecode": { - "doc_opcode": "B7A904", - "tlb": "#B7A904", - "prefix": "B7A904", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - q", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QDIVR", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "34", - "fift": "QDIVR" - }, - "bytecode": { - "doc_opcode": "B7A905", - "tlb": "#B7A905", - "prefix": "B7A905", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - q\u0432\u0402\u2122", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QDIVC", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "34", - "fift": "QDIVC" - }, - "bytecode": { - "doc_opcode": "B7A906", - "tlb": "#B7A906", - "prefix": "B7A906", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - q''", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QMOD", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "34", - "fift": "QMOD" - }, - "bytecode": { - "doc_opcode": "B7A908", - "tlb": "#B7A908", - "prefix": "B7A908", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - r", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QMODR", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "34", - "fift": "QMODR" - }, - "bytecode": { - "doc_opcode": "B7A909", - "tlb": "#B7A909", - "prefix": "B7A909", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - r", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QMODC", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "34", - "fift": "QMODC" - }, - "bytecode": { - "doc_opcode": "B7A90A", - "tlb": "#B7A90A", - "prefix": "B7A90A", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - r", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QDIVMOD", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "34", - "fift": "QDIVMOD" - }, - "bytecode": { - "doc_opcode": "B7A90C", - "tlb": "#B7A90C", - "prefix": "B7A90C", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - q r", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "q", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QDIVMODR", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "34", - "fift": "QDIVMODR" - }, - "bytecode": { - "doc_opcode": "B7A90D", - "tlb": "#B7A90D", - "prefix": "B7A90D", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - q' r'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "q", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QDIVMODC", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "34", - "fift": "QDIVMODC" - }, - "bytecode": { - "doc_opcode": "B7A90E", - "tlb": "#B7A90E", - "prefix": "B7A90E", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - q'' r''", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "q", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QADDRSHIFTMOD", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "34", - "fift": "QADDRSHIFTMOD" - }, - "bytecode": { - "doc_opcode": "B7A920", - "tlb": "#B7A920", - "prefix": "B7A920", - "operands": [] - }, - "value_flow": { - "doc_stack": "x w z - q=floor((x+w)/2^z) r=(x+w)-q*2^z", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "w", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "q", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QADDRSHIFTMODR", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "34", - "fift": "QADDRSHIFTMODR" - }, - "bytecode": { - "doc_opcode": "B7A921", - "tlb": "#B7A921", - "prefix": "B7A921", - "operands": [] - }, - "value_flow": { - "doc_stack": "x w z - q=round((x+w)/2^z) r=(x+w)-q*2^z", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "w", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "q", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QADDRSHIFTMODC", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "34", - "fift": "QADDRSHIFTMODC" - }, - "bytecode": { - "doc_opcode": "B7A922", - "tlb": "#B7A922", - "prefix": "B7A922", - "operands": [] - }, - "value_flow": { - "doc_stack": "x w z - q=ceil((x+w)/2^z) r=(x+w)-q*2^z", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "w", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "q", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QRSHIFTR_VAR", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "34", - "fift": "QRSHIFTR" - }, - "bytecode": { - "doc_opcode": "B7A925", - "tlb": "#B7A925", - "prefix": "B7A925", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - round(x/2^y)", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QRSHIFTC_VAR", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "34", - "fift": "QRSHIFTC" - }, - "bytecode": { - "doc_opcode": "B7A926", - "tlb": "#B7A926", - "prefix": "B7A926", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - ceil(x/2^y)", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QMODPOW2_VAR", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "34", - "fift": "QMODPOW2" - }, - "bytecode": { - "doc_opcode": "B7A928", - "tlb": "#B7A928", - "prefix": "B7A928", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - x mod 2^y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QMODPOW2R_VAR", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "34", - "fift": "QMODPOW2R" - }, - "bytecode": { - "doc_opcode": "B7A929", - "tlb": "#B7A929", - "prefix": "B7A929", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - x mod 2^y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QMODPOW2C_VAR", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "34", - "fift": "QMODPOW2C" - }, - "bytecode": { - "doc_opcode": "B7A92A", - "tlb": "#B7A92A", - "prefix": "B7A92A", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - x mod 2^y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QRSHIFTMOD_VAR", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "34", - "fift": "QRSHIFTMOD" - }, - "bytecode": { - "doc_opcode": "B7A92C", - "tlb": "#B7A92C", - "prefix": "B7A92C", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - q=floor(x/2^y) r=x-q*2^y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "q", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QRSHIFTMODR_VAR", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "34", - "fift": "QRSHIFTMODR" - }, - "bytecode": { - "doc_opcode": "B7A92D", - "tlb": "#B7A92D", - "prefix": "B7A92D", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - q=round(x/2^y) r=x-q*2^y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "q", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QRSHIFTMODC_VAR", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "34", - "fift": "QRSHIFTMODC" - }, - "bytecode": { - "doc_opcode": "B7A92E", - "tlb": "#B7A92E", - "prefix": "B7A92E", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - q=ceil(x/2^y) r=x-q*2^y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "q", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QADDRSHIFTMOD", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "42", - "fift": "[tt+1] QADDRSHIFT#MOD" - }, - "bytecode": { - "doc_opcode": "B7A930tt", - "tlb": "#B7A930 tt:uint8", - "prefix": "B7A930", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x w - q=floor((x+w)/2^(tt+1)) r=(x+w)-q*2^(tt+1)", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "w", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "q", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QADDRSHIFTRMOD", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "42", - "fift": "[tt+1] QADDRSHIFTR#MOD" - }, - "bytecode": { - "doc_opcode": "B7A931tt", - "tlb": "#B7A931 tt:uint8", - "prefix": "B7A931", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x w - q=round((x+w)/2^(tt+1)) r=(x+w)-q*2^(tt+1)", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "w", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "q", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QADDRSHIFTCMOD", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "42", - "fift": "[tt+1] QADDRSHIFTC#MOD" - }, - "bytecode": { - "doc_opcode": "B7A932tt", - "tlb": "#B7A932 tt:uint8", - "prefix": "B7A932", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x w - q=round((x+w)/2^(tt+1)) r=(x+w)-q*2^(tt+1)", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "w", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "q", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QRSHIFTR", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "42", - "fift": "[tt+1] QRSHIFTR#" - }, - "bytecode": { - "doc_opcode": "B7A935tt", - "tlb": "#B7A935 tt:uint8", - "prefix": "B7A935", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x - round(x/2^(tt+1))", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QRSHIFTC", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "42", - "fift": "[tt+1] QRSHIFTC#" - }, - "bytecode": { - "doc_opcode": "B7A936tt", - "tlb": "#B7A936 tt:uint8", - "prefix": "B7A936", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x - ceil(x/2^(tt+1))", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QMODPOW2", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "42", - "fift": "[tt+1] QMODPOW2#" - }, - "bytecode": { - "doc_opcode": "B7A938tt", - "tlb": "#B7A938 tt:uint8", - "prefix": "B7A938", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x - x mod 2^(tt+1)", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QMODPOW2R", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "42", - "fift": "[tt+1] QMODPOW2R#" - }, - "bytecode": { - "doc_opcode": "B7A939tt", - "tlb": "#B7A939 tt:uint8", - "prefix": "B7A939", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x - x mod 2^(tt+1)", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QMODPOW2C", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "42", - "fift": "[tt+1] QMODPOW2C#" - }, - "bytecode": { - "doc_opcode": "B7A93Att", - "tlb": "#B7A93A tt:uint8", - "prefix": "B7A93A", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x - x mod 2^(tt+1)", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QRSHIFTMOD", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "42", - "fift": "[tt+1] QRSHIFT#MOD" - }, - "bytecode": { - "doc_opcode": "A93Ctt", - "tlb": "#A93C tt:uint8", - "prefix": "A93C", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x - q=floor(x/2^(tt+1)) r=x-q*2^(tt+1)", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "q", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QRSHIFTRMOD", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "42", - "fift": "[tt+1] QRSHIFTR#MOD" - }, - "bytecode": { - "doc_opcode": "A93Dtt", - "tlb": "#A93D tt:uint8", - "prefix": "A93D", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x - q=round(x/2^(tt+1)) r=x-q*2^(tt+1)", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "q", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QRSHIFTCMOD", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "42", - "fift": "[tt+1] QRSHIFTC#MOD" - }, - "bytecode": { - "doc_opcode": "B7A93Ett", - "tlb": "#B7A93E tt:uint8", - "prefix": "B7A93E", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x - q=ceil(x/2^(tt+1)) r=x-q*2^(tt+1)", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "q", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QMULADDDIVMOD", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "34", - "fift": "QMULADDDIVMOD" - }, - "bytecode": { - "doc_opcode": "B7A980", - "tlb": "#B7A980", - "prefix": "B7A980", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y w z - q=floor((xy+w)/z) r=(xy+w)-zq", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "w", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "q", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QMULADDDIVMODR", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "34", - "fift": "QMULADDDIVMODR" - }, - "bytecode": { - "doc_opcode": "B7A981", - "tlb": "#B7A981", - "prefix": "B7A981", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y w z - q=round((xy+w)/z) r=(xy+w)-zq", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "w", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "q", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QMULADDDIVMODC", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "34", - "fift": "QMULADDDIVMODC" - }, - "bytecode": { - "doc_opcode": "B7A982", - "tlb": "#B7A982", - "prefix": "B7A982", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y w z - q=ceil((xy+w)/z) r=(xy+w)-zq", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "w", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "q", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QMULDIV", - "doc": { - "category": "arithm_quiet", - "description": "`q=floor(x*y/z)`", - "gas": "34", - "fift": "QMULDIV" - }, - "bytecode": { - "doc_opcode": "B7A984", - "tlb": "#B7A984", - "prefix": "B7A984", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y z - q", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QMULDIVR", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "34", - "fift": "QMULDIVR" - }, - "bytecode": { - "doc_opcode": "B7A985", - "tlb": "#B7A985", - "prefix": "B7A985", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y z - q'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "q", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QMULDIVC", - "doc": { - "category": "arithm_quiet", - "description": "`q'=ceil(x*y/z)`", - "gas": "34", - "fift": "QMULDIVC" - }, - "bytecode": { - "doc_opcode": "B7A986", - "tlb": "#B7A986", - "prefix": "B7A986", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y z - q'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QMULMOD", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "34", - "fift": "QMULMOD" - }, - "bytecode": { - "doc_opcode": "B7A988", - "tlb": "#B7A988", - "prefix": "B7A988", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y z - x*y mod z", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QMULMODR", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "34", - "fift": "QMULMODR" - }, - "bytecode": { - "doc_opcode": "B7A989", - "tlb": "#B7A989", - "prefix": "B7A989", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y z - x*y mod z", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QMULMODC", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "34", - "fift": "QMULMODC" - }, - "bytecode": { - "doc_opcode": "B7A98A", - "tlb": "#B7A98A", - "prefix": "B7A98A", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y z - x*y mod z", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QMULDIVMOD", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "34", - "fift": "QMULDIVMOD" - }, - "bytecode": { - "doc_opcode": "B7A98C", - "tlb": "#B7A98C", - "prefix": "B7A98C", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y z - q r", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "q", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QMULDIVMODR", - "doc": { - "category": "arithm_quiet", - "description": "`q=round(x*y/z)`, `r=x*y-z*q`", - "gas": "34", - "fift": "QMULDIVMODR" - }, - "bytecode": { - "doc_opcode": "B7A98D", - "tlb": "#B7A98D", - "prefix": "B7A98D", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y z - q r", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "q", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QMULDIVMODC", - "doc": { - "category": "arithm_quiet", - "description": "`q=ceil(x*y/z)`, `r=x*y-z*q`", - "gas": "34", - "fift": "QMULDIVMODC" - }, - "bytecode": { - "doc_opcode": "B7A98E", - "tlb": "#B7A98E", - "prefix": "B7A98E", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y z - q r", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "q", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QMULADDRSHIFTMOD", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "34", - "fift": "QMULADDRSHIFTMOD" - }, - "bytecode": { - "doc_opcode": "B7A9A0", - "tlb": "#B7A9A0", - "prefix": "B7A9A0", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y w z - q=floor((xy+w)/2^z) r=(xy+w)-q*2^z", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "w", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "q", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QMULADDRSHIFTRMOD", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "34", - "fift": "QMULADDRSHIFTRMOD" - }, - "bytecode": { - "doc_opcode": "B7A9A1", - "tlb": "#B7A9A1", - "prefix": "B7A9A1", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y w z - q=round((xy+w)/2^z) r=(xy+w)-q*2^z", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "w", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "q", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QMULADDRSHIFTCMOD", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "34", - "fift": "QMULADDRSHIFTCMOD" - }, - "bytecode": { - "doc_opcode": "B7A9A2", - "tlb": "#B7A9A2", - "prefix": "B7A9A2", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y w z - q=ceil((xy+w)/2^z) r=(xy+w)-q*2^z", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "w", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "q", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QMULRSHIFT_VAR", - "doc": { - "category": "arithm_quiet", - "description": "`0 <= z <= 256`", - "gas": "34", - "fift": "QMULRSHIFT" - }, - "bytecode": { - "doc_opcode": "B7A9A4", - "tlb": "#B7A9A4", - "prefix": "B7A9A4", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y z - floor(x*y/2^z)", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QMULRSHIFTR_VAR", - "doc": { - "category": "arithm_quiet", - "description": "`0 <= z <= 256`", - "gas": "34", - "fift": "QMULRSHIFTR" - }, - "bytecode": { - "doc_opcode": "B7A9A5", - "tlb": "#B7A9A5", - "prefix": "B7A9A5", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y z - round(x*y/2^z)", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QMULRSHIFTC_VAR", - "doc": { - "category": "arithm_quiet", - "description": "`0 <= z <= 256`", - "gas": "34", - "fift": "QMULRSHIFTC" - }, - "bytecode": { - "doc_opcode": "B7A9A6", - "tlb": "#B7A9A6", - "prefix": "B7A9A6", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y z - ceil(x*y/2^z)", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QMULMODPOW2_VAR", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "34", - "fift": "QMULMODPOW2_VAR" - }, - "bytecode": { - "doc_opcode": "B7A9A8", - "tlb": "#B7A9A8", - "prefix": "B7A9A8", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y z - x*y mod 2^z", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QMULMODPOW2R_VAR", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "34", - "fift": "QMULMODPOW2R_VAR" - }, - "bytecode": { - "doc_opcode": "B7A9A9", - "tlb": "#B7A9A9", - "prefix": "B7A9A9", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y z - x*y mod 2^z", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QMULMODPOW2C_VAR", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "34", - "fift": "QMULMODPOW2C_VAR" - }, - "bytecode": { - "doc_opcode": "B7A9AA", - "tlb": "#B7A9AA", - "prefix": "B7A9AA", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y z - x*y mod 2^z", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QMULRSHIFTMOD_VAR", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "34", - "fift": "QMULRSHIFTMOD_VAR" - }, - "bytecode": { - "doc_opcode": "B7A9AC", - "tlb": "#B7A9AC", - "prefix": "B7A9AC", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y z - q=floor(x*y/2^z) r=xy-q*2^z", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QMULRSHIFTRMOD_VAR", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "34", - "fift": "QMULRSHIFTRMOD_VAR" - }, - "bytecode": { - "doc_opcode": "B7A9AD", - "tlb": "#B7A9AD", - "prefix": "B7A9AD", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y z - q=round(x*y/2^z) r=xy-q*2^z", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QMULRSHIFTCMOD_VAR", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "34", - "fift": "QMULRSHIFTCMOD_VAR" - }, - "bytecode": { - "doc_opcode": "B7A9AE", - "tlb": "#B7A9AE", - "prefix": "B7A9AE", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y z - q=ceil(x*y/2^z) r=xy-q*2^z", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QMULADDRSHIFTMOD", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "42", - "fift": "[tt+1] QMULADDRSHIFT#MOD" - }, - "bytecode": { - "doc_opcode": "B7A9B0tt", - "tlb": "#B7A9B0 tt:uint8", - "prefix": "B7A9B0", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x y w - q=floor((xy+w)/2^z) r=(xy+w)-q*2^z", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "w", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QMULADDRSHIFTRMOD", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "42", - "fift": "[tt+1] QMULADDRSHIFTR#MOD" - }, - "bytecode": { - "doc_opcode": "B7A9B1tt", - "tlb": "#B7A9B1 tt:uint8", - "prefix": "B7A9B1", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x y w - q=round((xy+w)/2^z) r=(xy+w)-q*2^z", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "w", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QMULADDRSHIFTCMOD", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "42", - "fift": "[tt+1] QMULADDRSHIFTC#MOD" - }, - "bytecode": { - "doc_opcode": "B7A9B2tt", - "tlb": "#B7A9B2 tt:uint8", - "prefix": "B7A9B2", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x y w - q=ceil((xy+w)/2^z) r=(xy+w)-q*2^z", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "w", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QMULRSHIFT", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "42", - "fift": "[tt+1] QMULRSHIFT#" - }, - "bytecode": { - "doc_opcode": "B7A9B4tt", - "tlb": "#B7A9B4 tt:uint8", - "prefix": "B7A9B4", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x y - floor(x*y/2^(tt+1))", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QMULRSHIFTR", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "42", - "fift": "[tt+1] QMULRSHIFTR#" - }, - "bytecode": { - "doc_opcode": "B7A9B5tt", - "tlb": "#B7A9B5 tt:uint8", - "prefix": "B7A9B5", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x y - round(x*y/2^(tt+1))", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QMULRSHIFTC", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "42", - "fift": "[tt+1] QMULRSHIFTC#" - }, - "bytecode": { - "doc_opcode": "B7A9B6tt", - "tlb": "#B7A9B6 tt:uint8", - "prefix": "B7A9B6", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x y - ceil(x*y/2^(tt+1))", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QMULMODPOW2", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "42", - "fift": "[tt+1] QMULMODPOW2#" - }, - "bytecode": { - "doc_opcode": "B7A9B8tt", - "tlb": "#B7A9B8 tt:uint8", - "prefix": "B7A9B8", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x y - x*y mod 2^(tt+1)", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QMULMODPOW2R", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "42", - "fift": "[tt+1] QMULMODPOW2R#" - }, - "bytecode": { - "doc_opcode": "B7A9B9tt", - "tlb": "#B7A9B9 tt:uint8", - "prefix": "B7A9B9", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x y - x*y mod 2^(tt+1)", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QMULMODPOW2C", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "42", - "fift": "[tt+1] QMULMODPOW2C#" - }, - "bytecode": { - "doc_opcode": "B7A9BAtt", - "tlb": "#B7A9BA tt:uint8", - "prefix": "B7A9BA", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x y - x*y mod 2^(tt+1)", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QMULRSHIFTMOD", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "42", - "fift": "QMULRSHIFT#MOD" - }, - "bytecode": { - "doc_opcode": "B7A9BC", - "tlb": "#B7A9BC", - "prefix": "B7A9BC", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - q=floor(x*y/2^(tt+1)) r=xy-q*2^(tt+1)", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QMULRSHIFTRMOD", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "42", - "fift": "QMULRSHIFTR#MOD" - }, - "bytecode": { - "doc_opcode": "B7A9BD", - "tlb": "#B7A9BD", - "prefix": "B7A9BD", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - q=round(x*y/2^(tt+1)) r=xy-q*2^(tt+1)", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QMULRSHIFTCMOD", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "42", - "fift": "QMULRSHIFTC#MOD" - }, - "bytecode": { - "doc_opcode": "B7A9BE", - "tlb": "#B7A9BE", - "prefix": "B7A9BE", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - q=ceil(x*y/2^(tt+1)) r=xy-q*2^(tt+1)", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QLSHIFTADDDIVMOD_VAR", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "34", - "fift": "QLSHIFTADDDIVMOD" - }, - "bytecode": { - "doc_opcode": "B7A9C0", - "tlb": "#B7A9C0", - "prefix": "B7A9C0", - "operands": [] - }, - "value_flow": { - "doc_stack": "x w z y - q=floor((x*2^y+w)/z) r=(x*2^y+w)-zq", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "w", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QLSHIFTADDDIVMODR_VAR", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "34", - "fift": "QLSHIFTADDDIVMODR" - }, - "bytecode": { - "doc_opcode": "B7A9C1", - "tlb": "#B7A9C1", - "prefix": "B7A9C1", - "operands": [] - }, - "value_flow": { - "doc_stack": "x w z y - q=round((x*2^y+w)/z) r=(x*2^y+w)-zq", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "w", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QLSHIFTADDDIVMODC_VAR", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "34", - "fift": "QLSHIFTADDDIVMODC" - }, - "bytecode": { - "doc_opcode": "B7A9C2", - "tlb": "#B7A9C2", - "prefix": "B7A9C2", - "operands": [] - }, - "value_flow": { - "doc_stack": "x w z y - q=round((x*2^y+w)/z) r=(x*2^y+w)-zq", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "w", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QLSHIFTDIV_VAR", - "doc": { - "category": "arithm_quiet", - "description": "`0 <= z <= 256`", - "gas": "34", - "fift": "QLSHIFTDIV" - }, - "bytecode": { - "doc_opcode": "B7A9C4", - "tlb": "#B7A9C4", - "prefix": "B7A9C4", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y z - floor(2^z*x/y)", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QLSHIFTDIVR_VAR", - "doc": { - "category": "arithm_quiet", - "description": "`0 <= z <= 256`", - "gas": "34", - "fift": "QLSHIFTDIVR" - }, - "bytecode": { - "doc_opcode": "B7A9C5", - "tlb": "#B7A9C5", - "prefix": "B7A9C5", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y z - round(2^z*x/y)", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QLSHIFTDIVC_VAR", - "doc": { - "category": "arithm_quiet", - "description": "`0 <= z <= 256`", - "gas": "34", - "fift": "QLSHIFTDIVC" - }, - "bytecode": { - "doc_opcode": "B7A9C6", - "tlb": "#B7A9C6", - "prefix": "B7A9C6", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y z - ceil(2^z*x/y)", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QLSHIFTMOD_VAR", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "34", - "fift": "QLSHIFTMOD" - }, - "bytecode": { - "doc_opcode": "B7A9C8", - "tlb": "#B7A9C8", - "prefix": "B7A9C8", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y z - 2^z*x mod y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QLSHIFTMODR_VAR", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "34", - "fift": "QLSHIFTMODR" - }, - "bytecode": { - "doc_opcode": "B7A9C9", - "tlb": "#B7A9C9", - "prefix": "B7A9C9", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y z - 2^z*x mod y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QLSHIFTMODC_VAR", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "34", - "fift": "QLSHIFTMODC" - }, - "bytecode": { - "doc_opcode": "B7A9CA", - "tlb": "#B7A9CA", - "prefix": "B7A9CA", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y z - 2^z*x mod y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QLSHIFTDIVMOD_VAR", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "34", - "fift": "QLSHIFTDIVMOD" - }, - "bytecode": { - "doc_opcode": "B7A9CC", - "tlb": "#B7A9CC", - "prefix": "B7A9CC", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y z - q=floor(2^z*x/y) r=2^z*x-q*y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QLSHIFTDIVMODR_VAR", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "34", - "fift": "QLSHIFTDIVMODR" - }, - "bytecode": { - "doc_opcode": "B7A9CD", - "tlb": "#B7A9CD", - "prefix": "B7A9CD", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y z - q=round(2^z*x/y) r=2^z*x-q*y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QLSHIFTDIVMODC_VAR", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "34", - "fift": "QLSHIFTDIVMODC" - }, - "bytecode": { - "doc_opcode": "B7A9CE", - "tlb": "#B7A9CE", - "prefix": "B7A9CE", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y z - q=ceil(2^z*x/y) r=2^z*x-q*y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QLSHIFTADDDIVMOD", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "42", - "fift": "[tt+1] QLSHIFT#ADDDIVMOD" - }, - "bytecode": { - "doc_opcode": "B7A9D0tt", - "tlb": "#B7A9D0 tt:uint8", - "prefix": "B7A9D0", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x w z - q=floor((x*2^y+w)/z) r=(x*2^y+w)-zq", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "w", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QLSHIFTADDDIVMODR", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "42", - "fift": "[tt+1] QLSHIFT#ADDDIVMODR" - }, - "bytecode": { - "doc_opcode": "B7A9D1tt", - "tlb": "#B7A9D1 tt:uint8", - "prefix": "B7A9D1", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x w z - q=round((x*2^y+w)/z) r=(x*2^y+w)-zq", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "w", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QLSHIFTADDDIVMODC", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "42", - "fift": "[tt+1] QLSHIFT#ADDDIVMODC" - }, - "bytecode": { - "doc_opcode": "B7A9D2tt", - "tlb": "#B7A9D2 tt:uint8", - "prefix": "B7A9D2", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x w z - q=ceil((x*2^y+w)/z) r=(x*2^y+w)-zq", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "w", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QLSHIFTDIV", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "42", - "fift": "[tt+1] QLSHIFT#DIV" - }, - "bytecode": { - "doc_opcode": "B7A9D4tt", - "tlb": "#B7A9D4 tt:uint8", - "prefix": "B7A9D4", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x y - floor(2^(tt+1)*x/y)", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QLSHIFTDIVR", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "42", - "fift": "[tt+1] QLSHIFT#DIVR" - }, - "bytecode": { - "doc_opcode": "B7A9D5tt", - "tlb": "#B7A9D5 tt:uint8", - "prefix": "B7A9D5", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x y - round(2^(tt+1)*x/y)", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QLSHIFTDIVC", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "34", - "fift": "[tt+1] QLSHIFT#DIVC" - }, - "bytecode": { - "doc_opcode": "B7A9D6tt", - "tlb": "#B7A9D6 tt:uint8", - "prefix": "B7A9D6", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x y - ceil(2^(tt+1)*x/y)", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QLSHIFTMOD", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "42", - "fift": "[tt+1] QLSHIFT#MOD" - }, - "bytecode": { - "doc_opcode": "B7A9D8tt", - "tlb": "#B7A9D8 tt:uint8", - "prefix": "B7A9D8", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x y - 2^(tt+1)*x mod y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QLSHIFTMODR", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "42", - "fift": "[tt+1] LSHIFT#MODR" - }, - "bytecode": { - "doc_opcode": "B7A9D9tt", - "tlb": "#B7A9D9 tt:uint8", - "prefix": "B7A9D9", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x y - 2^(tt+1)*x mod y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QLSHIFTMODC", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "42", - "fift": "[tt+1] QLSHIFT#MODC" - }, - "bytecode": { - "doc_opcode": "B7A9DAtt", - "tlb": "#B7A9DA tt:uint8", - "prefix": "B7A9DA", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x y - 2^(tt+1)*x mod y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QLSHIFTDIVMOD", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "42", - "fift": "[tt+1] QLSHIFT#DIVMOD" - }, - "bytecode": { - "doc_opcode": "B7A9DCtt", - "tlb": "#B7A9DC tt:uint8", - "prefix": "B7A9DC", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x y - q=floor(2^(tt+1)*x/y) r=2^(tt+1)*x-q*y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QLSHIFTDIVMODR", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "42", - "fift": "[tt+1] QLSHIFT#DIVMODR" - }, - "bytecode": { - "doc_opcode": "B7A9DDtt", - "tlb": "#B7A9DD tt:uint8", - "prefix": "B7A9DD", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x y - q=round(2^(tt+1)*x/y) r=2^(tt+1)*x-q*y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QLSHIFTDIVMODC", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "42", - "fift": "[tt+1] QLSHIFT#DIVMODC" - }, - "bytecode": { - "doc_opcode": "B7A9DEtt", - "tlb": "#B7A9DE tt:uint8", - "prefix": "B7A9DE", - "operands": [ - { - "name": "t", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x y - q=ceil(2^(tt+1)*x/y) r=2^(tt+1)*x-q*y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QLSHIFT", - "doc": { - "category": "arithm_quiet", - "description": "`0 <= cc <= 255`", - "gas": "34", - "fift": "[cc+1] QLSHIFT#" - }, - "bytecode": { - "doc_opcode": "B7AAcc", - "tlb": "#B7AA cc:uint8", - "prefix": "B7AA", - "operands": [ - { - "name": "c", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x - x*2^(cc+1)", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QRSHIFT", - "doc": { - "category": "arithm_quiet", - "description": "`0 <= cc <= 255`", - "gas": "26", - "fift": "[cc+1] RSHIFT#" - }, - "bytecode": { - "doc_opcode": "B7ABcc", - "tlb": "#B7AB cc:uint8", - "prefix": "B7AB", - "operands": [ - { - "name": "c", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x - floor(x/2^(cc+1))", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QLSHIFT_VAR", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "26", - "fift": "QLSHIFT" - }, - "bytecode": { - "doc_opcode": "B7AC", - "tlb": "#B7AC", - "prefix": "B7AC", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - x*2^y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QRSHIFT_VAR", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "26", - "fift": "QRSHIFT" - }, - "bytecode": { - "doc_opcode": "B7AD", - "tlb": "#B7AD", - "prefix": "B7AD", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - floor(x/2^y)", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QPOW2", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "26", - "fift": "QPOW2" - }, - "bytecode": { - "doc_opcode": "B7AE", - "tlb": "#B7AE", - "prefix": "B7AE", - "operands": [] - }, - "value_flow": { - "doc_stack": "y - 2^y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QAND", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "26", - "fift": "QAND" - }, - "bytecode": { - "doc_opcode": "B7B0", - "tlb": "#B7B0", - "prefix": "B7B0", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - x&y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QOR", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "26", - "fift": "QOR" - }, - "bytecode": { - "doc_opcode": "B7B1", - "tlb": "#B7B1", - "prefix": "B7B1", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - x|y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QXOR", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "26", - "fift": "QXOR" - }, - "bytecode": { - "doc_opcode": "B7B2", - "tlb": "#B7B2", - "prefix": "B7B2", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - x xor y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QNOT", - "doc": { - "category": "arithm_quiet", - "description": "", - "gas": "26", - "fift": "QNOT" - }, - "bytecode": { - "doc_opcode": "B7B3", - "tlb": "#B7B3", - "prefix": "B7B3", - "operands": [] - }, - "value_flow": { - "doc_stack": "x - ~x", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QFITS", - "doc": { - "category": "arithm_quiet", - "description": "Replaces `x` with a `NaN` if x is not a `cc+1`-bit signed integer, leaves it intact otherwise.", - "gas": "34", - "fift": "[cc+1] QFITS" - }, - "bytecode": { - "doc_opcode": "B7B4cc", - "tlb": "#B7B4 cc:uint8", - "prefix": "B7B4", - "operands": [ - { - "name": "c", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x - x", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QUFITS", - "doc": { - "category": "arithm_quiet", - "description": "Replaces `x` with a `NaN` if x is not a `cc+1`-bit unsigned integer, leaves it intact otherwise.", - "gas": "34", - "fift": "[cc+1] QUFITS" - }, - "bytecode": { - "doc_opcode": "B7B5cc", - "tlb": "#B7B5 cc:uint8", - "prefix": "B7B5", - "operands": [ - { - "name": "c", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x - x", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QFITSX", - "doc": { - "category": "arithm_quiet", - "description": "Replaces `x` with a `NaN` if x is not a c-bit signed integer, leaves it intact otherwise.", - "gas": "34", - "fift": "QFITSX" - }, - "bytecode": { - "doc_opcode": "B7B600", - "tlb": "#B7B600", - "prefix": "B7B600", - "operands": [] - }, - "value_flow": { - "doc_stack": "x c - x", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "c", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "QUFITSX", - "doc": { - "category": "arithm_quiet", - "description": "Replaces `x` with a `NaN` if x is not a c-bit unsigned integer, leaves it intact otherwise.", - "gas": "34", - "fift": "QUFITSX" - }, - "bytecode": { - "doc_opcode": "B7B601", - "tlb": "#B7B601", - "prefix": "B7B601", - "operands": [] - }, - "value_flow": { - "doc_stack": "x c - x", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "c", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "SGN", - "doc": { - "category": "compare_int", - "description": "Computes the sign of an integer `x`:\n`-1` if `x<0`, `0` if `x=0`, `1` if `x>0`.", - "gas": "18", - "fift": "SGN" - }, - "bytecode": { - "doc_opcode": "B8", - "tlb": "#B8", - "prefix": "B8", - "operands": [] - }, - "value_flow": { - "doc_stack": "x - sgn(x)", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "LESS", - "doc": { - "category": "compare_int", - "description": "Returns `-1` if `xy", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "NEQ", - "doc": { - "category": "compare_int", - "description": "Equivalent to `EQUAL` `NOT`.", - "gas": "18", - "fift": "NEQ" - }, - "bytecode": { - "doc_opcode": "BD", - "tlb": "#BD", - "prefix": "BD", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - x!=y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "GEQ", - "doc": { - "category": "compare_int", - "description": "Equivalent to `LESS` `NOT`.", - "gas": "18", - "fift": "GEQ" - }, - "bytecode": { - "doc_opcode": "BE", - "tlb": "#BE", - "prefix": "BE", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - x>=y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "CMP", - "doc": { - "category": "compare_int", - "description": "Computes the sign of `x-y`:\n`-1` if `xy`.\nNo integer overflow can occur here unless `x` or `y` is a `NaN`.", - "gas": "18", - "fift": "CMP" - }, - "bytecode": { - "doc_opcode": "BF", - "tlb": "#BF", - "prefix": "BF", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - sgn(x-y)", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "EQINT", - "doc": { - "category": "compare_int", - "description": "Returns `-1` if `x=yy`, `0` otherwise.\n`-2^7 <= yy < 2^7`.", - "gas": "26", - "fift": "[yy] EQINT" - }, - "bytecode": { - "doc_opcode": "C0yy", - "tlb": "#C0 yy:int8", - "prefix": "C0", - "operands": [ - { - "name": "y", - "loader": "int", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x - x=yy", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "LESSINT", - "doc": { - "category": "compare_int", - "description": "Returns `-1` if `xyy`, `0` otherwise.\n`-2^7 <= yy < 2^7`.", - "gas": "26", - "fift": "[yy] GTINT\n[yy+1] GEQINT" - }, - "bytecode": { - "doc_opcode": "C2yy", - "tlb": "#C2 yy:int8", - "prefix": "C2", - "operands": [ - { - "name": "y", - "loader": "int", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x - x>yy", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "NEQINT", - "doc": { - "category": "compare_int", - "description": "Returns `-1` if `x!=yy`, `0` otherwise.\n`-2^7 <= yy < 2^7`.", - "gas": "26", - "fift": "[yy] NEQINT" - }, - "bytecode": { - "doc_opcode": "C3yy", - "tlb": "#C3 yy:int8", - "prefix": "C3", - "operands": [ - { - "name": "y", - "loader": "int", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x - x!=yy", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "ISNAN", - "doc": { - "category": "compare_int", - "description": "Checks whether `x` is a `NaN`.", - "gas": "18", - "fift": "ISNAN" - }, - "bytecode": { - "doc_opcode": "C4", - "tlb": "#C4", - "prefix": "C4", - "operands": [] - }, - "value_flow": { - "doc_stack": "x - x=NaN", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "CHKNAN", - "doc": { - "category": "compare_int", - "description": "Throws an arithmetic overflow exception if `x` is a `NaN`.", - "gas": "18/68", - "fift": "CHKNAN" - }, - "bytecode": { - "doc_opcode": "C5", - "tlb": "#C5", - "prefix": "C5", - "operands": [] - }, - "value_flow": { - "doc_stack": "x - x", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "SEMPTY", - "doc": { - "category": "compare_other", - "description": "Checks whether a _Slice_ `s` is empty (i.e., contains no bits of data and no cell references).", - "gas": "26", - "fift": "SEMPTY" - }, - "bytecode": { - "doc_opcode": "C700", - "tlb": "#C700", - "prefix": "C700", - "operands": [] - }, - "value_flow": { - "doc_stack": "s - ?", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "SDEMPTY", - "doc": { - "category": "compare_other", - "description": "Checks whether _Slice_ `s` has no bits of data.", - "gas": "26", - "fift": "SDEMPTY" - }, - "bytecode": { - "doc_opcode": "C701", - "tlb": "#C701", - "prefix": "C701", - "operands": [] - }, - "value_flow": { - "doc_stack": "s - ?", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "SREMPTY", - "doc": { - "category": "compare_other", - "description": "Checks whether _Slice_ `s` has no references.", - "gas": "26", - "fift": "SREMPTY" - }, - "bytecode": { - "doc_opcode": "C702", - "tlb": "#C702", - "prefix": "C702", - "operands": [] - }, - "value_flow": { - "doc_stack": "s - ?", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "SDFIRST", - "doc": { - "category": "compare_other", - "description": "Checks whether the first bit of _Slice_ `s` is a one.", - "gas": "26", - "fift": "SDFIRST" - }, - "bytecode": { - "doc_opcode": "C703", - "tlb": "#C703", - "prefix": "C703", - "operands": [] - }, - "value_flow": { - "doc_stack": "s - ?", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "SDLEXCMP", - "doc": { - "category": "compare_other", - "description": "Compares the data of `s` lexicographically with the data of `s'`, returning `-1`, 0, or 1 depending on the result.", - "gas": "26", - "fift": "SDLEXCMP" - }, - "bytecode": { - "doc_opcode": "C704", - "tlb": "#C704", - "prefix": "C704", - "operands": [] - }, - "value_flow": { - "doc_stack": "s s' - x", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "SDEQ", - "doc": { - "category": "compare_other", - "description": "Checks whether the data parts of `s` and `s'` coincide, equivalent to `SDLEXCMP` `ISZERO`.", - "gas": "26", - "fift": "SDEQ" - }, - "bytecode": { - "doc_opcode": "C705", - "tlb": "#C705", - "prefix": "C705", - "operands": [] - }, - "value_flow": { - "doc_stack": "s s' - ?", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "SDPFX", - "doc": { - "category": "compare_other", - "description": "Checks whether `s` is a prefix of `s'`.", - "gas": "26", - "fift": "SDPFX" - }, - "bytecode": { - "doc_opcode": "C708", - "tlb": "#C708", - "prefix": "C708", - "operands": [] - }, - "value_flow": { - "doc_stack": "s s' - ?", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "SDPFXREV", - "doc": { - "category": "compare_other", - "description": "Checks whether `s'` is a prefix of `s`, equivalent to `SWAP` `SDPFX`.", - "gas": "26", - "fift": "SDPFXREV" - }, - "bytecode": { - "doc_opcode": "C709", - "tlb": "#C709", - "prefix": "C709", - "operands": [] - }, - "value_flow": { - "doc_stack": "s s' - ?", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "SDPPFX", - "doc": { - "category": "compare_other", - "description": "Checks whether `s` is a proper prefix of `s'` (i.e., a prefix distinct from `s'`).", - "gas": "26", - "fift": "SDPPFX" - }, - "bytecode": { - "doc_opcode": "C70A", - "tlb": "#C70A", - "prefix": "C70A", - "operands": [] - }, - "value_flow": { - "doc_stack": "s s' - ?", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "SDPPFXREV", - "doc": { - "category": "compare_other", - "description": "Checks whether `s'` is a proper prefix of `s`.", - "gas": "26", - "fift": "SDPPFXREV" - }, - "bytecode": { - "doc_opcode": "C70B", - "tlb": "#C70B", - "prefix": "C70B", - "operands": [] - }, - "value_flow": { - "doc_stack": "s s' - ?", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - ] - } - } - }, - { - "mnemonic": "SDSFX", - "doc": { - "category": "compare_other", - "description": "Checks whether `s` is a suffix of `s'`.", - "gas": "26", - "fift": "SDSFX" - }, - "bytecode": { - "doc_opcode": "C70C", - "tlb": "#C70C", - "prefix": "C70C", - "operands": [] - }, - "value_flow": { - "doc_stack": "s s' - ?", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "SDSFXREV", - "doc": { - "category": "compare_other", - "description": "Checks whether `s'` is a suffix of `s`.", - "gas": "26", - "fift": "SDSFXREV" - }, - "bytecode": { - "doc_opcode": "C70D", - "tlb": "#C70D", - "prefix": "C70D", - "operands": [] - }, - "value_flow": { - "doc_stack": "s s' - ?", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "SDPSFX", - "doc": { - "category": "compare_other", - "description": "Checks whether `s` is a proper suffix of `s'`.", - "gas": "26", - "fift": "SDPSFX" - }, - "bytecode": { - "doc_opcode": "C70E", - "tlb": "#C70E", - "prefix": "C70E", - "operands": [] - }, - "value_flow": { - "doc_stack": "s s' - ?", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "SDPSFXREV", - "doc": { - "category": "compare_other", - "description": "Checks whether `s'` is a proper suffix of `s`.", - "gas": "26", - "fift": "SDPSFXREV" - }, - "bytecode": { - "doc_opcode": "C70F", - "tlb": "#C70F", - "prefix": "C70F", - "operands": [] - }, - "value_flow": { - "doc_stack": "s s' - ?", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "SDCNTLEAD0", - "doc": { - "category": "compare_other", - "description": "Returns the number of leading zeroes in `s`.", - "gas": "26", - "fift": "SDCNTLEAD0" - }, - "bytecode": { - "doc_opcode": "C710", - "tlb": "#C710", - "prefix": "C710", - "operands": [] - }, - "value_flow": { - "doc_stack": "s - n", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "SDCNTLEAD1", - "doc": { - "category": "compare_other", - "description": "Returns the number of leading ones in `s`.", - "gas": "26", - "fift": "SDCNTLEAD1" - }, - "bytecode": { - "doc_opcode": "C711", - "tlb": "#C711", - "prefix": "C711", - "operands": [] - }, - "value_flow": { - "doc_stack": "s - n", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "SDCNTTRAIL0", - "doc": { - "category": "compare_other", - "description": "Returns the number of trailing zeroes in `s`.", - "gas": "26", - "fift": "SDCNTTRAIL0" - }, - "bytecode": { - "doc_opcode": "C712", - "tlb": "#C712", - "prefix": "C712", - "operands": [] - }, - "value_flow": { - "doc_stack": "s - n", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "SDCNTTRAIL1", - "doc": { - "category": "compare_other", - "description": "Returns the number of trailing ones in `s`.", - "gas": "26", - "fift": "SDCNTTRAIL1" - }, - "bytecode": { - "doc_opcode": "C713", - "tlb": "#C713", - "prefix": "C713", - "operands": [] - }, - "value_flow": { - "doc_stack": "s - n", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "NEWC", - "doc": { - "category": "cell_build", - "description": "Creates a new empty _Builder_.", - "gas": "18", - "fift": "NEWC" - }, - "bytecode": { - "doc_opcode": "C8", - "tlb": "#C8", - "prefix": "C8", - "operands": [] - }, - "value_flow": { - "doc_stack": "- b", - "inputs": { - "stack": [] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - } - ] - } - } - }, - { - "mnemonic": "ENDC", - "doc": { - "category": "cell_build", - "description": "Converts a _Builder_ into an ordinary _Cell_.", - "gas": "518", - "fift": "ENDC" - }, - "bytecode": { - "doc_opcode": "C9", - "tlb": "#C9", - "prefix": "C9", - "operands": [] - }, - "value_flow": { - "doc_stack": "b - c", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - } - ] - } - } - }, - { - "mnemonic": "STI", - "doc": { - "category": "cell_build", - "description": "Stores a signed `cc+1`-bit integer `x` into _Builder_ `b` for `0 <= cc <= 255`, throws a range check exception if `x` does not fit into `cc+1` bits.", - "gas": "26", - "fift": "[cc+1] STI" - }, - "bytecode": { - "doc_opcode": "CAcc", - "tlb": "#CA cc:uint8", - "prefix": "CA", - "operands": [ - { - "name": "c", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x b - b'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - } - ] - } - } - }, - { - "mnemonic": "STU", - "doc": { - "category": "cell_build", - "description": "Stores an unsigned `cc+1`-bit integer `x` into _Builder_ `b`. In all other respects it is similar to `STI`.", - "gas": "26", - "fift": "[cc+1] STU" - }, - "bytecode": { - "doc_opcode": "CBcc", - "tlb": "#CB cc:uint8", - "prefix": "CB", - "operands": [ - { - "name": "c", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x b - b'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - } - ] - } - } - }, - { - "mnemonic": "STREF", - "doc": { - "category": "cell_build", - "description": "Stores a reference to _Cell_ `c` into _Builder_ `b`.", - "gas": "18", - "fift": "STREF" - }, - "bytecode": { - "doc_opcode": "CC", - "tlb": "#CC", - "prefix": "CC", - "operands": [] - }, - "value_flow": { - "doc_stack": "c b - b'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - }, - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - } - ] - } - } - }, - { - "mnemonic": "STBREFR", - "doc": { - "category": "cell_build", - "description": "Equivalent to `ENDC` `SWAP` `STREF`.", - "gas": "518", - "fift": "STBREFR\nENDCST" - }, - "bytecode": { - "doc_opcode": "CD", - "tlb": "#CD", - "prefix": "CD", - "operands": [] - }, - "value_flow": { - "doc_stack": "b b'' - b", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "child", - "value_types": ["Builder"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - } - ] - } - } - }, - { - "mnemonic": "STSLICE", - "doc": { - "category": "cell_build", - "description": "Stores _Slice_ `s` into _Builder_ `b`.", - "gas": "18", - "fift": "STSLICE" - }, - "bytecode": { - "doc_opcode": "CE", - "tlb": "#CE", - "prefix": "CE", - "operands": [] - }, - "value_flow": { - "doc_stack": "s b - b'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - } - ] - } - } - }, - { - "mnemonic": "STIX", - "doc": { - "category": "cell_build", - "description": "Stores a signed `l`-bit integer `x` into `b` for `0 <= l <= 257`.", - "gas": "26", - "fift": "STIX" - }, - "bytecode": { - "doc_opcode": "CF00", - "tlb": "#CF00", - "prefix": "CF00", - "operands": [] - }, - "value_flow": { - "doc_stack": "x b l - b'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "l", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - } - ] - } - } - }, - { - "mnemonic": "STUX", - "doc": { - "category": "cell_build", - "description": "Stores an unsigned `l`-bit integer `x` into `b` for `0 <= l <= 256`.", - "gas": "26", - "fift": "STUX" - }, - "bytecode": { - "doc_opcode": "CF01", - "tlb": "#CF01", - "prefix": "CF01", - "operands": [] - }, - "value_flow": { - "doc_stack": "x b l - b'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "l", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - } - ] - } - } - }, - { - "mnemonic": "STIXR", - "doc": { - "category": "cell_build", - "description": "Similar to `STIX`, but with arguments in a different order.", - "gas": "26", - "fift": "STIXR" - }, - "bytecode": { - "doc_opcode": "CF02", - "tlb": "#CF02", - "prefix": "CF02", - "operands": [] - }, - "value_flow": { - "doc_stack": "b x l - b'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "l", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - } - ] - } - } - }, - { - "mnemonic": "STUXR", - "doc": { - "category": "cell_build", - "description": "Similar to `STUX`, but with arguments in a different order.", - "gas": "26", - "fift": "STUXR" - }, - "bytecode": { - "doc_opcode": "CF03", - "tlb": "#CF03", - "prefix": "CF03", - "operands": [] - }, - "value_flow": { - "doc_stack": "b x l - b'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "l", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - } - ] - } - } - }, - { - "mnemonic": "STIXQ", - "doc": { - "category": "cell_build", - "description": "A quiet version of `STIX`. If there is no space in `b`, sets `b'=b` and `f=-1`.\nIf `x` does not fit into `l` bits, sets `b'=b` and `f=1`.\nIf the operation succeeds, `b'` is the new _Builder_ and `f=0`.\nHowever, `0 <= l <= 257`, with a range check exception if this is not so.", - "gas": "26", - "fift": "STIXQ" - }, - "bytecode": { - "doc_opcode": "CF04", - "tlb": "#CF04", - "prefix": "CF04", - "operands": [] - }, - "value_flow": { - "doc_stack": "x b l - x b f or b' 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "l", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - } - ] - }, - { - "value": 1, - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "STUXQ", - "doc": { - "category": "cell_build", - "description": "A quiet version of `STUX`.", - "gas": "26", - "fift": "STUXQ" - }, - "bytecode": { - "doc_opcode": "CF05", - "tlb": "#CF05", - "prefix": "CF05", - "operands": [] - }, - "value_flow": { - "doc_stack": "x b l - x b f or b' 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "l", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - } - ] - }, - { - "value": 1, - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "STIXRQ", - "doc": { - "category": "cell_build", - "description": "A quiet version of `STIXR`.", - "gas": "26", - "fift": "STIXRQ" - }, - "bytecode": { - "doc_opcode": "CF06", - "tlb": "#CF06", - "prefix": "CF06", - "operands": [] - }, - "value_flow": { - "doc_stack": "b x l - b x f or b' 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "l", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - { - "value": 1, - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "STUXRQ", - "doc": { - "category": "cell_build", - "description": "A quiet version of `STUXR`.", - "gas": "26", - "fift": "STUXRQ" - }, - "bytecode": { - "doc_opcode": "CF07", - "tlb": "#CF07", - "prefix": "CF07", - "operands": [] - }, - "value_flow": { - "doc_stack": "b x l - b x f or b' 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "l", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - { - "value": 1, - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "STI_ALT", - "doc": { - "category": "cell_build", - "description": "A longer version of `[cc+1] STI`.", - "gas": "34", - "fift": "[cc+1] STI_l" - }, - "bytecode": { - "doc_opcode": "CF08cc", - "tlb": "#CF08 cc:uint8", - "prefix": "CF08", - "operands": [ - { - "name": "c", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x b - b'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - } - ] - } - } - }, - { - "mnemonic": "STU_ALT", - "doc": { - "category": "cell_build", - "description": "A longer version of `[cc+1] STU`.", - "gas": "34", - "fift": "[cc+1] STU_l" - }, - "bytecode": { - "doc_opcode": "CF09cc", - "tlb": "#CF09 cc:uint8", - "prefix": "CF09", - "operands": [ - { - "name": "c", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x b - b'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - } - ] - } - } - }, - { - "mnemonic": "STIR", - "doc": { - "category": "cell_build", - "description": "Equivalent to `SWAP` `[cc+1] STI`.", - "gas": "34", - "fift": "[cc+1] STIR" - }, - "bytecode": { - "doc_opcode": "CF0Acc", - "tlb": "#CF0A cc:uint8", - "prefix": "CF0A", - "operands": [ - { - "name": "c", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "b x - b'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - } - ] - } - } - }, - { - "mnemonic": "STUR", - "doc": { - "category": "cell_build", - "description": "Equivalent to `SWAP` `[cc+1] STU`.", - "gas": "34", - "fift": "[cc+1] STUR" - }, - "bytecode": { - "doc_opcode": "CF0Bcc", - "tlb": "#CF0B cc:uint8", - "prefix": "CF0B", - "operands": [ - { - "name": "c", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "b x - b'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - } - ] - } - } - }, - { - "mnemonic": "STIQ", - "doc": { - "category": "cell_build", - "description": "A quiet version of `STI`.", - "gas": "34", - "fift": "[cc+1] STIQ" - }, - "bytecode": { - "doc_opcode": "CF0Ccc", - "tlb": "#CF0C cc:uint8", - "prefix": "CF0C", - "operands": [ - { - "name": "c", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x b - x b f or b' 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - } - ] - }, - { - "value": 1, - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "STUQ", - "doc": { - "category": "cell_build", - "description": "A quiet version of `STU`.", - "gas": "34", - "fift": "[cc+1] STUQ" - }, - "bytecode": { - "doc_opcode": "CF0Dcc", - "tlb": "#CF0D cc:uint8", - "prefix": "CF0D", - "operands": [ - { - "name": "c", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "x b - x b f or b' 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - } - ] - }, - { - "value": 1, - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "STIRQ", - "doc": { - "category": "cell_build", - "description": "A quiet version of `STIR`.", - "gas": "34", - "fift": "[cc+1] STIRQ" - }, - "bytecode": { - "doc_opcode": "CF0Ecc", - "tlb": "#CF0E cc:uint8", - "prefix": "CF0E", - "operands": [ - { - "name": "c", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "b x - b x f or b' 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - { - "value": 1, - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "STURQ", - "doc": { - "category": "cell_build", - "description": "A quiet version of `STUR`.", - "gas": "34", - "fift": "[cc+1] STURQ" - }, - "bytecode": { - "doc_opcode": "CF0Fcc", - "tlb": "#CF0F cc:uint8", - "prefix": "CF0F", - "operands": [ - { - "name": "c", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "b x - b x f or b' 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - { - "value": 1, - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "STREF_ALT", - "doc": { - "category": "cell_build", - "description": "A longer version of `STREF`.", - "gas": "26", - "fift": "STREF_l" - }, - "bytecode": { - "doc_opcode": "CF10", - "tlb": "#CF10", - "prefix": "CF10", - "operands": [] - }, - "value_flow": { - "doc_stack": "c b - b'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - }, - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - } - ] - } - } - }, - { - "mnemonic": "STBREF", - "doc": { - "category": "cell_build", - "description": "Equivalent to `SWAP` `STBREFR`.", - "gas": "526", - "fift": "STBREF" - }, - "bytecode": { - "doc_opcode": "CF11", - "tlb": "#CF11", - "prefix": "CF11", - "operands": [] - }, - "value_flow": { - "doc_stack": "b' b - b''", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "child", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - } - ] - } - } - }, - { - "mnemonic": "STSLICE_ALT", - "doc": { - "category": "cell_build", - "description": "A longer version of `STSLICE`.", - "gas": "26", - "fift": "STSLICE_l" - }, - "bytecode": { - "doc_opcode": "CF12", - "tlb": "#CF12", - "prefix": "CF12", - "operands": [] - }, - "value_flow": { - "doc_stack": "s b - b'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - } - ] - } - } - }, - { - "mnemonic": "STB", - "doc": { - "category": "cell_build", - "description": "Appends all data from _Builder_ `b'` to _Builder_ `b`.", - "gas": "26", - "fift": "STB" - }, - "bytecode": { - "doc_opcode": "CF13", - "tlb": "#CF13", - "prefix": "CF13", - "operands": [] - }, - "value_flow": { - "doc_stack": "b' b - b''", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "b3", - "value_types": ["Builder"] - } - ] - } - } - }, - { - "mnemonic": "STREFR", - "doc": { - "category": "cell_build", - "description": "Equivalent to `SWAP` `STREF`.", - "gas": "26", - "fift": "STREFR" - }, - "bytecode": { - "doc_opcode": "CF14", - "tlb": "#CF14", - "prefix": "CF14", - "operands": [] - }, - "value_flow": { - "doc_stack": "b c - b'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - } - ] - } - } - }, - { - "mnemonic": "STBREFR_ALT", - "doc": { - "category": "cell_build", - "description": "A longer encoding of `STBREFR`.", - "gas": "526", - "fift": "STBREFR_l" - }, - "bytecode": { - "doc_opcode": "CF15", - "tlb": "#CF15", - "prefix": "CF15", - "operands": [] - }, - "value_flow": { - "doc_stack": "b b' - b''", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "b3", - "value_types": ["Builder"] - } - ] - } - } - }, - { - "mnemonic": "STSLICER", - "doc": { - "category": "cell_build", - "description": "Equivalent to `SWAP` `STSLICE`.", - "gas": "26", - "fift": "STSLICER" - }, - "bytecode": { - "doc_opcode": "CF16", - "tlb": "#CF16", - "prefix": "CF16", - "operands": [] - }, - "value_flow": { - "doc_stack": "b s - b'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - } - ] - } - } - }, - { - "mnemonic": "STBR", - "doc": { - "category": "cell_build", - "description": "Concatenates two builders.\nEquivalent to `SWAP` `STB`.", - "gas": "26", - "fift": "STBR\nBCONCAT" - }, - "bytecode": { - "doc_opcode": "CF17", - "tlb": "#CF17", - "prefix": "CF17", - "operands": [] - }, - "value_flow": { - "doc_stack": "b b' - b''", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "b3", - "value_types": ["Builder"] - } - ] - } - } - }, - { - "mnemonic": "STREFQ", - "doc": { - "category": "cell_build", - "description": "Quiet version of `STREF`.", - "gas": "26", - "fift": "STREFQ" - }, - "bytecode": { - "doc_opcode": "CF18", - "tlb": "#CF18", - "prefix": "CF18", - "operands": [] - }, - "value_flow": { - "doc_stack": "c b - c b -1 or b' 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - }, - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - }, - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "STBREFQ", - "doc": { - "category": "cell_build", - "description": "Quiet version of `STBREF`.", - "gas": "526", - "fift": "STBREFQ" - }, - "bytecode": { - "doc_opcode": "CF19", - "tlb": "#CF19", - "prefix": "CF19", - "operands": [] - }, - "value_flow": { - "doc_stack": "b' b - b' b -1 or b'' 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "b3", - "value_types": ["Builder"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "STSLICEQ", - "doc": { - "category": "cell_build", - "description": "Quiet version of `STSLICE`.", - "gas": "26", - "fift": "STSLICEQ" - }, - "bytecode": { - "doc_opcode": "CF1A", - "tlb": "#CF1A", - "prefix": "CF1A", - "operands": [] - }, - "value_flow": { - "doc_stack": "s b - s b -1 or b' 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "STBQ", - "doc": { - "category": "cell_build", - "description": "Quiet version of `STB`.", - "gas": "26", - "fift": "STBQ" - }, - "bytecode": { - "doc_opcode": "CF1B", - "tlb": "#CF1B", - "prefix": "CF1B", - "operands": [] - }, - "value_flow": { - "doc_stack": "b' b - b' b -1 or b'' 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "b3", - "value_types": ["Builder"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "STREFRQ", - "doc": { - "category": "cell_build", - "description": "Quiet version of `STREFR`.", - "gas": "26", - "fift": "STREFRQ" - }, - "bytecode": { - "doc_opcode": "CF1C", - "tlb": "#CF1C", - "prefix": "CF1C", - "operands": [] - }, - "value_flow": { - "doc_stack": "b c - b c -1 or b' 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "STBREFRQ", - "doc": { - "category": "cell_build", - "description": "Quiet version of `STBREFR`.", - "gas": "526", - "fift": "STBREFRQ" - }, - "bytecode": { - "doc_opcode": "CF1D", - "tlb": "#CF1D", - "prefix": "CF1D", - "operands": [] - }, - "value_flow": { - "doc_stack": "b b' - b b' -1 or b'' 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "b3", - "value_types": ["Builder"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "STSLICERQ", - "doc": { - "category": "cell_build", - "description": "Quiet version of `STSLICER`.", - "gas": "26", - "fift": "STSLICERQ" - }, - "bytecode": { - "doc_opcode": "CF1E", - "tlb": "#CF1E", - "prefix": "CF1E", - "operands": [] - }, - "value_flow": { - "doc_stack": "b s - b s -1 or b'' 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "b3", - "value_types": ["Builder"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "STBRQ", - "doc": { - "category": "cell_build", - "description": "Quiet version of `STBR`.", - "gas": "26", - "fift": "STBRQ\nBCONCATQ" - }, - "bytecode": { - "doc_opcode": "CF1F", - "tlb": "#CF1F", - "prefix": "CF1F", - "operands": [] - }, - "value_flow": { - "doc_stack": "b b' - b b' -1 or b'' 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "b3", - "value_types": ["Builder"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "STREFCONST", - "doc": { - "category": "cell_build", - "description": "Equivalent to `PUSHREF` `STREFR`.", - "gas": "26", - "fift": "[ref] STREFCONST" - }, - "bytecode": { - "doc_opcode": "CF20", - "tlb": "#CF20 c:^Cell", - "prefix": "CF20", - "operands": [ - { - "name": "c", - "loader": "ref", - "loader_args": {} - } - ] - }, - "value_flow": { - "doc_stack": "b - b\u0432\u0402\u2122", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - } - ] - } - } - }, - { - "mnemonic": "STREF2CONST", - "doc": { - "category": "cell_build", - "description": "Equivalent to `STREFCONST` `STREFCONST`.", - "gas": "26", - "fift": "[ref] [ref] STREF2CONST" - }, - "bytecode": { - "doc_opcode": "CF21", - "tlb": "#CF21 c1:^Cell c2:^Cell", - "prefix": "CF21", - "operands": [] - }, - "value_flow": { - "doc_stack": "b - b\u0432\u0402\u2122", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - } - ] - } - } - }, - { - "mnemonic": "ENDXC", - "doc": { - "category": "cell_build", - "description": "If `x!=0`, creates a _special_ or _exotic_ cell from _Builder_ `b`.\nThe type of the exotic cell must be stored in the first 8 bits of `b`.\nIf `x=0`, it is equivalent to `ENDC`. Otherwise some validity checks on the data and references of `b` are performed before creating the exotic cell.", - "gas": "526", - "fift": "" - }, - "bytecode": { - "doc_opcode": "CF23", - "tlb": "#CF23", - "prefix": "CF23", - "operands": [] - }, - "value_flow": { - "doc_stack": "b x - c", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - } - ] - } - } - }, - { - "mnemonic": "STILE4", - "doc": { - "category": "cell_build", - "description": "Stores a little-endian signed 32-bit integer.", - "gas": "26", - "fift": "STILE4" - }, - "bytecode": { - "doc_opcode": "CF28", - "tlb": "#CF28", - "prefix": "CF28", - "operands": [] - }, - "value_flow": { - "doc_stack": "x b - b'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - } - ] - } - } - }, - { - "mnemonic": "STULE4", - "doc": { - "category": "cell_build", - "description": "Stores a little-endian unsigned 32-bit integer.", - "gas": "26", - "fift": "STULE4" - }, - "bytecode": { - "doc_opcode": "CF29", - "tlb": "#CF29", - "prefix": "CF29", - "operands": [] - }, - "value_flow": { - "doc_stack": "x b - b'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - } - ] - } - } - }, - { - "mnemonic": "STILE8", - "doc": { - "category": "cell_build", - "description": "Stores a little-endian signed 64-bit integer.", - "gas": "26", - "fift": "STILE8" - }, - "bytecode": { - "doc_opcode": "CF2A", - "tlb": "#CF2A", - "prefix": "CF2A", - "operands": [] - }, - "value_flow": { - "doc_stack": "x b - b'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - } - ] - } - } - }, - { - "mnemonic": "STULE8", - "doc": { - "category": "cell_build", - "description": "Stores a little-endian unsigned 64-bit integer.", - "gas": "26", - "fift": "STULE8" - }, - "bytecode": { - "doc_opcode": "CF2B", - "tlb": "#CF2B", - "prefix": "CF2B", - "operands": [] - }, - "value_flow": { - "doc_stack": "x b - b'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - } - ] - } - } - }, - { - "mnemonic": "BDEPTH", - "doc": { - "category": "cell_build", - "description": "Returns the depth of _Builder_ `b`. If no cell references are stored in `b`, then `x=0`; otherwise `x` is one plus the maximum of depths of cells referred to from `b`.", - "gas": "26", - "fift": "BDEPTH" - }, - "bytecode": { - "doc_opcode": "CF30", - "tlb": "#CF30", - "prefix": "CF30", - "operands": [] - }, - "value_flow": { - "doc_stack": "b - x", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "BBITS", - "doc": { - "category": "cell_build", - "description": "Returns the number of data bits already stored in _Builder_ `b`.", - "gas": "26", - "fift": "BBITS" - }, - "bytecode": { - "doc_opcode": "CF31", - "tlb": "#CF31", - "prefix": "CF31", - "operands": [] - }, - "value_flow": { - "doc_stack": "b - x", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "BREFS", - "doc": { - "category": "cell_build", - "description": "Returns the number of cell references already stored in `b`.", - "gas": "26", - "fift": "BREFS" - }, - "bytecode": { - "doc_opcode": "CF32", - "tlb": "#CF32", - "prefix": "CF32", - "operands": [] - }, - "value_flow": { - "doc_stack": "b - y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "BBITREFS", - "doc": { - "category": "cell_build", - "description": "Returns the numbers of both data bits and cell references in `b`.", - "gas": "26", - "fift": "BBITREFS" - }, - "bytecode": { - "doc_opcode": "CF33", - "tlb": "#CF33", - "prefix": "CF33", - "operands": [] - }, - "value_flow": { - "doc_stack": "b - x y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "BREMBITS", - "doc": { - "category": "cell_build", - "description": "Returns the number of data bits that can still be stored in `b`.", - "gas": "26", - "fift": "BREMBITS" - }, - "bytecode": { - "doc_opcode": "CF35", - "tlb": "#CF35", - "prefix": "CF35", - "operands": [] - }, - "value_flow": { - "doc_stack": "b - x'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x2", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "BREMREFS", - "doc": { - "category": "cell_build", - "description": "Returns the number of references that can still be stored in `b`.", - "gas": "26", - "fift": "BREMREFS" - }, - "bytecode": { - "doc_opcode": "CF36", - "tlb": "#CF36", - "prefix": "CF36", - "operands": [] - }, - "value_flow": { - "doc_stack": "b - y'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "y2", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "BREMBITREFS", - "doc": { - "category": "cell_build", - "description": "Returns the numbers of both data bits and references that can still be stored in `b`.", - "gas": "26", - "fift": "BREMBITREFS" - }, - "bytecode": { - "doc_opcode": "CF37", - "tlb": "#CF37", - "prefix": "CF37", - "operands": [] - }, - "value_flow": { - "doc_stack": "b - x' y'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x2", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y2", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "BCHKBITS", - "doc": { - "category": "cell_build", - "description": "Checks whether `cc+1` bits can be stored into `b`, where `0 <= cc <= 255`.", - "gas": "34/84", - "fift": "[cc+1] BCHKBITS#" - }, - "bytecode": { - "doc_opcode": "CF38cc", - "tlb": "#CF38 cc:uint8", - "prefix": "CF38", - "operands": [ - { - "name": "c", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "b -", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - } - ] - }, - "outputs": { - "stack": [] - } - } - }, - { - "mnemonic": "BCHKBITS_VAR", - "doc": { - "category": "cell_build", - "description": "Checks whether `x` bits can be stored into `b`, `0 <= x <= 1023`. If there is no space for `x` more bits in `b`, or if `x` is not within the range `0...1023`, throws an exception.", - "gas": "26/76", - "fift": "BCHKBITS" - }, - "bytecode": { - "doc_opcode": "CF39", - "tlb": "#CF39", - "prefix": "CF39", - "operands": [] - }, - "value_flow": { - "doc_stack": "b x - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [] - } - } - }, - { - "mnemonic": "BCHKREFS", - "doc": { - "category": "cell_build", - "description": "Checks whether `y` references can be stored into `b`, `0 <= y <= 7`.", - "gas": "26/76", - "fift": "BCHKREFS" - }, - "bytecode": { - "doc_opcode": "CF3A", - "tlb": "#CF3A", - "prefix": "CF3A", - "operands": [] - }, - "value_flow": { - "doc_stack": "b y - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [] - } - } - }, - { - "mnemonic": "BCHKBITREFS", - "doc": { - "category": "cell_build", - "description": "Checks whether `x` bits and `y` references can be stored into `b`, `0 <= x <= 1023`, `0 <= y <= 7`.", - "gas": "26/76", - "fift": "BCHKBITREFS" - }, - "bytecode": { - "doc_opcode": "CF3B", - "tlb": "#CF3B", - "prefix": "CF3B", - "operands": [] - }, - "value_flow": { - "doc_stack": "b x y - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [] - } - } - }, - { - "mnemonic": "BCHKBITSQ", - "doc": { - "category": "cell_build", - "description": "Checks whether `cc+1` bits can be stored into `b`, where `0 <= cc <= 255`.", - "gas": "34", - "fift": "[cc+1] BCHKBITSQ#" - }, - "bytecode": { - "doc_opcode": "CF3Ccc", - "tlb": "#CF3C cc:uint8", - "prefix": "CF3C", - "operands": [ - { - "name": "c", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "b - ?", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "BCHKBITSQ_VAR", - "doc": { - "category": "cell_build", - "description": "Checks whether `x` bits can be stored into `b`, `0 <= x <= 1023`.", - "gas": "26", - "fift": "BCHKBITSQ" - }, - "bytecode": { - "doc_opcode": "CF3D", - "tlb": "#CF3D", - "prefix": "CF3D", - "operands": [] - }, - "value_flow": { - "doc_stack": "b x - ?", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "BCHKREFSQ", - "doc": { - "category": "cell_build", - "description": "Checks whether `y` references can be stored into `b`, `0 <= y <= 7`.", - "gas": "26", - "fift": "BCHKREFSQ" - }, - "bytecode": { - "doc_opcode": "CF3E", - "tlb": "#CF3E", - "prefix": "CF3E", - "operands": [] - }, - "value_flow": { - "doc_stack": "b y - ?", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "BCHKBITREFSQ", - "doc": { - "category": "cell_build", - "description": "Checks whether `x` bits and `y` references can be stored into `b`, `0 <= x <= 1023`, `0 <= y <= 7`.", - "gas": "26", - "fift": "BCHKBITREFSQ" - }, - "bytecode": { - "doc_opcode": "CF3F", - "tlb": "#CF3F", - "prefix": "CF3F", - "operands": [] - }, - "value_flow": { - "doc_stack": "b x y - ?", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "STZEROES", - "doc": { - "category": "cell_build", - "description": "Stores `n` binary zeroes into _Builder_ `b`.", - "gas": "26", - "fift": "STZEROES" - }, - "bytecode": { - "doc_opcode": "CF40", - "tlb": "#CF40", - "prefix": "CF40", - "operands": [] - }, - "value_flow": { - "doc_stack": "b n - b'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - } - ] - } - } - }, - { - "mnemonic": "STONES", - "doc": { - "category": "cell_build", - "description": "Stores `n` binary ones into _Builder_ `b`.", - "gas": "26", - "fift": "STONES" - }, - "bytecode": { - "doc_opcode": "CF41", - "tlb": "#CF41", - "prefix": "CF41", - "operands": [] - }, - "value_flow": { - "doc_stack": "b n - b'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - } - ] - } - } - }, - { - "mnemonic": "STSAME", - "doc": { - "category": "cell_build", - "description": "Stores `n` binary `x`es (`0 <= x <= 1`) into _Builder_ `b`.", - "gas": "26", - "fift": "STSAME" - }, - "bytecode": { - "doc_opcode": "CF42", - "tlb": "#CF42", - "prefix": "CF42", - "operands": [] - }, - "value_flow": { - "doc_stack": "b n x - b'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - } - ] - } - } - }, - { - "mnemonic": "STSLICECONST", - "doc": { - "category": "cell_build", - "description": "Stores a constant subslice `sss`.\n_Details:_ `sss` consists of `0 <= x <= 3` references and up to `8y+2` data bits, with `0 <= y <= 7`. Completion bit is assumed.\nNote that the assembler can replace `STSLICECONST` with `PUSHSLICE` `STSLICER` if the slice is too big.", - "gas": "24", - "fift": "[slice] STSLICECONST" - }, - "bytecode": { - "doc_opcode": "CFC0_xysss", - "tlb": "#CFC0_ x:(## 2) y:(## 3) c:(x * ^Cell) sss:((8 * y + 2) * Bit)", - "prefix": "CFC0_", - "operands": [ - { - "name": "x", - "loader": "uint", - "loader_args": { - "size": 2 - }, - "internal": true - }, - { - "name": "y", - "loader": "uint", - "loader_args": { - "size": 3 - }, - "internal": true - }, - { - "name": "sss", - "loader": "subslice", - "loader_args": { - "bits_length_var": "y", - "bits_padding": 2, - "refs_length_var": "x", - "completion_tag": true - } - } - ] - }, - "value_flow": { - "doc_stack": "b - b'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - } - ] - } - } - }, - { - "mnemonic": "CTOS", - "doc": { - "category": "cell_parse", - "description": "Converts a _Cell_ into a _Slice_. Notice that `c` must be either an ordinary cell, or an exotic cell which is automatically _loaded_ to yield an ordinary cell `c'`, converted into a _Slice_ afterwards.", - "gas": "118/43", - "fift": "CTOS" - }, - "bytecode": { - "doc_opcode": "D0", - "tlb": "#D0", - "prefix": "D0", - "operands": [] - }, - "value_flow": { - "doc_stack": "c - s", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "ENDS", - "doc": { - "category": "cell_parse", - "description": "Removes a _Slice_ `s` from the stack, and throws an exception if it is not empty.", - "gas": "18/68", - "fift": "ENDS" - }, - "bytecode": { - "doc_opcode": "D1", - "tlb": "#D1", - "prefix": "D1", - "operands": [] - }, - "value_flow": { - "doc_stack": "s - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [] - } - } - }, - { - "mnemonic": "LDI", - "doc": { - "category": "cell_parse", - "description": "Loads (i.e., parses) a signed `cc+1`-bit integer `x` from _Slice_ `s`, and returns the remainder of `s` as `s'`.", - "gas": "26", - "fift": "[cc+1] LDI" - }, - "bytecode": { - "doc_opcode": "D2cc", - "tlb": "#D2 cc:uint8", - "prefix": "D2", - "operands": [ - { - "name": "c", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "s - x s'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "LDU", - "doc": { - "category": "cell_parse", - "description": "Loads an unsigned `cc+1`-bit integer `x` from _Slice_ `s`.", - "gas": "26", - "fift": "[cc+1] LDU" - }, - "bytecode": { - "doc_opcode": "D3cc", - "tlb": "#D3 cc:uint8", - "prefix": "D3", - "operands": [ - { - "name": "c", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "s - x s'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "LDREF", - "doc": { - "category": "cell_parse", - "description": "Loads a cell reference `c` from `s`.", - "gas": "18", - "fift": "LDREF" - }, - "bytecode": { - "doc_opcode": "D4", - "tlb": "#D4", - "prefix": "D4", - "operands": [] - }, - "value_flow": { - "doc_stack": "s - c s'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - }, - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "LDREFRTOS", - "doc": { - "category": "cell_parse", - "description": "Equivalent to `LDREF` `SWAP` `CTOS`.", - "gas": "118/43", - "fift": "LDREFRTOS" - }, - "bytecode": { - "doc_opcode": "D5", - "tlb": "#D5", - "prefix": "D5", - "operands": [] - }, - "value_flow": { - "doc_stack": "s - s' s''", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "s3", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "LDSLICE", - "doc": { - "category": "cell_parse", - "description": "Cuts the next `cc+1` bits of `s` into a separate _Slice_ `s''`.", - "gas": "26", - "fift": "[cc+1] LDSLICE" - }, - "bytecode": { - "doc_opcode": "D6cc", - "tlb": "#D6 cc:uint8", - "prefix": "D6", - "operands": [ - { - "name": "c", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "s - s'' s'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "s3", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "LDIX", - "doc": { - "category": "cell_parse", - "description": "Loads a signed `l`-bit (`0 <= l <= 257`) integer `x` from _Slice_ `s`, and returns the remainder of `s` as `s'`.", - "gas": "26", - "fift": "LDIX" - }, - "bytecode": { - "doc_opcode": "D700", - "tlb": "#D700", - "prefix": "D700", - "operands": [] - }, - "value_flow": { - "doc_stack": "s l - x s'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "l", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "LDUX", - "doc": { - "category": "cell_parse", - "description": "Loads an unsigned `l`-bit integer `x` from (the first `l` bits of) `s`, with `0 <= l <= 256`.", - "gas": "26", - "fift": "LDUX" - }, - "bytecode": { - "doc_opcode": "D701", - "tlb": "#D701", - "prefix": "D701", - "operands": [] - }, - "value_flow": { - "doc_stack": "s l - x s'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "l", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "PLDIX", - "doc": { - "category": "cell_parse", - "description": "Preloads a signed `l`-bit integer from _Slice_ `s`, for `0 <= l <= 257`.", - "gas": "26", - "fift": "PLDIX" - }, - "bytecode": { - "doc_opcode": "D702", - "tlb": "#D702", - "prefix": "D702", - "operands": [] - }, - "value_flow": { - "doc_stack": "s l - x", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "l", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "PLDUX", - "doc": { - "category": "cell_parse", - "description": "Preloads an unsigned `l`-bit integer from `s`, for `0 <= l <= 256`.", - "gas": "26", - "fift": "PLDUX" - }, - "bytecode": { - "doc_opcode": "D703", - "tlb": "#D703", - "prefix": "D703", - "operands": [] - }, - "value_flow": { - "doc_stack": "s l - x", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "l", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "LDIXQ", - "doc": { - "category": "cell_parse", - "description": "Quiet version of `LDIX`: loads a signed `l`-bit integer from `s` similarly to `LDIX`, but returns a success flag, equal to `-1` on success or to `0` on failure (if `s` does not have `l` bits), instead of throwing a cell underflow exception.", - "gas": "26", - "fift": "LDIXQ" - }, - "bytecode": { - "doc_opcode": "D704", - "tlb": "#D704", - "prefix": "D704", - "operands": [] - }, - "value_flow": { - "doc_stack": "s l - x s' -1 or s 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "l", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "LDUXQ", - "doc": { - "category": "cell_parse", - "description": "Quiet version of `LDUX`.", - "gas": "26", - "fift": "LDUXQ" - }, - "bytecode": { - "doc_opcode": "D705", - "tlb": "#D705", - "prefix": "D705", - "operands": [] - }, - "value_flow": { - "doc_stack": "s l - x s' -1 or s 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "l", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "PLDIXQ", - "doc": { - "category": "cell_parse", - "description": "Quiet version of `PLDIX`.", - "gas": "26", - "fift": "PLDIXQ" - }, - "bytecode": { - "doc_opcode": "D706", - "tlb": "#D706", - "prefix": "D706", - "operands": [] - }, - "value_flow": { - "doc_stack": "s l - x -1 or 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "l", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "PLDUXQ", - "doc": { - "category": "cell_parse", - "description": "Quiet version of `PLDUX`.", - "gas": "26", - "fift": "PLDUXQ" - }, - "bytecode": { - "doc_opcode": "D707", - "tlb": "#D707", - "prefix": "D707", - "operands": [] - }, - "value_flow": { - "doc_stack": "s l - x -1 or 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "l", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "LDI_ALT", - "doc": { - "category": "cell_parse", - "description": "A longer encoding for `LDI`.", - "gas": "34", - "fift": "[cc+1] LDI_l" - }, - "bytecode": { - "doc_opcode": "D708cc", - "tlb": "#D708 cc:uint8", - "prefix": "D708", - "operands": [ - { - "name": "c", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "s - x s'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "LDU_ALT", - "doc": { - "category": "cell_parse", - "description": "A longer encoding for `LDU`.", - "gas": "34", - "fift": "[cc+1] LDU_l" - }, - "bytecode": { - "doc_opcode": "D709cc", - "tlb": "#D709 cc:uint8", - "prefix": "D709", - "operands": [ - { - "name": "c", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "s - x s'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "PLDI", - "doc": { - "category": "cell_parse", - "description": "Preloads a signed `cc+1`-bit integer from _Slice_ `s`.", - "gas": "34", - "fift": "[cc+1] PLDI" - }, - "bytecode": { - "doc_opcode": "D70Acc", - "tlb": "#D70A cc:uint8", - "prefix": "D70A", - "operands": [ - { - "name": "c", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "s - x", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "PLDU", - "doc": { - "category": "cell_parse", - "description": "Preloads an unsigned `cc+1`-bit integer from `s`.", - "gas": "34", - "fift": "[cc+1] PLDU" - }, - "bytecode": { - "doc_opcode": "D70Bcc", - "tlb": "#D70B cc:uint8", - "prefix": "D70B", - "operands": [ - { - "name": "c", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "s - x", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "LDIQ", - "doc": { - "category": "cell_parse", - "description": "A quiet version of `LDI`.", - "gas": "34", - "fift": "[cc+1] LDIQ" - }, - "bytecode": { - "doc_opcode": "D70Ccc", - "tlb": "#D70C cc:uint8", - "prefix": "D70C", - "operands": [ - { - "name": "c", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "s - x s' -1 or s 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "LDUQ", - "doc": { - "category": "cell_parse", - "description": "A quiet version of `LDU`.", - "gas": "34", - "fift": "[cc+1] LDUQ" - }, - "bytecode": { - "doc_opcode": "D70Dcc", - "tlb": "#D70D cc:uint8", - "prefix": "D70D", - "operands": [ - { - "name": "c", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "s - x s' -1 or s 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "PLDIQ", - "doc": { - "category": "cell_parse", - "description": "A quiet version of `PLDI`.", - "gas": "34", - "fift": "[cc+1] PLDIQ" - }, - "bytecode": { - "doc_opcode": "D70Ecc", - "tlb": "#D70E cc:uint8", - "prefix": "D70E", - "operands": [ - { - "name": "c", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "s - x -1 or 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "PLDUQ", - "doc": { - "category": "cell_parse", - "description": "A quiet version of `PLDU`.", - "gas": "34", - "fift": "[cc+1] PLDUQ" - }, - "bytecode": { - "doc_opcode": "D70Fcc", - "tlb": "#D70F cc:uint8", - "prefix": "D70F", - "operands": [ - { - "name": "c", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "s - x -1 or 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "PLDUZ", - "doc": { - "category": "cell_parse", - "description": "Preloads the first `32(c+1)` bits of _Slice_ `s` into an unsigned integer `x`, for `0 <= c <= 7`. If `s` is shorter than necessary, missing bits are assumed to be zero. This operation is intended to be used along with `IFBITJMP` and similar instructions.", - "gas": "26", - "fift": "[32(c+1)] PLDUZ" - }, - "bytecode": { - "doc_opcode": "D714_c", - "tlb": "#D714_ c:uint3", - "prefix": "D714_", - "operands": [ - { - "name": "c", - "loader": "uint", - "loader_args": { - "size": 3 - } - } - ] - }, - "value_flow": { - "doc_stack": "s - s x", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "LDSLICEX", - "doc": { - "category": "cell_parse", - "description": "Loads the first `0 <= l <= 1023` bits from _Slice_ `s` into a separate _Slice_ `s''`, returning the remainder of `s` as `s'`.", - "gas": "26", - "fift": "LDSLICEX" - }, - "bytecode": { - "doc_opcode": "D718", - "tlb": "#D718", - "prefix": "D718", - "operands": [] - }, - "value_flow": { - "doc_stack": "s l - s'' s'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "l", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "s3", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "PLDSLICEX", - "doc": { - "category": "cell_parse", - "description": "Returns the first `0 <= l <= 1023` bits of `s` as `s''`.", - "gas": "26", - "fift": "PLDSLICEX" - }, - "bytecode": { - "doc_opcode": "D719", - "tlb": "#D719", - "prefix": "D719", - "operands": [] - }, - "value_flow": { - "doc_stack": "s l - s''", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "l", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "s3", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "LDSLICEXQ", - "doc": { - "category": "cell_parse", - "description": "A quiet version of `LDSLICEX`.", - "gas": "26", - "fift": "LDSLICEXQ" - }, - "bytecode": { - "doc_opcode": "D71A", - "tlb": "#D71A", - "prefix": "D71A", - "operands": [] - }, - "value_flow": { - "doc_stack": "s l - s'' s' -1 or s 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "l", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "s3", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "PLDSLICEXQ", - "doc": { - "category": "cell_parse", - "description": "A quiet version of `LDSLICEXQ`.", - "gas": "26", - "fift": "PLDSLICEXQ" - }, - "bytecode": { - "doc_opcode": "D71B", - "tlb": "#D71B", - "prefix": "D71B", - "operands": [] - }, - "value_flow": { - "doc_stack": "s l - s' -1 or 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "l", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "LDSLICE_ALT", - "doc": { - "category": "cell_parse", - "description": "A longer encoding for `LDSLICE`.", - "gas": "34", - "fift": "[cc+1] LDSLICE_l" - }, - "bytecode": { - "doc_opcode": "D71Ccc", - "tlb": "#D71C cc:uint8", - "prefix": "D71C", - "operands": [ - { - "name": "c", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "s - s'' s'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "s3", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "PLDSLICE", - "doc": { - "category": "cell_parse", - "description": "Returns the first `0 < cc+1 <= 256` bits of `s` as `s''`.", - "gas": "34", - "fift": "[cc+1] PLDSLICE" - }, - "bytecode": { - "doc_opcode": "D71Dcc", - "tlb": "#D71D cc:uint8", - "prefix": "D71D", - "operands": [ - { - "name": "c", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "s - s''", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "s3", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "LDSLICEQ", - "doc": { - "category": "cell_parse", - "description": "A quiet version of `LDSLICE`.", - "gas": "34", - "fift": "[cc+1] LDSLICEQ" - }, - "bytecode": { - "doc_opcode": "D71Ecc", - "tlb": "#D71E cc:uint8", - "prefix": "D71E", - "operands": [ - { - "name": "c", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "s - s'' s' -1 or s 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "s3", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "PLDSLICEQ", - "doc": { - "category": "cell_parse", - "description": "A quiet version of `PLDSLICE`.", - "gas": "34", - "fift": "[cc+1] PLDSLICEQ" - }, - "bytecode": { - "doc_opcode": "D71Fcc", - "tlb": "#D71F cc:uint8", - "prefix": "D71F", - "operands": [ - { - "name": "c", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "s - s'' -1 or 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "s3", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "SDCUTFIRST", - "doc": { - "category": "cell_parse", - "description": "Returns the first `0 <= l <= 1023` bits of `s`. It is equivalent to `PLDSLICEX`.", - "gas": "26", - "fift": "SDCUTFIRST" - }, - "bytecode": { - "doc_opcode": "D720", - "tlb": "#D720", - "prefix": "D720", - "operands": [] - }, - "value_flow": { - "doc_stack": "s l - s'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "l", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "SDSKIPFIRST", - "doc": { - "category": "cell_parse", - "description": "Returns all but the first `0 <= l <= 1023` bits of `s`. It is equivalent to `LDSLICEX` `NIP`.", - "gas": "26", - "fift": "SDSKIPFIRST" - }, - "bytecode": { - "doc_opcode": "D721", - "tlb": "#D721", - "prefix": "D721", - "operands": [] - }, - "value_flow": { - "doc_stack": "s l - s'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "l", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "SDCUTLAST", - "doc": { - "category": "cell_parse", - "description": "Returns the last `0 <= l <= 1023` bits of `s`.", - "gas": "26", - "fift": "SDCUTLAST" - }, - "bytecode": { - "doc_opcode": "D722", - "tlb": "#D722", - "prefix": "D722", - "operands": [] - }, - "value_flow": { - "doc_stack": "s l - s'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "l", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "SDSKIPLAST", - "doc": { - "category": "cell_parse", - "description": "Returns all but the last `0 <= l <= 1023` bits of `s`.", - "gas": "26", - "fift": "SDSKIPLAST" - }, - "bytecode": { - "doc_opcode": "D723", - "tlb": "#D723", - "prefix": "D723", - "operands": [] - }, - "value_flow": { - "doc_stack": "s l - s'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "l", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "SDSUBSTR", - "doc": { - "category": "cell_parse", - "description": "Returns `0 <= l' <= 1023` bits of `s` starting from offset `0 <= l <= 1023`, thus extracting a bit substring out of the data of `s`.", - "gas": "26", - "fift": "SDSUBSTR" - }, - "bytecode": { - "doc_opcode": "D724", - "tlb": "#D724", - "prefix": "D724", - "operands": [] - }, - "value_flow": { - "doc_stack": "s l l' - s'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "l", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "l2", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "SDBEGINSX", - "doc": { - "category": "cell_parse", - "description": "Checks whether `s` begins with (the data bits of) `s'`, and removes `s'` from `s` on success. On failure throws a cell deserialization exception. Primitive `SDPFXREV` can be considered a quiet version of `SDBEGINSX`.", - "gas": "26", - "fift": "SDBEGINSX" - }, - "bytecode": { - "doc_opcode": "D726", - "tlb": "#D726", - "prefix": "D726", - "operands": [] - }, - "value_flow": { - "doc_stack": "s s' - s''", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "s3", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "SDBEGINSXQ", - "doc": { - "category": "cell_parse", - "description": "A quiet version of `SDBEGINSX`.", - "gas": "26", - "fift": "SDBEGINSXQ" - }, - "bytecode": { - "doc_opcode": "D727", - "tlb": "#D727", - "prefix": "D727", - "operands": [] - }, - "value_flow": { - "doc_stack": "s s' - s'' -1 or s 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "s3", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "SDBEGINS", - "doc": { - "category": "cell_parse", - "description": "Checks whether `s` begins with constant bitstring `sss` of length `8x+3` (with continuation bit assumed), where `0 <= x <= 127`, and removes `sss` from `s` on success.", - "gas": "31", - "fift": "[slice] SDBEGINS" - }, - "bytecode": { - "doc_opcode": "D72A_xsss", - "tlb": "#D72A_ x:(## 7) sss:((8 * x + 3) * Bit)", - "prefix": "D72A_", - "operands": [ - { - "name": "x", - "loader": "uint", - "loader_args": { - "size": 7 - }, - "internal": true - }, - { - "name": "s", - "loader": "subslice", - "loader_args": { - "bits_length_var": "x", - "bits_padding": 3, - "completion_tag": true - } - } - ] - }, - "value_flow": { - "doc_stack": "s - s''", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "s3", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "SDBEGINSQ", - "doc": { - "category": "cell_parse", - "description": "A quiet version of `SDBEGINS`.", - "gas": "31", - "fift": "[slice] SDBEGINSQ" - }, - "bytecode": { - "doc_opcode": "D72E_xsss", - "tlb": "#D72E_ x:(## 7) sss:((8 * x + 3) * Bit)", - "prefix": "D72E_", - "operands": [ - { - "name": "x", - "loader": "uint", - "loader_args": { - "size": 7 - }, - "internal": true - }, - { - "name": "s", - "loader": "subslice", - "loader_args": { - "bits_length_var": "x", - "bits_padding": 3, - "completion_tag": true - } - } - ] - }, - "value_flow": { - "doc_stack": "s - s'' -1 or s 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "s3", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "SCUTFIRST", - "doc": { - "category": "cell_parse", - "description": "Returns the first `0 <= l <= 1023` bits and first `0 <= r <= 4` references of `s`.", - "gas": "26", - "fift": "SCUTFIRST" - }, - "bytecode": { - "doc_opcode": "D730", - "tlb": "#D730", - "prefix": "D730", - "operands": [] - }, - "value_flow": { - "doc_stack": "s l r - s'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "l", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "SSKIPFIRST", - "doc": { - "category": "cell_parse", - "description": "Returns all but the first `l` bits of `s` and `r` references of `s`.", - "gas": "26", - "fift": "SSKIPFIRST" - }, - "bytecode": { - "doc_opcode": "D731", - "tlb": "#D731", - "prefix": "D731", - "operands": [] - }, - "value_flow": { - "doc_stack": "s l r - s'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "l", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "SCUTLAST", - "doc": { - "category": "cell_parse", - "description": "Returns the last `0 <= l <= 1023` data bits and last `0 <= r <= 4` references of `s`.", - "gas": "26", - "fift": "SCUTLAST" - }, - "bytecode": { - "doc_opcode": "D732", - "tlb": "#D732", - "prefix": "D732", - "operands": [] - }, - "value_flow": { - "doc_stack": "s l r - s'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "l", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "SSKIPLAST", - "doc": { - "category": "cell_parse", - "description": "Returns all but the last `l` bits of `s` and `r` references of `s`.", - "gas": "26", - "fift": "SSKIPLAST" - }, - "bytecode": { - "doc_opcode": "D733", - "tlb": "#D733", - "prefix": "D733", - "operands": [] - }, - "value_flow": { - "doc_stack": "s l r - s'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "l", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "SUBSLICE", - "doc": { - "category": "cell_parse", - "description": "Returns `0 <= l' <= 1023` bits and `0 <= r' <= 4` references from _Slice_ `s`, after skipping the first `0 <= l <= 1023` bits and first `0 <= r <= 4` references.", - "gas": "26", - "fift": "SUBSLICE" - }, - "bytecode": { - "doc_opcode": "D734", - "tlb": "#D734", - "prefix": "D734", - "operands": [] - }, - "value_flow": { - "doc_stack": "s l r l' r' - s'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "l", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "l2", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r2", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "SPLIT", - "doc": { - "category": "cell_parse", - "description": "Splits the first `0 <= l <= 1023` data bits and first `0 <= r <= 4` references from `s` into `s'`, returning the remainder of `s` as `s''`.", - "gas": "26", - "fift": "SPLIT" - }, - "bytecode": { - "doc_opcode": "D736", - "tlb": "#D736", - "prefix": "D736", - "operands": [] - }, - "value_flow": { - "doc_stack": "s l r - s' s''", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "l", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "s3", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "SPLITQ", - "doc": { - "category": "cell_parse", - "description": "A quiet version of `SPLIT`.", - "gas": "26", - "fift": "SPLITQ" - }, - "bytecode": { - "doc_opcode": "D737", - "tlb": "#D737", - "prefix": "D737", - "operands": [] - }, - "value_flow": { - "doc_stack": "s l r - s' s'' -1 or s 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "l", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "s3", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "XCTOS", - "doc": { - "category": "cell_parse", - "description": "Transforms an ordinary or exotic cell into a _Slice_, as if it were an ordinary cell. A flag is returned indicating whether `c` is exotic. If that be the case, its type can later be deserialized from the first eight bits of `s`.", - "gas": "", - "fift": "" - }, - "bytecode": { - "doc_opcode": "D739", - "tlb": "#D739", - "prefix": "D739", - "operands": [] - }, - "value_flow": { - "doc_stack": "c - s ?", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "flag", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "XLOAD", - "doc": { - "category": "cell_parse", - "description": "Loads an exotic cell `c` and returns an ordinary cell `c'`. If `c` is already ordinary, does nothing. If `c` cannot be loaded, throws an exception.", - "gas": "", - "fift": "" - }, - "bytecode": { - "doc_opcode": "D73A", - "tlb": "#D73A", - "prefix": "D73A", - "operands": [] - }, - "value_flow": { - "doc_stack": "c - c'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "c2", - "value_types": ["Cell"] - } - ] - } - } - }, - { - "mnemonic": "XLOADQ", - "doc": { - "category": "cell_parse", - "description": "Loads an exotic cell `c` and returns an ordinary cell `c'`. If `c` is already ordinary, does nothing. If `c` cannot be loaded, returns 0.", - "gas": "", - "fift": "" - }, - "bytecode": { - "doc_opcode": "D73B", - "tlb": "#D73B", - "prefix": "D73B", - "operands": [] - }, - "value_flow": { - "doc_stack": "c - c' -1 or c 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "c2", - "value_types": ["Cell"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "SCHKBITS", - "doc": { - "category": "cell_parse", - "description": "Checks whether there are at least `l` data bits in _Slice_ `s`. If this is not the case, throws a cell deserialisation (i.e., cell underflow) exception.", - "gas": "26/76", - "fift": "SCHKBITS" - }, - "bytecode": { - "doc_opcode": "D741", - "tlb": "#D741", - "prefix": "D741", - "operands": [] - }, - "value_flow": { - "doc_stack": "s l - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "l", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [] - } - } - }, - { - "mnemonic": "SCHKREFS", - "doc": { - "category": "cell_parse", - "description": "Checks whether there are at least `r` references in _Slice_ `s`.", - "gas": "26/76", - "fift": "SCHKREFS" - }, - "bytecode": { - "doc_opcode": "D742", - "tlb": "#D742", - "prefix": "D742", - "operands": [] - }, - "value_flow": { - "doc_stack": "s r - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [] - } - } - }, - { - "mnemonic": "SCHKBITREFS", - "doc": { - "category": "cell_parse", - "description": "Checks whether there are at least `l` data bits and `r` references in _Slice_ `s`.", - "gas": "26/76", - "fift": "SCHKBITREFS" - }, - "bytecode": { - "doc_opcode": "D743", - "tlb": "#D743", - "prefix": "D743", - "operands": [] - }, - "value_flow": { - "doc_stack": "s l r - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "l", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [] - } - } - }, - { - "mnemonic": "SCHKBITSQ", - "doc": { - "category": "cell_parse", - "description": "Checks whether there are at least `l` data bits in _Slice_ `s`.", - "gas": "26", - "fift": "SCHKBITSQ" - }, - "bytecode": { - "doc_opcode": "D745", - "tlb": "#D745", - "prefix": "D745", - "operands": [] - }, - "value_flow": { - "doc_stack": "s l - ?", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "l", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "SCHKREFSQ", - "doc": { - "category": "cell_parse", - "description": "Checks whether there are at least `r` references in _Slice_ `s`.", - "gas": "26", - "fift": "SCHKREFSQ" - }, - "bytecode": { - "doc_opcode": "D746", - "tlb": "#D746", - "prefix": "D746", - "operands": [] - }, - "value_flow": { - "doc_stack": "s r - ?", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "SCHKBITREFSQ", - "doc": { - "category": "cell_parse", - "description": "Checks whether there are at least `l` data bits and `r` references in _Slice_ `s`.", - "gas": "26", - "fift": "SCHKBITREFSQ" - }, - "bytecode": { - "doc_opcode": "D747", - "tlb": "#D747", - "prefix": "D747", - "operands": [] - }, - "value_flow": { - "doc_stack": "s l r - ?", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "l", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "PLDREFVAR", - "doc": { - "category": "cell_parse", - "description": "Returns the `n`-th cell reference of _Slice_ `s` for `0 <= n <= 3`.", - "gas": "26", - "fift": "PLDREFVAR" - }, - "bytecode": { - "doc_opcode": "D748", - "tlb": "#D748", - "prefix": "D748", - "operands": [] - }, - "value_flow": { - "doc_stack": "s n - c", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - } - ] - } - } - }, - { - "mnemonic": "SBITS", - "doc": { - "category": "cell_parse", - "description": "Returns the number of data bits in _Slice_ `s`.", - "gas": "26", - "fift": "SBITS" - }, - "bytecode": { - "doc_opcode": "D749", - "tlb": "#D749", - "prefix": "D749", - "operands": [] - }, - "value_flow": { - "doc_stack": "s - l", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "l", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "SREFS", - "doc": { - "category": "cell_parse", - "description": "Returns the number of references in _Slice_ `s`.", - "gas": "26", - "fift": "SREFS" - }, - "bytecode": { - "doc_opcode": "D74A", - "tlb": "#D74A", - "prefix": "D74A", - "operands": [] - }, - "value_flow": { - "doc_stack": "s - r", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "SBITREFS", - "doc": { - "category": "cell_parse", - "description": "Returns both the number of data bits and the number of references in `s`.", - "gas": "26", - "fift": "SBITREFS" - }, - "bytecode": { - "doc_opcode": "D74B", - "tlb": "#D74B", - "prefix": "D74B", - "operands": [] - }, - "value_flow": { - "doc_stack": "s - l r", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "l", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "PLDREFIDX", - "doc": { - "category": "cell_parse", - "description": "Returns the `n`-th cell reference of _Slice_ `s`, where `0 <= n <= 3`.", - "gas": "26", - "fift": "[n] PLDREFIDX" - }, - "bytecode": { - "doc_opcode": "D74E_n", - "tlb": "#D74E_ n:uint2", - "prefix": "D74E_", - "operands": [ - { - "name": "n", - "loader": "uint", - "loader_args": { - "size": 2 - } - } - ] - }, - "value_flow": { - "doc_stack": "s - c", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - } - ] - } - } - }, - { - "mnemonic": "LDILE4", - "doc": { - "category": "cell_parse", - "description": "Loads a little-endian signed 32-bit integer.", - "gas": "26", - "fift": "LDILE4" - }, - "bytecode": { - "doc_opcode": "D750", - "tlb": "#D750", - "prefix": "D750", - "operands": [] - }, - "value_flow": { - "doc_stack": "s - x s'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "LDULE4", - "doc": { - "category": "cell_parse", - "description": "Loads a little-endian unsigned 32-bit integer.", - "gas": "26", - "fift": "LDULE4" - }, - "bytecode": { - "doc_opcode": "D751", - "tlb": "#D751", - "prefix": "D751", - "operands": [] - }, - "value_flow": { - "doc_stack": "s - x s'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "LDILE8", - "doc": { - "category": "cell_parse", - "description": "Loads a little-endian signed 64-bit integer.", - "gas": "26", - "fift": "LDILE8" - }, - "bytecode": { - "doc_opcode": "D752", - "tlb": "#D752", - "prefix": "D752", - "operands": [] - }, - "value_flow": { - "doc_stack": "s - x s'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "LDULE8", - "doc": { - "category": "cell_parse", - "description": "Loads a little-endian unsigned 64-bit integer.", - "gas": "26", - "fift": "LDULE8" - }, - "bytecode": { - "doc_opcode": "D753", - "tlb": "#D753", - "prefix": "D753", - "operands": [] - }, - "value_flow": { - "doc_stack": "s - x s'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "PLDILE4", - "doc": { - "category": "cell_parse", - "description": "Preloads a little-endian signed 32-bit integer.", - "gas": "26", - "fift": "PLDILE4" - }, - "bytecode": { - "doc_opcode": "D754", - "tlb": "#D754", - "prefix": "D754", - "operands": [] - }, - "value_flow": { - "doc_stack": "s - x", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "PLDULE4", - "doc": { - "category": "cell_parse", - "description": "Preloads a little-endian unsigned 32-bit integer.", - "gas": "26", - "fift": "PLDULE4" - }, - "bytecode": { - "doc_opcode": "D755", - "tlb": "#D755", - "prefix": "D755", - "operands": [] - }, - "value_flow": { - "doc_stack": "s - x", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "PLDILE8", - "doc": { - "category": "cell_parse", - "description": "Preloads a little-endian signed 64-bit integer.", - "gas": "26", - "fift": "PLDILE8" - }, - "bytecode": { - "doc_opcode": "D756", - "tlb": "#D756", - "prefix": "D756", - "operands": [] - }, - "value_flow": { - "doc_stack": "s - x", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "PLDULE8", - "doc": { - "category": "cell_parse", - "description": "Preloads a little-endian unsigned 64-bit integer.", - "gas": "26", - "fift": "PLDULE8" - }, - "bytecode": { - "doc_opcode": "D757", - "tlb": "#D757", - "prefix": "D757", - "operands": [] - }, - "value_flow": { - "doc_stack": "s - x", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "LDILE4Q", - "doc": { - "category": "cell_parse", - "description": "Quietly loads a little-endian signed 32-bit integer.", - "gas": "26", - "fift": "LDILE4Q" - }, - "bytecode": { - "doc_opcode": "D758", - "tlb": "#D758", - "prefix": "D758", - "operands": [] - }, - "value_flow": { - "doc_stack": "s - x s' -1 or s 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "LDULE4Q", - "doc": { - "category": "cell_parse", - "description": "Quietly loads a little-endian unsigned 32-bit integer.", - "gas": "26", - "fift": "LDULE4Q" - }, - "bytecode": { - "doc_opcode": "D759", - "tlb": "#D759", - "prefix": "D759", - "operands": [] - }, - "value_flow": { - "doc_stack": "s - x s' -1 or s 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "LDILE8Q", - "doc": { - "category": "cell_parse", - "description": "Quietly loads a little-endian signed 64-bit integer.", - "gas": "26", - "fift": "LDILE8Q" - }, - "bytecode": { - "doc_opcode": "D75A", - "tlb": "#D75A", - "prefix": "D75A", - "operands": [] - }, - "value_flow": { - "doc_stack": "s - x s' -1 or s 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "LDULE8Q", - "doc": { - "category": "cell_parse", - "description": "Quietly loads a little-endian unsigned 64-bit integer.", - "gas": "26", - "fift": "LDULE8Q" - }, - "bytecode": { - "doc_opcode": "D75B", - "tlb": "#D75B", - "prefix": "D75B", - "operands": [] - }, - "value_flow": { - "doc_stack": "s - x s' -1 or s 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "PLDILE4Q", - "doc": { - "category": "cell_parse", - "description": "Quietly preloads a little-endian signed 32-bit integer.", - "gas": "26", - "fift": "PLDILE4Q" - }, - "bytecode": { - "doc_opcode": "D75C", - "tlb": "#D75C", - "prefix": "D75C", - "operands": [] - }, - "value_flow": { - "doc_stack": "s - x -1 or 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "PLDULE4Q", - "doc": { - "category": "cell_parse", - "description": "Quietly preloads a little-endian unsigned 32-bit integer.", - "gas": "26", - "fift": "PLDULE4Q" - }, - "bytecode": { - "doc_opcode": "D75D", - "tlb": "#D75D", - "prefix": "D75D", - "operands": [] - }, - "value_flow": { - "doc_stack": "s - x -1 or 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "PLDILE8Q", - "doc": { - "category": "cell_parse", - "description": "Quietly preloads a little-endian signed 64-bit integer.", - "gas": "26", - "fift": "PLDILE8Q" - }, - "bytecode": { - "doc_opcode": "D75E", - "tlb": "#D75E", - "prefix": "D75E", - "operands": [] - }, - "value_flow": { - "doc_stack": "s - x -1 or 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "PLDULE8Q", - "doc": { - "category": "cell_parse", - "description": "Quietly preloads a little-endian unsigned 64-bit integer.", - "gas": "26", - "fift": "PLDULE8Q" - }, - "bytecode": { - "doc_opcode": "D75F", - "tlb": "#D75F", - "prefix": "D75F", - "operands": [] - }, - "value_flow": { - "doc_stack": "s - x -1 or 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "LDZEROES", - "doc": { - "category": "cell_parse", - "description": "Returns the count `n` of leading zero bits in `s`, and removes these bits from `s`.", - "gas": "26", - "fift": "LDZEROES" - }, - "bytecode": { - "doc_opcode": "D760", - "tlb": "#D760", - "prefix": "D760", - "operands": [] - }, - "value_flow": { - "doc_stack": "s - n s'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "LDONES", - "doc": { - "category": "cell_parse", - "description": "Returns the count `n` of leading one bits in `s`, and removes these bits from `s`.", - "gas": "26", - "fift": "LDONES" - }, - "bytecode": { - "doc_opcode": "D761", - "tlb": "#D761", - "prefix": "D761", - "operands": [] - }, - "value_flow": { - "doc_stack": "s - n s'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "LDSAME", - "doc": { - "category": "cell_parse", - "description": "Returns the count `n` of leading bits equal to `0 <= x <= 1` in `s`, and removes these bits from `s`.", - "gas": "26", - "fift": "LDSAME" - }, - "bytecode": { - "doc_opcode": "D762", - "tlb": "#D762", - "prefix": "D762", - "operands": [] - }, - "value_flow": { - "doc_stack": "s x - n s'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "SDEPTH", - "doc": { - "category": "cell_parse", - "description": "Returns the depth of _Slice_ `s`. If `s` has no references, then `x=0`; otherwise `x` is one plus the maximum of depths of cells referred to from `s`.", - "gas": "26", - "fift": "SDEPTH" - }, - "bytecode": { - "doc_opcode": "D764", - "tlb": "#D764", - "prefix": "D764", - "operands": [] - }, - "value_flow": { - "doc_stack": "s - x", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "CDEPTH", - "doc": { - "category": "cell_parse", - "description": "Returns the depth of _Cell_ `c`. If `c` has no references, then `x=0`; otherwise `x` is one plus the maximum of depths of cells referred to from `c`. If `c` is a _Null_ instead of a _Cell_, returns zero.", - "gas": "26", - "fift": "CDEPTH" - }, - "bytecode": { - "doc_opcode": "D765", - "tlb": "#D765", - "prefix": "D765", - "operands": [] - }, - "value_flow": { - "doc_stack": "c - x", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "EXECUTE", - "doc": { - "category": "cont_basic", - "description": "_Calls_, or _executes_, continuation `c`.", - "gas": "18", - "fift": "EXECUTE\nCALLX" - }, - "bytecode": { - "doc_opcode": "D8", - "tlb": "#D8", - "prefix": "D8", - "operands": [] - }, - "value_flow": { - "doc_stack": "c - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Continuation"] - } - ] - }, - "outputs": { - "stack": [ - ] - } - }, - "control_flow": { - "branches": [ - { - "type": "variable", - "var_name": "c", - "save": { - "c0": { - "type": "cc", - "save": { - "c0": { "type": "register", "index": 0 } - } - } - } - } - ] - } - }, - { - "mnemonic": "JMPX", - "doc": { - "category": "cont_basic", - "description": "_Jumps_, or transfers control, to continuation `c`.\nThe remainder of the previous current continuation `cc` is discarded.", - "gas": "18", - "fift": "JMPX" - }, - "bytecode": { - "doc_opcode": "D9", - "tlb": "#D9", - "prefix": "D9", - "operands": [] - }, - "value_flow": { - "doc_stack": "c - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Continuation"] - } - ] - }, - "outputs": { - "stack": [ - ] - } - }, - "control_flow": { - "branches": [ - { - "type": "variable", - "var_name": "c" - } - ] - } - }, - { - "mnemonic": "CALLXARGS", - "doc": { - "category": "cont_basic", - "description": "_Calls_ continuation `c` with `p` parameters and expecting `r` return values\n`0 <= p <= 15`, `0 <= r <= 15`", - "gas": "26", - "fift": "[p] [r] CALLXARGS" - }, - "bytecode": { - "doc_opcode": "DApr", - "tlb": "#DA p:uint4 r:uint4", - "prefix": "DA", - "operands": [ - { - "name": "p", - "loader": "uint", - "loader_args": { - "size": 4 - } - }, - { - "name": "r", - "loader": "uint", - "loader_args": { - "size": 4 - } - } - ] - }, - "value_flow": { - "doc_stack": "c - ", - "inputs": { - "stack": [ - { - "type": "array", - "name": "args", - "length_var": "p", - "array_entry": [ - { - "type": "simple", - "name": "arg" - } - ] - }, - { - "type": "simple", - "name": "c", - "value_types": ["Continuation"] - } - ] - }, - "outputs": { - "stack": [ - ] - } - }, - "control_flow": { - "branches": [ - { - "type": "variable", - "var_name": "c", - "save": { - "c0": { - "type": "cc", - "save": { - "c0": { "type": "register", "index": 0 } - } - } - } - } - ] - } - }, - { - "mnemonic": "CALLXARGS_VAR", - "doc": { - "category": "cont_basic", - "description": "_Calls_ continuation `c` with `0 <= p <= 15` parameters, expecting an arbitrary number of return values.", - "gas": "26", - "fift": "[p] -1 CALLXARGS" - }, - "bytecode": { - "doc_opcode": "DB0p", - "tlb": "#DB0 p:uint4", - "prefix": "DB0", - "operands": [ - { - "name": "p", - "loader": "uint", - "loader_args": { - "size": 4 - } - } - ] - }, - "value_flow": { - "doc_stack": "c - ", - "inputs": { - "stack": [ - { - "type": "array", - "name": "args", - "length_var": "p", - "array_entry": [ - { - "type": "simple", - "name": "arg" - } - ] - }, - { - "type": "simple", - "name": "c", - "value_types": ["Continuation"] - } - ] - }, - "outputs": { - "stack": [ - ] - } - }, - "control_flow": { - "branches": [ - { - "type": "variable", - "var_name": "c", - "save": { - "c0": { - "type": "cc", - "save": { - "c0": { "type": "register", "index": 0 } - } - } - } - } - ] - } - }, - { - "mnemonic": "JMPXARGS", - "doc": { - "category": "cont_basic", - "description": "_Jumps_ to continuation `c`, passing only the top `0 <= p <= 15` values from the current stack to it (the remainder of the current stack is discarded).", - "gas": "26", - "fift": "[p] JMPXARGS" - }, - "bytecode": { - "doc_opcode": "DB1p", - "tlb": "#DB1 p:uint4", - "prefix": "DB1", - "operands": [ - { - "name": "p", - "loader": "uint", - "loader_args": { - "size": 4 - } - } - ] - }, - "value_flow": { - "doc_stack": "c - ", - "inputs": { - "stack": [ - { - "type": "array", - "name": "args", - "length_var": "p", - "array_entry": [ - { - "type": "simple", - "name": "arg" - } - ] - }, - { - "type": "simple", - "name": "c", - "value_types": ["Continuation"] - } - ] - }, - "outputs": { - "stack": [ - ] - } - }, - "control_flow": { - "branches": [ - { - "type": "variable", - "var_name": "c" - } - ] - } - }, - { - "mnemonic": "RETARGS", - "doc": { - "category": "cont_basic", - "description": "_Returns_ to `c0`, with `0 <= r <= 15` return values taken from the current stack.", - "gas": "26", - "fift": "[r] RETARGS" - }, - "bytecode": { - "doc_opcode": "DB2r", - "tlb": "#DB2 r:uint4", - "prefix": "DB2", - "operands": [ - { - "name": "r", - "loader": "uint", - "loader_args": { - "size": 4 - } - } - ] - }, - "value_flow": { - "doc_stack": "", - "inputs": { - "stack": [ - { - "type": "array", - "name": "args", - "length_var": "p", - "array_entry": [ - { - "type": "simple", - "name": "arg" - } - ] - } - ] - }, - "outputs": { - "stack": [ - ] - } - }, - "control_flow": { - "branches": [ - { "type": "register", "index": 0 } - ] - } - }, - { - "mnemonic": "RET", - "doc": { - "category": "cont_basic", - "description": "_Returns_ to the continuation at `c0`. The remainder of the current continuation `cc` is discarded.\nApproximately equivalent to `c0 PUSHCTR` `JMPX`.", - "gas": "26", - "fift": "RET\nRETTRUE" - }, - "bytecode": { - "doc_opcode": "DB30", - "tlb": "#DB30", - "prefix": "DB30", - "operands": [] - }, - "value_flow": { - "doc_stack": "", - "inputs": { - "stack": [ - ] - }, - "outputs": { - "stack": [ - ] - } - }, - "control_flow": { - "branches": [ - { "type": "register", "index": 0 } - ] - } - }, - { - "mnemonic": "RETALT", - "doc": { - "category": "cont_basic", - "description": "_Returns_ to the continuation at `c1`.\nApproximately equivalent to `c1 PUSHCTR` `JMPX`.", - "gas": "26", - "fift": "RETALT\nRETFALSE" - }, - "bytecode": { - "doc_opcode": "DB31", - "tlb": "#DB31", - "prefix": "DB31", - "operands": [] - }, - "value_flow": { - "doc_stack": "", - "inputs": { - "stack": [ - ] - }, - "outputs": { - "stack": [ - ] - } - }, - "control_flow": { - "branches": [ - { "type": "register", "index": 1 } - ] - } - }, - { - "mnemonic": "BRANCH", - "doc": { - "category": "cont_basic", - "description": "Performs `RETTRUE` if integer `f!=0`, or `RETFALSE` if `f=0`.", - "gas": "26", - "fift": "BRANCH\nRETBOOL" - }, - "bytecode": { - "doc_opcode": "DB32", - "tlb": "#DB32", - "prefix": "DB32", - "operands": [] - }, - "value_flow": { - "doc_stack": "f - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "f", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - ] - } - }, - "control_flow": { - "branches": [ - { "type": "register", "index": 0 }, - { "type": "register", "index": 1 } - ] - } - }, - { - "mnemonic": "CALLCC", - "doc": { - "category": "cont_basic", - "description": "_Call with current continuation_, transfers control to `c`, pushing the old value of `cc` into `c`'s stack (instead of discarding it or writing it into new `c0`).", - "gas": "26", - "fift": "CALLCC" - }, - "bytecode": { - "doc_opcode": "DB34", - "tlb": "#DB34", - "prefix": "DB34", - "operands": [] - }, - "value_flow": { - "doc_stack": "c - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Continuation"] - } - ] - }, - "outputs": { - "stack": [ - ] - } - }, - "control_flow": { - "branches": [ - { - "type": "variable", - "var_name": "c" - } - ] - } - }, - { - "mnemonic": "JMPXDATA", - "doc": { - "category": "cont_basic", - "description": "Similar to `CALLCC`, but the remainder of the current continuation (the old value of `cc`) is converted into a _Slice_ before pushing it into the stack of `c`.", - "gas": "26", - "fift": "JMPXDATA" - }, - "bytecode": { - "doc_opcode": "DB35", - "tlb": "#DB35", - "prefix": "DB35", - "operands": [] - }, - "value_flow": { - "doc_stack": "c - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Continuation"] - } - ] - }, - "outputs": { - "stack": [ - ] - } - }, - "control_flow": { - "branches": [ - { - "type": "variable", - "var_name": "c" - } - ] - } - }, - { - "mnemonic": "CALLCCARGS", - "doc": { - "category": "cont_basic", - "description": "Similar to `CALLXARGS`, but pushes the old value of `cc` (along with the top `0 <= p <= 15` values from the original stack) into the stack of newly-invoked continuation `c`, setting `cc.nargs` to `-1 <= r <= 14`.", - "gas": "34", - "fift": "[p] [r] CALLCCARGS" - }, - "bytecode": { - "doc_opcode": "DB36pr", - "tlb": "#DB36 p:uint4 r:uint4", - "prefix": "DB36", - "operands": [ - { - "name": "p", - "loader": "uint", - "loader_args": { - "size": 4 - } - }, - { - "name": "r", - "loader": "uint", - "loader_args": { - "size": 4 - } - } - ] - }, - "value_flow": { - "doc_stack": "c - ", - "inputs": { - "stack": [ - { - "type": "array", - "name": "args", - "length_var": "p", - "array_entry": [ - { - "type": "simple", - "name": "arg" - } - ] - }, - { - "type": "simple", - "name": "c", - "value_types": ["Continuation"] - } - ] - }, - "outputs": { - "stack": [ - ] - } - }, - "control_flow": { - "branches": [ - { - "type": "variable", - "var_name": "c" - } - ] - } - }, - { - "mnemonic": "CALLXVARARGS", - "doc": { - "category": "cont_basic", - "description": "Similar to `CALLXARGS`, but takes `-1 <= p,r <= 254` from the stack. The next three operations also take `p` and `r` from the stack, both in the range `-1...254`.", - "gas": "26", - "fift": "CALLXVARARGS" - }, - "bytecode": { - "doc_opcode": "DB38", - "tlb": "#DB38", - "prefix": "DB38", - "operands": [] - }, - "value_flow": { - "doc_stack": "c p r - ", - "inputs": { - "stack": [ - { - "type": "array", - "name": "args", - "length_var": "p", - "array_entry": [ - { - "type": "simple", - "name": "arg" - } - ] - }, - { - "type": "simple", - "name": "c", - "value_types": ["Continuation"] - }, - { - "type": "simple", - "name": "p", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - ] - } - }, - "control_flow": { - "branches": [ - { - "type": "variable", - "var_name": "c", - "save": { - "c0": { - "type": "cc", - "save": { - "c0": { "type": "register", "index": 0 } - } - } - } - } - ] - } - }, - { - "mnemonic": "RETVARARGS", - "doc": { - "category": "cont_basic", - "description": "Similar to `RETARGS`.", - "gas": "26", - "fift": "RETVARARGS" - }, - "bytecode": { - "doc_opcode": "DB39", - "tlb": "#DB39", - "prefix": "DB39", - "operands": [] - }, - "value_flow": { - "doc_stack": "p r - ", - "inputs": { - "stack": [ - { - "type": "array", - "name": "args", - "length_var": "p", - "array_entry": [ - { - "type": "simple", - "name": "arg" - } - ] - }, - { - "type": "simple", - "name": "p", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - ] - } - }, - "control_flow": { - "branches": [ - { - "type": "variable", - "var_name": "c", - "save": { - "c0": { - "type": "cc", - "save": { - "c0": { "type": "register", "index": 0 } - } - } - } - } - ] - } - }, - { - "mnemonic": "JMPXVARARGS", - "doc": { - "category": "cont_basic", - "description": "Similar to `JMPXARGS`.", - "gas": "26", - "fift": "JMPXVARARGS" - }, - "bytecode": { - "doc_opcode": "DB3A", - "tlb": "#DB3A", - "prefix": "DB3A", - "operands": [] - }, - "value_flow": { - "doc_stack": "c p r - ", - "inputs": { - "stack": [ - { - "type": "array", - "name": "args", - "length_var": "p", - "array_entry": [ - { - "type": "simple", - "name": "arg" - } - ] - }, - { - "type": "simple", - "name": "c", - "value_types": ["Continuation"] - }, - { - "type": "simple", - "name": "p", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - ] - } - }, - "control_flow": { - "branches": [ - { - "type": "variable", - "var_name": "c" - } - ] - } - }, - { - "mnemonic": "CALLCCVARARGS", - "doc": { - "category": "cont_basic", - "description": "Similar to `CALLCCARGS`.", - "gas": "26", - "fift": "CALLCCVARARGS" - }, - "bytecode": { - "doc_opcode": "DB3B", - "tlb": "#DB3B", - "prefix": "DB3B", - "operands": [] - }, - "value_flow": { - "doc_stack": "c p r - ", - "inputs": { - "stack": [ - { - "type": "array", - "name": "args", - "length_var": "p", - "array_entry": [ - { - "type": "simple", - "name": "arg" - } - ] - }, - { - "type": "simple", - "name": "c", - "value_types": ["Continuation"] - }, - { - "type": "simple", - "name": "p", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - ] - } - }, - "control_flow": { - "branches": [ - { - "type": "variable", - "var_name": "c" - } - ] - } - }, - { - "mnemonic": "CALLREF", - "doc": { - "category": "cont_basic", - "description": "Equivalent to `PUSHREFCONT` `CALLX`.", - "gas": "126/51", - "fift": "[ref] CALLREF" - }, - "bytecode": { - "doc_opcode": "DB3C", - "tlb": "#DB3C c:^Cell", - "prefix": "DB3C", - "operands": [ - { - "name": "c", - "loader": "ref", - "loader_args": {} - } - ] - }, - "value_flow": { - "doc_stack": "", - "inputs": { - "stack": [ - ] - }, - "outputs": { - "stack": [ - ] - } - }, - "control_flow": { - "branches": [ - { - "type": "variable", - "var_name": "c", - "save": { - "c0": { - "type": "cc", - "save": { - "c0": { "type": "register", "index": 0 } - } - } - } - } - ] - } - }, - { - "mnemonic": "JMPREF", - "doc": { - "category": "cont_basic", - "description": "Equivalent to `PUSHREFCONT` `JMPX`.", - "gas": "126/51", - "fift": "[ref] JMPREF" - }, - "bytecode": { - "doc_opcode": "DB3D", - "tlb": "#DB3D c:^Cell", - "prefix": "DB3D", - "operands": [ - { - "name": "c", - "loader": "ref", - "loader_args": {} - } - ] - }, - "value_flow": { - "doc_stack": "", - "inputs": { - "stack": [ - ] - }, - "outputs": { - "stack": [ - ] - } - }, - "control_flow": { - "branches": [ - { - "type": "variable", - "var_name": "c" - } - ] - } - }, - { - "mnemonic": "JMPREFDATA", - "doc": { - "category": "cont_basic", - "description": "Equivalent to `PUSHREFCONT` `JMPXDATA`.", - "gas": "126/51", - "fift": "[ref] JMPREFDATA" - }, - "bytecode": { - "doc_opcode": "DB3E", - "tlb": "#DB3E c:^Cell", - "prefix": "DB3E", - "operands": [ - { - "name": "c", - "loader": "ref", - "loader_args": {} - } - ] - }, - "value_flow": { - "doc_stack": "", - "inputs": { - "stack": [ - ] - }, - "outputs": { - "stack": [ - ] - } - }, - "control_flow": { - "branches": [ - { - "type": "variable", - "var_name": "c" - } - ] - } - }, - { - "mnemonic": "RETDATA", - "doc": { - "category": "cont_basic", - "description": "Equivalent to `c0 PUSHCTR` `JMPXDATA`. In this way, the remainder of the current continuation is converted into a _Slice_ and returned to the caller.", - "gas": "26", - "fift": "RETDATA" - }, - "bytecode": { - "doc_opcode": "DB3F", - "tlb": "#DB3F", - "prefix": "DB3F", - "operands": [] - }, - "value_flow": { - "doc_stack": "", - "inputs": { - "stack": [ - ] - }, - "outputs": { - "stack": [ - ] - } - }, - "control_flow": { - "branches": [ - { "type": "register", "index": 0 } - ] - } - }, - { - "mnemonic": "RUNVM", - "doc": { - "category": "cont_basic", - "description": "Runs child VM with code `code` and stack `x_1...x_n`. Returns the resulting stack `x'_1...x'_m` and exitcode. Other arguments and return values are enabled by flags.", - "gas": "", - "fift": "flags RUNVM" - }, - "bytecode": { - "doc_opcode": "DB4fff", - "tlb": "#DB4 flags:(## 12)", - "prefix": "DB4", - "operands": [] - }, - "value_flow": { - "doc_stack": "x_1 ... x_n n code [r] [c4] [c7] [g_l] [g_m] - x'_1 ... x'_m exitcode [data'] [c4'] [c5] [g_c]" - } - }, - { - "mnemonic": "RUNVMX", - "doc": { - "category": "cont_basic", - "description": "Runs child VM with code `code` and stack `x_1...x_n`. Returns the resulting stack `x'_1...x'_m` and exitcode. Other arguments and return values are enabled by flags.", - "gas": "", - "fift": "RUNVMX" - }, - "bytecode": { - "doc_opcode": "DB50", - "tlb": "#DB50", - "prefix": "DB50", - "operands": [] - }, - "value_flow": { - "doc_stack": "x_1 ... x_n n code [r] [c4] [c7] [g_l] [g_m] flags - x'_1 ... x'_m exitcode [data'] [c4'] [c5] [g_c]" - } - }, - { - "mnemonic": "IFRET", - "doc": { - "category": "cont_conditional", - "description": "Performs a `RET`, but only if integer `f` is non-zero. If `f` is a `NaN`, throws an integer overflow exception.", - "gas": "18", - "fift": "IFRET\nIFNOT:" - }, - "bytecode": { - "doc_opcode": "DC", - "tlb": "#DC", - "prefix": "DC", - "operands": [] - }, - "value_flow": { - "doc_stack": "f - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "f", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [] - } - }, - "control_flow": { - "branches": [ - { "type": "register", "index": 0 } - ], - "nobranch": true - } - }, - { - "mnemonic": "IFNOTRET", - "doc": { - "category": "cont_conditional", - "description": "Performs a `RET`, but only if integer `f` is zero.", - "gas": "18", - "fift": "IFNOTRET\nIF:" - }, - "bytecode": { - "doc_opcode": "DD", - "tlb": "#DD", - "prefix": "DD", - "operands": [] - }, - "value_flow": { - "doc_stack": "f - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "f", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [] - } - }, - "control_flow": { - "branches": [ - { "type": "register", "index": 0 } - ], - "nobranch": true - } - }, - { - "mnemonic": "IF", - "doc": { - "category": "cont_conditional", - "description": "Performs `EXECUTE` for `c` (i.e., _executes_ `c`), but only if integer `f` is non-zero. Otherwise simply discards both values.", - "gas": "18", - "fift": "IF", - "fift_examples": [ - { - "fift": "IF:<{ code }> <{ code }>IF", - "description": "Equivalent to `<{ code }> CONT` `IF`." - } - ] - }, - "bytecode": { - "doc_opcode": "DE", - "tlb": "#DE", - "prefix": "DE", - "operands": [] - }, - "value_flow": { - "doc_stack": "f c - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "f", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "c", - "value_types": ["Continuation"] - } - ] - }, - "outputs": { - "stack": [] - } - }, - "control_flow": { - "branches": [ - { - "type": "variable", - "var_name": "c", - "save": { - "c0": { - "type": "cc", - "save": { - "c0": { "type": "register", "index": 0 } - } - } - } - } - ], - "nobranch": true - } - }, - { - "mnemonic": "IFNOT", - "doc": { - "category": "cont_conditional", - "description": "Executes continuation `c`, but only if integer `f` is zero. Otherwise simply discards both values.", - "gas": "18", - "fift": "IFNOT", - "fift_examples": [ - { - "fift": "IFNOT:<{ code }> <{ code }>IFNOT", - "description": "Equivalent to `<{ code }> CONT` `IFNOT`." - } - ] - }, - "bytecode": { - "doc_opcode": "DF", - "tlb": "#DF", - "prefix": "DF", - "operands": [] - }, - "value_flow": { - "doc_stack": "f c - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "f", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "c", - "value_types": ["Continuation"] - } - ] - }, - "outputs": { - "stack": [] - } - }, - "control_flow": { - "branches": [ - { - "type": "variable", - "var_name": "c", - "save": { - "c0": { - "type": "cc", - "save": { - "c0": { "type": "register", "index": 0 } - } - } - } - } - ], - "nobranch": true - } - }, - { - "mnemonic": "IFJMP", - "doc": { - "category": "cont_conditional", - "description": "Jumps to `c` (similarly to `JMPX`), but only if `f` is non-zero.", - "gas": "18", - "fift": "IFJMP", - "fift_examples": [ - { - "fift": "IFJMP:<{ code }>", - "description": "Equivalent to `<{ code }> CONT` `IFJMP`." - } - ] - }, - "bytecode": { - "doc_opcode": "E0", - "tlb": "#E0", - "prefix": "E0", - "operands": [] - }, - "value_flow": { - "doc_stack": "f c - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "f", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "c", - "value_types": ["Continuation"] - } - ] - }, - "outputs": { - "stack": [] - } - }, - "control_flow": { - "branches": [ - { - "type": "variable", - "var_name": "c" - } - ], - "nobranch": true - } - }, - { - "mnemonic": "IFNOTJMP", - "doc": { - "category": "cont_conditional", - "description": "Jumps to `c` (similarly to `JMPX`), but only if `f` is zero.", - "gas": "18", - "fift": "IFNOTJMP", - "fift_examples": [ - { - "fift": "IFNOTJMP:<{ code }>", - "description": "Equivalent to `<{ code }> CONT` `IFNOTJMP`." - } - ] - }, - "bytecode": { - "doc_opcode": "E1", - "tlb": "#E1", - "prefix": "E1", - "operands": [] - }, - "value_flow": { - "doc_stack": "f c - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "f", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "c", - "value_types": ["Continuation"] - } - ] - }, - "outputs": { - "stack": [] - } - }, - "control_flow": { - "branches": [ - { - "type": "variable", - "var_name": "c" - } - ], - "nobranch": true - } - }, - { - "mnemonic": "IFELSE", - "doc": { - "category": "cont_conditional", - "description": "If integer `f` is non-zero, executes `c`, otherwise executes `c'`. Equivalent to `CONDSELCHK` `EXECUTE`.", - "gas": "18", - "fift": "IFELSE", - "fift_examples": [ - { - "fift": "IF:<{ code1 }>ELSE<{ code2 }>", - "description": "Equivalent to `<{ code1 }> CONT` `<{ code2 }> CONT` `IFELSE`." - } - ] - }, - "bytecode": { - "doc_opcode": "E2", - "tlb": "#E2", - "prefix": "E2", - "operands": [] - }, - "value_flow": { - "doc_stack": "f c c' - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "f", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "c", - "value_types": ["Continuation"] - }, - { - "type": "simple", - "name": "c2", - "value_types": ["Continuation"] - } - ] - }, - "outputs": { - "stack": [] - } - }, - "control_flow": { - "branches": [ - { - "type": "variable", - "var_name": "c", - "save": { - "c0": { - "type": "cc", - "save": { - "c0": { "type": "register", "index": 0 } - } - } - } - }, - { - "type": "variable", - "var_name": "c2", - "save": { - "c0": { - "type": "cc", - "save": { - "c0": { "type": "register", "index": 0 } - } - } - } - } - ] - } - }, - { - "mnemonic": "IFREF", - "doc": { - "category": "cont_conditional", - "description": "Equivalent to `PUSHREFCONT` `IF`, with the optimization that the cell reference is not actually loaded into a _Slice_ and then converted into an ordinary _Continuation_ if `f=0`.\nGas consumption of this primitive depends on whether `f=0` and whether the reference was loaded before.\nSimilar remarks apply other primitives that accept a continuation as a reference.", - "gas": "26/126/51", - "fift": "[ref] IFREF" - }, - "bytecode": { - "doc_opcode": "E300", - "tlb": "#E300 c:^Cell", - "prefix": "E300", - "operands": [ - { - "name": "c", - "loader": "ref", - "loader_args": {} - } - ] - }, - "value_flow": { - "doc_stack": "f - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "f", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [] - } - }, - "control_flow": { - "branches": [ - { - "type": "variable", - "var_name": "c", - "save": { - "c0": { - "type": "cc", - "save": { - "c0": { "type": "register", "index": 0 } - } - } - } - } - ], - "nobranch": true - } - }, - { - "mnemonic": "IFNOTREF", - "doc": { - "category": "cont_conditional", - "description": "Equivalent to `PUSHREFCONT` `IFNOT`.", - "gas": "26/126/51", - "fift": "[ref] IFNOTREF" - }, - "bytecode": { - "doc_opcode": "E301", - "tlb": "#E301 c:^Cell", - "prefix": "E301", - "operands": [ - { - "name": "c", - "loader": "ref", - "loader_args": {} - } - ] - }, - "value_flow": { - "doc_stack": "f - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "f", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [] - } - }, - "control_flow": { - "branches": [ - { - "type": "variable", - "var_name": "c", - "save": { - "c0": { - "type": "cc", - "save": { - "c0": { "type": "register", "index": 0 } - } - } - } - } - ], - "nobranch": true - } - }, - { - "mnemonic": "IFJMPREF", - "doc": { - "category": "cont_conditional", - "description": "Equivalent to `PUSHREFCONT` `IFJMP`.", - "gas": "26/126/51", - "fift": "[ref] IFJMPREF" - }, - "bytecode": { - "doc_opcode": "E302", - "tlb": "#E302 c:^Cell", - "prefix": "E302", - "operands": [ - { - "name": "c", - "loader": "ref", - "loader_args": {} - } - ] - }, - "value_flow": { - "doc_stack": "f - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "f", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [] - } - }, - "control_flow": { - "branches": [ - { - "type": "variable", - "var_name": "c" - } - ], - "nobranch": true - } - }, - { - "mnemonic": "IFNOTJMPREF", - "doc": { - "category": "cont_conditional", - "description": "Equivalent to `PUSHREFCONT` `IFNOTJMP`.", - "gas": "26/126/51", - "fift": "[ref] IFNOTJMPREF" - }, - "bytecode": { - "doc_opcode": "E303", - "tlb": "#E303 c:^Cell", - "prefix": "E303", - "operands": [ - { - "name": "c", - "loader": "ref", - "loader_args": {} - } - ] - }, - "value_flow": { - "doc_stack": "f - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "f", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [] - } - }, - "control_flow": { - "branches": [ - { - "type": "variable", - "var_name": "c" - } - ], - "nobranch": true - } - }, - { - "mnemonic": "CONDSEL", - "doc": { - "category": "cont_conditional", - "description": "If integer `f` is non-zero, returns `x`, otherwise returns `y`. Notice that no type checks are performed on `x` and `y`; as such, it is more like a conditional stack operation. Roughly equivalent to `ROT` `ISZERO` `INC` `ROLLX` `NIP`.", - "gas": "26", - "fift": "CONDSEL" - }, - "bytecode": { - "doc_opcode": "E304", - "tlb": "#E304", - "prefix": "E304", - "operands": [] - }, - "value_flow": { - "doc_stack": "f x y - x or y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "f", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "x" - }, - { - "type": "simple", - "name": "y" - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result" - } - ] - } - } - }, - { - "mnemonic": "CONDSELCHK", - "doc": { - "category": "cont_conditional", - "description": "Same as `CONDSEL`, but first checks whether `x` and `y` have the same type.", - "gas": "26", - "fift": "CONDSELCHK" - }, - "bytecode": { - "doc_opcode": "E305", - "tlb": "#E305", - "prefix": "E305", - "operands": [] - }, - "value_flow": { - "doc_stack": "f x y - x or y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "f", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "x" - }, - { - "type": "simple", - "name": "y" - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result" - } - ] - } - } - }, - { - "mnemonic": "IFRETALT", - "doc": { - "category": "cont_conditional", - "description": "Performs `RETALT` if integer `f!=0`.", - "gas": "26", - "fift": "IFRETALT" - }, - "bytecode": { - "doc_opcode": "E308", - "tlb": "#E308", - "prefix": "E308", - "operands": [] - }, - "value_flow": { - "doc_stack": "f -", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "f", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [] - } - }, - "control_flow": { - "branches": [ - { "type": "register", "index": 1 } - ], - "nobranch": true - } - }, - { - "mnemonic": "IFNOTRETALT", - "doc": { - "category": "cont_conditional", - "description": "Performs `RETALT` if integer `f=0`.", - "gas": "26", - "fift": "IFNOTRETALT" - }, - "bytecode": { - "doc_opcode": "E309", - "tlb": "#E309", - "prefix": "E309", - "operands": [] - }, - "value_flow": { - "doc_stack": "f -", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "f", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [] - } - }, - "control_flow": { - "branches": [ - { "type": "register", "index": 1 } - ], - "nobranch": true - } - }, - { - "mnemonic": "IFREFELSE", - "doc": { - "category": "cont_conditional", - "description": "Equivalent to `PUSHREFCONT` `SWAP` `IFELSE`, with the optimization that the cell reference is not actually loaded into a _Slice_ and then converted into an ordinary _Continuation_ if `f=0`. Similar remarks apply to the next two primitives: cells are converted into continuations only when necessary.", - "gas": "26/126/51", - "fift": "[ref] IFREFELSE" - }, - "bytecode": { - "doc_opcode": "E30D", - "tlb": "#E30D c:^Cell", - "prefix": "E30D", - "operands": [ - { - "name": "c", - "loader": "ref", - "loader_args": {} - } - ] - }, - "value_flow": { - "doc_stack": "f c -", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "f", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "c2", - "value_types": ["Continuation"] - } - ] - }, - "outputs": { - "stack": [] - } - }, - "control_flow": { - "branches": [ - { - "type": "variable", - "var_name": "c", - "save": { - "c0": { - "type": "cc", - "save": { - "c0": { "type": "register", "index": 0 } - } - } - } - }, - { - "type": "variable", - "var_name": "c2", - "save": { - "c0": { - "type": "cc", - "save": { - "c0": { "type": "register", "index": 0 } - } - } - } - } - ] - } - }, - { - "mnemonic": "IFELSEREF", - "doc": { - "category": "cont_conditional", - "description": "Equivalent to `PUSHREFCONT` `IFELSE`.", - "gas": "26/126/51", - "fift": "[ref] IFELSEREF" - }, - "bytecode": { - "doc_opcode": "E30E", - "tlb": "#E30E c:^Cell", - "prefix": "E30E", - "operands": [ - { - "name": "c", - "loader": "ref", - "loader_args": {} - } - ] - }, - "value_flow": { - "doc_stack": "f c -", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "f", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "c2", - "value_types": ["Continuation"] - } - ] - }, - "outputs": { - "stack": [] - } - }, - "control_flow": { - "branches": [ - { - "type": "variable", - "var_name": "c", - "save": { - "c0": { - "type": "cc", - "save": { - "c0": { "type": "register", "index": 0 } - } - } - } - }, - { - "type": "variable", - "var_name": "c2", - "save": { - "c0": { - "type": "cc", - "save": { - "c0": { "type": "register", "index": 0 } - } - } - } - } - ] - } - }, - { - "mnemonic": "IFREFELSEREF", - "doc": { - "category": "cont_conditional", - "description": "Equivalent to `PUSHREFCONT` `PUSHREFCONT` `IFELSE`.", - "gas": "126/51", - "fift": "[ref] [ref] IFREFELSEREF" - }, - "bytecode": { - "doc_opcode": "E30F", - "tlb": "#E30F c1:^Cell c2:^Cell", - "prefix": "E30F", - "operands": [ - { - "name": "c1", - "loader": "ref", - "loader_args": {} - }, - { - "name": "c2", - "loader": "ref", - "loader_args": {} - } - ] - }, - "value_flow": { - "doc_stack": "f -", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "f", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [] - } - }, - "control_flow": { - "branches": [ - { - "type": "variable", - "var_name": "c1", - "save": { - "c0": { - "type": "cc", - "save": { - "c0": { "type": "register", "index": 0 } - } - } - } - }, - { - "type": "variable", - "var_name": "c2", - "save": { - "c0": { - "type": "cc", - "save": { - "c0": { "type": "register", "index": 0 } - } - } - } - } - ] - } - }, - { - "mnemonic": "IFBITJMP", - "doc": { - "category": "cont_conditional", - "description": "Checks whether bit `0 <= n <= 31` is set in integer `x`, and if so, performs `JMPX` to continuation `c`. Value `x` is left in the stack.", - "gas": "26", - "fift": "[n] IFBITJMP" - }, - "bytecode": { - "doc_opcode": "E39_n", - "tlb": "#E39_ n:uint5", - "prefix": "E39_", - "operands": [ - { - "name": "n", - "loader": "uint", - "loader_args": { - "size": 5 - } - } - ] - }, - "value_flow": { - "doc_stack": "x c - x", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "c", - "value_types": ["Continuation"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - } - }, - "control_flow": { - "branches": [ - { - "type": "variable", - "var_name": "c" - } - ] - } - }, - { - "mnemonic": "IFNBITJMP", - "doc": { - "category": "cont_conditional", - "description": "Jumps to `c` if bit `0 <= n <= 31` is not set in integer `x`.", - "gas": "26", - "fift": "[n] IFNBITJMP" - }, - "bytecode": { - "doc_opcode": "E3B_n", - "tlb": "#E3B_ n:uint5", - "prefix": "E3B_", - "operands": [ - { - "name": "n", - "loader": "uint", - "loader_args": { - "size": 5 - } - } - ] - }, - "value_flow": { - "doc_stack": "x c - x", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "c", - "value_types": ["Continuation"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - } - }, - "control_flow": { - "branches": [ - { - "type": "variable", - "var_name": "c" - } - ] - } - }, - { - "mnemonic": "IFBITJMPREF", - "doc": { - "category": "cont_conditional", - "description": "Performs a `JMPREF` if bit `0 <= n <= 31` is set in integer `x`.", - "gas": "126/51", - "fift": "[ref] [n] IFBITJMPREF" - }, - "bytecode": { - "doc_opcode": "E3D_n", - "tlb": "#E3D_ n:uint5 c:^Cell", - "prefix": "E3D_", - "operands": [ - { - "name": "n", - "loader": "uint", - "loader_args": { - "size": 5 - } - }, - { - "name": "c", - "loader": "ref", - "loader_args": {} - } - ] - }, - "value_flow": { - "doc_stack": "x - x", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - } - }, - "control_flow": { - "branches": [ - { - "type": "variable", - "var_name": "c" - } - ] - } - }, - { - "mnemonic": "IFNBITJMPREF", - "doc": { - "category": "cont_conditional", - "description": "Performs a `JMPREF` if bit `0 <= n <= 31` is not set in integer `x`.", - "gas": "126/51", - "fift": "[ref] [n] IFNBITJMPREF" - }, - "bytecode": { - "doc_opcode": "E3F_n", - "tlb": "#E3F_ n:uint5 c:^Cell", - "prefix": "E3F_", - "operands": [ - { - "name": "n", - "loader": "uint", - "loader_args": { - "size": 5 - } - }, - { - "name": "c", - "loader": "ref", - "loader_args": {} - } - ] - }, - "value_flow": { - "doc_stack": "x - x", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - } - }, - "control_flow": { - "branches": [ - { - "type": "variable", - "var_name": "c" - } - ] - } - }, - { - "mnemonic": "REPEAT", - "doc": { - "category": "cont_loops", - "description": "Executes continuation `c` `n` times, if integer `n` is non-negative. If `n>=2^31` or `n<-2^31`, generates a range check exception.\nNotice that a `RET` inside the code of `c` works as a `continue`, not as a `break`. One should use either alternative (experimental) loops or alternative `RETALT` (along with a `SETEXITALT` before the loop) to `break` out of a loop.", - "gas": "18", - "fift": "REPEAT", - "fift_examples": [ - { - "fift": "REPEAT:<{ code }> <{ code }>REPEAT", - "description": "Equivalent to `<{ code }> CONT` `REPEAT`." - } - ] - }, - "bytecode": { - "doc_opcode": "E4", - "tlb": "#E4", - "prefix": "E4", - "operands": [] - }, - "value_flow": { - "doc_stack": "n c - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "c", - "value_types": ["Continuation"] - } - ] - }, - "outputs": { - "stack": [ - ] - } - }, - "control_flow": { - "branches": [ - { - "type": "special", - "name": "repeat", - "args": { - "count": "n", - "body": { - "type": "variable", - "var_name": "c" - }, - "after": { - "type": "cc", - "save": { - "c0": { "type": "register", "index": 0 } - } - } - } - } - ], - "nobranch": true - } - }, - { - "mnemonic": "REPEATEND", - "doc": { - "category": "cont_loops", - "description": "Similar to `REPEAT`, but it is applied to the current continuation `cc`.", - "gas": "18", - "fift": "REPEATEND\nREPEAT:" - }, - "bytecode": { - "doc_opcode": "E5", - "tlb": "#E5", - "prefix": "E5", - "operands": [] - }, - "value_flow": { - "doc_stack": "n - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - ] - } - }, - "control_flow": { - "branches": [ - { - "type": "special", - "name": "repeat", - "args": { - "count": "n", - "body": { - "type": "cc" - }, - "after": { - "type": "register", - "index": 0 - } - } - } - ], - "nobranch": true - } - }, - { - "mnemonic": "UNTIL", - "doc": { - "category": "cont_loops", - "description": "Executes continuation `c`, then pops an integer `x` from the resulting stack. If `x` is zero, performs another iteration of this loop. The actual implementation of this primitive involves an extraordinary continuation `ec_until` with its arguments set to the body of the loop (continuation `c`) and the original current continuation `cc`. This extraordinary continuation is then saved into the savelist of `c` as `c.c0` and the modified `c` is then executed. The other loop primitives are implemented similarly with the aid of suitable extraordinary continuations.", - "gas": "18", - "fift": "UNTIL", - "fift_examples": [ - { - "fift": "UNTIL:<{ code }> <{ code }>UNTIL", - "description": "Equivalent to `<{ code }> CONT` `UNTIL`." - } - ] - }, - "bytecode": { - "doc_opcode": "E6", - "tlb": "#E6", - "prefix": "E6", - "operands": [] - }, - "value_flow": { - "doc_stack": "c - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Continuation"] - } - ] - }, - "outputs": { - "stack": [ - ] - } - }, - "control_flow": { - "branches": [ - { - "type": "variable", - "var_name": "c", - "save": { - "c0": { - "type": "special", - "name": "until", - "args": { - "body": { - "type": "variable", - "var_name": "c" - }, - "after": { - "type": "cc", - "save": { - "c0": { "type": "register", "index": 0 } - } - } - } - } - } - } - ] - } - }, - { - "mnemonic": "UNTILEND", - "doc": { - "category": "cont_loops", - "description": "Similar to `UNTIL`, but executes the current continuation `cc` in a loop. When the loop exit condition is satisfied, performs a `RET`.", - "gas": "18", - "fift": "UNTILEND\nUNTIL:" - }, - "bytecode": { - "doc_opcode": "E7", - "tlb": "#E7", - "prefix": "E7", - "operands": [] - }, - "value_flow": { - "doc_stack": "-", - "inputs": { - "stack": [] - }, - "outputs": { - "stack": [] - } - }, - "control_flow": { - "branches": [ - { - "type": "cc", - "save": { - "c0": { - "type": "special", - "name": "until", - "args": { - "body": { - "type": "cc" - }, - "after": { "type": "register", "index": 0 } - } - } - } - } - ] - } - }, - { - "mnemonic": "WHILE", - "doc": { - "category": "cont_loops", - "description": "Executes `c'` and pops an integer `x` from the resulting stack. If `x` is zero, exists the loop and transfers control to the original `cc`. If `x` is non-zero, executes `c`, and then begins a new iteration.", - "gas": "18", - "fift": "WHILE", - "fift_examples": [ - { - "fift": "WHILE:<{ cond }>DO<{ code }>", - "description": "Equivalent to `<{ cond }> CONT` `<{ code }> CONT` `WHILE`." - } - ] - }, - "bytecode": { - "doc_opcode": "E8", - "tlb": "#E8", - "prefix": "E8", - "operands": [] - }, - "value_flow": { - "doc_stack": "c' c - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "c2", - "value_types": ["Continuation"] - }, - { - "type": "simple", - "name": "c", - "value_types": ["Continuation"] - } - ] - }, - "outputs": { - "stack": [ - ] - } - }, - "control_flow": { - "branches": [ - { - "type": "variable", - "var_name": "c2", - "save": { - "c0": { - "type": "special", - "name": "while", - "args": { - "cond": { - "type": "variable", - "var_name": "c2" - }, - "body": { - "type": "variable", - "var_name": "c" - }, - "after": { - "type": "cc", - "save": { - "c0": { "type": "register", "index": 0 } - } - } - } - } - } - } - ] - } - }, - { - "mnemonic": "WHILEEND", - "doc": { - "category": "cont_loops", - "description": "Similar to `WHILE`, but uses the current continuation `cc` as the loop body.", - "gas": "18", - "fift": "WHILEEND" - }, - "bytecode": { - "doc_opcode": "E9", - "tlb": "#E9", - "prefix": "E9", - "operands": [] - }, - "value_flow": { - "doc_stack": "c' - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "c2", - "value_types": ["Continuation"] - } - ] - }, - "outputs": { - "stack": [ - ] - } - }, - "control_flow": { - "branches": [ - { - "type": "variable", - "var_name": "c2", - "save": { - "c0": { - "type": "special", - "name": "while", - "args": { - "cond": { - "type": "variable", - "var_name": "c2" - }, - "body": { - "type": "cc" - }, - "after": { "type": "register", "index": 0 } - } - } - } - } - - ] - } - }, - { - "mnemonic": "AGAIN", - "doc": { - "category": "cont_loops", - "description": "Similar to `REPEAT`, but executes `c` infinitely many times. A `RET` only begins a new iteration of the infinite loop, which can be exited only by an exception, or a `RETALT` (or an explicit `JMPX`).", - "gas": "18", - "fift": "AGAIN", - "fift_examples": [ - { - "fift": "AGAIN:<{ code }> <{ code }>AGAIN", - "description": "Equivalent to `<{ code }> CONT` `AGAIN`." - } - ] - }, - "bytecode": { - "doc_opcode": "EA", - "tlb": "#EA", - "prefix": "EA", - "operands": [] - }, - "value_flow": { - "doc_stack": "c - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Continuation"] - } - ] - }, - "outputs": { - "stack": [] - } - }, - "control_flow": { - "branches": [ - { - "type": "special", - "name": "again", - "args": { - "body": { - "type": "variable", - "var_name": "c" - } - } - } - ] - } - }, - { - "mnemonic": "AGAINEND", - "doc": { - "category": "cont_loops", - "description": "Similar to `AGAIN`, but performed with respect to the current continuation `cc`.", - "gas": "18", - "fift": "AGAINEND\nAGAIN:" - }, - "bytecode": { - "doc_opcode": "EB", - "tlb": "#EB", - "prefix": "EB", - "operands": [] - }, - "value_flow": { - "doc_stack": "-", - "inputs": { - "stack": [ - ] - }, - "outputs": { - "stack": [ - ] - } - }, - "control_flow": { - "branches": [ - { - "type": "special", - "name": "again", - "args": { - "body": { - "type": "cc" - } - } - } - ] - } - }, - { - "mnemonic": "REPEATBRK", - "doc": { - "category": "cont_loops", - "description": "Similar to `REPEAT`, but also sets `c1` to the original `cc` after saving the old value of `c1` into the savelist of the original `cc`. In this way `RETALT` could be used to break out of the loop body.", - "gas": "26", - "fift": "REPEATBRK", - "fift_examples": [ - { - "fift": "REPEATBRK:<{ code }> <{ code }>REPEATBRK", - "description": "Equivalent to `<{ code }> CONT` `REPEATBRK`." - } - ] - }, - "bytecode": { - "doc_opcode": "E314", - "tlb": "#E314", - "prefix": "E314", - "operands": [] - }, - "value_flow": { - "doc_stack": "n c -", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "c", - "value_types": ["Continuation"] - } - ] - }, - "outputs": { - "stack": [ - ] - } - }, - "control_flow": { - "branches": [ - { - "type": "special", - "name": "repeat", - "args": { - "count": "n", - "body": { - "type": "variable", - "var_name": "c", - "save": { - "c1": { - "type": "cc", - "save": { - "c0": { "type": "register", "index": 0 }, - "c1": { "type": "register", "index": 1 } - } - } - } - }, - "after": { - "type": "cc", - "save": { - "c0": { "type": "register", "index": 0 }, - "c1": { "type": "register", "index": 1 } - } - } - } - } - ], - "nobranch": true - } - }, - { - "mnemonic": "REPEATENDBRK", - "doc": { - "category": "cont_loops", - "description": "Similar to `REPEATEND`, but also sets `c1` to the original `c0` after saving the old value of `c1` into the savelist of the original `c0`. Equivalent to `SAMEALTSAVE` `REPEATEND`.", - "gas": "26", - "fift": "REPEATENDBRK" - }, - "bytecode": { - "doc_opcode": "E315", - "tlb": "#E315", - "prefix": "E315", - "operands": [] - }, - "value_flow": { - "doc_stack": "n -", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - ] - } - }, - "control_flow": { - "branches": [ - { - "type": "special", - "name": "repeat", - "args": { - "count": "n", - "body": { - "type": "cc", - "save": { - "c1": { - "type": "register", - "index": 0 - } - } - }, - "after": { - "type": "register", - "index": 0 - } - } - } - ], - "nobranch": true - } - }, - { - "mnemonic": "UNTILBRK", - "doc": { - "category": "cont_loops", - "description": "Similar to `UNTIL`, but also modifies `c1` in the same way as `REPEATBRK`.", - "gas": "26", - "fift": "UNTILBRK", - "fift_examples": [ - { - "fift": "UNTILBRK:<{ code }>", - "description": "Equivalent to `<{ code }> CONT` `UNTILBRK`." - } - ] - }, - "bytecode": { - "doc_opcode": "E316", - "tlb": "#E316", - "prefix": "E316", - "operands": [] - }, - "value_flow": { - "doc_stack": "c -", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Continuation"] - } - ] - }, - "outputs": { - "stack": [ - ] - } - }, - "control_flow": { - "branches": [ - { - "type": "variable", - "var_name": "c", - "save": { - "c0": { - "type": "special", - "name": "until", - "args": { - "body": { - "type": "variable", - "var_name": "c", - "save": { - "c1": { - "type": "cc", - "save": { - "c0": { "type": "register", "index": 0 }, - "c1": { "type": "register", "index": 1 } - } - } - } - }, - "after": { - "type": "cc", - "save": { - "c0": { "type": "register", "index": 0 }, - "c1": { "type": "register", "index": 1 } - } - } - } - }, - "c1": { - "type": "cc", - "save": { - "c0": { "type": "register", "index": 0 }, - "c1": { "type": "register", "index": 1 } - } - } - } - } - ] - } - }, - { - "mnemonic": "UNTILENDBRK", - "doc": { - "category": "cont_loops", - "description": "Equivalent to `SAMEALTSAVE` `UNTILEND`.", - "gas": "26", - "fift": "UNTILENDBRK\nUNTILBRK:" - }, - "bytecode": { - "doc_opcode": "E317", - "tlb": "#E317", - "prefix": "E317", - "operands": [] - }, - "value_flow": { - "doc_stack": "-", - "inputs": { - "stack": [ - ] - }, - "outputs": { - "stack": [ - ] - } - }, - "control_flow": { - "branches": [ - { - "type": "cc", - "save": { - "c0": { - "type": "special", - "name": "until", - "args": { - "body": { - "type": "cc", - "save": { - "c1": { "type": "register", "index": 0 } - } - }, - "after": { "type": "register", "index": 0 } - } - }, - "c1": { "type": "register", "index": 0 } - } - } - - ] - } - }, - { - "mnemonic": "WHILEBRK", - "doc": { - "category": "cont_loops", - "description": "Similar to `WHILE`, but also modifies `c1` in the same way as `REPEATBRK`.", - "gas": "26", - "fift": "WHILEBRK", - "fift_examples": [ - { - "fift": "WHILEBRK:<{ cond }>DO<{ code }>", - "description": "Equivalent to `<{ cond }> CONT` `<{ code }> CONT` `WHILEBRK`." - } - ] - }, - "bytecode": { - "doc_opcode": "E318", - "tlb": "#E318", - "prefix": "E318", - "operands": [] - }, - "value_flow": { - "doc_stack": "c' c -", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "c2", - "value_types": ["Continuation"] - }, - { - "type": "simple", - "name": "c", - "value_types": ["Continuation"] - } - ] - }, - "outputs": { - "stack": [ - ] - } - }, - "control_flow": { - "branches": [ - { - "type": "variable", - "var_name": "c2", - "save": { - "c0": { - "type": "special", - "name": "while", - "args": { - "cond": { - "type": "variable", - "var_name": "c2" - }, - "body": { - "type": "variable", - "var_name": "c" - }, - "after": { - "type": "cc", - "save": { - "c0": { "type": "register", "index": 0 }, - "c1": { "type": "register", "index": 1 } - } - } - } - } - } - } - ] - } - }, - { - "mnemonic": "WHILEENDBRK", - "doc": { - "category": "cont_loops", - "description": "Equivalent to `SAMEALTSAVE` `WHILEEND`.", - "gas": "26", - "fift": "WHILEENDBRK" - }, - "bytecode": { - "doc_opcode": "E319", - "tlb": "#E319", - "prefix": "E319", - "operands": [] - }, - "value_flow": { - "doc_stack": "c -", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Continuation"] - } - ] - }, - "outputs": { - "stack": [ - ] - } - } - }, - { - "mnemonic": "AGAINBRK", - "doc": { - "category": "cont_loops", - "description": "Similar to `AGAIN`, but also modifies `c1` in the same way as `REPEATBRK`.", - "gas": "26", - "fift": "AGAINBRK", - "fift_examples": [ - { - "fift": "AGAINBRK:<{ code }>", - "description": "Equivalent to `<{ code }> CONT` `AGAINBRK`." - } - ] - }, - "bytecode": { - "doc_opcode": "E31A", - "tlb": "#E31A", - "prefix": "E31A", - "operands": [] - }, - "value_flow": { - "doc_stack": "c -", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Continuation"] - } - ] - }, - "outputs": { - "stack": [ - ] - } - } - }, - { - "mnemonic": "AGAINENDBRK", - "doc": { - "category": "cont_loops", - "description": "Equivalent to `SAMEALTSAVE` `AGAINEND`.", - "gas": "26", - "fift": "AGAINENDBRK\nAGAINBRK:" - }, - "bytecode": { - "doc_opcode": "E31B", - "tlb": "#E31B", - "prefix": "E31B", - "operands": [] - }, - "value_flow": { - "doc_stack": "-", - "inputs": { - "stack": [ - ] - }, - "outputs": { - "stack": [ - ] - } - } - }, - { - "mnemonic": "SETCONTARGS_N", - "doc": { - "category": "cont_stack", - "description": "Pushes `0 <= r <= 15` values `x_1...x_r` into the stack of (a copy of) the continuation `c`, starting with `x_1`. When `n` is 15 (-1 in Fift notation), does nothing with `c.nargs`. For `0 <= n <= 14`, sets `c.nargs` to the final size of the stack of `c'` plus `n`. In other words, transforms `c` into a _closure_ or a _partially applied function_, with `0 <= n <= 14` arguments missing.", - "gas": "26+s\u0432\u0402\u045c", - "fift": "[r] [n] SETCONTARGS" - }, - "bytecode": { - "doc_opcode": "ECrn", - "tlb": "#EC r:uint4 n:uint4", - "prefix": "EC", - "operands": [ - { - "name": "r", - "loader": "uint", - "loader_args": { - "size": 4 - } - }, - { - "name": "n", - "loader": "uint", - "loader_args": { - "size": 4 - } - } - ] - }, - "value_flow": { - "doc_stack": "x_1 x_2...x_r c - c'", - "inputs": { - "stack": [ - { - "type": "array", - "name": "args", - "length_var": "r", - "array_entry": [ - { - "type": "simple", - "name": "x" - } - ] - }, - { - "type": "simple", - "name": "c", - "value_types": ["Continuation"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "c2", - "value_types": ["Continuation"] - } - ] - } - } - }, - { - "mnemonic": "RETURNARGS", - "doc": { - "category": "cont_stack", - "description": "Leaves only the top `0 <= p <= 15` values in the current stack (somewhat similarly to `ONLYTOPX`), with all the unused bottom values not discarded, but saved into continuation `c0` in the same way as `SETCONTARGS` does.", - "gas": "26+s\u0432\u0402\u045c", - "fift": "[p] RETURNARGS" - }, - "bytecode": { - "doc_opcode": "ED0p", - "tlb": "#ED0 p:uint4", - "prefix": "ED0", - "operands": [ - { - "name": "p", - "loader": "uint", - "loader_args": { - "size": 4 - } - } - ] - }, - "value_flow": { - "doc_stack": "-" - } - }, - { - "mnemonic": "RETURNVARARGS", - "doc": { - "category": "cont_stack", - "description": "Similar to `RETURNARGS`, but with Integer `0 <= p <= 255` taken from the stack.", - "gas": "26+s\u0432\u0402\u045c", - "fift": "RETURNVARARGS" - }, - "bytecode": { - "doc_opcode": "ED10", - "tlb": "#ED10", - "prefix": "ED10", - "operands": [] - }, - "value_flow": { - "doc_stack": "p -" - } - }, - { - "mnemonic": "SETCONTVARARGS", - "doc": { - "category": "cont_stack", - "description": "Similar to `SETCONTARGS`, but with `0 <= r <= 255` and `-1 <= n <= 255` taken from the stack.", - "gas": "26+s\u0432\u0402\u045c", - "fift": "SETCONTVARARGS" - }, - "bytecode": { - "doc_opcode": "ED11", - "tlb": "#ED11", - "prefix": "ED11", - "operands": [] - }, - "value_flow": { - "doc_stack": "x_1 x_2...x_r c r n - c'", - "inputs": { - "stack": [ - { - "type": "array", - "name": "args", - "length_var": "r", - "array_entry": [ - { - "type": "simple", - "name": "x" - } - ] - }, - { - "type": "simple", - "name": "c", - "value_types": ["Continuation"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "c2", - "value_types": ["Continuation"] - } - ] - } - } - }, - { - "mnemonic": "SETNUMVARARGS", - "doc": { - "category": "cont_stack", - "description": "`-1 <= n <= 255`\nIf `n=-1`, this operation does nothing (`c'=c`).\nOtherwise its action is similar to `[n] SETNUMARGS`, but with `n` taken from the stack.", - "gas": "26", - "fift": "SETNUMVARARGS" - }, - "bytecode": { - "doc_opcode": "ED12", - "tlb": "#ED12", - "prefix": "ED12", - "operands": [] - }, - "value_flow": { - "doc_stack": "c n - c'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Continuation"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "c2", - "value_types": ["Continuation"] - } - ] - } - } - }, - { - "mnemonic": "BLESS", - "doc": { - "category": "cont_create", - "description": "Transforms a _Slice_ `s` into a simple ordinary continuation `c`, with `c.code=s` and an empty stack and savelist.", - "gas": "26", - "fift": "BLESS" - }, - "bytecode": { - "doc_opcode": "ED1E", - "tlb": "#ED1E", - "prefix": "ED1E", - "operands": [] - }, - "value_flow": { - "doc_stack": "s - c", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Continuation"] - } - ] - } - } - }, - { - "mnemonic": "BLESSVARARGS", - "doc": { - "category": "cont_create", - "description": "Equivalent to `ROT` `BLESS` `ROTREV` `SETCONTVARARGS`.", - "gas": "26+s\u0432\u0402\u045c", - "fift": "BLESSVARARGS" - }, - "bytecode": { - "doc_opcode": "ED1F", - "tlb": "#ED1F", - "prefix": "ED1F", - "operands": [] - }, - "value_flow": { - "doc_stack": "x_1...x_r s r n - c", - "inputs": { - "stack": [ - { - "type": "array", - "name": "args", - "length_var": "r", - "array_entry": [ - { - "type": "simple", - "name": "x" - } - ] - }, - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Continuation"] - } - ] - } - } - }, - { - "mnemonic": "BLESSARGS", - "doc": { - "category": "cont_create", - "description": "`0 <= r <= 15`, `-1 <= n <= 14`\nEquivalent to `BLESS` `[r] [n] SETCONTARGS`.\nThe value of `n` is represented inside the instruction by the 4-bit integer `n mod 16`.", - "gas": "26", - "fift": "[r] [n] BLESSARGS" - }, - "bytecode": { - "doc_opcode": "EErn", - "tlb": "#EE r:uint4 n:uint4", - "prefix": "EE", - "operands": [ - { - "name": "r", - "loader": "uint", - "loader_args": { - "size": 4 - } - }, - { - "name": "n", - "loader": "uint", - "loader_args": { - "size": 4 - } - } - ] - }, - "value_flow": { - "doc_stack": "x_1...x_r s - c", - "inputs": { - "stack": [ - { - "type": "array", - "name": "args", - "length_var": "r", - "array_entry": [ - { - "type": "simple", - "name": "x" - } - ] - }, - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Continuation"] - } - ] - } - } - }, - { - "mnemonic": "PUSHCTR", - "doc": { - "category": "cont_registers", - "description": "Pushes the current value of control register `c(i)`. If the control register is not supported in the current codepage, or if it does not have a value, an exception is triggered.", - "gas": "26", - "fift": "c[i] PUSHCTR\nc[i] PUSH" - }, - "bytecode": { - "doc_opcode": "ED4i", - "tlb": "#ED4 i:uint4", - "prefix": "ED4", - "operands": [ - { - "name": "i", - "loader": "uint", - "loader_args": { - "size": 4 - } - } - ] - }, - "value_flow": { - "doc_stack": "- x", - "inputs": { - "stack": [] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x" - } - ] - } - } - }, - { - "mnemonic": "POPCTR", - "doc": { - "category": "cont_registers", - "description": "Pops a value `x` from the stack and stores it into control register `c(i)`, if supported in the current codepage. Notice that if a control register accepts only values of a specific type, a type-checking exception may occur.", - "gas": "26", - "fift": "c[i] POPCTR\nc[i] POP" - }, - "bytecode": { - "doc_opcode": "ED5i", - "tlb": "#ED5 i:uint4", - "prefix": "ED5", - "operands": [ - { - "name": "i", - "loader": "uint", - "loader_args": { - "size": 4 - } - } - ] - }, - "value_flow": { - "doc_stack": "x - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x" - } - ] - }, - "outputs": { - "stack": [] - } - } - }, - { - "mnemonic": "SETCONTCTR", - "doc": { - "category": "cont_registers", - "description": "Stores `x` into the savelist of continuation `c` as `c(i)`, and returns the resulting continuation `c'`. Almost all operations with continuations may be expressed in terms of `SETCONTCTR`, `POPCTR`, and `PUSHCTR`.", - "gas": "26", - "fift": "c[i] SETCONT\nc[i] SETCONTCTR" - }, - "bytecode": { - "doc_opcode": "ED6i", - "tlb": "#ED6 i:uint4", - "prefix": "ED6", - "operands": [ - { - "name": "i", - "loader": "uint", - "loader_args": { - "size": 4 - } - } - ] - }, - "value_flow": { - "doc_stack": "x c - c'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x" - }, - { - "type": "simple", - "name": "c", - "value_types": ["Continuation"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "c2", - "value_types": ["Continuation"] - } - ] - } - } - }, - { - "mnemonic": "SETRETCTR", - "doc": { - "category": "cont_registers", - "description": "Equivalent to `c0 PUSHCTR` `c[i] SETCONTCTR` `c0 POPCTR`.", - "gas": "26", - "fift": "c[i] SETRETCTR" - }, - "bytecode": { - "doc_opcode": "ED7i", - "tlb": "#ED7 i:uint4", - "prefix": "ED7", - "operands": [ - { - "name": "i", - "loader": "uint", - "loader_args": { - "size": 4 - } - } - ] - }, - "value_flow": { - "doc_stack": "x - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x" - } - ] - }, - "outputs": { - "stack": [] - } - } - }, - { - "mnemonic": "SETALTCTR", - "doc": { - "category": "cont_registers", - "description": "Equivalent to `c1 PUSHCTR` `c[i] SETCONTCTR` `c0 POPCTR`.", - "gas": "26", - "fift": "c[i] SETALTCTR" - }, - "bytecode": { - "doc_opcode": "ED8i", - "tlb": "#ED8 i:uint4", - "prefix": "ED8", - "operands": [ - { - "name": "i", - "loader": "uint", - "loader_args": { - "size": 4 - } - } - ] - }, - "value_flow": { - "doc_stack": "x - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x" - } - ] - }, - "outputs": { - "stack": [] - } - } - }, - { - "mnemonic": "POPSAVE", - "doc": { - "category": "cont_registers", - "description": "Similar to `c[i] POPCTR`, but also saves the old value of `c[i]` into continuation `c0`.\nEquivalent (up to exceptions) to `c[i] SAVECTR` `c[i] POPCTR`.", - "gas": "26", - "fift": "c[i] POPSAVE\nc[i] POPCTRSAVE" - }, - "bytecode": { - "doc_opcode": "ED9i", - "tlb": "#ED9 i:uint4", - "prefix": "ED9", - "operands": [ - { - "name": "i", - "loader": "uint", - "loader_args": { - "size": 4 - } - } - ] - }, - "value_flow": { - "doc_stack": "x -", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x" - } - ] - }, - "outputs": { - "stack": [] - } - } - }, - { - "mnemonic": "SAVE", - "doc": { - "category": "cont_registers", - "description": "Saves the current value of `c(i)` into the savelist of continuation `c0`. If an entry for `c[i]` is already present in the savelist of `c0`, nothing is done. Equivalent to `c[i] PUSHCTR` `c[i] SETRETCTR`.", - "gas": "26", - "fift": "c[i] SAVE\nc[i] SAVECTR" - }, - "bytecode": { - "doc_opcode": "EDAi", - "tlb": "#EDA i:uint4", - "prefix": "EDA", - "operands": [ - { - "name": "i", - "loader": "uint", - "loader_args": { - "size": 4 - } - } - ] - }, - "value_flow": { - "doc_stack": "", - "inputs": { - "stack": [ - ] - }, - "outputs": { - "stack": [ - ] - } - } - }, - { - "mnemonic": "SAVEALT", - "doc": { - "category": "cont_registers", - "description": "Similar to `c[i] SAVE`, but saves the current value of `c[i]` into the savelist of `c1`, not `c0`.", - "gas": "26", - "fift": "c[i] SAVEALT\nc[i] SAVEALTCTR" - }, - "bytecode": { - "doc_opcode": "EDBi", - "tlb": "#EDB i:uint4", - "prefix": "EDB", - "operands": [ - { - "name": "i", - "loader": "uint", - "loader_args": { - "size": 4 - } - } - ] - }, - "value_flow": { - "doc_stack": "", - "inputs": { - "stack": [ - ] - }, - "outputs": { - "stack": [ - ] - } - } - }, - { - "mnemonic": "SAVEBOTH", - "doc": { - "category": "cont_registers", - "description": "Equivalent to `DUP` `c[i] SAVE` `c[i] SAVEALT`.", - "gas": "26", - "fift": "c[i] SAVEBOTH\nc[i] SAVEBOTHCTR" - }, - "bytecode": { - "doc_opcode": "EDCi", - "tlb": "#EDC i:uint4", - "prefix": "EDC", - "operands": [ - { - "name": "i", - "loader": "uint", - "loader_args": { - "size": 4 - } - } - ] - }, - "value_flow": { - "doc_stack": "", - "inputs": { - "stack": [ - ] - }, - "outputs": { - "stack": [ - ] - } - } - }, - { - "mnemonic": "PUSHCTRX", - "doc": { - "category": "cont_registers", - "description": "Similar to `c[i] PUSHCTR`, but with `i`, `0 <= i <= 255`, taken from the stack.\nNotice that this primitive is one of the few \u0432\u0402\u045aexotic'' primitives, which are not polymorphic like stack manipulation primitives, and at the same time do not have well-defined types of parameters and return values, because the type of `x` depends on `i`.", - "gas": "26", - "fift": "PUSHCTRX" - }, - "bytecode": { - "doc_opcode": "EDE0", - "tlb": "#EDE0", - "prefix": "EDE0", - "operands": [] - }, - "value_flow": { - "doc_stack": "i - x", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x" - } - ] - } - } - }, - { - "mnemonic": "POPCTRX", - "doc": { - "category": "cont_registers", - "description": "Similar to `c[i] POPCTR`, but with `0 <= i <= 255` from the stack.", - "gas": "26", - "fift": "POPCTRX" - }, - "bytecode": { - "doc_opcode": "EDE1", - "tlb": "#EDE1", - "prefix": "EDE1", - "operands": [] - }, - "value_flow": { - "doc_stack": "x i - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x" - }, - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [] - } - } - }, - { - "mnemonic": "SETCONTCTRX", - "doc": { - "category": "cont_registers", - "description": "Similar to `c[i] SETCONTCTR`, but with `0 <= i <= 255` from the stack.", - "gas": "26", - "fift": "SETCONTCTRX" - }, - "bytecode": { - "doc_opcode": "EDE2", - "tlb": "#EDE2", - "prefix": "EDE2", - "operands": [] - }, - "value_flow": { - "doc_stack": "x c i - c'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x" - }, - { - "type": "simple", - "name": "c", - "value_types": ["Continuation"] - }, - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "c2", - "value_types": ["Continuation"] - } - ] - } - } - }, - { - "mnemonic": "COMPOS", - "doc": { - "category": "cont_registers", - "description": "Computes the composition `compose0(c, c\u0432\u0402\u2122)`, which has the meaning of \u0432\u0402\u045aperform `c`, and, if successful, perform `c'`'' (if `c` is a boolean circuit) or simply \u0432\u0402\u045aperform `c`, then `c'`''. Equivalent to `SWAP` `c0 SETCONT`.", - "gas": "26", - "fift": "COMPOS\nBOOLAND" - }, - "bytecode": { - "doc_opcode": "EDF0", - "tlb": "#EDF0", - "prefix": "EDF0", - "operands": [] - }, - "value_flow": { - "doc_stack": "c c' - c''", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Continuation"] - }, - { - "type": "simple", - "name": "c2", - "value_types": ["Continuation"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "c3", - "value_types": ["Continuation"] - } - ] - } - } - }, - { - "mnemonic": "COMPOSALT", - "doc": { - "category": "cont_registers", - "description": "Computes the alternative composition `compose1(c, c\u0432\u0402\u2122)`, which has the meaning of \u0432\u0402\u045aperform `c`, and, if not successful, perform `c'`'' (if `c` is a boolean circuit). Equivalent to `SWAP` `c1 SETCONT`.", - "gas": "26", - "fift": "COMPOSALT\nBOOLOR" - }, - "bytecode": { - "doc_opcode": "EDF1", - "tlb": "#EDF1", - "prefix": "EDF1", - "operands": [] - }, - "value_flow": { - "doc_stack": "c c' - c''", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Continuation"] - }, - { - "type": "simple", - "name": "c2", - "value_types": ["Continuation"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "c3", - "value_types": ["Continuation"] - } - ] - } - } - }, - { - "mnemonic": "COMPOSBOTH", - "doc": { - "category": "cont_registers", - "description": "Computes composition `compose1(compose0(c, c\u0432\u0402\u2122), c\u0432\u0402\u2122)`, which has the meaning of \u0432\u0402\u045acompute boolean circuit `c`, then compute `c'`, regardless of the result of `c`''.", - "gas": "26", - "fift": "COMPOSBOTH" - }, - "bytecode": { - "doc_opcode": "EDF2", - "tlb": "#EDF2", - "prefix": "EDF2", - "operands": [] - }, - "value_flow": { - "doc_stack": "c c' - c''", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Continuation"] - }, - { - "type": "simple", - "name": "c2", - "value_types": ["Continuation"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "c3", - "value_types": ["Continuation"] - } - ] - } - } - }, - { - "mnemonic": "ATEXIT", - "doc": { - "category": "cont_registers", - "description": "Sets `c0` to `compose0(c, c0)`. In other words, `c` will be executed before exiting current subroutine.", - "gas": "26", - "fift": "ATEXIT", - "fift_examples": [ - { - "fift": "ATEXIT:<{ code }> <{ code }>ATEXIT", - "description": "Equivalent to `<{ code }> CONT` `ATEXIT`." - } - ] - }, - "bytecode": { - "doc_opcode": "EDF3", - "tlb": "#EDF3", - "prefix": "EDF3", - "operands": [] - }, - "value_flow": { - "doc_stack": "c - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Continuation"] - } - ] - }, - "outputs": { - "stack": [] - } - } - }, - { - "mnemonic": "ATEXITALT", - "doc": { - "category": "cont_registers", - "description": "Sets `c1` to `compose1(c, c1)`. In other words, `c` will be executed before exiting current subroutine by its alternative return path.", - "gas": "26", - "fift": "ATEXITALT", - "fift_examples": [ - { - "fift": "ATEXITALT:<{ code }> <{ code }>ATEXITALT", - "description": "Equivalent to `<{ code }> CONT` `ATEXITALT`." - } - ] - }, - "bytecode": { - "doc_opcode": "EDF4", - "tlb": "#EDF4", - "prefix": "EDF4", - "operands": [] - }, - "value_flow": { - "doc_stack": "c - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Continuation"] - } - ] - }, - "outputs": { - "stack": [] - } - } - }, - { - "mnemonic": "SETEXITALT", - "doc": { - "category": "cont_registers", - "description": "Sets `c1` to `compose1(compose0(c, c0), c1)`,\nIn this way, a subsequent `RETALT` will first execute `c`, then transfer control to the original `c0`. This can be used, for instance, to exit from nested loops.", - "gas": "26", - "fift": "SETEXITALT" - }, - "bytecode": { - "doc_opcode": "EDF5", - "tlb": "#EDF5", - "prefix": "EDF5", - "operands": [] - }, - "value_flow": { - "doc_stack": "c - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Continuation"] - } - ] - }, - "outputs": { - "stack": [] - } - } - }, - { - "mnemonic": "THENRET", - "doc": { - "category": "cont_registers", - "description": "Computes `compose0(c, c0)`.", - "gas": "26", - "fift": "THENRET" - }, - "bytecode": { - "doc_opcode": "EDF6", - "tlb": "#EDF6", - "prefix": "EDF6", - "operands": [] - }, - "value_flow": { - "doc_stack": "c - c'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Continuation"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "c2", - "value_types": ["Continuation"] - } - ] - } - } - }, - { - "mnemonic": "THENRETALT", - "doc": { - "category": "cont_registers", - "description": "Computes `compose0(c, c1)`", - "gas": "26", - "fift": "THENRETALT" - }, - "bytecode": { - "doc_opcode": "EDF7", - "tlb": "#EDF7", - "prefix": "EDF7", - "operands": [] - }, - "value_flow": { - "doc_stack": "c - c'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Continuation"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "c2", - "value_types": ["Continuation"] - } - ] - } - } - }, - { - "mnemonic": "INVERT", - "doc": { - "category": "cont_registers", - "description": "Interchanges `c0` and `c1`.", - "gas": "26", - "fift": "INVERT" - }, - "bytecode": { - "doc_opcode": "EDF8", - "tlb": "#EDF8", - "prefix": "EDF8", - "operands": [] - }, - "value_flow": { - "doc_stack": "-", - "inputs": { - "stack": [ - ] - }, - "outputs": { - "stack": [ - ] - } - } - }, - { - "mnemonic": "BOOLEVAL", - "doc": { - "category": "cont_registers", - "description": "Performs `cc:=compose1(compose0(c, compose0(-1 PUSHINT, cc)), compose0(0 PUSHINT, cc))`. If `c` represents a boolean circuit, the net effect is to evaluate it and push either `-1` or `0` into the stack before continuing.", - "gas": "26", - "fift": "BOOLEVAL" - }, - "bytecode": { - "doc_opcode": "EDF9", - "tlb": "#EDF9", - "prefix": "EDF9", - "operands": [] - }, - "value_flow": { - "doc_stack": "c - ?", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Continuation"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - }, - "control_flow": { - "branches": [ - { - "type": "variable", - "var_name": "c", - "save": { - "c0": { - "type": "special", - "name": "pushint", - "args": { - "next": { - "type": "cc", - "save": { - "c0": { "type": "register", "index": 0 }, - "c1": { "type": "register", "index": 1 } - } - }, - "value": -1 - } - }, - "c1": { - "type": "special", - "name": "pushint", - "args": { - "next": { - "type": "cc", - "save": { - "c0": { "type": "register", "index": 0 }, - "c1": { "type": "register", "index": 1 } - } - }, - "value": 0 - } - } - } - } - ] - } - }, - { - "mnemonic": "SAMEALT", - "doc": { - "category": "cont_registers", - "description": "Sets `c1` to `c0`. Equivalent to `c0 PUSHCTR` `c1 POPCTR`.", - "gas": "26", - "fift": "SAMEALT" - }, - "bytecode": { - "doc_opcode": "EDFA", - "tlb": "#EDFA", - "prefix": "EDFA", - "operands": [] - }, - "value_flow": { - "doc_stack": "-", - "inputs": { - "stack": [ - ] - }, - "outputs": { - "stack": [ - ] - } - } - }, - { - "mnemonic": "SAMEALTSAVE", - "doc": { - "category": "cont_registers", - "description": "Sets `c1` to `c0`, but first saves the old value of `c1` into the savelist of `c0`.\nEquivalent to `c1 SAVE` `SAMEALT`.", - "gas": "26", - "fift": "SAMEALTSAVE" - }, - "bytecode": { - "doc_opcode": "EDFB", - "tlb": "#EDFB", - "prefix": "EDFB", - "operands": [] - }, - "value_flow": { - "doc_stack": "-", - "inputs": { - "stack": [ - ] - }, - "outputs": { - "stack": [ - ] - } - } - }, - { - "mnemonic": "CALLDICT", - "doc": { - "category": "cont_dict", - "description": "Calls the continuation in `c3`, pushing integer `0 <= nn <= 255` into its stack as an argument.\nApproximately equivalent to `[nn] PUSHINT` `c3 PUSHCTR` `EXECUTE`.", - "gas": "", - "fift": "[nn] CALL\n[nn] CALLDICT" - }, - "bytecode": { - "doc_opcode": "F0nn", - "tlb": "#F0 n:uint8", - "prefix": "F0", - "operands": [ - { - "name": "n", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "- nn", - "inputs": { - "stack": [ - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - } - }, - "control_flow": { - "branches": [ - { - "type": "register", - "index": 3, - "save": { - "c0": { - "type": "cc", - "save": { - "c0": { "type": "register", "index": 0 } - } - } - } - } - ] - } - }, - { - "mnemonic": "CALLDICT_LONG", - "doc": { - "category": "cont_dict", - "description": "For `0 <= n < 2^14`, an encoding of `[n] CALL` for larger values of `n`.", - "gas": "", - "fift": "[n] CALL\n[n] CALLDICT" - }, - "bytecode": { - "doc_opcode": "F12_n", - "tlb": "#F12_ n:uint14", - "prefix": "F12_", - "operands": [ - { - "name": "n", - "loader": "uint", - "loader_args": { - "size": 14 - } - } - ] - }, - "value_flow": { - "doc_stack": "- n", - "inputs": { - "stack": [ - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - } - }, - "control_flow": { - "branches": [ - { - "type": "register", - "index": 3, - "save": { - "c0": { - "type": "cc", - "save": { - "c0": { "type": "register", "index": 0 } - } - } - } - } - ] - } - }, - { - "mnemonic": "JMPDICT", - "doc": { - "category": "cont_dict", - "description": "Jumps to the continuation in `c3`, pushing integer `0 <= n < 2^14` as its argument.\nApproximately equivalent to `n PUSHINT` `c3 PUSHCTR` `JMPX`.", - "gas": "", - "fift": "[n] JMP" - }, - "bytecode": { - "doc_opcode": "F16_n", - "tlb": "#F16_ n:uint14", - "prefix": "F16_", - "operands": [ - { - "name": "n", - "loader": "uint", - "loader_args": { - "size": 14 - } - } - ] - }, - "value_flow": { - "doc_stack": " - n", - "inputs": { - "stack": [ - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - } - }, - "control_flow": { - "branches": [ - { - "type": "register", - "index": 3 - } - ] - } - }, - { - "mnemonic": "PREPAREDICT", - "doc": { - "category": "cont_dict", - "description": "Equivalent to `n PUSHINT` `c3 PUSHCTR`, for `0 <= n < 2^14`.\nIn this way, `[n] CALL` is approximately equivalent to `[n] PREPARE` `EXECUTE`, and `[n] JMP` is approximately equivalent to `[n] PREPARE` `JMPX`.\nOne might use, for instance, `CALLXARGS` or `CALLCC` instead of `EXECUTE` here.", - "gas": "", - "fift": "[n] PREPARE\n[n] PREPAREDICT" - }, - "bytecode": { - "doc_opcode": "F1A_n", - "tlb": "#F1A_ n:uint14", - "prefix": "F1A_", - "operands": [ - { - "name": "n", - "loader": "uint", - "loader_args": { - "size": 14 - } - } - ] - }, - "value_flow": { - "doc_stack": " - n c", - "inputs": { - "stack": [ - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "c", - "value_types": ["Continuation"] - } - ] - } - } - }, - { - "mnemonic": "THROW_SHORT", - "doc": { - "category": "exceptions", - "description": "Throws exception `0 <= n <= 63` with parameter zero.\nIn other words, it transfers control to the continuation in `c2`, pushing `0` and `n` into its stack, and discarding the old stack altogether.", - "gas": "76", - "fift": "[n] THROW" - }, - "bytecode": { - "doc_opcode": "F22_n", - "tlb": "#F22_ n:uint6", - "prefix": "F22_", - "operands": [ - { - "name": "n", - "loader": "uint", - "loader_args": { - "size": 6 - } - } - ] - }, - "value_flow": { - "doc_stack": " - 0 n", - "inputs": { - "stack": [ - ] - }, - "outputs": { - "stack": [ - ] - } - } - }, - { - "mnemonic": "THROWIF_SHORT", - "doc": { - "category": "exceptions", - "description": "Throws exception `0 <= n <= 63` with parameter zero only if integer `f!=0`.", - "gas": "26/76", - "fift": "[n] THROWIF" - }, - "bytecode": { - "doc_opcode": "F26_n", - "tlb": "#F26_ n:uint6", - "prefix": "F26_", - "operands": [ - { - "name": "n", - "loader": "uint", - "loader_args": { - "size": 6 - } - } - ] - }, - "value_flow": { - "doc_stack": "f - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "f", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [] - } - } - }, - { - "mnemonic": "THROWIFNOT_SHORT", - "doc": { - "category": "exceptions", - "description": "Throws exception `0 <= n <= 63` with parameter zero only if integer `f=0`.", - "gas": "26/76", - "fift": "[n] THROWIFNOT" - }, - "bytecode": { - "doc_opcode": "F2A_n", - "tlb": "#F2A_ n:uint6", - "prefix": "F2A_", - "operands": [ - { - "name": "n", - "loader": "uint", - "loader_args": { - "size": 6 - } - } - ] - }, - "value_flow": { - "doc_stack": "f - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "f", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [] - } - } - }, - { - "mnemonic": "THROW", - "doc": { - "category": "exceptions", - "description": "For `0 <= n < 2^11`, an encoding of `[n] THROW` for larger values of `n`.", - "gas": "84", - "fift": "[n] THROW" - }, - "bytecode": { - "doc_opcode": "F2C4_n", - "tlb": "#F2C4_ n:uint11", - "prefix": "F2C4_", - "operands": [ - { - "name": "n", - "loader": "uint", - "loader_args": { - "size": 11 - } - } - ] - }, - "value_flow": { - "doc_stack": "- 0 nn", - "inputs": { - "stack": [ - ] - }, - "outputs": { - "stack": [ - ] - } - } - }, - { - "mnemonic": "THROWARG", - "doc": { - "category": "exceptions", - "description": "Throws exception `0 <= n < 2^11` with parameter `x`, by copying `x` and `n` into the stack of `c2` and transferring control to `c2`.", - "gas": "84", - "fift": "[n] THROWARG" - }, - "bytecode": { - "doc_opcode": "F2CC_n", - "tlb": "#F2CC_ n:uint11", - "prefix": "F2CC_", - "operands": [ - { - "name": "n", - "loader": "uint", - "loader_args": { - "size": 11 - } - } - ] - }, - "value_flow": { - "doc_stack": "x - x nn", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x" - } - ] - }, - "outputs": { - "stack": [ - ] - } - } - }, - { - "mnemonic": "THROWIF", - "doc": { - "category": "exceptions", - "description": "For `0 <= n < 2^11`, an encoding of `[n] THROWIF` for larger values of `n`.", - "gas": "34/84", - "fift": "[n] THROWIF" - }, - "bytecode": { - "doc_opcode": "F2D4_n", - "tlb": "#F2D4_ n:uint11", - "prefix": "F2D4_", - "operands": [ - { - "name": "n", - "loader": "uint", - "loader_args": { - "size": 11 - } - } - ] - }, - "value_flow": { - "doc_stack": "f - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "f", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - ] - } - } - }, - { - "mnemonic": "THROWARGIF", - "doc": { - "category": "exceptions", - "description": "Throws exception `0 <= nn < 2^11` with parameter `x` only if integer `f!=0`.", - "gas": "34/84", - "fift": "[n] THROWARGIF" - }, - "bytecode": { - "doc_opcode": "F2DC_n", - "tlb": "#F2DC_ n:uint11", - "prefix": "F2DC_", - "operands": [ - { - "name": "n", - "loader": "uint", - "loader_args": { - "size": 11 - } - } - ] - }, - "value_flow": { - "doc_stack": "x f - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x" - }, - { - "type": "simple", - "name": "f", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - ] - } - } - }, - { - "mnemonic": "THROWIFNOT", - "doc": { - "category": "exceptions", - "description": "For `0 <= n < 2^11`, an encoding of `[n] THROWIFNOT` for larger values of `n`.", - "gas": "34/84", - "fift": "[n] THROWIFNOT" - }, - "bytecode": { - "doc_opcode": "F2E4_n", - "tlb": "#F2E4_ n:uint11", - "prefix": "F2E4_", - "operands": [ - { - "name": "n", - "loader": "uint", - "loader_args": { - "size": 11 - } - } - ] - }, - "value_flow": { - "doc_stack": "f - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "f", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - ] - } - } - }, - { - "mnemonic": "THROWARGIFNOT", - "doc": { - "category": "exceptions", - "description": "Throws exception `0 <= n < 2^11` with parameter `x` only if integer `f=0`.", - "gas": "34/84", - "fift": "[n] THROWARGIFNOT" - }, - "bytecode": { - "doc_opcode": "F2EC_n", - "tlb": "#F2EC_ n:uint11", - "prefix": "F2EC_", - "operands": [ - { - "name": "n", - "loader": "uint", - "loader_args": { - "size": 11 - } - } - ] - }, - "value_flow": { - "doc_stack": "x f - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x" - }, - { - "type": "simple", - "name": "f", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - ] - } - } - }, - { - "mnemonic": "THROWANY", - "doc": { - "category": "exceptions", - "description": "Throws exception `0 <= n < 2^16` with parameter zero.\nApproximately equivalent to `ZERO` `SWAP` `THROWARGANY`.", - "gas": "76", - "fift": "THROWANY" - }, - "bytecode": { - "doc_opcode": "F2F0", - "tlb": "#F2F0", - "prefix": "F2F0", - "operands": [] - }, - "value_flow": { - "doc_stack": "n - 0 n", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - ] - } - } - }, - { - "mnemonic": "THROWARGANY", - "doc": { - "category": "exceptions", - "description": "Throws exception `0 <= n < 2^16` with parameter `x`, transferring control to the continuation in `c2`.\nApproximately equivalent to `c2 PUSHCTR` `2 JMPXARGS`.", - "gas": "76", - "fift": "THROWARGANY" - }, - "bytecode": { - "doc_opcode": "F2F1", - "tlb": "#F2F1", - "prefix": "F2F1", - "operands": [] - }, - "value_flow": { - "doc_stack": "x n - x n", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x" - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - ] - } - } - }, - { - "mnemonic": "THROWANYIF", - "doc": { - "category": "exceptions", - "description": "Throws exception `0 <= n < 2^16` with parameter zero only if `f!=0`.", - "gas": "26/76", - "fift": "THROWANYIF" - }, - "bytecode": { - "doc_opcode": "F2F2", - "tlb": "#F2F2", - "prefix": "F2F2", - "operands": [] - }, - "value_flow": { - "doc_stack": "n f - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "f", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - ] - } - } - }, - { - "mnemonic": "THROWARGANYIF", - "doc": { - "category": "exceptions", - "description": "Throws exception `0 <= n<2^16` with parameter `x` only if `f!=0`.", - "gas": "26/76", - "fift": "THROWARGANYIF" - }, - "bytecode": { - "doc_opcode": "F2F3", - "tlb": "#F2F3", - "prefix": "F2F3", - "operands": [] - }, - "value_flow": { - "doc_stack": "x n f - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x" - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "f", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - ] - } - } - }, - { - "mnemonic": "THROWANYIFNOT", - "doc": { - "category": "exceptions", - "description": "Throws exception `0 <= n<2^16` with parameter zero only if `f=0`.", - "gas": "26/76", - "fift": "THROWANYIFNOT" - }, - "bytecode": { - "doc_opcode": "F2F4", - "tlb": "#F2F4", - "prefix": "F2F4", - "operands": [] - }, - "value_flow": { - "doc_stack": "n f - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "f", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - ] - } - } - }, - { - "mnemonic": "THROWARGANYIFNOT", - "doc": { - "category": "exceptions", - "description": "Throws exception `0 <= n<2^16` with parameter `x` only if `f=0`.", - "gas": "26/76", - "fift": "THROWARGANYIFNOT" - }, - "bytecode": { - "doc_opcode": "F2F5", - "tlb": "#F2F5", - "prefix": "F2F5", - "operands": [] - }, - "value_flow": { - "doc_stack": "x n f - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x" - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "f", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - ] - } - } - }, - { - "mnemonic": "TRY", - "doc": { - "category": "exceptions", - "description": "Sets `c2` to `c'`, first saving the old value of `c2` both into the savelist of `c'` and into the savelist of the current continuation, which is stored into `c.c0` and `c'.c0`. Then runs `c` similarly to `EXECUTE`. If `c` does not throw any exceptions, the original value of `c2` is automatically restored on return from `c`. If an exception occurs, the execution is transferred to `c'`, but the original value of `c2` is restored in the process, so that `c'` can re-throw the exception by `THROWANY` if it cannot handle it by itself.", - "gas": "26", - "fift": "TRY", - "fift_examples": [ - { - "fift": "TRY:<{ code1 }>CATCH<{ code2 }>", - "description": "Equivalent to `<{ code1 }> CONT` `<{ code2 }> CONT` `TRY`." - } - ] - }, - "bytecode": { - "doc_opcode": "F2FF", - "tlb": "#F2FF", - "prefix": "F2FF", - "operands": [] - }, - "value_flow": { - "doc_stack": "c c' - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Continuation"] - }, - { - "type": "simple", - "name": "c2", - "value_types": ["Continuation"] - } - ] - }, - "outputs": { - "stack": [ - ] - } - }, - "control_flow": { - "branches": [ - { - "type": "variable", - "var_name": "c", - "save": { - "c0": { - "type": "cc", - "save": { - "c0": { "type": "register", "index": 0 }, - "c1": { "type": "register", "index": 1 }, - "c2": { "type": "register", "index": 2 } - } - }, - "c2": { - "type": "variable", - "var_name": "c2", - "save": { - "c0": { - "type": "cc", - "save": { - "c0": { "type": "register", "index": 0 }, - "c1": { "type": "register", "index": 1 }, - "c2": { "type": "register", "index": 2 } - } - }, - "c2": { "type": "register", "index": 2 } - } - } - } - } - ] - } - }, - { - "mnemonic": "TRYARGS", - "doc": { - "category": "exceptions", - "description": "Similar to `TRY`, but with `[p] [r] CALLXARGS` internally used instead of `EXECUTE`.\nIn this way, all but the top `0 <= p <= 15` stack elements will be saved into current continuation's stack, and then restored upon return from either `c` or `c'`, with the top `0 <= r <= 15` values of the resulting stack of `c` or `c'` copied as return values.", - "gas": "26", - "fift": "[p] [r] TRYARGS" - }, - "bytecode": { - "doc_opcode": "F3pr", - "tlb": "#F3 p:uint4 r:uint4", - "prefix": "F3", - "operands": [ - { - "name": "p", - "loader": "uint", - "loader_args": { - "size": 4 - } - }, - { - "name": "r", - "loader": "uint", - "loader_args": { - "size": 4 - } - } - ] - }, - "value_flow": { - "doc_stack": "c c' - ", - "inputs": { - "stack": [ - { - "type": "array", - "name": "args", - "length_var": "r", - "array_entry": [ - { - "type": "simple", - "name": "arg" - } - ] - }, - { - "type": "simple", - "name": "c", - "value_types": ["Continuation"] - }, - { - "type": "simple", - "name": "c2", - "value_types": ["Continuation"] - } - ] - }, - "outputs": { - "stack": [ - ] - } - }, - "control_flow": { - "branches": [ - { - "type": "variable", - "var_name": "c", - "save": { - "c0": { - "type": "cc", - "save": { - "c0": { "type": "register", "index": 0 }, - "c1": { "type": "register", "index": 1 }, - "c2": { "type": "register", "index": 2 } - } - }, - "c2": { - "type": "variable", - "var_name": "c2", - "save": { - "c0": { - "type": "cc", - "save": { - "c0": { "type": "register", "index": 0 }, - "c1": { "type": "register", "index": 1 }, - "c2": { "type": "register", "index": 2 } - } - }, - "c2": { "type": "register", "index": 2 } - } - } - } - } - ] - } - }, - { - "mnemonic": "STDICT", - "doc": { - "category": "dict_serial", - "description": "Stores dictionary `D` into _Builder_ `b`, returing the resulting _Builder_ `b'`.\nIn other words, if `D` is a cell, performs `STONE` and `STREF`; if `D` is _Null_, performs `NIP` and `STZERO`; otherwise throws a type checking exception.", - "gas": "26", - "fift": "STDICT\nSTOPTREF" - }, - "bytecode": { - "doc_opcode": "F400", - "tlb": "#F400", - "prefix": "F400", - "operands": [] - }, - "value_flow": { - "doc_stack": "D b - b'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - } - ] - } - } - }, - { - "mnemonic": "SKIPDICT", - "doc": { - "category": "dict_serial", - "description": "Equivalent to `LDDICT` `NIP`.", - "gas": "26", - "fift": "SKIPDICT\nSKIPOPTREF" - }, - "bytecode": { - "doc_opcode": "F401", - "tlb": "#F401", - "prefix": "F401", - "operands": [] - }, - "value_flow": { - "doc_stack": "s - s'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "LDDICTS", - "doc": { - "category": "dict_serial", - "description": "Loads (parses) a (_Slice_-represented) dictionary `s'` from _Slice_ `s`, and returns the remainder of `s` as `s''`.\nThis is a \u0432\u0402\u045asplit function'' for all `HashmapE(n,X)` dictionary types.", - "gas": "26", - "fift": "LDDICTS" - }, - "bytecode": { - "doc_opcode": "F402", - "tlb": "#F402", - "prefix": "F402", - "operands": [] - }, - "value_flow": { - "doc_stack": "s - s' s''", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "s3", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "PLDDICTS", - "doc": { - "category": "dict_serial", - "description": "Preloads a (_Slice_-represented) dictionary `s'` from _Slice_ `s`.\nApproximately equivalent to `LDDICTS` `DROP`.", - "gas": "26", - "fift": "PLDDICTS" - }, - "bytecode": { - "doc_opcode": "F403", - "tlb": "#F403", - "prefix": "F403", - "operands": [] - }, - "value_flow": { - "doc_stack": "s - s'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "LDDICT", - "doc": { - "category": "dict_serial", - "description": "Loads (parses) a dictionary `D` from _Slice_ `s`, and returns the remainder of `s` as `s'`. May be applied to dictionaries or to values of arbitrary `(^Y)?` types.", - "gas": "26", - "fift": "LDDICT\nLDOPTREF" - }, - "bytecode": { - "doc_opcode": "F404", - "tlb": "#F404", - "prefix": "F404", - "operands": [] - }, - "value_flow": { - "doc_stack": "s - D s'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "PLDDICT", - "doc": { - "category": "dict_serial", - "description": "Preloads a dictionary `D` from _Slice_ `s`.\nApproximately equivalent to `LDDICT` `DROP`.", - "gas": "26", - "fift": "PLDDICT\nPLDOPTREF" - }, - "bytecode": { - "doc_opcode": "F405", - "tlb": "#F405", - "prefix": "F405", - "operands": [] - }, - "value_flow": { - "doc_stack": "s - D", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - } - ] - } - } - }, - { - "mnemonic": "LDDICTQ", - "doc": { - "category": "dict_serial", - "description": "A quiet version of `LDDICT`.", - "gas": "26", - "fift": "LDDICTQ" - }, - "bytecode": { - "doc_opcode": "F406", - "tlb": "#F406", - "prefix": "F406", - "operands": [] - }, - "value_flow": { - "doc_stack": "s - D s' -1 or s 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Integer"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "PLDDICTQ", - "doc": { - "category": "dict_serial", - "description": "A quiet version of `PLDDICT`.", - "gas": "26", - "fift": "PLDDICTQ" - }, - "bytecode": { - "doc_opcode": "F407", - "tlb": "#F407", - "prefix": "F407", - "operands": [] - }, - "value_flow": { - "doc_stack": "s - D -1 or 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTGET", - "doc": { - "category": "dict_get", - "description": "Looks up key `k` (represented by a _Slice_, the first `0 <= n <= 1023` data bits of which are used as a key) in dictionary `D` of type `HashmapE(n,X)` with `n`-bit keys.\nOn success, returns the value found as a _Slice_ `x`.", - "gas": "", - "fift": "DICTGET" - }, - "bytecode": { - "doc_opcode": "F40A", - "tlb": "#F40A", - "prefix": "F40A", - "operands": [] - }, - "value_flow": { - "doc_stack": "k D n - x -1 or 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "k", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTGETREF", - "doc": { - "category": "dict_get", - "description": "Similar to `DICTGET`, but with a `LDREF` `ENDS` applied to `x` on success.\nThis operation is useful for dictionaries of type `HashmapE(n,^Y)`.", - "gas": "", - "fift": "DICTGETREF" - }, - "bytecode": { - "doc_opcode": "F40B", - "tlb": "#F40B", - "prefix": "F40B", - "operands": [] - }, - "value_flow": { - "doc_stack": "k D n - c -1 or 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "k", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": [ - "Integer" - ] - } - ] - } - } - }, - { - "mnemonic": "DICTIGET", - "doc": { - "category": "dict_get", - "description": "Similar to `DICTGET`, but with a signed (big-endian) `n`-bit _Integer_ `i` as a key. If `i` does not fit into `n` bits, returns `0`. If `i` is a `NaN`, throws an integer overflow exception.", - "gas": "", - "fift": "DICTIGET" - }, - "bytecode": { - "doc_opcode": "F40C", - "tlb": "#F40C", - "prefix": "F40C", - "operands": [] - }, - "value_flow": { - "doc_stack": "i D n - x -1 or 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Cell", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTIGETREF", - "doc": { - "category": "dict_get", - "description": "Combines `DICTIGET` with `DICTGETREF`: it uses signed `n`-bit _Integer_ `i` as a key and returns a _Cell_ instead of a _Slice_ on success.", - "gas": "", - "fift": "DICTIGETREF" - }, - "bytecode": { - "doc_opcode": "F40D", - "tlb": "#F40D", - "prefix": "F40D", - "operands": [] - }, - "value_flow": { - "doc_stack": "i D n - c -1 or 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Cell", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTUGET", - "doc": { - "category": "dict_get", - "description": "Similar to `DICTIGET`, but with _unsigned_ (big-endian) `n`-bit _Integer_ `i` used as a key.", - "gas": "", - "fift": "DICTUGET" - }, - "bytecode": { - "doc_opcode": "F40E", - "tlb": "#F40E", - "prefix": "F40E", - "operands": [] - }, - "value_flow": { - "doc_stack": "i D n - x -1 or 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Cell", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTUGETREF", - "doc": { - "category": "dict_get", - "description": "Similar to `DICTIGETREF`, but with an unsigned `n`-bit _Integer_ key `i`.", - "gas": "", - "fift": "DICTUGETREF" - }, - "bytecode": { - "doc_opcode": "F40F", - "tlb": "#F40F", - "prefix": "F40F", - "operands": [] - }, - "value_flow": { - "doc_stack": "i D n - c -1 or 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Cell", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTSET", - "doc": { - "category": "dict_set", - "description": "Sets the value associated with `n`-bit key `k` (represented by a _Slice_ as in `DICTGET`) in dictionary `D` (also represented by a _Slice_) to value `x` (again a _Slice_), and returns the resulting dictionary as `D'`.", - "gas": "", - "fift": "DICTSET" - }, - "bytecode": { - "doc_opcode": "F412", - "tlb": "#F412", - "prefix": "F412", - "operands": [] - }, - "value_flow": { - "doc_stack": "x k D n - D'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "k", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "DICTSETREF", - "doc": { - "category": "dict_set", - "description": "Similar to `DICTSET`, but with the value set to a reference to _Cell_ `c`.", - "gas": "", - "fift": "DICTSETREF" - }, - "bytecode": { - "doc_opcode": "F413", - "tlb": "#F413", - "prefix": "F413", - "operands": [] - }, - "value_flow": { - "doc_stack": "c k D n - D'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - }, - { - "type": "simple", - "name": "k", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "DICTISET", - "doc": { - "category": "dict_set", - "description": "Similar to `DICTSET`, but with the key represented by a (big-endian) signed `n`-bit integer `i`. If `i` does not fit into `n` bits, a range check exception is generated.", - "gas": "", - "fift": "DICTISET" - }, - "bytecode": { - "doc_opcode": "F414", - "tlb": "#F414", - "prefix": "F414", - "operands": [] - }, - "value_flow": { - "doc_stack": "x i D n - D'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "DICTISETREF", - "doc": { - "category": "dict_set", - "description": "Similar to `DICTSETREF`, but with the key a signed `n`-bit integer as in `DICTISET`.", - "gas": "", - "fift": "DICTISETREF" - }, - "bytecode": { - "doc_opcode": "F415", - "tlb": "#F415", - "prefix": "F415", - "operands": [] - }, - "value_flow": { - "doc_stack": "c i D n - D'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - }, - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "DICTUSET", - "doc": { - "category": "dict_set", - "description": "Similar to `DICTISET`, but with `i` an _unsigned_ `n`-bit integer.", - "gas": "", - "fift": "DICTUSET" - }, - "bytecode": { - "doc_opcode": "F416", - "tlb": "#F416", - "prefix": "F416", - "operands": [] - }, - "value_flow": { - "doc_stack": "x i D n - D'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "DICTUSETREF", - "doc": { - "category": "dict_set", - "description": "Similar to `DICTISETREF`, but with `i` unsigned.", - "gas": "", - "fift": "DICTUSETREF" - }, - "bytecode": { - "doc_opcode": "F417", - "tlb": "#F417", - "prefix": "F417", - "operands": [] - }, - "value_flow": { - "doc_stack": "c i D n - D'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - }, - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "DICTSETGET", - "doc": { - "category": "dict_set", - "description": "Combines `DICTSET` with `DICTGET`: it sets the value corresponding to key `k` to `x`, but also returns the old value `y` associated with the key in question, if present.", - "gas": "", - "fift": "DICTSETGET" - }, - "bytecode": { - "doc_opcode": "F41A", - "tlb": "#F41A", - "prefix": "F41A", - "operands": [] - }, - "value_flow": { - "doc_stack": "x k D n - D' y -1 or D' 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "k", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTSETGETREF", - "doc": { - "category": "dict_set", - "description": "Combines `DICTSETREF` with `DICTGETREF` similarly to `DICTSETGET`.", - "gas": "", - "fift": "DICTSETGETREF" - }, - "bytecode": { - "doc_opcode": "F41B", - "tlb": "#F41B", - "prefix": "F41B", - "operands": [] - }, - "value_flow": { - "doc_stack": "c k D n - D' c' -1 or D' 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - }, - { - "type": "simple", - "name": "k", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "c2", - "value_types": ["Cell"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTISETGET", - "doc": { - "category": "dict_set", - "description": "`DICTISETGET`, but with `i` a signed `n`-bit integer.", - "gas": "", - "fift": "DICTISETGET" - }, - "bytecode": { - "doc_opcode": "F41C", - "tlb": "#F41C", - "prefix": "F41C", - "operands": [] - }, - "value_flow": { - "doc_stack": "x i D n - D' y -1 or D' 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTISETGETREF", - "doc": { - "category": "dict_set", - "description": "`DICTISETGETREF`, but with `i` a signed `n`-bit integer.", - "gas": "", - "fift": "DICTISETGETREF" - }, - "bytecode": { - "doc_opcode": "F41D", - "tlb": "#F41D", - "prefix": "F41D", - "operands": [] - }, - "value_flow": { - "doc_stack": "c i D n - D' c' -1 or D' 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - }, - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "c2", - "value_types": ["Cell"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTUSETGET", - "doc": { - "category": "dict_set", - "description": "`DICTISETGET`, but with `i` an unsigned `n`-bit integer.", - "gas": "", - "fift": "DICTUSETGET" - }, - "bytecode": { - "doc_opcode": "F41E", - "tlb": "#F41E", - "prefix": "F41E", - "operands": [] - }, - "value_flow": { - "doc_stack": "x i D n - D' y -1 or D' 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTUSETGETREF", - "doc": { - "category": "dict_set", - "description": "`DICTISETGETREF`, but with `i` an unsigned `n`-bit integer.", - "gas": "", - "fift": "DICTUSETGETREF" - }, - "bytecode": { - "doc_opcode": "F41F", - "tlb": "#F41F", - "prefix": "F41F", - "operands": [] - }, - "value_flow": { - "doc_stack": "c i D n - D' c' -1 or D' 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - }, - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "c2", - "value_types": ["Cell"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTREPLACE", - "doc": { - "category": "dict_set", - "description": "A _Replace_ operation, which is similar to `DICTSET`, but sets the value of key `k` in dictionary `D` to `x` only if the key `k` was already present in `D`.", - "gas": "", - "fift": "DICTREPLACE" - }, - "bytecode": { - "doc_opcode": "F422", - "tlb": "#F422", - "prefix": "F422", - "operands": [] - }, - "value_flow": { - "doc_stack": "x k D n - D' -1 or D 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "k", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTREPLACEREF", - "doc": { - "category": "dict_set", - "description": "A _Replace_ counterpart of `DICTSETREF`.", - "gas": "", - "fift": "DICTREPLACEREF" - }, - "bytecode": { - "doc_opcode": "F423", - "tlb": "#F423", - "prefix": "F423", - "operands": [] - }, - "value_flow": { - "doc_stack": "c k D n - D' -1 or D 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - }, - { - "type": "simple", - "name": "k", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTIREPLACE", - "doc": { - "category": "dict_set", - "description": "`DICTREPLACE`, but with `i` a signed `n`-bit integer.", - "gas": "", - "fift": "DICTIREPLACE" - }, - "bytecode": { - "doc_opcode": "F424", - "tlb": "#F424", - "prefix": "F424", - "operands": [] - }, - "value_flow": { - "doc_stack": "x i D n - D' -1 or D 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTIREPLACEREF", - "doc": { - "category": "dict_set", - "description": "`DICTREPLACEREF`, but with `i` a signed `n`-bit integer.", - "gas": "", - "fift": "DICTIREPLACEREF" - }, - "bytecode": { - "doc_opcode": "F425", - "tlb": "#F425", - "prefix": "F425", - "operands": [] - }, - "value_flow": { - "doc_stack": "c i D n - D' -1 or D 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - }, - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTUREPLACE", - "doc": { - "category": "dict_set", - "description": "`DICTREPLACE`, but with `i` an unsigned `n`-bit integer.", - "gas": "", - "fift": "DICTUREPLACE" - }, - "bytecode": { - "doc_opcode": "F426", - "tlb": "#F426", - "prefix": "F426", - "operands": [] - }, - "value_flow": { - "doc_stack": "x i D n - D' -1 or D 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTUREPLACEREF", - "doc": { - "category": "dict_set", - "description": "`DICTREPLACEREF`, but with `i` an unsigned `n`-bit integer.", - "gas": "", - "fift": "DICTUREPLACEREF" - }, - "bytecode": { - "doc_opcode": "F427", - "tlb": "#F427", - "prefix": "F427", - "operands": [] - }, - "value_flow": { - "doc_stack": "c i D n - D' -1 or D 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - }, - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTREPLACEGET", - "doc": { - "category": "dict_set", - "description": "A _Replace_ counterpart of `DICTSETGET`: on success, also returns the old value associated with the key in question.", - "gas": "", - "fift": "DICTREPLACEGET" - }, - "bytecode": { - "doc_opcode": "F42A", - "tlb": "#F42A", - "prefix": "F42A", - "operands": [] - }, - "value_flow": { - "doc_stack": "x k D n - D' y -1 or D 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "k", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTREPLACEGETREF", - "doc": { - "category": "dict_set", - "description": "A _Replace_ counterpart of `DICTSETGETREF`.", - "gas": "", - "fift": "DICTREPLACEGETREF" - }, - "bytecode": { - "doc_opcode": "F42B", - "tlb": "#F42B", - "prefix": "F42B", - "operands": [] - }, - "value_flow": { - "doc_stack": "c k D n - D' c' -1 or D 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - }, - { - "type": "simple", - "name": "k", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "c2", - "value_types": ["Cell"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTIREPLACEGET", - "doc": { - "category": "dict_set", - "description": "`DICTREPLACEGET`, but with `i` a signed `n`-bit integer.", - "gas": "", - "fift": "DICTIREPLACEGET" - }, - "bytecode": { - "doc_opcode": "F42C", - "tlb": "#F42C", - "prefix": "F42C", - "operands": [] - }, - "value_flow": { - "doc_stack": "x i D n - D' y -1 or D 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTIREPLACEGETREF", - "doc": { - "category": "dict_set", - "description": "`DICTREPLACEGETREF`, but with `i` a signed `n`-bit integer.", - "gas": "", - "fift": "DICTIREPLACEGETREF" - }, - "bytecode": { - "doc_opcode": "F42D", - "tlb": "#F42D", - "prefix": "F42D", - "operands": [] - }, - "value_flow": { - "doc_stack": "c i D n - D' c' -1 or D 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - }, - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "c2", - "value_types": ["Cell"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTUREPLACEGET", - "doc": { - "category": "dict_set", - "description": "`DICTREPLACEGET`, but with `i` an unsigned `n`-bit integer.", - "gas": "", - "fift": "DICTUREPLACEGET" - }, - "bytecode": { - "doc_opcode": "F42E", - "tlb": "#F42E", - "prefix": "F42E", - "operands": [] - }, - "value_flow": { - "doc_stack": "x i D n - D' y -1 or D 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTUREPLACEGETREF", - "doc": { - "category": "dict_set", - "description": "`DICTREPLACEGETREF`, but with `i` an unsigned `n`-bit integer.", - "gas": "", - "fift": "DICTUREPLACEGETREF" - }, - "bytecode": { - "doc_opcode": "F42F", - "tlb": "#F42F", - "prefix": "F42F", - "operands": [] - }, - "value_flow": { - "doc_stack": "c i D n - D' c' -1 or D 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - }, - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "c2", - "value_types": ["Cell"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTADD", - "doc": { - "category": "dict_set", - "description": "An _Add_ counterpart of `DICTSET`: sets the value associated with key `k` in dictionary `D` to `x`, but only if it is not already present in `D`.", - "gas": "", - "fift": "DICTADD" - }, - "bytecode": { - "doc_opcode": "F432", - "tlb": "#F432", - "prefix": "F432", - "operands": [] - }, - "value_flow": { - "doc_stack": "x k D n - D' -1 or D 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "k", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTADDREF", - "doc": { - "category": "dict_set", - "description": "An _Add_ counterpart of `DICTSETREF`.", - "gas": "", - "fift": "DICTADDREF" - }, - "bytecode": { - "doc_opcode": "F433", - "tlb": "#F433", - "prefix": "F433", - "operands": [] - }, - "value_flow": { - "doc_stack": "c k D n - D' -1 or D 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - }, - { - "type": "simple", - "name": "k", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTIADD", - "doc": { - "category": "dict_set", - "description": "`DICTADD`, but with `i` a signed `n`-bit integer.", - "gas": "", - "fift": "DICTIADD" - }, - "bytecode": { - "doc_opcode": "F434", - "tlb": "#F434", - "prefix": "F434", - "operands": [] - }, - "value_flow": { - "doc_stack": "x i D n - D' -1 or D 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTIADDREF", - "doc": { - "category": "dict_set", - "description": "`DICTADDREF`, but with `i` a signed `n`-bit integer.", - "gas": "", - "fift": "DICTIADDREF" - }, - "bytecode": { - "doc_opcode": "F435", - "tlb": "#F435", - "prefix": "F435", - "operands": [] - }, - "value_flow": { - "doc_stack": "c i D n - D' -1 or D 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - }, - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTUADD", - "doc": { - "category": "dict_set", - "description": "`DICTADD`, but with `i` an unsigned `n`-bit integer.", - "gas": "", - "fift": "DICTUADD" - }, - "bytecode": { - "doc_opcode": "F436", - "tlb": "#F436", - "prefix": "F436", - "operands": [] - }, - "value_flow": { - "doc_stack": "x i D n - D' -1 or D 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTUADDREF", - "doc": { - "category": "dict_set", - "description": "`DICTADDREF`, but with `i` an unsigned `n`-bit integer.", - "gas": "", - "fift": "DICTUADDREF" - }, - "bytecode": { - "doc_opcode": "F437", - "tlb": "#F437", - "prefix": "F437", - "operands": [] - }, - "value_flow": { - "doc_stack": "c i D n - D' -1 or D 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - }, - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTADDGET", - "doc": { - "category": "dict_set", - "description": "An _Add_ counterpart of `DICTSETGET`: sets the value associated with key `k` in dictionary `D` to `x`, but only if key `k` is not already present in `D`. Otherwise, just returns the old value `y` without changing the dictionary.", - "gas": "", - "fift": "DICTADDGET" - }, - "bytecode": { - "doc_opcode": "F43A", - "tlb": "#F43A", - "prefix": "F43A", - "operands": [] - }, - "value_flow": { - "doc_stack": "x k D n - D' -1 or D y 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "k", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Slice"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTADDGETREF", - "doc": { - "category": "dict_set", - "description": "An _Add_ counterpart of `DICTSETGETREF`.", - "gas": "", - "fift": "DICTADDGETREF" - }, - "bytecode": { - "doc_opcode": "F43B", - "tlb": "#F43B", - "prefix": "F43B", - "operands": [] - }, - "value_flow": { - "doc_stack": "c k D n - D' -1 or D c' 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - }, - { - "type": "simple", - "name": "k", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "c2", - "value_types": ["Cell"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTIADDGET", - "doc": { - "category": "dict_set", - "description": "`DICTADDGET`, but with `i` a signed `n`-bit integer.", - "gas": "", - "fift": "DICTIADDGET" - }, - "bytecode": { - "doc_opcode": "F43C", - "tlb": "#F43C", - "prefix": "F43C", - "operands": [] - }, - "value_flow": { - "doc_stack": "x i D n - D' -1 or D y 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Slice"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTIADDGETREF", - "doc": { - "category": "dict_set", - "description": "`DICTADDGETREF`, but with `i` a signed `n`-bit integer.", - "gas": "", - "fift": "DICTIADDGETREF" - }, - "bytecode": { - "doc_opcode": "F43D", - "tlb": "#F43D", - "prefix": "F43D", - "operands": [] - }, - "value_flow": { - "doc_stack": "c i D n - D' -1 or D c' 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - }, - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "c2", - "value_types": ["Cell"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTUADDGET", - "doc": { - "category": "dict_set", - "description": "`DICTADDGET`, but with `i` an unsigned `n`-bit integer.", - "gas": "", - "fift": "DICTUADDGET" - }, - "bytecode": { - "doc_opcode": "F43E", - "tlb": "#F43E", - "prefix": "F43E", - "operands": [] - }, - "value_flow": { - "doc_stack": "x i D n - D' -1 or D y 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Slice"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTUADDGETREF", - "doc": { - "category": "dict_set", - "description": "`DICTADDGETREF`, but with `i` an unsigned `n`-bit integer.", - "gas": "", - "fift": "DICTUADDGETREF" - }, - "bytecode": { - "doc_opcode": "F43F", - "tlb": "#F43F", - "prefix": "F43F", - "operands": [] - }, - "value_flow": { - "doc_stack": "c i D n - D' -1 or D c' 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - }, - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "c2", - "value_types": ["Cell"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTSETB", - "doc": { - "category": "dict_set_builder", - "description": "", - "gas": "", - "fift": "DICTSETB" - }, - "bytecode": { - "doc_opcode": "F441", - "tlb": "#F441", - "prefix": "F441", - "operands": [] - }, - "value_flow": { - "doc_stack": "b k D n - D'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "k", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "DICTISETB", - "doc": { - "category": "dict_set_builder", - "description": "", - "gas": "", - "fift": "DICTISETB" - }, - "bytecode": { - "doc_opcode": "F442", - "tlb": "#F442", - "prefix": "F442", - "operands": [] - }, - "value_flow": { - "doc_stack": "b i D n - D'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "DICTUSETB", - "doc": { - "category": "dict_set_builder", - "description": "", - "gas": "", - "fift": "DICTUSETB" - }, - "bytecode": { - "doc_opcode": "F443", - "tlb": "#F443", - "prefix": "F443", - "operands": [] - }, - "value_flow": { - "doc_stack": "b i D n - D'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "DICTSETGETB", - "doc": { - "category": "dict_set_builder", - "description": "", - "gas": "", - "fift": "DICTSETGETB" - }, - "bytecode": { - "doc_opcode": "F445", - "tlb": "#F445", - "prefix": "F445", - "operands": [] - }, - "value_flow": { - "doc_stack": "b k D n - D' y -1 or D' 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "k", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTISETGETB", - "doc": { - "category": "dict_set_builder", - "description": "", - "gas": "", - "fift": "DICTISETGETB" - }, - "bytecode": { - "doc_opcode": "F446", - "tlb": "#F446", - "prefix": "F446", - "operands": [] - }, - "value_flow": { - "doc_stack": "b i D n - D' y -1 or D' 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTUSETGETB", - "doc": { - "category": "dict_set_builder", - "description": "", - "gas": "", - "fift": "DICTUSETGETB" - }, - "bytecode": { - "doc_opcode": "F447", - "tlb": "#F447", - "prefix": "F447", - "operands": [] - }, - "value_flow": { - "doc_stack": "b i D n - D' y -1 or D' 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTREPLACEB", - "doc": { - "category": "dict_set_builder", - "description": "", - "gas": "", - "fift": "DICTREPLACEB" - }, - "bytecode": { - "doc_opcode": "F449", - "tlb": "#F449", - "prefix": "F449", - "operands": [] - }, - "value_flow": { - "doc_stack": "b k D n - D' -1 or D 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "k", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTIREPLACEB", - "doc": { - "category": "dict_set_builder", - "description": "", - "gas": "", - "fift": "DICTIREPLACEB" - }, - "bytecode": { - "doc_opcode": "F44A", - "tlb": "#F44A", - "prefix": "F44A", - "operands": [] - }, - "value_flow": { - "doc_stack": "b i D n - D' -1 or D 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTUREPLACEB", - "doc": { - "category": "dict_set_builder", - "description": "", - "gas": "", - "fift": "DICTUREPLACEB" - }, - "bytecode": { - "doc_opcode": "F44B", - "tlb": "#F44B", - "prefix": "F44B", - "operands": [] - }, - "value_flow": { - "doc_stack": "b i D n - D' -1 or D 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTREPLACEGETB", - "doc": { - "category": "dict_set_builder", - "description": "", - "gas": "", - "fift": "DICTREPLACEGETB" - }, - "bytecode": { - "doc_opcode": "F44D", - "tlb": "#F44D", - "prefix": "F44D", - "operands": [] - }, - "value_flow": { - "doc_stack": "b k D n - D' y -1 or D 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "k", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTIREPLACEGETB", - "doc": { - "category": "dict_set_builder", - "description": "", - "gas": "", - "fift": "DICTIREPLACEGETB" - }, - "bytecode": { - "doc_opcode": "F44E", - "tlb": "#F44E", - "prefix": "F44E", - "operands": [] - }, - "value_flow": { - "doc_stack": "b i D n - D' y -1 or D 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTUREPLACEGETB", - "doc": { - "category": "dict_set_builder", - "description": "", - "gas": "", - "fift": "DICTUREPLACEGETB" - }, - "bytecode": { - "doc_opcode": "F44F", - "tlb": "#F44F", - "prefix": "F44F", - "operands": [] - }, - "value_flow": { - "doc_stack": "b i D n - D' y -1 or D 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTADDB", - "doc": { - "category": "dict_set_builder", - "description": "", - "gas": "", - "fift": "DICTADDB" - }, - "bytecode": { - "doc_opcode": "F451", - "tlb": "#F451", - "prefix": "F451", - "operands": [] - }, - "value_flow": { - "doc_stack": "b k D n - D' -1 or D 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "k", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTIADDB", - "doc": { - "category": "dict_set_builder", - "description": "", - "gas": "", - "fift": "DICTIADDB" - }, - "bytecode": { - "doc_opcode": "F452", - "tlb": "#F452", - "prefix": "F452", - "operands": [] - }, - "value_flow": { - "doc_stack": "b i D n - D' -1 or D 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTUADDB", - "doc": { - "category": "dict_set_builder", - "description": "", - "gas": "", - "fift": "DICTUADDB" - }, - "bytecode": { - "doc_opcode": "F453", - "tlb": "#F453", - "prefix": "F453", - "operands": [] - }, - "value_flow": { - "doc_stack": "b i D n - D' -1 or D 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTADDGETB", - "doc": { - "category": "dict_set_builder", - "description": "", - "gas": "", - "fift": "DICTADDGETB" - }, - "bytecode": { - "doc_opcode": "F455", - "tlb": "#F455", - "prefix": "F455", - "operands": [] - }, - "value_flow": { - "doc_stack": "b k D n - D' -1 or D y 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "k", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Slice"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTIADDGETB", - "doc": { - "category": "dict_set_builder", - "description": "", - "gas": "", - "fift": "DICTIADDGETB" - }, - "bytecode": { - "doc_opcode": "F456", - "tlb": "#F456", - "prefix": "F456", - "operands": [] - }, - "value_flow": { - "doc_stack": "b i D n - D' -1 or D y 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Slice"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTUADDGETB", - "doc": { - "category": "dict_set_builder", - "description": "", - "gas": "", - "fift": "DICTUADDGETB" - }, - "bytecode": { - "doc_opcode": "F457", - "tlb": "#F457", - "prefix": "F457", - "operands": [] - }, - "value_flow": { - "doc_stack": "b i D n - D' -1 or D y 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Slice"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTDEL", - "doc": { - "category": "dict_delete", - "description": "Deletes `n`-bit key, represented by a _Slice_ `k`, from dictionary `D`. If the key is present, returns the modified dictionary `D'` and the success flag `-1`. Otherwise, returns the original dictionary `D` and `0`.", - "gas": "", - "fift": "DICTDEL" - }, - "bytecode": { - "doc_opcode": "F459", - "tlb": "#F459", - "prefix": "F459", - "operands": [] - }, - "value_flow": { - "doc_stack": "k D n - D' -1 or D 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "k", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice", "Null"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTIDEL", - "doc": { - "category": "dict_delete", - "description": "A version of `DICTDEL` with the key represented by a signed `n`-bit _Integer_ `i`. If `i` does not fit into `n` bits, simply returns `D` `0` (\u0432\u0402\u045akey not found, dictionary unmodified'').", - "gas": "", - "fift": "DICTIDEL" - }, - "bytecode": { - "doc_opcode": "F45A", - "tlb": "#F45A", - "prefix": "F45A", - "operands": [] - }, - "value_flow": { - "doc_stack": "i D n - D' ?", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice", "Null"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTUDEL", - "doc": { - "category": "dict_delete", - "description": "Similar to `DICTIDEL`, but with `i` an unsigned `n`-bit integer.", - "gas": "", - "fift": "DICTUDEL" - }, - "bytecode": { - "doc_opcode": "F45B", - "tlb": "#F45B", - "prefix": "F45B", - "operands": [] - }, - "value_flow": { - "doc_stack": "i D n - D' ?", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice", "Null"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTDELGET", - "doc": { - "category": "dict_delete", - "description": "Deletes `n`-bit key, represented by a _Slice_ `k`, from dictionary `D`. If the key is present, returns the modified dictionary `D'`, the original value `x` associated with the key `k` (represented by a _Slice_), and the success flag `-1`. Otherwise, returns the original dictionary `D` and `0`.", - "gas": "", - "fift": "DICTDELGET" - }, - "bytecode": { - "doc_opcode": "F462", - "tlb": "#F462", - "prefix": "F462", - "operands": [] - }, - "value_flow": { - "doc_stack": "k D n - D' x -1 or D 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "k", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "x", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTDELGETREF", - "doc": { - "category": "dict_delete", - "description": "Similar to `DICTDELGET`, but with `LDREF` `ENDS` applied to `x` on success, so that the value returned `c` is a _Cell_.", - "gas": "", - "fift": "DICTDELGETREF" - }, - "bytecode": { - "doc_opcode": "F463", - "tlb": "#F463", - "prefix": "F463", - "operands": [] - }, - "value_flow": { - "doc_stack": "k D n - D' c -1 or D 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "k", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTIDELGET", - "doc": { - "category": "dict_delete", - "description": "`DICTDELGET`, but with `i` a signed `n`-bit integer.", - "gas": "", - "fift": "DICTIDELGET" - }, - "bytecode": { - "doc_opcode": "F464", - "tlb": "#F464", - "prefix": "F464", - "operands": [] - }, - "value_flow": { - "doc_stack": "i D n - D' x -1 or D 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "x", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTIDELGETREF", - "doc": { - "category": "dict_delete", - "description": "`DICTDELGETREF`, but with `i` a signed `n`-bit integer.", - "gas": "", - "fift": "DICTIDELGETREF" - }, - "bytecode": { - "doc_opcode": "F465", - "tlb": "#F465", - "prefix": "F465", - "operands": [] - }, - "value_flow": { - "doc_stack": "i D n - D' c -1 or D 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTUDELGET", - "doc": { - "category": "dict_delete", - "description": "`DICTDELGET`, but with `i` an unsigned `n`-bit integer.", - "gas": "", - "fift": "DICTUDELGET" - }, - "bytecode": { - "doc_opcode": "F466", - "tlb": "#F466", - "prefix": "F466", - "operands": [] - }, - "value_flow": { - "doc_stack": "i D n - D' x -1 or D 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "x", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTUDELGETREF", - "doc": { - "category": "dict_delete", - "description": "`DICTDELGETREF`, but with `i` an unsigned `n`-bit integer.", - "gas": "", - "fift": "DICTUDELGETREF" - }, - "bytecode": { - "doc_opcode": "F467", - "tlb": "#F467", - "prefix": "F467", - "operands": [] - }, - "value_flow": { - "doc_stack": "i D n - D' c -1 or D 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTGETOPTREF", - "doc": { - "category": "dict_mayberef", - "description": "A variant of `DICTGETREF` that returns _Null_ instead of the value `c^?` if the key `k` is absent from dictionary `D`.", - "gas": "", - "fift": "DICTGETOPTREF" - }, - "bytecode": { - "doc_opcode": "F469", - "tlb": "#F469", - "prefix": "F469", - "operands": [] - }, - "value_flow": { - "doc_stack": "k D n - c^?", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "k", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Cell", "Null"] - } - ] - } - } - }, - { - "mnemonic": "DICTIGETOPTREF", - "doc": { - "category": "dict_mayberef", - "description": "`DICTGETOPTREF`, but with `i` a signed `n`-bit integer. If the key `i` is out of range, also returns _Null_.", - "gas": "", - "fift": "DICTIGETOPTREF" - }, - "bytecode": { - "doc_opcode": "F46A", - "tlb": "#F46A", - "prefix": "F46A", - "operands": [] - }, - "value_flow": { - "doc_stack": "i D n - c^?", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Cell", "Null"] - } - ] - } - } - }, - { - "mnemonic": "DICTUGETOPTREF", - "doc": { - "category": "dict_mayberef", - "description": "`DICTGETOPTREF`, but with `i` an unsigned `n`-bit integer. If the key `i` is out of range, also returns _Null_.", - "gas": "", - "fift": "DICTUGETOPTREF" - }, - "bytecode": { - "doc_opcode": "F46B", - "tlb": "#F46B", - "prefix": "F46B", - "operands": [] - }, - "value_flow": { - "doc_stack": "i D n - c^?", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Cell", "Null"] - } - ] - } - } - }, - { - "mnemonic": "DICTSETGETOPTREF", - "doc": { - "category": "dict_mayberef", - "description": "A variant of both `DICTGETOPTREF` and `DICTSETGETREF` that sets the value corresponding to key `k` in dictionary `D` to `c^?` (if `c^?` is _Null_, then the key is deleted instead), and returns the old value `~c^?` (if the key `k` was absent before, returns _Null_ instead).", - "gas": "", - "fift": "DICTSETGETOPTREF" - }, - "bytecode": { - "doc_opcode": "F46D", - "tlb": "#F46D", - "prefix": "F46D", - "operands": [] - }, - "value_flow": { - "doc_stack": "c^? k D n - D' ~c^?", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Cell", "Null"] - }, - { - "type": "simple", - "name": "k", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "c2", - "value_types": ["Cell", "Null"] - } - ] - } - } - }, - { - "mnemonic": "DICTISETGETOPTREF", - "doc": { - "category": "dict_mayberef", - "description": "Similar to primitive `DICTSETGETOPTREF`, but using signed `n`-bit _Integer_ `i` as a key. If `i` does not fit into `n` bits, throws a range checking exception.", - "gas": "", - "fift": "DICTISETGETOPTREF" - }, - "bytecode": { - "doc_opcode": "F46E", - "tlb": "#F46E", - "prefix": "F46E", - "operands": [] - }, - "value_flow": { - "doc_stack": "c^? i D n - D' ~c^?", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Cell", "Null"] - }, - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "c2", - "value_types": ["Cell", "Null"] - } - ] - } - } - }, - { - "mnemonic": "DICTUSETGETOPTREF", - "doc": { - "category": "dict_mayberef", - "description": "Similar to primitive `DICTSETGETOPTREF`, but using unsigned `n`-bit _Integer_ `i` as a key.", - "gas": "", - "fift": "DICTUSETGETOPTREF" - }, - "bytecode": { - "doc_opcode": "F46F", - "tlb": "#F46F", - "prefix": "F46F", - "operands": [] - }, - "value_flow": { - "doc_stack": "c^? i D n - D' ~c^?", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Cell", "Null"] - }, - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "c2", - "value_types": ["Cell", "Null"] - } - ] - } - } - }, - { - "mnemonic": "PFXDICTSET", - "doc": { - "category": "dict_prefix", - "description": "", - "gas": "", - "fift": "PFXDICTSET" - }, - "bytecode": { - "doc_opcode": "F470", - "tlb": "#F470", - "prefix": "F470", - "operands": [] - }, - "value_flow": { - "doc_stack": "x k D n - D' -1 or D 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "k", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice", "Null"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "PFXDICTREPLACE", - "doc": { - "category": "dict_prefix", - "description": "", - "gas": "", - "fift": "PFXDICTREPLACE" - }, - "bytecode": { - "doc_opcode": "F471", - "tlb": "#F471", - "prefix": "F471", - "operands": [] - }, - "value_flow": { - "doc_stack": "x k D n - D' -1 or D 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "k", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice", "Null"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "PFXDICTADD", - "doc": { - "category": "dict_prefix", - "description": "", - "gas": "", - "fift": "PFXDICTADD" - }, - "bytecode": { - "doc_opcode": "F472", - "tlb": "#F472", - "prefix": "F472", - "operands": [] - }, - "value_flow": { - "doc_stack": "x k D n - D' -1 or D 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "k", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice", "Null"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "PFXDICTDEL", - "doc": { - "category": "dict_prefix", - "description": "", - "gas": "", - "fift": "PFXDICTDEL" - }, - "bytecode": { - "doc_opcode": "F473", - "tlb": "#F473", - "prefix": "F473", - "operands": [] - }, - "value_flow": { - "doc_stack": "k D n - D' -1 or D 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "k", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice", "Null"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTGETNEXT", - "doc": { - "category": "dict_next", - "description": "Computes the minimal key `k'` in dictionary `D` that is lexicographically greater than `k`, and returns `k'` (represented by a _Slice_) along with associated value `x'` (also represented by a _Slice_).", - "gas": "", - "fift": "DICTGETNEXT" - }, - "bytecode": { - "doc_opcode": "F474", - "tlb": "#F474", - "prefix": "F474", - "operands": [] - }, - "value_flow": { - "doc_stack": "k D n - x' k' -1 or 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "k", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "x2", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "k2", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTGETNEXTEQ", - "doc": { - "category": "dict_next", - "description": "Similar to `DICTGETNEXT`, but computes the minimal key `k'` that is lexicographically greater than or equal to `k`.", - "gas": "", - "fift": "DICTGETNEXTEQ" - }, - "bytecode": { - "doc_opcode": "F475", - "tlb": "#F475", - "prefix": "F475", - "operands": [] - }, - "value_flow": { - "doc_stack": "k D n - x' k' -1 or 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "k", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "x2", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "k2", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTGETPREV", - "doc": { - "category": "dict_next", - "description": "Similar to `DICTGETNEXT`, but computes the maximal key `k'` lexicographically smaller than `k`.", - "gas": "", - "fift": "DICTGETPREV" - }, - "bytecode": { - "doc_opcode": "F476", - "tlb": "#F476", - "prefix": "F476", - "operands": [] - }, - "value_flow": { - "doc_stack": "k D n - x' k' -1 or 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "k", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "x2", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "k2", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTGETPREVEQ", - "doc": { - "category": "dict_next", - "description": "Similar to `DICTGETPREV`, but computes the maximal key `k'` lexicographically smaller than or equal to `k`.", - "gas": "", - "fift": "DICTGETPREVEQ" - }, - "bytecode": { - "doc_opcode": "F477", - "tlb": "#F477", - "prefix": "F477", - "operands": [] - }, - "value_flow": { - "doc_stack": "k D n - x' k' -1 or 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "k", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "x2", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "k2", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTIGETNEXT", - "doc": { - "category": "dict_next", - "description": "Similar to `DICTGETNEXT`, but interprets all keys in dictionary `D` as big-endian signed `n`-bit integers, and computes the minimal key `i'` that is larger than _Integer_ `i` (which does not necessarily fit into `n` bits).", - "gas": "", - "fift": "DICTIGETNEXT" - }, - "bytecode": { - "doc_opcode": "F478", - "tlb": "#F478", - "prefix": "F478", - "operands": [] - }, - "value_flow": { - "doc_stack": "i D n - x' i' -1 or 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "x2", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "i2", - "value_types": ["Integer"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTIGETNEXTEQ", - "doc": { - "category": "dict_next", - "description": "Similar to `DICTGETNEXTEQ`, but interprets keys as signed `n`-bit integers.", - "gas": "", - "fift": "DICTIGETNEXTEQ" - }, - "bytecode": { - "doc_opcode": "F479", - "tlb": "#F479", - "prefix": "F479", - "operands": [] - }, - "value_flow": { - "doc_stack": "i D n - x' i' -1 or 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "x2", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "i2", - "value_types": ["Integer"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTIGETPREV", - "doc": { - "category": "dict_next", - "description": "Similar to `DICTGETPREV`, but interprets keys as signed `n`-bit integers.", - "gas": "", - "fift": "DICTIGETPREV" - }, - "bytecode": { - "doc_opcode": "F47A", - "tlb": "#F47A", - "prefix": "F47A", - "operands": [] - }, - "value_flow": { - "doc_stack": "i D n - x' i' -1 or 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "x2", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "i2", - "value_types": ["Integer"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTIGETPREVEQ", - "doc": { - "category": "dict_next", - "description": "Similar to `DICTGETPREVEQ`, but interprets keys as signed `n`-bit integers.", - "gas": "", - "fift": "DICTIGETPREVEQ" - }, - "bytecode": { - "doc_opcode": "F47B", - "tlb": "#F47B", - "prefix": "F47B", - "operands": [] - }, - "value_flow": { - "doc_stack": "i D n - x' i' -1 or 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "x2", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "i2", - "value_types": ["Integer"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTUGETNEXT", - "doc": { - "category": "dict_next", - "description": "Similar to `DICTGETNEXT`, but interprets all keys in dictionary `D` as big-endian unsigned `n`-bit integers, and computes the minimal key `i'` that is larger than _Integer_ `i` (which does not necessarily fit into `n` bits, and is not necessarily non-negative).", - "gas": "", - "fift": "DICTUGETNEXT" - }, - "bytecode": { - "doc_opcode": "F47C", - "tlb": "#F47C", - "prefix": "F47C", - "operands": [] - }, - "value_flow": { - "doc_stack": "i D n - x' i' -1 or 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "x2", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "i2", - "value_types": ["Integer"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTUGETNEXTEQ", - "doc": { - "category": "dict_next", - "description": "Similar to `DICTGETNEXTEQ`, but interprets keys as unsigned `n`-bit integers.", - "gas": "", - "fift": "DICTUGETNEXTEQ" - }, - "bytecode": { - "doc_opcode": "F47D", - "tlb": "#F47D", - "prefix": "F47D", - "operands": [] - }, - "value_flow": { - "doc_stack": "i D n - x' i' -1 or 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "x2", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "i2", - "value_types": ["Integer"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTUGETPREV", - "doc": { - "category": "dict_next", - "description": "Similar to `DICTGETPREV`, but interprets keys as unsigned `n`-bit integers.", - "gas": "", - "fift": "DICTUGETPREV" - }, - "bytecode": { - "doc_opcode": "F47E", - "tlb": "#F47E", - "prefix": "F47E", - "operands": [] - }, - "value_flow": { - "doc_stack": "i D n - x' i' -1 or 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "x2", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "i2", - "value_types": ["Integer"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTUGETPREVEQ", - "doc": { - "category": "dict_next", - "description": "Similar to `DICTGETPREVEQ`, but interprets keys a unsigned `n`-bit integers.", - "gas": "", - "fift": "DICTUGETPREVEQ" - }, - "bytecode": { - "doc_opcode": "F47F", - "tlb": "#F47F", - "prefix": "F47F", - "operands": [] - }, - "value_flow": { - "doc_stack": "i D n - x' i' -1 or 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "x2", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "i2", - "value_types": ["Integer"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTMIN", - "doc": { - "category": "dict_min", - "description": "Computes the minimal key `k` (represented by a _Slice_ with `n` data bits) in dictionary `D`, and returns `k` along with the associated value `x`.", - "gas": "", - "fift": "DICTMIN" - }, - "bytecode": { - "doc_opcode": "F482", - "tlb": "#F482", - "prefix": "F482", - "operands": [] - }, - "value_flow": { - "doc_stack": "D n - x k -1 or 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "k", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTMINREF", - "doc": { - "category": "dict_min", - "description": "Similar to `DICTMIN`, but returns the only reference in the value as a _Cell_ `c`.", - "gas": "", - "fift": "DICTMINREF" - }, - "bytecode": { - "doc_opcode": "F483", - "tlb": "#F483", - "prefix": "F483", - "operands": [] - }, - "value_flow": { - "doc_stack": "D n - c k -1 or 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - }, - { - "type": "simple", - "name": "k", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTIMIN", - "doc": { - "category": "dict_min", - "description": "Similar to `DICTMIN`, but computes the minimal key `i` under the assumption that all keys are big-endian signed `n`-bit integers. Notice that the key and value returned may differ from those computed by `DICTMIN` and `DICTUMIN`.", - "gas": "", - "fift": "DICTIMIN" - }, - "bytecode": { - "doc_opcode": "F484", - "tlb": "#F484", - "prefix": "F484", - "operands": [] - }, - "value_flow": { - "doc_stack": "D n - x i -1 or 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTIMINREF", - "doc": { - "category": "dict_min", - "description": "Similar to `DICTIMIN`, but returns the only reference in the value.", - "gas": "", - "fift": "DICTIMINREF" - }, - "bytecode": { - "doc_opcode": "F485", - "tlb": "#F485", - "prefix": "F485", - "operands": [] - }, - "value_flow": { - "doc_stack": "D n - c i -1 or 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - }, - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTUMIN", - "doc": { - "category": "dict_min", - "description": "Similar to `DICTMIN`, but returns the key as an unsigned `n`-bit _Integer_ `i`.", - "gas": "", - "fift": "DICTUMIN" - }, - "bytecode": { - "doc_opcode": "F486", - "tlb": "#F486", - "prefix": "F486", - "operands": [] - }, - "value_flow": { - "doc_stack": "D n - x i -1 or 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTUMINREF", - "doc": { - "category": "dict_min", - "description": "Similar to `DICTUMIN`, but returns the only reference in the value.", - "gas": "", - "fift": "DICTUMINREF" - }, - "bytecode": { - "doc_opcode": "F487", - "tlb": "#F487", - "prefix": "F487", - "operands": [] - }, - "value_flow": { - "doc_stack": "D n - c i -1 or 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - }, - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTMAX", - "doc": { - "category": "dict_min", - "description": "Computes the maximal key `k` (represented by a _Slice_ with `n` data bits) in dictionary `D`, and returns `k` along with the associated value `x`.", - "gas": "", - "fift": "DICTMAX" - }, - "bytecode": { - "doc_opcode": "F48A", - "tlb": "#F48A", - "prefix": "F48A", - "operands": [] - }, - "value_flow": { - "doc_stack": "D n - x k -1 or 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "k", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTMAXREF", - "doc": { - "category": "dict_min", - "description": "Similar to `DICTMAX`, but returns the only reference in the value.", - "gas": "", - "fift": "DICTMAXREF" - }, - "bytecode": { - "doc_opcode": "F48B", - "tlb": "#F48B", - "prefix": "F48B", - "operands": [] - }, - "value_flow": { - "doc_stack": "D n - c k -1 or 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - }, - { - "type": "simple", - "name": "k", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTIMAX", - "doc": { - "category": "dict_min", - "description": "Similar to `DICTMAX`, but computes the maximal key `i` under the assumption that all keys are big-endian signed `n`-bit integers. Notice that the key and value returned may differ from those computed by `DICTMAX` and `DICTUMAX`.", - "gas": "", - "fift": "DICTIMAX" - }, - "bytecode": { - "doc_opcode": "F48C", - "tlb": "#F48C", - "prefix": "F48C", - "operands": [] - }, - "value_flow": { - "doc_stack": "D n - x i -1 or 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTIMAXREF", - "doc": { - "category": "dict_min", - "description": "Similar to `DICTIMAX`, but returns the only reference in the value.", - "gas": "", - "fift": "DICTIMAXREF" - }, - "bytecode": { - "doc_opcode": "F48D", - "tlb": "#F48D", - "prefix": "F48D", - "operands": [] - }, - "value_flow": { - "doc_stack": "D n - c i -1 or 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - }, - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTUMAX", - "doc": { - "category": "dict_min", - "description": "Similar to `DICTMAX`, but returns the key as an unsigned `n`-bit _Integer_ `i`.", - "gas": "", - "fift": "DICTUMAX" - }, - "bytecode": { - "doc_opcode": "F48E", - "tlb": "#F48E", - "prefix": "F48E", - "operands": [] - }, - "value_flow": { - "doc_stack": "D n - x i -1 or 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTUMAXREF", - "doc": { - "category": "dict_min", - "description": "Similar to `DICTUMAX`, but returns the only reference in the value.", - "gas": "", - "fift": "DICTUMAXREF" - }, - "bytecode": { - "doc_opcode": "F48F", - "tlb": "#F48F", - "prefix": "F48F", - "operands": [] - }, - "value_flow": { - "doc_stack": "D n - c i -1 or 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - }, - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTREMMIN", - "doc": { - "category": "dict_min", - "description": "Computes the minimal key `k` (represented by a _Slice_ with `n` data bits) in dictionary `D`, removes `k` from the dictionary, and returns `k` along with the associated value `x` and the modified dictionary `D'`.", - "gas": "", - "fift": "DICTREMMIN" - }, - "bytecode": { - "doc_opcode": "F492", - "tlb": "#F492", - "prefix": "F492", - "operands": [] - }, - "value_flow": { - "doc_stack": "D n - D' x k -1 or D 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "x", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "k", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTREMMINREF", - "doc": { - "category": "dict_min", - "description": "Similar to `DICTREMMIN`, but returns the only reference in the value as a _Cell_ `c`.", - "gas": "", - "fift": "DICTREMMINREF" - }, - "bytecode": { - "doc_opcode": "F493", - "tlb": "#F493", - "prefix": "F493", - "operands": [] - }, - "value_flow": { - "doc_stack": "D n - D' c k -1 or D 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - }, - { - "type": "simple", - "name": "k", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTIREMMIN", - "doc": { - "category": "dict_min", - "description": "Similar to `DICTREMMIN`, but computes the minimal key `i` under the assumption that all keys are big-endian signed `n`-bit integers. Notice that the key and value returned may differ from those computed by `DICTREMMIN` and `DICTUREMMIN`.", - "gas": "", - "fift": "DICTIREMMIN" - }, - "bytecode": { - "doc_opcode": "F494", - "tlb": "#F494", - "prefix": "F494", - "operands": [] - }, - "value_flow": { - "doc_stack": "D n - D' x i -1 or D 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "x", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTIREMMINREF", - "doc": { - "category": "dict_min", - "description": "Similar to `DICTIREMMIN`, but returns the only reference in the value.", - "gas": "", - "fift": "DICTIREMMINREF" - }, - "bytecode": { - "doc_opcode": "F495", - "tlb": "#F495", - "prefix": "F495", - "operands": [] - }, - "value_flow": { - "doc_stack": "D n - D' c i -1 or D 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - }, - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTUREMMIN", - "doc": { - "category": "dict_min", - "description": "Similar to `DICTREMMIN`, but returns the key as an unsigned `n`-bit _Integer_ `i`.", - "gas": "", - "fift": "DICTUREMMIN" - }, - "bytecode": { - "doc_opcode": "F496", - "tlb": "#F496", - "prefix": "F496", - "operands": [] - }, - "value_flow": { - "doc_stack": "D n - D' x i -1 or D 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "x", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTUREMMINREF", - "doc": { - "category": "dict_min", - "description": "Similar to `DICTUREMMIN`, but returns the only reference in the value.", - "gas": "", - "fift": "DICTUREMMINREF" - }, - "bytecode": { - "doc_opcode": "F497", - "tlb": "#F497", - "prefix": "F497", - "operands": [] - }, - "value_flow": { - "doc_stack": "D n - D' c i -1 or D 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - }, - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTREMMAX", - "doc": { - "category": "dict_min", - "description": "Computes the maximal key `k` (represented by a _Slice_ with `n` data bits) in dictionary `D`, removes `k` from the dictionary, and returns `k` along with the associated value `x` and the modified dictionary `D'`.", - "gas": "", - "fift": "DICTREMMAX" - }, - "bytecode": { - "doc_opcode": "F49A", - "tlb": "#F49A", - "prefix": "F49A", - "operands": [] - }, - "value_flow": { - "doc_stack": "D n - D' x k -1 or D 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "x", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "k", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTREMMAXREF", - "doc": { - "category": "dict_min", - "description": "Similar to `DICTREMMAX`, but returns the only reference in the value as a _Cell_ `c`.", - "gas": "", - "fift": "DICTREMMAXREF" - }, - "bytecode": { - "doc_opcode": "F49B", - "tlb": "#F49B", - "prefix": "F49B", - "operands": [] - }, - "value_flow": { - "doc_stack": "D n - D' c k -1 or D 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - }, - { - "type": "simple", - "name": "k", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTIREMMAX", - "doc": { - "category": "dict_min", - "description": "Similar to `DICTREMMAX`, but computes the minimal key `i` under the assumption that all keys are big-endian signed `n`-bit integers. Notice that the key and value returned may differ from those computed by `DICTREMMAX` and `DICTUREMMAX`.", - "gas": "", - "fift": "DICTIREMMAX" - }, - "bytecode": { - "doc_opcode": "F49C", - "tlb": "#F49C", - "prefix": "F49C", - "operands": [] - }, - "value_flow": { - "doc_stack": "D n - D' x i -1 or D 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "x", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTIREMMAXREF", - "doc": { - "category": "dict_min", - "description": "Similar to `DICTIREMMAX`, but returns the only reference in the value.", - "gas": "", - "fift": "DICTIREMMAXREF" - }, - "bytecode": { - "doc_opcode": "F49D", - "tlb": "#F49D", - "prefix": "F49D", - "operands": [] - }, - "value_flow": { - "doc_stack": "D n - D' c i -1 or D 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - }, - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTUREMMAX", - "doc": { - "category": "dict_min", - "description": "Similar to `DICTREMMAX`, but returns the key as an unsigned `n`-bit _Integer_ `i`.", - "gas": "", - "fift": "DICTUREMMAX" - }, - "bytecode": { - "doc_opcode": "F49E", - "tlb": "#F49E", - "prefix": "F49E", - "operands": [] - }, - "value_flow": { - "doc_stack": "D n - D' x i -1 or D 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "x", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTUREMMAXREF", - "doc": { - "category": "dict_min", - "description": "Similar to `DICTUREMMAX`, but returns the only reference in the value.", - "gas": "", - "fift": "DICTUREMMAXREF" - }, - "bytecode": { - "doc_opcode": "F49F", - "tlb": "#F49F", - "prefix": "F49F", - "operands": [] - }, - "value_flow": { - "doc_stack": "D n - D' c i -1 or D 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - }, - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DICTIGETJMP", - "doc": { - "category": "dict_special", - "description": "Similar to `DICTIGET`, but with `x` `BLESS`ed into a continuation with a subsequent `JMPX` to it on success. On failure, does nothing. This is useful for implementing `switch`/`case` constructions.", - "gas": "", - "fift": "DICTIGETJMP" - }, - "bytecode": { - "doc_opcode": "F4A0", - "tlb": "#F4A0", - "prefix": "F4A0", - "operands": [] - }, - "value_flow": { - "doc_stack": "i D n - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [] - } - }, - "control_flow": { - "branches": [ - { - "type": "variable", - "var_name": "x" - } - ] - } - }, - { - "mnemonic": "DICTUGETJMP", - "doc": { - "category": "dict_special", - "description": "Similar to `DICTIGETJMP`, but performs `DICTUGET` instead of `DICTIGET`.", - "gas": "", - "fift": "DICTUGETJMP" - }, - "bytecode": { - "doc_opcode": "F4A1", - "tlb": "#F4A1", - "prefix": "F4A1", - "operands": [] - }, - "value_flow": { - "doc_stack": "i D n - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [] - } - }, - "control_flow": { - "branches": [ - { - "type": "variable", - "var_name": "x" - } - ] - } - }, - { - "mnemonic": "DICTIGETEXEC", - "doc": { - "category": "dict_special", - "description": "Similar to `DICTIGETJMP`, but with `EXECUTE` instead of `JMPX`.", - "gas": "", - "fift": "DICTIGETEXEC" - }, - "bytecode": { - "doc_opcode": "F4A2", - "tlb": "#F4A2", - "prefix": "F4A2", - "operands": [] - }, - "value_flow": { - "doc_stack": "i D n - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [] - } - }, - "control_flow": { - "branches": [ - { - "type": "variable", - "var_name": "x", - "save": { - "c0": { - "type": "cc", - "save": { - "c0": { "type": "register", "index": 0 } - } - } - } - } - ] - } - }, - { - "mnemonic": "DICTUGETEXEC", - "doc": { - "category": "dict_special", - "description": "Similar to `DICTUGETJMP`, but with `EXECUTE` instead of `JMPX`.", - "gas": "", - "fift": "DICTUGETEXEC" - }, - "bytecode": { - "doc_opcode": "F4A3", - "tlb": "#F4A3", - "prefix": "F4A3", - "operands": [] - }, - "value_flow": { - "doc_stack": "i D n - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [] - } - }, - "control_flow": { - "branches": [ - { - "type": "variable", - "var_name": "x", - "save": { - "c0": { - "type": "cc", - "save": { - "c0": { "type": "register", "index": 0 } - } - } - } - } - ] - } - }, - { - "mnemonic": "DICTPUSHCONST", - "doc": { - "category": "dict_special", - "description": "Pushes a non-empty constant dictionary `D` (as a `Cell^?`) along with its key length `0 <= n <= 1023`, stored as a part of the instruction. The dictionary itself is created from the first of remaining references of the current continuation. In this way, the complete `DICTPUSHCONST` instruction can be obtained by first serializing `xF4A4_`, then the non-empty dictionary itself (one `1` bit and a cell reference), and then the unsigned 10-bit integer `n` (as if by a `STU 10` instruction). An empty dictionary can be pushed by a `NEWDICT` primitive instead.", - "gas": "34", - "fift": "[ref] [n] DICTPUSHCONST" - }, - "bytecode": { - "doc_opcode": "F4A6_n", - "tlb": "#F4A6_ d:^Cell n:uint10", - "prefix": "F4A6_", - "operands": [ - { - "name": "d", - "loader": "ref", - "loader_args": {} - }, - { - "name": "n", - "loader": "uint", - "loader_args": { - "size": 10 - } - } - ] - }, - "value_flow": { - "doc_stack": " - D n", - "inputs": { - "stack": [] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "PFXDICTGETQ", - "doc": { - "category": "dict_special", - "description": "Looks up the unique prefix of _Slice_ `s` present in the prefix code dictionary represented by `Cell^?` `D` and `0 <= n <= 1023`. If found, the prefix of `s` is returned as `s'`, and the corresponding value (also a _Slice_) as `x`. The remainder of `s` is returned as a _Slice_ `s''`. If no prefix of `s` is a key in prefix code dictionary `D`, returns the unchanged `s` and a zero flag to indicate failure.", - "gas": "", - "fift": "PFXDICTGETQ" - }, - "bytecode": { - "doc_opcode": "F4A8", - "tlb": "#F4A8", - "prefix": "F4A8", - "operands": [] - }, - "value_flow": { - "doc_stack": "s D n - s' x s'' -1 or s 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "x", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "s3", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "PFXDICTGET", - "doc": { - "category": "dict_special", - "description": "Similar to `PFXDICTGET`, but throws a cell deserialization failure exception on failure.", - "gas": "", - "fift": "PFXDICTGET" - }, - "bytecode": { - "doc_opcode": "F4A9", - "tlb": "#F4A9", - "prefix": "F4A9", - "operands": [] - }, - "value_flow": { - "doc_stack": "s D n - s' x s''", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "x", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "s3", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "PFXDICTGETJMP", - "doc": { - "category": "dict_special", - "description": "Similar to `PFXDICTGETQ`, but on success `BLESS`es the value `x` into a _Continuation_ and transfers control to it as if by a `JMPX`. On failure, returns `s` unchanged and continues execution.", - "gas": "", - "fift": "PFXDICTGETJMP" - }, - "bytecode": { - "doc_opcode": "F4AA", - "tlb": "#F4AA", - "prefix": "F4AA", - "operands": [] - }, - "value_flow": { - "doc_stack": "s D n - s' s'' or s" - }, - "control_flow": { - "branches": [ - { - "type": "variable", - "var_name": "x" - } - ] - } - }, - { - "mnemonic": "PFXDICTGETEXEC", - "doc": { - "category": "dict_special", - "description": "Similar to `PFXDICTGETJMP`, but `EXEC`utes the continuation found instead of jumping to it. On failure, throws a cell deserialization exception.", - "gas": "", - "fift": "PFXDICTGETEXEC" - }, - "bytecode": { - "doc_opcode": "F4AB", - "tlb": "#F4AB", - "prefix": "F4AB", - "operands": [] - }, - "value_flow": { - "doc_stack": "s D n - s' s''", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "s3", - "value_types": ["Slice"] - } - ] - } - }, - "control_flow": { - "branches": [ - { - "type": "variable", - "var_name": "x", - "save": { - "c0": { - "type": "cc", - "save": { - "c0": { "type": "register", "index": 0 } - } - } - } - } - ] - } - }, - { - "mnemonic": "PFXDICTCONSTGETJMP", - "doc": { - "category": "dict_special", - "description": "Combines `[n] DICTPUSHCONST` for `0 <= n <= 1023` with `PFXDICTGETJMP`.", - "gas": "", - "fift": "[ref] [n] PFXDICTCONSTGETJMP\n[ref] [n] PFXDICTSWITCH" - }, - "bytecode": { - "doc_opcode": "F4AE_n", - "tlb": "#F4AE_ d:^Cell n:uint10", - "prefix": "F4AE_", - "operands": [ - { - "name": "d", - "loader": "ref", - "loader_args": {} - }, - { - "name": "n", - "loader": "uint", - "loader_args": { - "size": 10 - } - } - ] - }, - "value_flow": { - "doc_stack": "s - s' s'' or s" - }, - "control_flow": { - "branches": [ - { - "type": "variable", - "var_name": "x" - } - ] - } - }, - { - "mnemonic": "DICTIGETJMPZ", - "doc": { - "category": "dict_special", - "description": "A variant of `DICTIGETJMP` that returns index `i` on failure.", - "gas": "", - "fift": "DICTIGETJMPZ" - }, - "bytecode": { - "doc_opcode": "F4BC", - "tlb": "#F4BC", - "prefix": "F4BC", - "operands": [] - }, - "value_flow": { - "doc_stack": "i D n - i or nothing" - }, - "control_flow": { - "branches": [ - { - "type": "variable", - "var_name": "x" - } - ] - } - }, - { - "mnemonic": "DICTUGETJMPZ", - "doc": { - "category": "dict_special", - "description": "A variant of `DICTUGETJMP` that returns index `i` on failure.", - "gas": "", - "fift": "DICTUGETJMPZ" - }, - "bytecode": { - "doc_opcode": "F4BD", - "tlb": "#F4BD", - "prefix": "F4BD", - "operands": [] - }, - "value_flow": { - "doc_stack": "i D n - i or nothing" - }, - "control_flow": { - "branches": [ - { - "type": "variable", - "var_name": "x" - } - ] - } - }, - { - "mnemonic": "DICTIGETEXECZ", - "doc": { - "category": "dict_special", - "description": "A variant of `DICTIGETEXEC` that returns index `i` on failure.", - "gas": "", - "fift": "DICTIGETEXECZ" - }, - "bytecode": { - "doc_opcode": "F4BE", - "tlb": "#F4BE", - "prefix": "F4BE", - "operands": [] - }, - "value_flow": { - "doc_stack": "i D n - i or nothing" - }, - "control_flow": { - "branches": [ - { - "type": "variable", - "var_name": "x", - "save": { - "c0": { - "type": "cc", - "save": { - "c0": { "type": "register", "index": 0 } - } - } - } - } - ] - } - }, - { - "mnemonic": "DICTUGETEXECZ", - "doc": { - "category": "dict_special", - "description": "A variant of `DICTUGETEXEC` that returns index `i` on failure.", - "gas": "", - "fift": "DICTUGETEXECZ" - }, - "bytecode": { - "doc_opcode": "F4BF", - "tlb": "#F4BF", - "prefix": "F4BF", - "operands": [] - }, - "value_flow": { - "doc_stack": "i D n - i or nothing" - }, - "control_flow": { - "branches": [ - { - "type": "variable", - "var_name": "x", - "save": { - "c0": { - "type": "cc", - "save": { - "c0": { "type": "register", "index": 0 } - } - } - } - } - ] - } - }, - { - "mnemonic": "SUBDICTGET", - "doc": { - "category": "dict_sub", - "description": "Constructs a subdictionary consisting of all keys beginning with prefix `k` (represented by a _Slice_, the first `0 <= l <= n <= 1023` data bits of which are used as a key) of length `l` in dictionary `D` of type `HashmapE(n,X)` with `n`-bit keys. On success, returns the new subdictionary of the same type `HashmapE(n,X)` as a _Slice_ `D'`.", - "gas": "", - "fift": "SUBDICTGET" - }, - "bytecode": { - "doc_opcode": "F4B1", - "tlb": "#F4B1", - "prefix": "F4B1", - "operands": [] - }, - "value_flow": { - "doc_stack": "k l D n - D'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "k", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "l", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice", "Null"] - } - ] - } - } - }, - { - "mnemonic": "SUBDICTIGET", - "doc": { - "category": "dict_sub", - "description": "Variant of `SUBDICTGET` with the prefix represented by a signed big-endian `l`-bit _Integer_ `x`, where necessarily `l <= 257`.", - "gas": "", - "fift": "SUBDICTIGET" - }, - "bytecode": { - "doc_opcode": "F4B2", - "tlb": "#F4B2", - "prefix": "F4B2", - "operands": [] - }, - "value_flow": { - "doc_stack": "x l D n - D'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "l", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice", "Null"] - } - ] - } - } - }, - { - "mnemonic": "SUBDICTUGET", - "doc": { - "category": "dict_sub", - "description": "Variant of `SUBDICTGET` with the prefix represented by an unsigned big-endian `l`-bit _Integer_ `x`, where necessarily `l <= 256`.", - "gas": "", - "fift": "SUBDICTUGET" - }, - "bytecode": { - "doc_opcode": "F4B3", - "tlb": "#F4B3", - "prefix": "F4B3", - "operands": [] - }, - "value_flow": { - "doc_stack": "x l D n - D'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "l", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice", "Null"] - } - ] - } - } - }, - { - "mnemonic": "SUBDICTRPGET", - "doc": { - "category": "dict_sub", - "description": "Similar to `SUBDICTGET`, but removes the common prefix `k` from all keys of the new dictionary `D'`, which becomes of type `HashmapE(n-l,X)`.", - "gas": "", - "fift": "SUBDICTRPGET" - }, - "bytecode": { - "doc_opcode": "F4B5", - "tlb": "#F4B5", - "prefix": "F4B5", - "operands": [] - }, - "value_flow": { - "doc_stack": "k l D n - D'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "k", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "l", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice", "Null"] - } - ] - } - } - }, - { - "mnemonic": "SUBDICTIRPGET", - "doc": { - "category": "dict_sub", - "description": "Variant of `SUBDICTRPGET` with the prefix represented by a signed big-endian `l`-bit _Integer_ `x`, where necessarily `l <= 257`.", - "gas": "", - "fift": "SUBDICTIRPGET" - }, - "bytecode": { - "doc_opcode": "F4B6", - "tlb": "#F4B6", - "prefix": "F4B6", - "operands": [] - }, - "value_flow": { - "doc_stack": "x l D n - D'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "l", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice", "Null"] - } - ] - } - } - }, - { - "mnemonic": "SUBDICTURPGET", - "doc": { - "category": "dict_sub", - "description": "Variant of `SUBDICTRPGET` with the prefix represented by an unsigned big-endian `l`-bit _Integer_ `x`, where necessarily `l <= 256`.", - "gas": "", - "fift": "SUBDICTURPGET" - }, - "bytecode": { - "doc_opcode": "F4B7", - "tlb": "#F4B7", - "prefix": "F4B7", - "operands": [] - }, - "value_flow": { - "doc_stack": "x l D n - D'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "l", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Slice", "Null"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "D2", - "value_types": ["Slice", "Null"] - } - ] - } - } - }, - { - "mnemonic": "ACCEPT", - "doc": { - "category": "app_gas", - "description": "Sets current gas limit `g_l` to its maximal allowed value `g_m`, and resets the gas credit `g_c` to zero, decreasing the value of `g_r` by `g_c` in the process.\nIn other words, the current smart contract agrees to buy some gas to finish the current transaction. This action is required to process external messages, which bring no value (hence no gas) with themselves.", - "gas": "26", - "fift": "ACCEPT" - }, - "bytecode": { - "doc_opcode": "F800", - "tlb": "#F800", - "prefix": "F800", - "operands": [] - }, - "value_flow": { - "doc_stack": "-", - "inputs": { - "stack": [] - }, - "outputs": { - "stack": [] - } - } - }, - { - "mnemonic": "SETGASLIMIT", - "doc": { - "category": "app_gas", - "description": "Sets current gas limit `g_l` to the minimum of `g` and `g_m`, and resets the gas credit `g_c` to zero. If the gas consumed so far (including the present instruction) exceeds the resulting value of `g_l`, an (unhandled) out of gas exception is thrown before setting new gas limits. Notice that `SETGASLIMIT` with an argument `g >= 2^63-1` is equivalent to `ACCEPT`.", - "gas": "26", - "fift": "SETGASLIMIT" - }, - "bytecode": { - "doc_opcode": "F801", - "tlb": "#F801", - "prefix": "F801", - "operands": [] - }, - "value_flow": { - "doc_stack": "g - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "g", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [] - } - } - }, - { - "mnemonic": "GASCONSUMED", - "doc": { - "category": "app_gas", - "description": "Returns gas consumed by VM so far (including this instruction).", - "gas": "26", - "fift": "GASCONSUMED" - }, - "bytecode": { - "doc_opcode": "F802", - "tlb": "#F802", - "prefix": "F802", - "operands": [] - }, - "value_flow": { - "doc_stack": "- g_c", - "inputs": { - "stack": [ - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "g_c", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "COMMIT", - "doc": { - "category": "app_gas", - "description": "Commits the current state of registers `c4` (\u0432\u0402\u045apersistent data'') and `c5` (\u0432\u0402\u045aactions'') so that the current execution is considered \u0432\u0402\u045asuccessful'' with the saved values even if an exception is thrown later.", - "gas": "26", - "fift": "COMMIT" - }, - "bytecode": { - "doc_opcode": "F80F", - "tlb": "#F80F", - "prefix": "F80F", - "operands": [] - }, - "value_flow": { - "doc_stack": "-", - "inputs": { - "stack": [] - }, - "outputs": { - "stack": [] - } - } - }, - { - "mnemonic": "RANDU256", - "doc": { - "category": "app_rnd", - "description": "Generates a new pseudo-random unsigned 256-bit _Integer_ `x`. The algorithm is as follows: if `r` is the old value of the random seed, considered as a 32-byte array (by constructing the big-endian representation of an unsigned 256-bit integer), then its `sha512(r)` is computed; the first 32 bytes of this hash are stored as the new value `r'` of the random seed, and the remaining 32 bytes are returned as the next random value `x`.", - "gas": "26+|c7|+|c1_1|", - "fift": "RANDU256" - }, - "bytecode": { - "doc_opcode": "F810", - "tlb": "#F810", - "prefix": "F810", - "operands": [] - }, - "value_flow": { - "doc_stack": "- x", - "inputs": { - "stack": [] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "RAND", - "doc": { - "category": "app_rnd", - "description": "Generates a new pseudo-random integer `z` in the range `0...y-1` (or `y...-1`, if `y<0`). More precisely, an unsigned random value `x` is generated as in `RAND256U`; then `z:=floor(x*y/2^256)` is computed.\nEquivalent to `RANDU256` `256 MULRSHIFT`.", - "gas": "26+|c7|+|c1_1|", - "fift": "RAND" - }, - "bytecode": { - "doc_opcode": "F811", - "tlb": "#F811", - "prefix": "F811", - "operands": [] - }, - "value_flow": { - "doc_stack": "y - z", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "SETRAND", - "doc": { - "category": "app_rnd", - "description": "Sets the random seed to unsigned 256-bit _Integer_ `x`.", - "gas": "26+|c7|+|c1_1|", - "fift": "SETRAND" - }, - "bytecode": { - "doc_opcode": "F814", - "tlb": "#F814", - "prefix": "F814", - "operands": [] - }, - "value_flow": { - "doc_stack": "x - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [] - } - } - }, - { - "mnemonic": "ADDRAND", - "doc": { - "category": "app_rnd", - "description": "Mixes unsigned 256-bit _Integer_ `x` into the random seed `r` by setting the random seed to `Sha` of the concatenation of two 32-byte strings: the first with the big-endian representation of the old seed `r`, and the second with the big-endian representation of `x`.", - "gas": "26", - "fift": "ADDRAND\nRANDOMIZE" - }, - "bytecode": { - "doc_opcode": "F815", - "tlb": "#F815", - "prefix": "F815", - "operands": [] - }, - "value_flow": { - "doc_stack": "x - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [] - } - } - }, - { - "mnemonic": "GETPARAM", - "doc": { - "category": "app_config", - "description": "Returns the `i`-th parameter from the _Tuple_ provided at `c7` for `0 <= i <= 15`. Equivalent to `c7 PUSHCTR` `FIRST` `[i] INDEX`.\nIf one of these internal operations fails, throws an appropriate type checking or range checking exception.", - "gas": "26", - "fift": "[i] GETPARAM" - }, - "bytecode": { - "doc_opcode": "F82i", - "tlb": "#F82 i:uint4", - "prefix": "F82", - "operands": [ - { - "name": "i", - "loader": "uint", - "loader_args": { - "size": 4 - } - } - ] - }, - "value_flow": { - "doc_stack": " - x", - "inputs": { - "stack": [] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "CONFIGDICT", - "doc": { - "category": "app_config", - "description": "Returns the global configuration dictionary along with its key length (32).\nEquivalent to `CONFIGROOT` `32 PUSHINT`.", - "gas": "26", - "fift": "CONFIGDICT" - }, - "bytecode": { - "doc_opcode": "F830", - "tlb": "#F830", - "prefix": "F830", - "operands": [] - }, - "value_flow": { - "doc_stack": " - D 32", - "inputs": { - "stack": [] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Slice", "Null"] - }, - { - "type": "const", - "value": 32, - "value_type": "Integer" - } - ] - } - } - }, - { - "mnemonic": "CONFIGPARAM", - "doc": { - "category": "app_config", - "description": "Returns the value of the global configuration parameter with integer index `i` as a _Cell_ `c`, and a flag to indicate success.\nEquivalent to `CONFIGDICT` `DICTIGETREF`.", - "gas": "", - "fift": "CONFIGPARAM" - }, - "bytecode": { - "doc_opcode": "F832", - "tlb": "#F832", - "prefix": "F832", - "operands": [] - }, - "value_flow": { - "doc_stack": "i - c -1 or 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "CONFIGOPTPARAM", - "doc": { - "category": "app_config", - "description": "Returns the value of the global configuration parameter with integer index `i` as a _Maybe Cell_ `c^?`.\nEquivalent to `CONFIGDICT` `DICTIGETOPTREF`.", - "gas": "", - "fift": "CONFIGOPTPARAM" - }, - "bytecode": { - "doc_opcode": "F833", - "tlb": "#F833", - "prefix": "F833", - "operands": [] - }, - "value_flow": { - "doc_stack": "i - c^?", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Cell", "Null"] - } - ] - } - } - }, - { - "mnemonic": "PREVMCBLOCKS", - "doc": { - "category": "app_config", - "description": "Retrives `last_mc_blocks` part of PrevBlocksInfo from c7 (parameter 13).", - "gas": "", - "fift": "PREVMCBLOCKS" - }, - "bytecode": { - "doc_opcode": "F83400", - "tlb": "#F83400", - "prefix": "F83400", - "operands": [] - }, - "value_flow": { - "doc_stack": "- t", - "inputs": { - "stack": [ - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "t", - "value_types": ["Tuple"] - } - ] - } - } - }, - { - "mnemonic": "PREVKEYBLOCK", - "doc": { - "category": "app_config", - "description": "Retrives `prev_key_block` part of PrevBlocksInfo from c7 (parameter 13).", - "gas": "", - "fift": "PREVKEYBLOCK" - }, - "bytecode": { - "doc_opcode": "F83401", - "tlb": "#F83401", - "prefix": "F83401", - "operands": [] - }, - "value_flow": { - "doc_stack": "- t", - "inputs": { - "stack": [ - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "t", - "value_types": ["Tuple"] - } - ] - } - } - }, - { - "mnemonic": "GLOBALID", - "doc": { - "category": "app_config", - "description": "Retrieves `global_id` from 19 network config.", - "gas": "", - "fift": "GLOBALID" - }, - "bytecode": { - "doc_opcode": "F835", - "tlb": "#F835", - "prefix": "F835", - "operands": [] - }, - "value_flow": { - "doc_stack": "- i", - "inputs": { - "stack": [ - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "i", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "GETGLOBVAR", - "doc": { - "category": "app_global", - "description": "Returns the `k`-th global variable for `0 <= k < 255`.\nEquivalent to `c7 PUSHCTR` `SWAP` `INDEXVARQ`.", - "gas": "26", - "fift": "GETGLOBVAR" - }, - "bytecode": { - "doc_opcode": "F840", - "tlb": "#F840", - "prefix": "F840", - "operands": [] - }, - "value_flow": { - "doc_stack": "k - x", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "k", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x" - } - ] - } - } - }, - { - "mnemonic": "GETGLOB", - "doc": { - "category": "app_global", - "description": "Returns the `k`-th global variable for `1 <= k <= 31`.\nEquivalent to `c7 PUSHCTR` `[k] INDEXQ`.", - "gas": "26", - "fift": "[k] GETGLOB" - }, - "bytecode": { - "doc_opcode": "F85_k", - "tlb": "#F85_ k:(## 5) {1 <= k}", - "prefix": "F85_", - "operands_range_check": { - "length": 5, - "from": 1, - "to": 31 - }, - "operands": [ - { - "name": "k", - "loader": "uint", - "loader_args": { - "size": 5 - } - } - ] - }, - "value_flow": { - "doc_stack": " - x", - "inputs": { - "stack": [] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x" - } - ] - } - } - }, - { - "mnemonic": "SETGLOBVAR", - "doc": { - "category": "app_global", - "description": "Assigns `x` to the `k`-th global variable for `0 <= k < 255`.\nEquivalent to `c7 PUSHCTR` `ROTREV` `SETINDEXVARQ` `c7 POPCTR`.", - "gas": "26+|c7\u0432\u0402\u2122|", - "fift": "SETGLOBVAR" - }, - "bytecode": { - "doc_opcode": "F860", - "tlb": "#F860", - "prefix": "F860", - "operands": [] - }, - "value_flow": { - "doc_stack": "x k - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x" - }, - { - "type": "simple", - "name": "k", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [] - } - } - }, - { - "mnemonic": "SETGLOB", - "doc": { - "category": "app_global", - "description": "Assigns `x` to the `k`-th global variable for `1 <= k <= 31`.\nEquivalent to `c7 PUSHCTR` `SWAP` `k SETINDEXQ` `c7 POPCTR`.", - "gas": "26+|c7\u0432\u0402\u2122|", - "fift": "[k] SETGLOB" - }, - "bytecode": { - "doc_opcode": "F87_k", - "tlb": "#F87_ k:(## 5) {1 <= k}", - "prefix": "F87_", - "operands_range_check": { - "length": 5, - "from": 1, - "to": 31 - }, - "operands": [ - { - "name": "k", - "loader": "uint", - "loader_args": { - "size": 5 - } - } - ] - }, - "value_flow": { - "doc_stack": "x - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x" - } - ] - }, - "outputs": { - "stack": [] - } - } - }, - { - "mnemonic": "HASHCU", - "doc": { - "category": "app_crypto", - "description": "Computes the representation hash of a _Cell_ `c` and returns it as a 256-bit unsigned integer `x`. Useful for signing and checking signatures of arbitrary entities represented by a tree of cells.", - "gas": "26", - "fift": "HASHCU" - }, - "bytecode": { - "doc_opcode": "F900", - "tlb": "#F900", - "prefix": "F900", - "operands": [] - }, - "value_flow": { - "doc_stack": "c - x", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "HASHSU", - "doc": { - "category": "app_crypto", - "description": "Computes the hash of a _Slice_ `s` and returns it as a 256-bit unsigned integer `x`. The result is the same as if an ordinary cell containing only data and references from `s` had been created and its hash computed by `HASHCU`.", - "gas": "526", - "fift": "HASHSU" - }, - "bytecode": { - "doc_opcode": "F901", - "tlb": "#F901", - "prefix": "F901", - "operands": [] - }, - "value_flow": { - "doc_stack": "s - x", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "SHA256U", - "doc": { - "category": "app_crypto", - "description": "Computes `Sha` of the data bits of _Slice_ `s`. If the bit length of `s` is not divisible by eight, throws a cell underflow exception. The hash value is returned as a 256-bit unsigned integer `x`.", - "gas": "26", - "fift": "SHA256U" - }, - "bytecode": { - "doc_opcode": "F902", - "tlb": "#F902", - "prefix": "F902", - "operands": [] - }, - "value_flow": { - "doc_stack": "s - x", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "HASHEXT_SHA256", - "doc": { - "category": "app_crypto", - "description": "Calculates and returns hash of the concatenation of slices (or builders) `s_1...s_n`.", - "gas": "1/33 gas per byte", - "fift": "HASHEXT_SHA256" - }, - "bytecode": { - "doc_opcode": "F90400", - "tlb": "#F90400", - "prefix": "F90400", - "operands": [] - }, - "value_flow": { - "doc_stack": "s_1 ... s_n n - h", - "inputs": { - "stack": [ - { - "type": "array", - "name": "input_parts", - "length_var": "n", - "array_entry": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice", "Builder"] - } - ] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "h", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "HASHEXT_SHA512", - "doc": { - "category": "app_crypto", - "description": "Calculates and returns hash of the concatenation of slices (or builders) `s_1...s_n`.", - "gas": "1/16 gas per byte", - "fift": "HASHEXT_SHA512" - }, - "bytecode": { - "doc_opcode": "F90401", - "tlb": "#F90401", - "prefix": "F90401", - "operands": [] - }, - "value_flow": { - "doc_stack": "s_1 ... s_n n - h1 h2", - "inputs": { - "stack": [ - { - "type": "array", - "name": "input_parts", - "length_var": "n", - "array_entry": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice", "Builder"] - } - ] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "h1", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "h2", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "HASHEXT_BLAKE2B", - "doc": { - "category": "app_crypto", - "description": "Calculates and returns hash of the concatenation of slices (or builders) `s_1...s_n`.", - "gas": "1/19 gas per byte", - "fift": "HASHEXT_BLAKE2B" - }, - "bytecode": { - "doc_opcode": "F90402", - "tlb": "#F90402", - "prefix": "F90402", - "operands": [] - }, - "value_flow": { - "doc_stack": "s_1 ... s_n n - h1 h2", - "inputs": { - "stack": [ - { - "type": "array", - "name": "input_parts", - "length_var": "n", - "array_entry": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice", "Builder"] - } - ] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "h1", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "h2", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "HASHEXT_KECCAK256", - "doc": { - "category": "app_crypto", - "description": "Calculates and returns hash of the concatenation of slices (or builders) `s_1...s_n`.", - "gas": "1/11 gas per byte", - "fift": "HASHEXT_KECCAK256" - }, - "bytecode": { - "doc_opcode": "F90403", - "tlb": "#F90403", - "prefix": "F90403", - "operands": [] - }, - "value_flow": { - "doc_stack": "s_1 ... s_n n - h", - "inputs": { - "stack": [ - { - "type": "array", - "name": "input_parts", - "length_var": "n", - "array_entry": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice", "Builder"] - } - ] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "h", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "HASHEXT_KECCAK512", - "doc": { - "category": "app_crypto", - "description": "Calculates and returns hash of the concatenation of slices (or builders) `s_1...s_n`.", - "gas": "1/19 gas per byte", - "fift": "HASHEXT_KECCAK512" - }, - "bytecode": { - "doc_opcode": "F90404", - "tlb": "#F90404", - "prefix": "F90404", - "operands": [] - }, - "value_flow": { - "doc_stack": "s_1 ... s_n n - h1 h2", - "inputs": { - "stack": [ - { - "type": "array", - "name": "input_parts", - "length_var": "n", - "array_entry": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice", "Builder"] - } - ] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "h1", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "h2", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "HASHEXTR_SHA256", - "doc": { - "category": "app_crypto", - "description": "Calculates and returns hash of the concatenation of slices (or builders) `s_1...s_n`.", - "gas": "1/33 gas per byte", - "fift": "HASHEXTR_SHA256" - }, - "bytecode": { - "doc_opcode": "F90500", - "tlb": "#F90500", - "prefix": "F90500", - "operands": [] - }, - "value_flow": { - "doc_stack": "s_n ... s_1 n - h", - "inputs": { - "stack": [ - { - "type": "array", - "name": "input_parts", - "length_var": "n", - "array_entry": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice", "Builder"] - } - ] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "h", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "HASHEXTR_SHA512", - "doc": { - "category": "app_crypto", - "description": "Calculates and returns hash of the concatenation of slices (or builders) `s_1...s_n`.", - "gas": "1/16 gas per byte", - "fift": "HASHEXTR_SHA512" - }, - "bytecode": { - "doc_opcode": "F90501", - "tlb": "#F90501", - "prefix": "F90501", - "operands": [] - }, - "value_flow": { - "doc_stack": "s_n ... s_1 n - h1 h2", - "inputs": { - "stack": [ - { - "type": "array", - "name": "input_parts", - "length_var": "n", - "array_entry": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice", "Builder"] - } - ] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "h1", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "h2", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "HASHEXTR_BLAKE2B", - "doc": { - "category": "app_crypto", - "description": "Calculates and returns hash of the concatenation of slices (or builders) `s_1...s_n`.", - "gas": "1/19 gas per byte", - "fift": "HASHEXTR_BLAKE2B" - }, - "bytecode": { - "doc_opcode": "F90502", - "tlb": "#F90502", - "prefix": "F90502", - "operands": [] - }, - "value_flow": { - "doc_stack": "s_n ... s_1 n - h1 h2", - "inputs": { - "stack": [ - { - "type": "array", - "name": "input_parts", - "length_var": "n", - "array_entry": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice", "Builder"] - } - ] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "h1", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "h2", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "HASHEXTR_KECCAK256", - "doc": { - "category": "app_crypto", - "description": "Calculates and returns hash of the concatenation of slices (or builders) `s_1...s_n`.", - "gas": "1/11 gas per byte", - "fift": "HASHEXTR_KECCAK256" - }, - "bytecode": { - "doc_opcode": "F90503", - "tlb": "#F90503", - "prefix": "F90503", - "operands": [] - }, - "value_flow": { - "doc_stack": "s_n ... s_1 n - h", - "inputs": { - "stack": [ - { - "type": "array", - "name": "input_parts", - "length_var": "n", - "array_entry": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice", "Builder"] - } - ] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "h", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "HASHEXTR_KECCAK512", - "doc": { - "category": "app_crypto", - "description": "Calculates and returns hash of the concatenation of slices (or builders) `s_1...s_n`.", - "gas": "1/19 gas per byte", - "fift": "HASHEXTR_KECCAK512" - }, - "bytecode": { - "doc_opcode": "F90504", - "tlb": "#F90504", - "prefix": "F90504", - "operands": [] - }, - "value_flow": { - "doc_stack": "s_n ... s_1 n - h1 h2", - "inputs": { - "stack": [ - { - "type": "array", - "name": "input_parts", - "length_var": "n", - "array_entry": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice", "Builder"] - } - ] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "h1", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "h2", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "HASHEXTA_SHA256", - "doc": { - "category": "app_crypto", - "description": "Calculates hash of the concatenation of slices (or builders) `s_1...s_n`. Appends the resulting hash to a builder `b`.", - "gas": "1/33 gas per byte", - "fift": "HASHEXTA_SHA256" - }, - "bytecode": { - "doc_opcode": "F90600", - "tlb": "#F90600", - "prefix": "F90600", - "operands": [] - }, - "value_flow": { - "doc_stack": "b s_1 ... s_n n - b'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "array", - "name": "input_parts", - "length_var": "n", - "array_entry": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice", "Builder"] - } - ] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - } - ] - } - } - }, - { - "mnemonic": "HASHEXTA_SHA512", - "doc": { - "category": "app_crypto", - "description": "Calculates hash of the concatenation of slices (or builders) `s_1...s_n`. Appends the resulting hash to a builder `b`.", - "gas": "1/16 gas per byte", - "fift": "HASHEXTA_SHA512" - }, - "bytecode": { - "doc_opcode": "F90601", - "tlb": "#F90601", - "prefix": "F90601", - "operands": [] - }, - "value_flow": { - "doc_stack": "b s_1 ... s_n n - b'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "array", - "name": "input_parts", - "length_var": "n", - "array_entry": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice", "Builder"] - } - ] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - } - ] - } - } - }, - { - "mnemonic": "HASHEXTA_BLAKE2B", - "doc": { - "category": "app_crypto", - "description": "Calculates hash of the concatenation of slices (or builders) `s_1...s_n`. Appends the resulting hash to a builder `b`.", - "gas": "1/19 gas per byte", - "fift": "HASHEXTA_BLAKE2B" - }, - "bytecode": { - "doc_opcode": "F90602", - "tlb": "#F90602", - "prefix": "F90602", - "operands": [] - }, - "value_flow": { - "doc_stack": "b s_1 ... s_n n - b'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "array", - "name": "input_parts", - "length_var": "n", - "array_entry": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice", "Builder"] - } - ] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - } - ] - } - } - }, - { - "mnemonic": "HASHEXTA_KECCAK256", - "doc": { - "category": "app_crypto", - "description": "Calculates hash of the concatenation of slices (or builders) `s_1...s_n`. Appends the resulting hash to a builder `b`.", - "gas": "1/11 gas per byte", - "fift": "HASHEXTA_KECCAK256" - }, - "bytecode": { - "doc_opcode": "F90603", - "tlb": "#F90603", - "prefix": "F90603", - "operands": [] - }, - "value_flow": { - "doc_stack": "b s_1 ... s_n n - b'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "array", - "name": "input_parts", - "length_var": "n", - "array_entry": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice", "Builder"] - } - ] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - } - ] - } - } - }, - { - "mnemonic": "HASHEXTA_KECCAK512", - "doc": { - "category": "app_crypto", - "description": "Calculates hash of the concatenation of slices (or builders) `s_1...s_n`. Appends the resulting hash to a builder `b`.", - "gas": "1/6 gas per byte", - "fift": "HASHEXTA_KECCAK512" - }, - "bytecode": { - "doc_opcode": "F90604", - "tlb": "#F90604", - "prefix": "F90604", - "operands": [] - }, - "value_flow": { - "doc_stack": "b s_1 ... s_n n - b'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "array", - "name": "input_parts", - "length_var": "n", - "array_entry": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice", "Builder"] - } - ] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - } - ] - } - } - }, - { - "mnemonic": "HASHEXTAR_SHA256", - "doc": { - "category": "app_crypto", - "description": "Calculates hash of the concatenation of slices (or builders) `s_1...s_n`. Appends the resulting hash to a builder `b`.", - "gas": "1/33 gas per byte", - "fift": "HASHEXTAR_SHA256" - }, - "bytecode": { - "doc_opcode": "F90700", - "tlb": "#F90700", - "prefix": "F90700", - "operands": [] - }, - "value_flow": { - "doc_stack": "b s_1 ... s_n n - b'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "array", - "name": "input_parts", - "length_var": "n", - "array_entry": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice", "Builder"] - } - ] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - } - ] - } - } - }, - { - "mnemonic": "HASHEXTAR_SHA512", - "doc": { - "category": "app_crypto", - "description": "Calculates hash of the concatenation of slices (or builders) `s_1...s_n`. Appends the resulting hash to a builder `b`.", - "gas": "1/16 gas per byte", - "fift": "HASHEXTAR_SHA512" - }, - "bytecode": { - "doc_opcode": "F90701", - "tlb": "#F90701", - "prefix": "F90701", - "operands": [] - }, - "value_flow": { - "doc_stack": "b s_n ... s_1 n - b'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "array", - "name": "input_parts", - "length_var": "n", - "array_entry": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice", "Builder"] - } - ] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - } - ] - } - } - }, - { - "mnemonic": "HASHEXTAR_BLAKE2B", - "doc": { - "category": "app_crypto", - "description": "Calculates hash of the concatenation of slices (or builders) `s_1...s_n`. Appends the resulting hash to a builder `b`.", - "gas": "1/19 gas per byte", - "fift": "HASHEXTAR_BLAKE2B" - }, - "bytecode": { - "doc_opcode": "F90702", - "tlb": "#F90702", - "prefix": "F90702", - "operands": [] - }, - "value_flow": { - "doc_stack": "b s_n ... s_1 n - b'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "array", - "name": "input_parts", - "length_var": "n", - "array_entry": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice", "Builder"] - } - ] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - } - ] - } - } - }, - { - "mnemonic": "HASHEXTAR_KECCAK256", - "doc": { - "category": "app_crypto", - "description": "Calculates hash of the concatenation of slices (or builders) `s_1...s_n`. Appends the resulting hash to a builder `b`.", - "gas": "1/11 gas per byte", - "fift": "HASHEXTAR_KECCAK256" - }, - "bytecode": { - "doc_opcode": "F90703", - "tlb": "#F90703", - "prefix": "F90703", - "operands": [] - }, - "value_flow": { - "doc_stack": "b s_n ... s_1 n - b'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "array", - "name": "input_parts", - "length_var": "n", - "array_entry": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice", "Builder"] - } - ] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - } - ] - } - } - }, - { - "mnemonic": "HASHEXTAR_KECCAK512", - "doc": { - "category": "app_crypto", - "description": "Calculates hash of the concatenation of slices (or builders) `s_1...s_n`. Appends the resulting hash to a builder `b`.", - "gas": "1/6 gas per byte", - "fift": "HASHEXTAR_KECCAK512" - }, - "bytecode": { - "doc_opcode": "F90704", - "tlb": "#F90704", - "prefix": "F90704", - "operands": [] - }, - "value_flow": { - "doc_stack": "b s_n ... s_1 n - b'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "array", - "name": "input_parts", - "length_var": "n", - "array_entry": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice", "Builder"] - } - ] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - } - ] - } - } - }, - { - "mnemonic": "CHKSIGNU", - "doc": { - "category": "app_crypto", - "description": "Checks the Ed25519-signature `s` of a hash `h` (a 256-bit unsigned integer, usually computed as the hash of some data) using public key `k` (also represented by a 256-bit unsigned integer).\nThe signature `s` must be a _Slice_ containing at least 512 data bits; only the first 512 bits are used. The result is `-1` if the signature is valid, `0` otherwise.\nNotice that `CHKSIGNU` is equivalent to `ROT` `NEWC` `256 STU` `ENDC` `ROTREV` `CHKSIGNS`, i.e., to `CHKSIGNS` with the first argument `d` set to 256-bit _Slice_ containing `h`. Therefore, if `h` is computed as the hash of some data, these data are hashed _twice_, the second hashing occurring inside `CHKSIGNS`.", - "gas": "26", - "fift": "CHKSIGNU" - }, - "bytecode": { - "doc_opcode": "F910", - "tlb": "#F910", - "prefix": "F910", - "operands": [] - }, - "value_flow": { - "doc_stack": "h s k - ?", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "h", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "k", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "CHKSIGNS", - "doc": { - "category": "app_crypto", - "description": "Checks whether `s` is a valid Ed25519-signature of the data portion of _Slice_ `d` using public key `k`, similarly to `CHKSIGNU`. If the bit length of _Slice_ `d` is not divisible by eight, throws a cell underflow exception. The verification of Ed25519 signatures is the standard one, with `Sha` used to reduce `d` to the 256-bit number that is actually signed.", - "gas": "26", - "fift": "CHKSIGNS" - }, - "bytecode": { - "doc_opcode": "F911", - "tlb": "#F911", - "prefix": "F911", - "operands": [] - }, - "value_flow": { - "doc_stack": "d s k - ?", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "d", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "k", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "ECRECOVER", - "doc": { - "category": "app_crypto", - "description": "Recovers public key from signature, identical to Bitcoin/Ethereum operations. Takes 32-byte hash as uint256 `hash`; 65-byte signature as uint8 `v` and uint256 `r`, `s`. Returns `0` on failure, public key and `-1` on success. 65-byte public key is returned as uint8 `h`, uint256 `x1`, `x2`.", - "gas": "1526", - "fift": "ECRECOVER" - }, - "bytecode": { - "doc_opcode": "F912", - "tlb": "#F912", - "prefix": "F912", - "operands": [] - }, - "value_flow": { - "doc_stack": "hash v r s - 0 or h x1 x2 -1", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "hash", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "v", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "r", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "s", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "h", - "value_types": [ - "Integer" - ] - }, - { - "type": "simple", - "name": "x1", - "value_types": [ - "Integer" - ] - }, - { - "type": "simple", - "name": "x2", - "value_types": [ - "Integer" - ] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - - { - "mnemonic": "P256_CHKSIGNU", - "doc": { - "category": "app_crypto", - "description": "Checks seck256r1-signature `sig` of a number `h` (a 256-bit unsigned integer, usually computed as the hash of some data) and public key `k`. Returns -1 on success, 0 on failure. Public key is a 33-byte slice (encoded according to Sec. 2.3.4 point 2 of [SECG SEC 1](https://www.secg.org/sec1-v2.pdf)). Signature `sig` is a 64-byte slice (two 256-bit unsigned integers `r` and `s`).", - "gas": "3526", - "fift": "P256_CHKSIGNU" - }, - "bytecode": { - "doc_opcode": "F914", - "tlb": "#F914", - "prefix": "F914", - "operands": [] - }, - "value_flow": { - "doc_stack": "h sig k - ?", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "d", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "sig", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "k", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "P256_CHKSIGNS", - "doc": { - "category": "app_crypto", - "description": "Checks seck256r1-signature `sig` of data portion of slice `d` and public key `k`. Returns -1 on success, 0 on failure. Public key is a 33-byte slice (encoded according to Sec. 2.3.4 point 2 of [SECG SEC 1](https://www.secg.org/sec1-v2.pdf)). Signature `sig` is a 64-byte slice (two 256-bit unsigned integers `r` and `s`).", - "gas": "3526", - "fift": "P256_CHKSIGNS" - }, - "bytecode": { - "doc_opcode": "F915", - "tlb": "#F915", - "prefix": "F915", - "operands": [] - }, - "value_flow": { - "doc_stack": "d sig k - ?", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "d", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "sig", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "k", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "RIST255_FROMHASH", - "doc": { - "category": "app_crypto", - "description": "Deterministically generates a valid point `x` from a 512-bit hash (given as two 256-bit integers).", - "gas": "626", - "fift": "RIST255_FROMHASH" - }, - "bytecode": { - "doc_opcode": "F920", - "tlb": "#F920", - "prefix": "F920", - "operands": [] - }, - "value_flow": { - "doc_stack": "h1 h2 - x", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "h1", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "h2", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "RIST255_VALIDATE", - "doc": { - "category": "app_crypto", - "description": "Checks that integer `x` is a valid representation of some curve point. Throws range_chk on error.", - "gas": "226", - "fift": "RIST255_VALIDATE" - }, - "bytecode": { - "doc_opcode": "F921", - "tlb": "#F921", - "prefix": "F921", - "operands": [] - }, - "value_flow": { - "doc_stack": "x -", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - ] - } - } - }, - { - "mnemonic": "RIST255_ADD", - "doc": { - "category": "app_crypto", - "description": "Addition of two points on a curve.", - "gas": "626", - "fift": "RIST255_ADD" - }, - "bytecode": { - "doc_opcode": "F922", - "tlb": "#F922", - "prefix": "F922", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - x+y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "RIST255_SUB", - "doc": { - "category": "app_crypto", - "description": "Subtraction of two points on curve.", - "gas": "626", - "fift": "RIST255_SUB" - }, - "bytecode": { - "doc_opcode": "F923", - "tlb": "#F923", - "prefix": "F923", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - x-y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "RIST255_MUL", - "doc": { - "category": "app_crypto", - "description": "Multiplies point `x` by a scalar `n`. Any `n` is valid, including negative.", - "gas": "2026", - "fift": "RIST255_MUL" - }, - "bytecode": { - "doc_opcode": "F924", - "tlb": "#F924", - "prefix": "F924", - "operands": [] - }, - "value_flow": { - "doc_stack": "x n - x*n", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "RIST255_MULBASE", - "doc": { - "category": "app_crypto", - "description": "Multiplies the generator point `g` by a scalar `n`. Any `n` is valid, including negative.", - "gas": "776", - "fift": "RIST255_MULBASE" - }, - "bytecode": { - "doc_opcode": "F925", - "tlb": "#F925", - "prefix": "F925", - "operands": [] - }, - "value_flow": { - "doc_stack": "n - g*n", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "RIST255_PUSHL", - "doc": { - "category": "app_crypto", - "description": "Pushes integer l=2^252+27742317777372353535851937790883648493, which is the order of the group.", - "gas": "26", - "fift": "RIST255_PUSHL" - }, - "bytecode": { - "doc_opcode": "F926", - "tlb": "#F926", - "prefix": "F926", - "operands": [] - }, - "value_flow": { - "doc_stack": "- l", - "inputs": { - "stack": [ - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "RIST255_QVALIDATE", - "doc": { - "category": "app_crypto", - "description": "Checks that integer `x` is a valid representation of some curve point. Returns -1 on success and 0 on failure.", - "gas": "234", - "fift": "RIST255_QVALIDATE" - }, - "bytecode": { - "doc_opcode": "B7F921", - "tlb": "#B7F921", - "prefix": "B7F921", - "operands": [] - }, - "value_flow": { - "doc_stack": "x - 0 or -1", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "RIST255_QADD", - "doc": { - "category": "app_crypto", - "description": "Addition of two points on a curve. Returns -1 on success and 0 on failure.", - "gas": "634", - "fift": "RIST255_QADD" - }, - "bytecode": { - "doc_opcode": "B7F922", - "tlb": "#B7F922", - "prefix": "B7F922", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - 0 or x+y -1", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": [ - "Integer" - ] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "RIST255_QSUB", - "doc": { - "category": "app_crypto", - "description": "Subtraction of two points on curve. Returns -1 on success and 0 on failure.", - "gas": "634", - "fift": "RIST255_QSUB" - }, - "bytecode": { - "doc_opcode": "B7F923", - "tlb": "#B7F923", - "prefix": "B7F923", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - 0 or x-y -1", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": [ - "Integer" - ] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "RIST255_QMUL", - "doc": { - "category": "app_crypto", - "description": "Multiplies point `x` by a scalar `n`. Any `n` is valid, including negative. Returns -1 on success and 0 on failure.", - "gas": "2034", - "fift": "RIST255_QMUL" - }, - "bytecode": { - "doc_opcode": "B7F924", - "tlb": "#B7F924", - "prefix": "B7F924", - "operands": [] - }, - "value_flow": { - "doc_stack": "x n - 0 or x*n -1", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": [ - "Integer" - ] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "RIST255_QMULBASE", - "doc": { - "category": "app_crypto", - "description": "Multiplies the generator point `g` by a scalar `n`. Any `n` is valid, including negative.", - "gas": "784", - "fift": "RIST255_QMULBASE" - }, - "bytecode": { - "doc_opcode": "B7F925", - "tlb": "#B7F925", - "prefix": "B7F925", - "operands": [] - }, - "value_flow": { - "doc_stack": "n - 0 or g*n -1", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": [ - "Integer" - ] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "BLS_VERIFY", - "doc": { - "category": "app_crypto", - "description": "Checks BLS signature, return true on success, false otherwise.", - "gas": "61034", - "fift": "BLS_VERIFY" - }, - "bytecode": { - "doc_opcode": "F93000", - "tlb": "#F93000", - "prefix": "F93000", - "operands": [] - }, - "value_flow": { - "doc_stack": "pk msg sgn - bool", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "pk", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "msg", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "sgn", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "BLS_AGGREGATE", - "doc": { - "category": "app_crypto", - "description": "Aggregates signatures. `n>0`. Throw exception if `n=0` or if some `sig_i` is not a valid signature.", - "gas": "n*4350-2616", - "fift": "BLS_AGGREGATE" - }, - "bytecode": { - "doc_opcode": "F93001", - "tlb": "#F93001", - "prefix": "F93001", - "operands": [] - }, - "value_flow": { - "doc_stack": "sig_1 ... sig_n n - sig", - "inputs": { - "stack": [ - { - "type": "array", - "name": "signatures", - "length_var": "n", - "array_entry":[ - { - "type": "simple", - "name": "sig", - "value_types": [ - "Slice" - ] - } - ] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "BLS_FASTAGGREGATEVERIFY", - "doc": { - "category": "app_crypto", - "description": "Checks aggregated BLS signature for keys `pk_1...pk_n` and message `msg`. Return true on success, false otherwise. Return false if `n=0`.", - "gas": "58034+n*3000", - "fift": "BLS_FASTAGGREGATEVERIFY" - }, - "bytecode": { - "doc_opcode": "F93002", - "tlb": "#F93002", - "prefix": "F93002", - "operands": [] - }, - "value_flow": { - "doc_stack": "pk_1 ... pk_n n msg sig - bool", - "inputs": { - "stack": [ - { - "type": "array", - "name": "public_keys", - "length_var": "n", - "array_entry": [ - { - "type": "simple", - "name": "pk", - "value_types": ["Slice"] - } - ] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "msg", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "sig", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "BLS_AGGREGATEVERIFY", - "doc": { - "category": "app_crypto", - "description": "Checks aggregated BLS signature for key-message pairs `pk_1 msg_1...pk_n msg_n`. Return true on success, false otherwise. Return false if `n=0`.", - "gas": "38534+n*22500", - "fift": "BLS_AGGREGATEVERIFY" - }, - "bytecode": { - "doc_opcode": "F93003", - "tlb": "#F93003", - "prefix": "F93003", - "operands": [] - }, - "value_flow": { - "doc_stack": "pk_1 msg_1 ... pk_n msg_n n sgn - bool", - "inputs": { - "stack": [ - { - "type": "array", - "name": "key_message_pairs", - "length_var": "n", - "array_entry": [ - { - "type": "simple", - "name": "pk", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "msg", - "value_types": ["Slice"] - } - ] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "sgn", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "BLS_G1_ADD", - "doc": { - "category": "app_crypto", - "description": "Addition on G1.", - "gas": "3934", - "fift": "BLS_G1_ADD" - }, - "bytecode": { - "doc_opcode": "F93010", - "tlb": "#F93010", - "prefix": "F93010", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - x+y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "BLS_G1_SUB", - "doc": { - "category": "app_crypto", - "description": "Subtraction on G1.", - "gas": "3934", - "fift": "BLS_G1_SUB" - }, - "bytecode": { - "doc_opcode": "F93011", - "tlb": "#F93011", - "prefix": "F93011", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - x-y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "BLS_G1_NEG", - "doc": { - "category": "app_crypto", - "description": "Negation on G1.", - "gas": "784", - "fift": "BLS_G1_NEG" - }, - "bytecode": { - "doc_opcode": "F93012", - "tlb": "#F93012", - "prefix": "F93012", - "operands": [] - }, - "value_flow": { - "doc_stack": "x - -x", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "BLS_G1_MUL", - "doc": { - "category": "app_crypto", - "description": "Multiplies G1 point `x` by scalar `s`. Any `s` is valid, including negative.", - "gas": "5234", - "fift": "BLS_G1_MUL" - }, - "bytecode": { - "doc_opcode": "F93013", - "tlb": "#F93013", - "prefix": "F93013", - "operands": [] - }, - "value_flow": { - "doc_stack": "x s - x*s", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "s", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "BLS_G1_MULTIEXP", - "doc": { - "category": "app_crypto", - "description": "Calculates `x_1*s_1+...+x_n*s_n` for G1 points `x_i` and scalars `s_i`. Returns zero point if `n=0`. Any `s_i` is valid, including negative.", - "gas": "11409+n*630+n/floor(max(log2(n),4))*8820", - "fift": "BLS_G1_MULTIEXP" - }, - "bytecode": { - "doc_opcode": "F93014", - "tlb": "#F93014", - "prefix": "F93014", - "operands": [] - }, - "value_flow": { - "doc_stack": "x_1 s_1 ... x_n s_n n - x_1*s_1+...+x_n*s_n", - "inputs": { - "stack": [ - { - "type": "array", - "name": "components", - "length_var": "n", - "array_entry": [ - { - "type": "simple", - "name": "x", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "s", - "value_types": ["Integer"] - } - ] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "BLS_G1_ZERO", - "doc": { - "category": "app_crypto", - "description": "Pushes zero point in G1.", - "gas": "34", - "fift": "BLS_G1_ZERO" - }, - "bytecode": { - "doc_opcode": "F93015", - "tlb": "#F93015", - "prefix": "F93015", - "operands": [] - }, - "value_flow": { - "doc_stack": "- zero", - "inputs": { - "stack": [ - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "zero", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "BLS_MAP_TO_G1", - "doc": { - "category": "app_crypto", - "description": "Converts FP element `f` to a G1 point.", - "gas": "2384", - "fift": "BLS_MAP_TO_G1" - }, - "bytecode": { - "doc_opcode": "F93016", - "tlb": "#F93016", - "prefix": "F93016", - "operands": [] - }, - "value_flow": { - "doc_stack": "f - x", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "f", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "BLS_G1_INGROUP", - "doc": { - "category": "app_crypto", - "description": "Checks that slice `x` represents a valid element of G1.", - "gas": "2984", - "fift": "BLS_G1_INGROUP" - }, - "bytecode": { - "doc_opcode": "F93017", - "tlb": "#F93017", - "prefix": "F93017", - "operands": [] - }, - "value_flow": { - "doc_stack": "x - bool", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "BLS_G1_ISZERO", - "doc": { - "category": "app_crypto", - "description": "Checks that G1 point `x` is equal to zero.", - "gas": "34", - "fift": "BLS_G1_ISZERO" - }, - "bytecode": { - "doc_opcode": "F93018", - "tlb": "#F93018", - "prefix": "F93018", - "operands": [] - }, - "value_flow": { - "doc_stack": "x - bool", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "BLS_G2_ADD", - "doc": { - "category": "app_crypto", - "description": "Addition on G2.", - "gas": "6134", - "fift": "BLS_G2_ADD" - }, - "bytecode": { - "doc_opcode": "F93020", - "tlb": "#F93020", - "prefix": "F93020", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - x+y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "BLS_G2_SUB", - "doc": { - "category": "app_crypto", - "description": "Subtraction on G2.", - "gas": "6134", - "fift": "BLS_G2_SUB" - }, - "bytecode": { - "doc_opcode": "F93021", - "tlb": "#F93021", - "prefix": "F93021", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - x-y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "BLS_G2_NEG", - "doc": { - "category": "app_crypto", - "description": "Negation on G2.", - "gas": "1584", - "fift": "BLS_G2_NEG" - }, - "bytecode": { - "doc_opcode": "F93022", - "tlb": "#F93022", - "prefix": "F93022", - "operands": [] - }, - "value_flow": { - "doc_stack": "x - -x", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "BLS_G2_MUL", - "doc": { - "category": "app_crypto", - "description": "Multiplies G2 point `x` by scalar `s`. Any `s` is valid, including negative.", - "gas": "10584", - "fift": "BLS_G2_MUL" - }, - "bytecode": { - "doc_opcode": "F93023", - "tlb": "#F93023", - "prefix": "F93023", - "operands": [] - }, - "value_flow": { - "doc_stack": "x s - x*s", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "s", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "BLS_G2_MULTIEXP", - "doc": { - "category": "app_crypto", - "description": "Calculates `x_1*s_1+...+x_n*s_n` for G2 points `x_i` and scalars `s_i`. Returns zero point if `n=0`. Any `s_i` is valid, including negative.", - "gas": "30422+n*1280+n/floor(max(log2(n),4))*22840", - "fift": "BLS_G2_MULTIEXP" - }, - "bytecode": { - "doc_opcode": "F93024", - "tlb": "#F93024", - "prefix": "F93024", - "operands": [] - }, - "value_flow": { - "doc_stack": "x_1 s_1 ... x_n s_n n - x_1*s_1+...+x_n*s_n", - "inputs": { - "stack": [ - { - "type": "array", - "name": "components", - "length_var": "n", - "array_entry": [ - { - "type": "simple", - "name": "x", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "s", - "value_types": ["Integer"] - } - ] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "BLS_G2_ZERO", - "doc": { - "category": "app_crypto", - "description": "Pushes zero point in G2.", - "gas": "34", - "fift": "BLS_G2_ZERO" - }, - "bytecode": { - "doc_opcode": "F93025", - "tlb": "#F93025", - "prefix": "F93025", - "operands": [] - }, - "value_flow": { - "doc_stack": "- zero", - "inputs": { - "stack": [ - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "zero", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "BLS_MAP_TO_G2", - "doc": { - "category": "app_crypto", - "description": "Converts FP2 element `f` to a G2 point.", - "gas": "7984", - "fift": "BLS_MAP_TO_G2" - }, - "bytecode": { - "doc_opcode": "F93026", - "tlb": "#F93026", - "prefix": "F93026", - "operands": [] - }, - "value_flow": { - "doc_stack": "f - x", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "f", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "BLS_G2_INGROUP", - "doc": { - "category": "app_crypto", - "description": "Checks that slice `x` represents a valid element of G2.", - "gas": "4284", - "fift": "BLS_G2_INGROUP" - }, - "bytecode": { - "doc_opcode": "F93027", - "tlb": "#F93027", - "prefix": "F93027", - "operands": [] - }, - "value_flow": { - "doc_stack": "x - bool", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "BLS_G2_ISZERO", - "doc": { - "category": "app_crypto", - "description": "Checks that G2 point `x` is equal to zero.", - "gas": "34", - "fift": "BLS_G2_ISZERO" - }, - "bytecode": { - "doc_opcode": "F93028", - "tlb": "#F93028", - "prefix": "F93028", - "operands": [] - }, - "value_flow": { - "doc_stack": "x - bool", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "BLS_PAIRING", - "doc": { - "category": "app_crypto", - "description": "Given G1 points `x_i` and G2 points `y_i`, calculates and multiply pairings of `x_i,y_i`. Returns true if the result is the multiplicative identity in FP12, false otherwise. Returns false if `n=0`.", - "gas": "20034+n*11800", - "fift": "BLS_PAIRING" - }, - "bytecode": { - "doc_opcode": "F93030", - "tlb": "#F93030", - "prefix": "F93030", - "operands": [] - }, - "value_flow": { - "doc_stack": "x_1 y_1 ... x_n y_n n - bool", - "inputs": { - "stack": [ - { - "type": "array", - "name": "components", - "length_var": "n", - "array_entry": [ - { - "type": "simple", - "name": "x", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Slice"] - } - ] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "BLS_PUSHR", - "doc": { - "category": "app_crypto", - "description": "Pushes the order of G1 and G2 (approx. `2^255`).", - "gas": "34", - "fift": "BLS_PUSHR" - }, - "bytecode": { - "doc_opcode": "F93031", - "tlb": "#F93031", - "prefix": "F93031", - "operands": [] - }, - "value_flow": { - "doc_stack": "- r", - "inputs": { - "stack": [ - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "result", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "CDATASIZEQ", - "doc": { - "category": "app_misc", - "description": "Recursively computes the count of distinct cells `x`, data bits `y`, and cell references `z` in the dag rooted at _Cell_ `c`, effectively returning the total storage used by this dag taking into account the identification of equal cells. The values of `x`, `y`, and `z` are computed by a depth-first traversal of this dag, with a hash table of visited cell hashes used to prevent visits of already-visited cells. The total count of visited cells `x` cannot exceed non-negative _Integer_ `n`; otherwise the computation is aborted before visiting the `(n+1)`-st cell and a zero is returned to indicate failure. If `c` is _Null_, returns `x=y=z=0`.", - "gas": "", - "fift": "CDATASIZEQ" - }, - "bytecode": { - "doc_opcode": "F940", - "tlb": "#F940", - "prefix": "F940", - "operands": [] - }, - "value_flow": { - "doc_stack": "c n - x y z -1 or 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "CDATASIZE", - "doc": { - "category": "app_misc", - "description": "A non-quiet version of `CDATASIZEQ` that throws a cell overflow exception (8) on failure.", - "gas": "", - "fift": "CDATASIZE" - }, - "bytecode": { - "doc_opcode": "F941", - "tlb": "#F941", - "prefix": "F941", - "operands": [] - }, - "value_flow": { - "doc_stack": "c n - x y z", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "SDATASIZEQ", - "doc": { - "category": "app_misc", - "description": "Similar to `CDATASIZEQ`, but accepting a _Slice_ `s` instead of a _Cell_. The returned value of `x` does not take into account the cell that contains the slice `s` itself; however, the data bits and the cell references of `s` are accounted for in `y` and `z`.", - "gas": "", - "fift": "SDATASIZEQ" - }, - "bytecode": { - "doc_opcode": "F942", - "tlb": "#F942", - "prefix": "F942", - "operands": [] - }, - "value_flow": { - "doc_stack": "s n - x y z -1 or 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "SDATASIZE", - "doc": { - "category": "app_misc", - "description": "A non-quiet version of `SDATASIZEQ` that throws a cell overflow exception (8) on failure.", - "gas": "", - "fift": "SDATASIZE" - }, - "bytecode": { - "doc_opcode": "F943", - "tlb": "#F943", - "prefix": "F943", - "operands": [] - }, - "value_flow": { - "doc_stack": "s n - x y z", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "n", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "z", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "LDGRAMS", - "doc": { - "category": "app_currency", - "description": "Loads (deserializes) a `Gram` or `VarUInteger 16` amount from _Slice_ `s`, and returns the amount as _Integer_ `x` along with the remainder `s'` of `s`. The expected serialization of `x` consists of a 4-bit unsigned big-endian integer `l`, followed by an `8l`-bit unsigned big-endian representation of `x`.\nThe net effect is approximately equivalent to `4 LDU` `SWAP` `3 LSHIFT#` `LDUX`.", - "gas": "26", - "fift": "LDGRAMS\nLDVARUINT16" - }, - "bytecode": { - "doc_opcode": "FA00", - "tlb": "#FA00", - "prefix": "FA00", - "operands": [] - }, - "value_flow": { - "doc_stack": "s - x s'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "LDVARINT16", - "doc": { - "category": "app_currency", - "description": "Similar to `LDVARUINT16`, but loads a _signed_ _Integer_ `x`.\nApproximately equivalent to `4 LDU` `SWAP` `3 LSHIFT#` `LDIX`.", - "gas": "26", - "fift": "LDVARINT16" - }, - "bytecode": { - "doc_opcode": "FA01", - "tlb": "#FA01", - "prefix": "FA01", - "operands": [] - }, - "value_flow": { - "doc_stack": "s - x s'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "STGRAMS", - "doc": { - "category": "app_currency", - "description": "Stores (serializes) an _Integer_ `x` in the range `0...2^120-1` into _Builder_ `b`, and returns the resulting _Builder_ `b'`. The serialization of `x` consists of a 4-bit unsigned big-endian integer `l`, which is the smallest integer `l>=0`, such that `x<2^(8l)`, followed by an `8l`-bit unsigned big-endian representation of `x`. If `x` does not belong to the supported range, a range check exception is thrown.", - "gas": "26", - "fift": "STGRAMS\nSTVARUINT16" - }, - "bytecode": { - "doc_opcode": "FA02", - "tlb": "#FA02", - "prefix": "FA02", - "operands": [] - }, - "value_flow": { - "doc_stack": "b x - b'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - } - ] - } - } - }, - { - "mnemonic": "STVARINT16", - "doc": { - "category": "app_currency", - "description": "Similar to `STVARUINT16`, but serializes a _signed_ _Integer_ `x` in the range `-2^119...2^119-1`.", - "gas": "26", - "fift": "STVARINT16" - }, - "bytecode": { - "doc_opcode": "FA03", - "tlb": "#FA03", - "prefix": "FA03", - "operands": [] - }, - "value_flow": { - "doc_stack": "b x - b'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - } - ] - } - } - }, - { - "mnemonic": "LDVARUINT32", - "doc": { - "category": "app_currency", - "description": "Loads (deserializes) a `VarUInteger 32` amount from _Slice_ `s`, and returns the amount as _Integer_ `x` along with the remainder `s'` of `s`. The expected serialization of `x` consists of a 5-bit unsigned big-endian integer `l`, followed by an `8l`-bit unsigned big-endian representation of `x`.\nThe net effect is approximately equivalent to `4 LDU` `SWAP` `3 LSHIFT#` `LDUX`.", - "gas": "26", - "fift": "LDVARUINT32" - }, - "bytecode": { - "doc_opcode": "FA04", - "tlb": "#FA04", - "prefix": "FA04", - "operands": [] - }, - "value_flow": { - "doc_stack": "s - x s'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "LDVARINT32", - "doc": { - "category": "app_currency", - "description": "Similar to `LDVARUINT32`, but loads a _signed_ _Integer_ `x`.\nApproximately equivalent to `5 LDU` `SWAP` `3 LSHIFT#` `LDIX`.", - "gas": "26", - "fift": "LDVARINT32" - }, - "bytecode": { - "doc_opcode": "FA05", - "tlb": "#FA05", - "prefix": "FA05", - "operands": [] - }, - "value_flow": { - "doc_stack": "s - x s'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "STVARUINT32", - "doc": { - "category": "app_currency", - "description": "Stores (serializes) an _Integer_ `x` in the range `0...2^248-1` into _Builder_ `b`, and returns the resulting _Builder_ `b'`. The serialization of `x` consists of a 5-bit unsigned big-endian integer `l`, which is the smallest integer `l>=0`, such that `x<2^(8l)`, followed by an `8l`-bit unsigned big-endian representation of `x`. If `x` does not belong to the supported range, a range check exception is thrown.", - "gas": "26", - "fift": "STVARUINT32" - }, - "bytecode": { - "doc_opcode": "FA06", - "tlb": "#FA06", - "prefix": "FA06", - "operands": [] - }, - "value_flow": { - "doc_stack": "b x - b'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - } - ] - } - } - }, - { - "mnemonic": "STVARINT32", - "doc": { - "category": "app_currency", - "description": "Similar to `STVARUINT32`, but serializes a _signed_ _Integer_ `x` in the range `-2^247...2^247-1`.", - "gas": "26", - "fift": "STVARINT32" - }, - "bytecode": { - "doc_opcode": "FA07", - "tlb": "#FA07", - "prefix": "FA07", - "operands": [] - }, - "value_flow": { - "doc_stack": "b x - b'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "b", - "value_types": ["Builder"] - }, - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "b2", - "value_types": ["Builder"] - } - ] - } - } - }, - { - "mnemonic": "LDMSGADDR", - "doc": { - "category": "app_addr", - "description": "Loads from _Slice_ `s` the only prefix that is a valid `MsgAddress`, and returns both this prefix `s'` and the remainder `s''` of `s` as slices.", - "gas": "26", - "fift": "LDMSGADDR" - }, - "bytecode": { - "doc_opcode": "FA40", - "tlb": "#FA40", - "prefix": "FA40", - "operands": [] - }, - "value_flow": { - "doc_stack": "s - s' s''", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "s3", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "LDMSGADDRQ", - "doc": { - "category": "app_addr", - "description": "A quiet version of `LDMSGADDR`: on success, pushes an extra `-1`; on failure, pushes the original `s` and a zero.", - "gas": "26", - "fift": "LDMSGADDRQ" - }, - "bytecode": { - "doc_opcode": "FA41", - "tlb": "#FA41", - "prefix": "FA41", - "operands": [] - }, - "value_flow": { - "doc_stack": "s - s' s'' -1 or s 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - }, - { - "type": "simple", - "name": "s3", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "PARSEMSGADDR", - "doc": { - "category": "app_addr", - "description": "Decomposes _Slice_ `s` containing a valid `MsgAddress` into a _Tuple_ `t` with separate fields of this `MsgAddress`. If `s` is not a valid `MsgAddress`, a cell deserialization exception is thrown.", - "gas": "26", - "fift": "PARSEMSGADDR" - }, - "bytecode": { - "doc_opcode": "FA42", - "tlb": "#FA42", - "prefix": "FA42", - "operands": [] - }, - "value_flow": { - "doc_stack": "s - t", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "t", - "value_types": ["Tuple"] - } - ] - } - } - }, - { - "mnemonic": "PARSEMSGADDRQ", - "doc": { - "category": "app_addr", - "description": "A quiet version of `PARSEMSGADDR`: returns a zero on error instead of throwing an exception.", - "gas": "26", - "fift": "PARSEMSGADDRQ" - }, - "bytecode": { - "doc_opcode": "FA43", - "tlb": "#FA43", - "prefix": "FA43", - "operands": [] - }, - "value_flow": { - "doc_stack": "s - t -1 or 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "t", - "value_types": ["Tuple"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "REWRITESTDADDR", - "doc": { - "category": "app_addr", - "description": "Parses _Slice_ `s` containing a valid `MsgAddressInt` (usually a `msg_addr_std`), applies rewriting from the `anycast` (if present) to the same-length prefix of the address, and returns both the workchain `x` and the 256-bit address `y` as integers. If the address is not 256-bit, or if `s` is not a valid serialization of `MsgAddressInt`, throws a cell deserialization exception.", - "gas": "26", - "fift": "REWRITESTDADDR" - }, - "bytecode": { - "doc_opcode": "FA44", - "tlb": "#FA44", - "prefix": "FA44", - "operands": [] - }, - "value_flow": { - "doc_stack": "s - x y", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "REWRITESTDADDRQ", - "doc": { - "category": "app_addr", - "description": "A quiet version of primitive `REWRITESTDADDR`.", - "gas": "26", - "fift": "REWRITESTDADDRQ" - }, - "bytecode": { - "doc_opcode": "FA45", - "tlb": "#FA45", - "prefix": "FA45", - "operands": [] - }, - "value_flow": { - "doc_stack": "s - x y -1 or 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "REWRITEVARADDR", - "doc": { - "category": "app_addr", - "description": "A variant of `REWRITESTDADDR` that returns the (rewritten) address as a _Slice_ `s`, even if it is not exactly 256 bit long (represented by a `msg_addr_var`).", - "gas": "26", - "fift": "REWRITEVARADDR" - }, - "bytecode": { - "doc_opcode": "FA46", - "tlb": "#FA46", - "prefix": "FA46", - "operands": [] - }, - "value_flow": { - "doc_stack": "s - x s'", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "s2", - "value_types": ["Slice"] - } - ] - } - } - }, - { - "mnemonic": "REWRITEVARADDRQ", - "doc": { - "category": "app_addr", - "description": "A quiet version of primitive `REWRITEVARADDR`.", - "gas": "26", - "fift": "REWRITEVARADDRQ" - }, - "bytecode": { - "doc_opcode": "FA47", - "tlb": "#FA47", - "prefix": "FA47", - "operands": [] - }, - "value_flow": { - "doc_stack": "s - x s' -1 or 0", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "s", - "value_types": ["Slice"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "conditional", - "name": "status", - "match": [ - { - "value": 0, - "stack": [] - }, - { - "value": -1, - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "s'", - "value_types": ["Slice"] - } - ] - } - ] - }, - { - "type": "simple", - "name": "status", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "SENDRAWMSG", - "doc": { - "category": "app_actions", - "description": "Sends a raw message contained in _Cell `c`_, which should contain a correctly serialized object `Message X`, with the only exception that the source address is allowed to have dummy value `addr_none` (to be automatically replaced with the current smart-contract address), and `ihr_fee`, `fwd_fee`, `created_lt` and `created_at` fields can have arbitrary values (to be rewritten with correct values during the action phase of the current transaction). Integer parameter `x` contains the flags. Currently `x=0` is used for ordinary messages; `x=128` is used for messages that are to carry all the remaining balance of the current smart contract (instead of the value originally indicated in the message); `x=64` is used for messages that carry all the remaining value of the inbound message in addition to the value initially indicated in the new message (if bit 0 is not set, the gas fees are deducted from this amount); `x'=x+1` means that the sender wants to pay transfer fees separately; `x'=x+2` means that any errors arising while processing this message during the action phase should be ignored. Finally, `x'=x+32` means that the current account must be destroyed if its resulting balance is zero. This flag is usually employed together with `+128`.", - "gas": "526", - "fift": "SENDRAWMSG" - }, - "bytecode": { - "doc_opcode": "FB00", - "tlb": "#FB00", - "prefix": "FB00", - "operands": [] - }, - "value_flow": { - "doc_stack": "c x - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - }, - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [] - } - } - }, - { - "mnemonic": "RAWRESERVE", - "doc": { - "category": "app_actions", - "description": "Creates an output action which would reserve exactly `x` nanograms (if `y=0`), at most `x` nanograms (if `y=2`), or all but `x` nanograms (if `y=1` or `y=3`), from the remaining balance of the account. It is roughly equivalent to creating an outbound message carrying `x` nanograms (or `b-x` nanograms, where `b` is the remaining balance) to oneself, so that the subsequent output actions would not be able to spend more money than the remainder. Bit `+2` in `y` means that the external action does not fail if the specified amount cannot be reserved; instead, all remaining balance is reserved. Bit `+8` in `y` means `x:=-x` before performing any further actions. Bit `+4` in `y` means that `x` is increased by the original balance of the current account (before the compute phase), including all extra currencies, before performing any other checks and actions. Currently `x` must be a non-negative integer, and `y` must be in the range `0...15`.", - "gas": "526", - "fift": "RAWRESERVE" - }, - "bytecode": { - "doc_opcode": "FB02", - "tlb": "#FB02", - "prefix": "FB02", - "operands": [] - }, - "value_flow": { - "doc_stack": "x y - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [] - } - } - }, - { - "mnemonic": "RAWRESERVEX", - "doc": { - "category": "app_actions", - "description": "Similar to `RAWRESERVE`, but also accepts a dictionary `D` (represented by a _Cell_ or _Null_) with extra currencies. In this way currencies other than Grams can be reserved.", - "gas": "526", - "fift": "RAWRESERVEX" - }, - "bytecode": { - "doc_opcode": "FB03", - "tlb": "#FB03", - "prefix": "FB03", - "operands": [] - }, - "value_flow": { - "doc_stack": "x D y - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "D", - "value_types": ["Cell", "Null"] - }, - { - "type": "simple", - "name": "y", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [] - } - } - }, - { - "mnemonic": "SETCODE", - "doc": { - "category": "app_actions", - "description": "Creates an output action that would change this smart contract code to that given by _Cell_ `c`. Notice that this change will take effect only after the successful termination of the current run of the smart contract.", - "gas": "526", - "fift": "SETCODE" - }, - "bytecode": { - "doc_opcode": "FB04", - "tlb": "#FB04", - "prefix": "FB04", - "operands": [] - }, - "value_flow": { - "doc_stack": "c - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - } - ] - }, - "outputs": { - "stack": [] - } - } - }, - { - "mnemonic": "SETLIBCODE", - "doc": { - "category": "app_actions", - "description": "Creates an output action that would modify the collection of this smart contract libraries by adding or removing library with code given in _Cell_ `c`. If `x=0`, the library is actually removed if it was previously present in the collection (if not, this action does nothing). If `x=1`, the library is added as a private library, and if `x=2`, the library is added as a public library (and becomes available to all smart contracts if the current smart contract resides in the masterchain); if the library was present in the collection before, its public/private status is changed according to `x`. Values of `x` other than `0...2` are invalid.", - "gas": "526", - "fift": "SETLIBCODE" - }, - "bytecode": { - "doc_opcode": "FB06", - "tlb": "#FB06", - "prefix": "FB06", - "operands": [] - }, - "value_flow": { - "doc_stack": "c x - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - }, - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [] - } - } - }, - { - "mnemonic": "CHANGELIB", - "doc": { - "category": "app_actions", - "description": "Creates an output action similarly to `SETLIBCODE`, but instead of the library code accepts its hash as an unsigned 256-bit integer `h`. If `x!=0` and the library with hash `h` is absent from the library collection of this smart contract, this output action will fail.", - "gas": "526", - "fift": "CHANGELIB" - }, - "bytecode": { - "doc_opcode": "FB07", - "tlb": "#FB07", - "prefix": "FB07", - "operands": [] - }, - "value_flow": { - "doc_stack": "h x - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "h", - "value_types": ["Integer"] - }, - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [] - } - } - }, - { - "mnemonic": "SENDMSG", - "doc": { - "category": "app_actions", - "description": "Creates an output action and returns a fee for creating a message. Mode has the same effect as in the case of `SENDRAWMSG`. Additionally `+1024` means - do not create an action, only estimate fee. Other modes affect the fee calculation as follows: `+64` substitutes the entire balance of the incoming message as an outcoming value (slightly inaccurate, gas expenses that cannot be estimated before the computation is completed are not taken into account), `+128` substitutes the value of the entire balance of the contract before the start of the computation phase (slightly inaccurate, since gas expenses that cannot be estimated before the completion of the computation phase are not taken into account).", - "gas": "526", - "fift": "SENDMSG" - }, - "bytecode": { - "doc_opcode": "FB08", - "tlb": "#FB08", - "prefix": "FB08", - "operands": [] - }, - "value_flow": { - "doc_stack": "c x - fee", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Cell"] - }, - { - "type": "simple", - "name": "x", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [ - { - "type": "simple", - "name": "fee", - "value_types": ["Integer"] - } - ] - } - } - }, - { - "mnemonic": "DUMPSTK", - "doc": { - "category": "debug", - "description": "Dumps the stack (at most the top 255 values) and shows the total stack depth.", - "gas": "26", - "fift": "DUMPSTK" - }, - "bytecode": { - "doc_opcode": "FE00", - "tlb": "#FE00", - "prefix": "FE00" - }, - "value_flow": { - "doc_stack": "-", - "inputs": { - "stack": [] - }, - "outputs": { - "stack": [] - } - } - }, - { - "mnemonic": "DEBUG", - "doc": { - "category": "debug", - "description": "", - "gas": "26", - "fift": "{nn} DEBUG" - }, - "bytecode": { - "doc_opcode": "FEnn", - "tlb": "#FE nn:(#<= 239)", - "prefix": "FE", - "operands_range_check": { - "length": 8, - "from": 1, - "to": 19 - }, - "operands": [ - { - "name": "n", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "-", - "inputs": { - "stack": [] - }, - "outputs": { - "stack": [] - } - } - }, - { - "mnemonic": "STRDUMP", - "doc": { - "category": "debug", - "description": "", - "gas": "26", - "fift": "STRDUMP" - }, - "bytecode": { - "doc_opcode": "FE14", - "tlb": "#FE14", - "prefix": "FE14" - }, - "value_flow": { - "doc_stack": "-", - "inputs": { - "stack": [] - }, - "outputs": { - "stack": [] - } - } - }, - { - "mnemonic": "DEBUG", - "doc": { - "category": "debug", - "description": "", - "gas": "26", - "fift": "{nn} DEBUG" - }, - "bytecode": { - "doc_opcode": "FEnn", - "tlb": "#FE nn:(#<= 239)", - "prefix": "FE", - "operands_range_check": { - "length": 8, - "from": 21, - "to": 31 - }, - "operands": [ - { - "name": "n", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "-", - "inputs": { - "stack": [] - }, - "outputs": { - "stack": [] - } - } - }, - { - "mnemonic": "DUMP", - "doc": { - "category": "debug", - "description": "Dumps `s[i]`.", - "gas": "26", - "fift": "s[i] DUMP" - }, - "bytecode": { - "doc_opcode": "FE2i", - "tlb": "#FE2 i:uint4", - "prefix": "FE2", - "operands": [ - { - "name": "i", - "loader": "uint", - "loader_args": { - "size": 4 - } - } - ] - }, - "value_flow": { - "doc_stack": "-", - "inputs": { - "stack": [] - }, - "outputs": { - "stack": [] - } - } - }, - { - "mnemonic": "DEBUG", - "doc": { - "category": "debug", - "description": "", - "gas": "26", - "fift": "{nn} DEBUG" - }, - "bytecode": { - "doc_opcode": "FEnn", - "tlb": "#FE nn:(#<= 239)", - "prefix": "FE", - "operands_range_check": { - "length": 8, - "from": 48, - "to": 239 - }, - "operands": [ - { - "name": "n", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "-", - "inputs": { - "stack": [] - }, - "outputs": { - "stack": [] - } - } - }, - { - "mnemonic": "DEBUGSTR", - "doc": { - "category": "debug", - "description": "`0 <= n < 16`. Length of `ssss` is `n+1` bytes.\n`{string}` is a [string literal](https://github.com/Piterden/TON-docs/blob/master/Fift.%20A%20Brief%20Introduction.md#user-content-29-string-literals).\n`DEBUGSTR`: `ssss` is the given string.\n`DEBUGSTRI`: `ssss` is one-byte integer `0 <= x <= 255` followed by the given string.", - "gas": "26", - "fift": "{string} DEBUGSTR\n{string} {x} DEBUGSTRI" - }, - "bytecode": { - "doc_opcode": "FEFnssss", - "tlb": "#FEF n:(## 4) ssss:((n * 8 + 8) * Bit)", - "prefix": "FEF", - "operands": [ - { - "name": "n", - "loader": "uint", - "loader_args": { - "size": 4 - }, - "internal": true - }, - { - "name": "s", - "loader": "subslice", - "loader_args": { - "bits_length_var": "n", - "bits_padding": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "-", - "inputs": { - "stack": [] - }, - "outputs": { - "stack": [] - } - } - }, - { - "mnemonic": "SETCP", - "doc": { - "category": "codepage", - "description": "Selects TVM codepage `0 <= nn < 240`. If the codepage is not supported, throws an invalid opcode exception.", - "gas": "26", - "fift": "[nn] SETCP" - }, - "bytecode": { - "doc_opcode": "FFnn", - "tlb": "#FF nn:(#<= 239)", - "prefix": "FF", - "operands_range_check": { - "length": 8, - "from": 0, - "to": 239 - }, - "operands": [ - { - "name": "n", - "loader": "uint", - "loader_args": { - "size": 8 - } - } - ] - }, - "value_flow": { - "doc_stack": "-", - "inputs": { - "stack": [] - }, - "outputs": { - "stack": [] - } - } - }, - { - "mnemonic": "SETCP_SPECIAL", - "doc": { - "category": "codepage", - "description": "Selects TVM codepage `z-16` for `1 <= z <= 15`. Negative codepages `-13...-1` are reserved for restricted versions of TVM needed to validate runs of TVM in other codepages. Negative codepage `-14` is reserved for experimental codepages, not necessarily compatible between different TVM implementations, and should be disabled in the production versions of TVM.", - "gas": "26", - "fift": "[z-16] SETCP" - }, - "bytecode": { - "doc_opcode": "FFFz", - "tlb": "#FFF z:(## 4) {1 <= z}", - "prefix": "FFF", - "operands_range_check": { - "length": 4, - "from": 1, - "to": 15 - }, - "operands": [ - { - "name": "z", - "loader": "uint", - "loader_args": { - "size": 4 - } - } - ] - }, - "value_flow": { - "doc_stack": "-", - "inputs": { - "stack": [] - }, - "outputs": { - "stack": [] - } - } - }, - { - "mnemonic": "SETCPX", - "doc": { - "category": "codepage", - "description": "Selects codepage `c` with `-2^15 <= c < 2^15` passed in the top of the stack.", - "gas": "26", - "fift": "SETCPX" - }, - "bytecode": { - "doc_opcode": "FFF0", - "tlb": "#FFF0", - "prefix": "FFF0", - "operands": [] - }, - "value_flow": { - "doc_stack": "c - ", - "inputs": { - "stack": [ - { - "type": "simple", - "name": "c", - "value_types": ["Integer"] - } - ] - }, - "outputs": { - "stack": [] - } - } - } - ], - "aliases": [ - { - "mnemonic": "SWAP", - "alias_of": "XCHG_0I", - "doc_fift": "SWAP", - "doc_stack": "x y - y x", - "description": "Same as `s1 XCHG0`.", - "operands": { - "i": 1 - } - }, - { - "mnemonic": "DUP", - "alias_of": "PUSH", - "doc_fift": "DUP", - "doc_stack": "x - x x", - "description": "Same as `s0 PUSH`.", - "operands": { - "i": 0 - } - }, - { - "mnemonic": "OVER", - "alias_of": "PUSH", - "doc_fift": "OVER", - "doc_stack": "x y - x y x", - "description": "Same as `s1 PUSH`.", - "operands": { - "i": 1 - } - }, - { - "mnemonic": "DROP", - "alias_of": "POP", - "doc_fift": "DROP", - "doc_stack": "x -", - "description": "Same as `s0 POP`, discards the top-of-stack value.", - "operands": { - "i": 0 - } - }, - { - "mnemonic": "NIP", - "alias_of": "POP", - "doc_fift": "NIP", - "doc_stack": "x y - y", - "description": "Same as `s1 POP`.", - "operands": { - "i": 1 - } - }, - { - "mnemonic": "ROT2", - "alias_of": "BLKSWAP", - "doc_fift": "ROT2\n2ROT", - "doc_stack": "a b c d e f - c d e f a b", - "description": "Rotates the three topmost pairs of stack entries.", - "operands": { - "i": 1, - "j": 3 - } - }, - { - "mnemonic": "ROLL", - "alias_of": "BLKSWAP", - "doc_fift": "[i+1] ROLL", - "doc_stack": "", - "description": "Rotates the top `i+1` stack entries.\nEquivalent to `1 [i+1] BLKSWAP`.", - "operands": { - "i": 0 - } - }, - { - "mnemonic": "ROLLREV", - "alias_of": "BLKSWAP", - "doc_fift": "[i+1] -ROLL\n[i+1] ROLLREV", - "doc_stack": "", - "description": "Rotates the top `i+1` stack entries in the other direction.\nEquivalent to `[i+1] 1 BLKSWAP`.", - "operands": {} - }, - { - "mnemonic": "NIL", - "alias_of": "TUPLE", - "doc_fift": "NIL", - "doc_stack": "- t", - "description": "Pushes the only _Tuple_ `t=()` of length zero.", - "operands": { - "n": 0 - } - }, - { - "mnemonic": "SINGLE", - "alias_of": "TUPLE", - "doc_fift": "SINGLE", - "doc_stack": "x - t", - "description": "Creates a singleton `t:=(x)`, i.e., a _Tuple_ of length one.", - "operands": { - "n": 1 - } - }, - { - "mnemonic": "PAIR", - "alias_of": "TUPLE", - "doc_fift": "PAIR\nCONS", - "doc_stack": "x y - t", - "description": "Creates pair `t:=(x,y)`.", - "operands": { - "n": 2 - } - }, - { - "mnemonic": "TRIPLE", - "alias_of": "TUPLE", - "doc_fift": "TRIPLE", - "doc_stack": "x y z - t", - "description": "Creates triple `t:=(x,y,z)`.", - "operands": { - "n": 3 - } - }, - { - "mnemonic": "FIRST", - "alias_of": "INDEX", - "doc_fift": "FIRST\nCAR", - "doc_stack": "t - x", - "description": "Returns the first element of a _Tuple_.", - "operands": { - "k": 0 - } - }, - { - "mnemonic": "SECOND", - "alias_of": "INDEX", - "doc_fift": "SECOND\nCDR", - "doc_stack": "t - y", - "description": "Returns the second element of a _Tuple_.", - "operands": { - "k": 1 - } - }, - { - "mnemonic": "THIRD", - "alias_of": "INDEX", - "doc_fift": "THIRD", - "doc_stack": "t - z", - "description": "Returns the third element of a _Tuple_.", - "operands": { - "k": 2 - } - }, - { - "mnemonic": "UNSINGLE", - "alias_of": "UNTUPLE", - "doc_fift": "UNSINGLE", - "doc_stack": "t - x", - "description": "Unpacks a singleton `t=(x)`.", - "operands": { - "n": 1 - } - }, - { - "mnemonic": "UNPAIR", - "alias_of": "UNTUPLE", - "doc_fift": "UNPAIR\nUNCONS", - "doc_stack": "t - x y", - "description": "Unpacks a pair `t=(x,y)`.", - "operands": { - "n": 2 - } - }, - { - "mnemonic": "UNTRIPLE", - "alias_of": "UNTUPLE", - "doc_fift": "UNTRIPLE", - "doc_stack": "t - x y z", - "description": "Unpacks a triple `t=(x,y,z)`.", - "operands": { - "n": 3 - } - }, - { - "mnemonic": "CHKTUPLE", - "alias_of": "UNPACKFIRST", - "doc_fift": "CHKTUPLE", - "doc_stack": "t -", - "description": "Checks whether `t` is a _Tuple_. If not, throws a type check exception.", - "operands": { - "k": 0 - } - }, - { - "mnemonic": "SETFIRST", - "alias_of": "SETINDEX", - "doc_fift": "SETFIRST", - "doc_stack": "t x - t'", - "description": "Sets the first component of _Tuple_ `t` to `x` and returns the resulting _Tuple_ `t'`.", - "operands": { - "k": 0 - } - }, - { - "mnemonic": "SETSECOND", - "alias_of": "SETINDEX", - "doc_fift": "SETSECOND", - "doc_stack": "t x - t'", - "description": "Sets the second component of _Tuple_ `t` to `x` and returns the resulting _Tuple_ `t'`.", - "operands": { - "k": 1 - } - }, - { - "mnemonic": "SETTHIRD", - "alias_of": "SETINDEX", - "doc_fift": "SETTHIRD", - "doc_stack": "t x - t'", - "description": "Sets the third component of _Tuple_ `t` to `x` and returns the resulting _Tuple_ `t'`.", - "operands": { - "k": 2 - } - }, - { - "mnemonic": "FIRSTQ", - "alias_of": "INDEXQ", - "doc_fift": "FIRSTQ\nCARQ", - "doc_stack": "t - x", - "description": "Returns the first element of a _Tuple_.", - "operands": { - "k": 0 - } - }, - { - "mnemonic": "SECONDQ", - "alias_of": "INDEXQ", - "doc_fift": "SECONDQ\nCDRQ", - "doc_stack": "t - y", - "description": "Returns the second element of a _Tuple_.", - "operands": { - "k": 1 - } - }, - { - "mnemonic": "THIRDQ", - "alias_of": "INDEXQ", - "doc_fift": "THIRDQ", - "doc_stack": "t - z", - "description": "Returns the third element of a _Tuple_.", - "operands": { - "k": 2 - } - }, - { - "mnemonic": "SETFIRSTQ", - "alias_of": "SETINDEXQ", - "doc_fift": "SETFIRSTQ", - "doc_stack": "t x - t'", - "description": "Sets the first component of _Tuple_ `t` to `x` and returns the resulting _Tuple_ `t'`.", - "operands": { - "k": 0 - } - }, - { - "mnemonic": "SETSECONDQ", - "alias_of": "SETINDEXQ", - "doc_fift": "SETSECONDQ", - "doc_stack": "t x - t'", - "description": "Sets the second component of _Tuple_ `t` to `x` and returns the resulting _Tuple_ `t'`.", - "operands": { - "k": 1 - } - }, - { - "mnemonic": "SETTHIRDQ", - "alias_of": "SETINDEXQ", - "doc_fift": "SETTHIRDQ", - "doc_stack": "t x - t'", - "description": "Sets the third component of _Tuple_ `t` to `x` and returns the resulting _Tuple_ `t'`.", - "operands": { - "k": 2 - } - }, - { - "mnemonic": "CADR", - "alias_of": "INDEX2", - "doc_fift": "CADR", - "doc_stack": "t - x", - "description": "Recovers `x=(t_2)_1`.", - "operands": { - "i": 1, - "j": 0 - } - }, - { - "mnemonic": "CDDR", - "alias_of": "INDEX2", - "doc_fift": "CDDR", - "doc_stack": "t - x", - "description": "Recovers `x=(t_2)_2`.", - "operands": { - "i": 1, - "j": 1 - } - }, - { - "mnemonic": "CADDR", - "alias_of": "INDEX3", - "doc_fift": "CADDR", - "doc_stack": "t - x", - "description": "Recovers `x=t_2_2_1`.", - "operands": { - "i": 1, - "j": 1, - "k": 0 - } - }, - { - "mnemonic": "CDDDR", - "alias_of": "INDEX3", - "doc_fift": "CDDDR", - "doc_stack": "t - x", - "description": "Recovers `x=t_2_2_2`.", - "operands": { - "i": 1, - "j": 1, - "k": 1 - } - }, - { - "mnemonic": "ZERO", - "alias_of": "PUSHINT_4", - "doc_fift": "ZERO\nFALSE", - "doc_stack": "- 0", - "description": "", - "operands": { - "i": 0 - } - }, - { - "mnemonic": "ONE", - "alias_of": "PUSHINT_4", - "doc_fift": "ONE", - "doc_stack": "- 1", - "description": "", - "operands": { - "i": 1 - } - }, - { - "mnemonic": "TWO", - "alias_of": "PUSHINT_4", - "doc_fift": "TWO", - "doc_stack": "- 2", - "description": "", - "operands": { - "i": 2 - } - }, - { - "mnemonic": "TEN", - "alias_of": "PUSHINT_4", - "doc_fift": "TEN", - "doc_stack": "- 10", - "description": "", - "operands": { - "i": 10 - } - }, - { - "mnemonic": "TRUE", - "alias_of": "PUSHINT_4", - "doc_fift": "TRUE", - "doc_stack": "- -1", - "description": "", - "operands": { - "i": 15 - } - }, - { - "mnemonic": "CHKBOOL", - "alias_of": "FITS", - "doc_fift": "CHKBOOL", - "doc_stack": "x - x", - "description": "Checks whether `x` is a \u0432\u0402\u045aboolean value'' (i.e., either 0 or -1).", - "operands": { - "c": 0 - } - }, - { - "mnemonic": "CHKBIT", - "alias_of": "UFITS", - "doc_fift": "CHKBIT", - "doc_stack": "x - x", - "description": "Checks whether `x` is a binary digit (i.e., zero or one).", - "operands": { - "c": 0 - } - }, - { - "mnemonic": "ISZERO", - "alias_of": "EQINT", - "doc_fift": "ISZERO", - "doc_stack": "x - x=0", - "description": "Checks whether an integer is zero. Corresponds to Forth's `0=`.", - "operands": { - "y": 0 - } - }, - { - "mnemonic": "ISNEG", - "alias_of": "LESSINT", - "doc_fift": "ISNEG", - "doc_stack": "x - x<0", - "description": "Checks whether an integer is negative. Corresponds to Forth's `0<`.", - "operands": { - "y": 0 - } - }, - { - "mnemonic": "ISNPOS", - "alias_of": "LESSINT", - "doc_fift": "ISNPOS", - "doc_stack": "x - x<=0", - "description": "Checks whether an integer is non-positive.", - "operands": { - "y": 1 - } - }, - { - "mnemonic": "ISPOS", - "alias_of": "GTINT", - "doc_fift": "ISPOS", - "doc_stack": "x - x>0", - "description": "Checks whether an integer is positive. Corresponds to Forth's `0>`.", - "operands": { - "y": 0 - } - }, - { - "mnemonic": "ISNNEG", - "alias_of": "GTINT", - "doc_fift": "ISNNEG", - "doc_stack": "x - x >=0", - "description": "Checks whether an integer is non-negative.", - "operands": { - "y": -1 - } - }, - { - "mnemonic": "STZERO", - "alias_of": "STSLICECONST", - "doc_fift": "STZERO", - "doc_stack": "b - b'", - "description": "Stores one binary zero.", - "operands": { - "x": 0, - "y": 0, - "sss": "0" - } - }, - { - "mnemonic": "STONE", - "alias_of": "STSLICECONST", - "doc_fift": "STONE", - "doc_stack": "b - b'", - "description": "Stores one binary one.", - "operands": { - "x": 0, - "y": 0, - "sss": "1" - } - }, - { - "mnemonic": "PLDREF", - "alias_of": "PLDREFIDX", - "doc_fift": "PLDREF", - "doc_stack": "s - c", - "description": "Preloads the first cell reference of a _Slice_.", - "operands": { - "n": 0 - } - }, - { - "mnemonic": "SETNUMARGS", - "alias_of": "SETCONTARGS_N", - "doc_fift": "[n] SETNUMARGS", - "doc_stack": "c - c'", - "description": "Sets `c.nargs` to `n` plus the current depth of `c`'s stack, where `0 <= n <= 14`. If `c.nargs` is already set to a non-negative value, does nothing.", - "operands": { - "r": 0 - } - }, - { - "mnemonic": "SETCONTARGS", - "alias_of": "SETCONTARGS_N", - "doc_fift": "[r] -1 SETCONTARGS", - "doc_stack": "x_1 x_2...x_r c - c'", - "description": "Pushes `0 <= r <= 15` values `x_1...x_r` into the stack of (a copy of) the continuation `c`, starting with `x_1`. If the final depth of `c`'s stack turns out to be greater than `c.nargs`, a stack overflow exception is generated.", - "operands": { - "n": -1 - } - }, - { - "mnemonic": "BLESSNUMARGS", - "alias_of": "BLESSARGS", - "doc_fift": "[n] BLESSNUMARGS", - "doc_stack": "s - c", - "description": "Also transforms a _Slice_ `s` into a _Continuation_ `c`, but sets `c.nargs` to `0 <= n <= 14`.", - "operands": { - "r": 0 - } - }, - { - "mnemonic": "PUSHROOT", - "alias_of": "PUSHCTR", - "doc_fift": "c4 PUSHCTR\nc4 PUSH", - "doc_stack": "- x", - "description": "Pushes the \u0432\u0402\u045aglobal data root'' cell reference, thus enabling access to persistent smart-contract data.", - "operands": { - "i": 4 - } - }, - { - "mnemonic": "POPROOT", - "alias_of": "POPCTR", - "doc_fift": "c4 POPCTR\nc4 POP", - "doc_stack": "x -", - "description": "Sets the \u0432\u0402\u045aglobal data root'' cell reference, thus allowing modification of persistent smart-contract data.", - "operands": { - "i": 4 - } - }, - { - "mnemonic": "NEWDICT", - "alias_of": "NULL", - "doc_fift": "NEWDICT", - "doc_stack": " - D", - "description": "Returns a new empty dictionary.\nIt is an alternative mnemonics for `PUSHNULL`.", - "operands": {} - }, - { - "mnemonic": "DICTEMPTY", - "alias_of": "ISNULL", - "doc_fift": "DICTEMPTY", - "doc_stack": "D - ?", - "description": "Checks whether dictionary `D` is empty, and returns `-1` or `0` accordingly.\nIt is an alternative mnemonics for `ISNULL`.", - "operands": {} - }, - { - "mnemonic": "STDICTS", - "alias_of": "STSLICE", - "doc_fift": "STDICTS\n", - "doc_stack": "s b - b'", - "description": "Stores a _Slice_-represented dictionary `s` into _Builder_ `b`.\nIt is actually a synonym for `STSLICE`.", - "operands": {} - }, - { - "mnemonic": "NOW", - "alias_of": "GETPARAM", - "doc_fift": "NOW", - "doc_stack": " - x", - "description": "Returns the current Unix time as an _Integer_. If it is impossible to recover the requested value starting from `c7`, throws a type checking or range checking exception as appropriate.\nEquivalent to `3 GETPARAM`.", - "operands": { - "i": 3 - } - }, - { - "mnemonic": "BLOCKLT", - "alias_of": "GETPARAM", - "doc_fift": "BLOCKLT", - "doc_stack": " - x", - "description": "Returns the starting logical time of the current block.\nEquivalent to `4 GETPARAM`.", - "operands": { - "i": 4 - } - }, - { - "mnemonic": "LTIME", - "alias_of": "GETPARAM", - "doc_fift": "LTIME", - "doc_stack": " - x", - "description": "Returns the logical time of the current transaction.\nEquivalent to `5 GETPARAM`.", - "operands": { - "i": 5 - } - }, - { - "mnemonic": "RANDSEED", - "alias_of": "GETPARAM", - "doc_fift": "RANDSEED", - "doc_stack": " - x", - "description": "Returns the current random seed as an unsigned 256-bit _Integer_.\nEquivalent to `6 GETPARAM`.", - "operands": { - "i": 6 - } - }, - { - "mnemonic": "BALANCE", - "alias_of": "GETPARAM", - "doc_fift": "BALANCE", - "doc_stack": " - t", - "description": "Returns the remaining balance of the smart contract as a _Tuple_ consisting of an _Integer_ (the remaining Gram balance in nanograms) and a _Maybe Cell_ (a dictionary with 32-bit keys representing the balance of \u0432\u0402\u045aextra currencies'').\nEquivalent to `7 GETPARAM`.\nNote that `RAW` primitives such as `SENDRAWMSG` do not update this field.", - "operands": { - "i": 7 - } - }, - { - "mnemonic": "MYADDR", - "alias_of": "GETPARAM", - "doc_fift": "MYADDR", - "doc_stack": " - s", - "description": "Returns the internal address of the current smart contract as a _Slice_ with a `MsgAddressInt`. If necessary, it can be parsed further using primitives such as `PARSEMSGADDR` or `REWRITESTDADDR`.\nEquivalent to `8 GETPARAM`.", - "operands": { - "i": 8 - } - }, - { - "mnemonic": "CONFIGROOT", - "alias_of": "GETPARAM", - "doc_fift": "CONFIGROOT", - "doc_stack": " - D", - "description": "Returns the _Maybe Cell_ `D` with the current global configuration dictionary. Equivalent to `9 GETPARAM `.", - "operands": { - "i": 9 - } - }, - { - "mnemonic": "MYCODE", - "alias_of": "GETPARAM", - "doc_fift": "MYCODE", - "doc_stack": " - c", - "description": "Retrieves code of smart-contract from c7. Equivalent to `10 GETPARAM `.", - "operands": { - "i": 10 - } - }, - { - "mnemonic": "INCOMINGVALUE", - "alias_of": "GETPARAM", - "doc_fift": "INCOMINGVALUE", - "doc_stack": " - t", - "description": "Retrieves value of incoming message from c7. Equivalent to `11 GETPARAM `.", - "operands": { - "i": 11 - } - }, - { - "mnemonic": "STORAGEFEES", - "alias_of": "GETPARAM", - "doc_fift": "STORAGEFEES", - "doc_stack": " - i", - "description": "Retrieves value of storage phase fees from c7. Equivalent to `12 GETPARAM `.", - "operands": { - "i": 12 - } - }, - { - "mnemonic": "PREVBLOCKSINFOTUPLE", - "alias_of": "GETPARAM", - "doc_fift": "PREVBLOCKSINFOTUPLE", - "doc_stack": " - t", - "description": "Retrives PrevBlocksInfo: `[last_mc_blocks, prev_key_block]` from c7. Equivalent to `13 GETPARAM `.", - "operands": { - "i": 13 - } - }, - { - "mnemonic": "SETCP0", - "alias_of": "SETCP", - "doc_fift": "SETCP0", - "doc_stack": "-", - "description": "Selects TVM (test) codepage zero as described in this document.", - "operands": { - "n": 0 - } - } - ] -} \ No newline at end of file +{ + "$schema": "./schema.json", + "instructions": [ + { + "mnemonic": "NOP", + "since_version": 0, + "doc": { + "category": "stack_basic", + "description": "Does nothing.", + "gas": "18", + "fift": "NOP", + "fift_examples": [], + "opcode": "00", + "stack": "-" + }, + "bytecode": { "tlb": "#00", "prefix": "00", "operands": [] }, + "value_flow": { + "inputs": { "stack": [], "registers": [] }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "XCHG_0I", + "since_version": 0, + "doc": { + "category": "stack_basic", + "description": "Interchanges `s0` with `s[i]`, `1 <= i <= 15`.", + "gas": "18", + "fift": "s[i] XCHG0", + "fift_examples": [], + "opcode": "0i", + "stack": "" + }, + "bytecode": { + "tlb": "#0 i:(## 4) {1 <= i}", + "prefix": "0", + "operands_range_check": { "length": 4, "from": 1, "to": 15 }, + "operands": [ + { + "name": "i", + "type": "uint", + "size": 4, + "min_value": 1, + "max_value": 15, + "display_hints": [{ "type": "stack" }] + } + ] + }, + "value_flow": { + "inputs": { "registers": [] }, + "outputs": { "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "XCHG_IJ", + "since_version": 0, + "doc": { + "category": "stack_basic", + "description": "Interchanges `s[i]` with `s[j]`, `1 <= i < j <= 15`.", + "gas": "26", + "fift": "s[i] s[j] XCHG", + "fift_examples": [], + "opcode": "10ij", + "stack": "" + }, + "bytecode": { + "tlb": "#10 i:(## 4) j:(## 4) {1 <= i} {i + 1 <= j}", + "prefix": "10", + "operands_range_check": { "length": 4, "from": 1, "to": 15 }, + "operands": [ + { + "name": "i", + "type": "uint", + "size": 4, + "min_value": 1, + "max_value": 15, + "display_hints": [{ "type": "stack" }] + }, + { + "name": "j", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [{ "type": "stack" }] + } + ] + }, + "value_flow": { + "inputs": { "registers": [] }, + "outputs": { "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "XCHG_0I_LONG", + "since_version": 0, + "doc": { + "category": "stack_basic", + "description": "Interchanges `s0` with `s[ii]`, `0 <= ii <= 255`.", + "gas": "26", + "fift": "s0 [ii] s() XCHG", + "fift_examples": [], + "opcode": "11ii", + "stack": "" + }, + "bytecode": { + "tlb": "#11 ii:uint8", + "prefix": "11", + "operands": [ + { + "name": "i", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "stack" }] + } + ] + }, + "value_flow": { + "inputs": { "registers": [] }, + "outputs": { "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "XCHG_1I", + "since_version": 0, + "doc": { + "category": "stack_basic", + "description": "Interchanges `s1` with `s[i]`, `2 <= i <= 15`.", + "gas": "18", + "fift": "s1 s[i] XCHG", + "fift_examples": [], + "opcode": "1i", + "stack": "" + }, + "bytecode": { + "tlb": "#1 i:(## 4) {2 <= i}", + "prefix": "1", + "operands_range_check": { "length": 4, "from": 2, "to": 15 }, + "operands": [ + { + "name": "i", + "type": "uint", + "size": 4, + "min_value": 2, + "max_value": 15, + "display_hints": [{ "type": "stack" }] + } + ] + }, + "value_flow": { + "inputs": { "registers": [] }, + "outputs": { "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PUSH", + "since_version": 0, + "doc": { + "category": "stack_basic", + "description": "Pushes a copy of the old `s[i]` into the stack.", + "gas": "18", + "fift": "s[i] PUSH", + "fift_examples": [], + "opcode": "2i", + "stack": "" + }, + "bytecode": { + "tlb": "#2 i:uint4", + "prefix": "2", + "operands": [ + { + "name": "i", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [{ "type": "stack" }] + } + ] + }, + "value_flow": { + "inputs": { "registers": [] }, + "outputs": { "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "POP", + "since_version": 0, + "doc": { + "category": "stack_basic", + "description": "Pops the old `s0` value into the old `s[i]`.", + "gas": "18", + "fift": "s[i] POP", + "fift_examples": [], + "opcode": "3i", + "stack": "" + }, + "bytecode": { + "tlb": "#3 i:uint4", + "prefix": "3", + "operands": [ + { + "name": "i", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [{ "type": "stack" }] + } + ] + }, + "value_flow": { + "inputs": { "registers": [] }, + "outputs": { "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "XCHG3", + "since_version": 0, + "doc": { + "category": "stack_complex", + "description": "Equivalent to `s2 s[i] XCHG` `s1 s[j] XCHG` `s[k] XCHG0`.", + "gas": "26", + "fift": "s[i] s[j] s[k] XCHG3", + "fift_examples": [], + "opcode": "4ijk", + "stack": "" + }, + "bytecode": { + "tlb": "#4 i:uint4 j:uint4 k:uint4", + "prefix": "4", + "operands": [ + { + "name": "i", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [{ "type": "stack" }] + }, + { + "name": "j", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [{ "type": "stack" }] + }, + { + "name": "k", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [{ "type": "stack" }] + } + ] + }, + "value_flow": { + "inputs": { "registers": [] }, + "outputs": { "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "XCHG2", + "since_version": 0, + "doc": { + "category": "stack_complex", + "description": "Equivalent to `s1 s[i] XCHG` `s[j] XCHG0`.", + "gas": "26", + "fift": "s[i] s[j] XCHG2", + "fift_examples": [], + "opcode": "50ij", + "stack": "" + }, + "bytecode": { + "tlb": "#50 i:uint4 j:uint4", + "prefix": "50", + "operands": [ + { + "name": "i", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [{ "type": "stack" }] + }, + { + "name": "j", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [{ "type": "stack" }] + } + ] + }, + "value_flow": { + "inputs": { "registers": [] }, + "outputs": { "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "XCPU", + "since_version": 0, + "doc": { + "category": "stack_complex", + "description": "Equivalent to `s[i] XCHG0` `s[j] PUSH`.", + "gas": "26", + "fift": "s[i] s[j] XCPU", + "fift_examples": [], + "opcode": "51ij", + "stack": "" + }, + "bytecode": { + "tlb": "#51 i:uint4 j:uint4", + "prefix": "51", + "operands": [ + { + "name": "i", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [{ "type": "stack" }] + }, + { + "name": "j", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [{ "type": "stack" }] + } + ] + }, + "value_flow": { + "inputs": { "registers": [] }, + "outputs": { "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PUXC", + "since_version": 0, + "doc": { + "category": "stack_complex", + "description": "Equivalent to `s[i] PUSH` `SWAP` `s[j] XCHG0`.", + "gas": "26", + "fift": "s[i] s[j-1] PUXC", + "fift_examples": [], + "opcode": "52ij", + "stack": "" + }, + "bytecode": { + "tlb": "#52 i:uint4 j:uint4", + "prefix": "52", + "operands": [ + { + "name": "i", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [{ "type": "stack" }] + }, + { + "name": "j", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [ + { "type": "stack" }, + { "type": "add", "value": -1 } + ] + } + ] + }, + "value_flow": { + "inputs": { "registers": [] }, + "outputs": { "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PUSH2", + "since_version": 0, + "doc": { + "category": "stack_complex", + "description": "Equivalent to `s[i] PUSH` `s[j+1] PUSH`.", + "gas": "26", + "fift": "s[i] s[j] PUSH2", + "fift_examples": [], + "opcode": "53ij", + "stack": "" + }, + "bytecode": { + "tlb": "#53 i:uint4 j:uint4", + "prefix": "53", + "operands": [ + { + "name": "i", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [{ "type": "stack" }] + }, + { + "name": "j", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [{ "type": "stack" }] + } + ] + }, + "value_flow": { + "inputs": { "registers": [] }, + "outputs": { "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "XCHG3_ALT", + "since_version": 0, + "doc": { + "category": "stack_complex", + "description": "Long form of `XCHG3`.", + "gas": "34", + "fift": "s[i] s[j] s[k] XCHG3_l", + "fift_examples": [], + "opcode": "540ijk", + "stack": "" + }, + "bytecode": { + "tlb": "#540 i:uint4 j:uint4 k:uint4", + "prefix": "540", + "operands": [ + { + "name": "i", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [{ "type": "stack" }] + }, + { + "name": "j", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [{ "type": "stack" }] + }, + { + "name": "k", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [{ "type": "stack" }] + } + ] + }, + "value_flow": { + "inputs": { "registers": [] }, + "outputs": { "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "XC2PU", + "since_version": 0, + "doc": { + "category": "stack_complex", + "description": "Equivalent to `s[i] s[j] XCHG2` `s[k] PUSH`.", + "gas": "34", + "fift": "s[i] s[j] s[k] XC2PU", + "fift_examples": [], + "opcode": "541ijk", + "stack": "" + }, + "bytecode": { + "tlb": "#541 i:uint4 j:uint4 k:uint4", + "prefix": "541", + "operands": [ + { + "name": "i", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [{ "type": "stack" }] + }, + { + "name": "j", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [{ "type": "stack" }] + }, + { + "name": "k", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [{ "type": "stack" }] + } + ] + }, + "value_flow": { + "inputs": { "registers": [] }, + "outputs": { "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "XCPUXC", + "since_version": 0, + "doc": { + "category": "stack_complex", + "description": "Equivalent to `s1 s[i] XCHG` `s[j] s[k-1] PUXC`.", + "gas": "34", + "fift": "s[i] s[j] s[k-1] XCPUXC", + "fift_examples": [], + "opcode": "542ijk", + "stack": "" + }, + "bytecode": { + "tlb": "#542 i:uint4 j:uint4 k:uint4", + "prefix": "542", + "operands": [ + { + "name": "i", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [{ "type": "stack" }] + }, + { + "name": "j", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [{ "type": "stack" }] + }, + { + "name": "k", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [ + { "type": "stack" }, + { "type": "add", "value": -1 } + ] + } + ] + }, + "value_flow": { + "inputs": { "registers": [] }, + "outputs": { "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "XCPU2", + "since_version": 0, + "doc": { + "category": "stack_complex", + "description": "Equivalent to `s[i] XCHG0` `s[j] s[k] PUSH2`.", + "gas": "34", + "fift": "s[i] s[j] s[k] XCPU2", + "fift_examples": [], + "opcode": "543ijk", + "stack": "" + }, + "bytecode": { + "tlb": "#543 i:uint4 j:uint4 k:uint4", + "prefix": "543", + "operands": [ + { + "name": "i", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [{ "type": "stack" }] + }, + { + "name": "j", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [{ "type": "stack" }] + }, + { + "name": "k", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [{ "type": "stack" }] + } + ] + }, + "value_flow": { + "inputs": { "registers": [] }, + "outputs": { "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PUXC2", + "since_version": 0, + "doc": { + "category": "stack_complex", + "description": "Equivalent to `s[i] PUSH` `s2 XCHG0` `s[j] s[k] XCHG2`.", + "gas": "34", + "fift": "s[i] s[j-1] s[k-1] PUXC2", + "fift_examples": [], + "opcode": "544ijk", + "stack": "" + }, + "bytecode": { + "tlb": "#544 i:uint4 j:uint4 k:uint4", + "prefix": "544", + "operands": [ + { + "name": "i", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [{ "type": "stack" }] + }, + { + "name": "j", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [ + { "type": "stack" }, + { "type": "add", "value": -1 } + ] + }, + { + "name": "k", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [ + { "type": "stack" }, + { "type": "add", "value": -1 } + ] + } + ] + }, + "value_flow": { + "inputs": { "registers": [] }, + "outputs": { "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PUXCPU", + "since_version": 0, + "doc": { + "category": "stack_complex", + "description": "Equivalent to `s[i] s[j-1] PUXC` `s[k] PUSH`.", + "gas": "34", + "fift": "s[i] s[j-1] s[k-1] PUXCPU", + "fift_examples": [], + "opcode": "545ijk", + "stack": "" + }, + "bytecode": { + "tlb": "#545 i:uint4 j:uint4 k:uint4", + "prefix": "545", + "operands": [ + { + "name": "i", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [{ "type": "stack" }] + }, + { + "name": "j", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [ + { "type": "stack" }, + { "type": "add", "value": -1 } + ] + }, + { + "name": "k", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [ + { "type": "stack" }, + { "type": "add", "value": -1 } + ] + } + ] + }, + "value_flow": { + "inputs": { "registers": [] }, + "outputs": { "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PU2XC", + "since_version": 0, + "doc": { + "category": "stack_complex", + "description": "Equivalent to `s[i] PUSH` `SWAP` `s[j] s[k-1] PUXC`.", + "gas": "34", + "fift": "s[i] s[j-1] s[k-2] PU2XC", + "fift_examples": [], + "opcode": "546ijk", + "stack": "" + }, + "bytecode": { + "tlb": "#546 i:uint4 j:uint4 k:uint4", + "prefix": "546", + "operands": [ + { + "name": "i", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [{ "type": "stack" }] + }, + { + "name": "j", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [ + { "type": "stack" }, + { "type": "add", "value": -1 } + ] + }, + { + "name": "k", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [ + { "type": "stack" }, + { "type": "add", "value": -2 } + ] + } + ] + }, + "value_flow": { + "inputs": { "registers": [] }, + "outputs": { "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PUSH3", + "since_version": 0, + "doc": { + "category": "stack_complex", + "description": "Equivalent to `s[i] PUSH` `s[j+1] s[k+1] PUSH2`.", + "gas": "34", + "fift": "s[i] s[j] s[k] PUSH3", + "fift_examples": [], + "opcode": "547ijk", + "stack": "" + }, + "bytecode": { + "tlb": "#547 i:uint4 j:uint4 k:uint4", + "prefix": "547", + "operands": [ + { + "name": "i", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [{ "type": "stack" }] + }, + { + "name": "j", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [{ "type": "stack" }] + }, + { + "name": "k", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [{ "type": "stack" }] + } + ] + }, + "value_flow": { + "inputs": { "registers": [] }, + "outputs": { "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "BLKSWAP", + "since_version": 0, + "doc": { + "category": "stack_complex", + "description": "Permutes two blocks `s[j+i+1] ... s[j+1]` and `s[j] ... s0`.\n`0 <= i,j <= 15`\nEquivalent to `[i+1] [j+1] REVERSE` `[j+1] 0 REVERSE` `[i+j+2] 0 REVERSE`.", + "gas": "26", + "fift": "[i+1] [j+1] BLKSWAP", + "fift_examples": [], + "opcode": "55ij", + "stack": "" + }, + "bytecode": { + "tlb": "#55 i:uint4 j:uint4", + "prefix": "55", + "operands": [ + { + "name": "i", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [ + { "type": "stack" }, + { "type": "add", "value": 1 } + ] + }, + { + "name": "j", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [ + { "type": "stack" }, + { "type": "add", "value": 1 } + ] + } + ] + }, + "value_flow": { + "inputs": { "registers": [] }, + "outputs": { "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PUSH_LONG", + "since_version": 0, + "doc": { + "category": "stack_complex", + "description": "Pushes a copy of the old `s[ii]` into the stack.\n`0 <= ii <= 255`", + "gas": "26", + "fift": "[ii] s() PUSH", + "fift_examples": [], + "opcode": "56ii", + "stack": "" + }, + "bytecode": { + "tlb": "#56 ii:uint8", + "prefix": "56", + "operands": [ + { + "name": "i", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "stack" }] + } + ] + }, + "value_flow": { + "inputs": { "registers": [] }, + "outputs": { "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "POP_LONG", + "since_version": 0, + "doc": { + "category": "stack_complex", + "description": "Pops the old `s0` value into the old `s[ii]`.\n`0 <= ii <= 255`", + "gas": "26", + "fift": "[ii] s() POP", + "fift_examples": [], + "opcode": "57ii", + "stack": "" + }, + "bytecode": { + "tlb": "#57 ii:uint8", + "prefix": "57", + "operands": [ + { + "name": "i", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "stack" }] + } + ] + }, + "value_flow": { + "inputs": { "registers": [] }, + "outputs": { "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "ROT", + "since_version": 0, + "doc": { + "category": "stack_complex", + "description": "Equivalent to `1 2 BLKSWAP` or to `s2 s1 XCHG2`.", + "gas": "18", + "fift": "ROT", + "fift_examples": [], + "opcode": "58", + "stack": "a b c - b c a" + }, + "bytecode": { "tlb": "#58", "prefix": "58", "operands": [] }, + "value_flow": { + "inputs": { "registers": [] }, + "outputs": { "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "ROTREV", + "since_version": 0, + "doc": { + "category": "stack_complex", + "description": "Equivalent to `2 1 BLKSWAP` or to `s2 s2 XCHG2`.", + "gas": "18", + "fift": "ROTREV\n-ROT", + "fift_examples": [], + "opcode": "59", + "stack": "a b c - c a b" + }, + "bytecode": { "tlb": "#59", "prefix": "59", "operands": [] }, + "value_flow": { + "inputs": { "registers": [] }, + "outputs": { "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SWAP2", + "since_version": 0, + "doc": { + "category": "stack_complex", + "description": "Equivalent to `2 2 BLKSWAP` or to `s3 s2 XCHG2`.", + "gas": "18", + "fift": "SWAP2\n2SWAP", + "fift_examples": [], + "opcode": "5A", + "stack": "a b c d - c d a b" + }, + "bytecode": { "tlb": "#5A", "prefix": "5A", "operands": [] }, + "value_flow": { + "inputs": { "registers": [] }, + "outputs": { "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DROP2", + "since_version": 0, + "doc": { + "category": "stack_complex", + "description": "Equivalent to `DROP` `DROP`.", + "gas": "18", + "fift": "DROP2\n2DROP", + "fift_examples": [], + "opcode": "5B", + "stack": "a b - " + }, + "bytecode": { "tlb": "#5B", "prefix": "5B", "operands": [] }, + "value_flow": { + "inputs": { "registers": [] }, + "outputs": { "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DUP2", + "since_version": 0, + "doc": { + "category": "stack_complex", + "description": "Equivalent to `s1 s0 PUSH2`.", + "gas": "18", + "fift": "DUP2\n2DUP", + "fift_examples": [], + "opcode": "5C", + "stack": "a b - a b a b" + }, + "bytecode": { "tlb": "#5C", "prefix": "5C", "operands": [] }, + "value_flow": { + "inputs": { "registers": [] }, + "outputs": { "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "OVER2", + "since_version": 0, + "doc": { + "category": "stack_complex", + "description": "Equivalent to `s3 s2 PUSH2`.", + "gas": "18", + "fift": "OVER2\n2OVER", + "fift_examples": [], + "opcode": "5D", + "stack": "a b c d - a b c d a b" + }, + "bytecode": { "tlb": "#5D", "prefix": "5D", "operands": [] }, + "value_flow": { + "inputs": { "registers": [] }, + "outputs": { "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "REVERSE", + "since_version": 0, + "doc": { + "category": "stack_complex", + "description": "Reverses the order of `s[j+i+1] ... s[j]`.", + "gas": "26", + "fift": "[i+2] [j] REVERSE", + "fift_examples": [], + "opcode": "5Eij", + "stack": "" + }, + "bytecode": { + "tlb": "#5E i:uint4 j:uint4", + "prefix": "5E", + "operands": [ + { + "name": "i", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [] + }, + { + "name": "j", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [] + } + ] + }, + "value_flow": { + "inputs": { "registers": [] }, + "outputs": { "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "BLKDROP", + "since_version": 0, + "doc": { + "category": "stack_complex", + "description": "Equivalent to `DROP` performed `i` times.", + "gas": "26", + "fift": "[i] BLKDROP", + "fift_examples": [], + "opcode": "5F0i", + "stack": "" + }, + "bytecode": { + "tlb": "#5F0 i:uint4", + "prefix": "5F0", + "operands": [ + { + "name": "i", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [] + } + ] + }, + "value_flow": { + "inputs": { "registers": [] }, + "outputs": { "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "BLKPUSH", + "since_version": 0, + "doc": { + "category": "stack_complex", + "description": "Equivalent to `PUSH s(j)` performed `i` times.\n`1 <= i <= 15`, `0 <= j <= 15`.", + "gas": "26", + "fift": "[i] [j] BLKPUSH", + "fift_examples": [], + "opcode": "5Fij", + "stack": "" + }, + "bytecode": { + "tlb": "#5F i:(## 4) j:uint4 {1 <= i}", + "prefix": "5F", + "operands_range_check": { "length": 4, "from": 1, "to": 15 }, + "operands": [ + { + "name": "i", + "type": "uint", + "size": 4, + "min_value": 1, + "max_value": 15, + "display_hints": [] + }, + { + "name": "j", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [] + } + ] + }, + "value_flow": { + "inputs": { "registers": [] }, + "outputs": { "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PICK", + "since_version": 0, + "doc": { + "category": "stack_complex", + "description": "Pops integer `i` from the stack, then performs `s[i] PUSH`.", + "gas": "18", + "fift": "PICK\nPUSHX", + "fift_examples": [], + "opcode": "60", + "stack": "" + }, + "bytecode": { "tlb": "#60", "prefix": "60", "operands": [] }, + "value_flow": { + "inputs": { "registers": [] }, + "outputs": { "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "ROLLX", + "since_version": 0, + "doc": { + "category": "stack_complex", + "description": "Pops integer `i` from the stack, then performs `1 [i] BLKSWAP`.", + "gas": "18", + "fift": "ROLLX", + "fift_examples": [], + "opcode": "61", + "stack": "" + }, + "bytecode": { "tlb": "#61", "prefix": "61", "operands": [] }, + "value_flow": { + "inputs": { "registers": [] }, + "outputs": { "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "-ROLLX", + "since_version": 0, + "doc": { + "category": "stack_complex", + "description": "Pops integer `i` from the stack, then performs `[i] 1 BLKSWAP`.", + "gas": "18", + "fift": "-ROLLX\nROLLREVX", + "fift_examples": [], + "opcode": "62", + "stack": "" + }, + "bytecode": { "tlb": "#62", "prefix": "62", "operands": [] }, + "value_flow": { + "inputs": { "registers": [] }, + "outputs": { "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "BLKSWX", + "since_version": 0, + "doc": { + "category": "stack_complex", + "description": "Pops integers `i`,`j` from the stack, then performs `[i] [j] BLKSWAP`.", + "gas": "18", + "fift": "BLKSWX", + "fift_examples": [], + "opcode": "63", + "stack": "" + }, + "bytecode": { "tlb": "#63", "prefix": "63", "operands": [] }, + "value_flow": { + "inputs": { "registers": [] }, + "outputs": { "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "REVX", + "since_version": 0, + "doc": { + "category": "stack_complex", + "description": "Pops integers `i`,`j` from the stack, then performs `[i] [j] REVERSE`.", + "gas": "18", + "fift": "REVX", + "fift_examples": [], + "opcode": "64", + "stack": "" + }, + "bytecode": { "tlb": "#64", "prefix": "64", "operands": [] }, + "value_flow": { + "inputs": { "registers": [] }, + "outputs": { "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DROPX", + "since_version": 0, + "doc": { + "category": "stack_complex", + "description": "Pops integer `i` from the stack, then performs `[i] BLKDROP`.", + "gas": "18", + "fift": "DROPX", + "fift_examples": [], + "opcode": "65", + "stack": "" + }, + "bytecode": { "tlb": "#65", "prefix": "65", "operands": [] }, + "value_flow": { + "inputs": { "registers": [] }, + "outputs": { "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "TUCK", + "since_version": 0, + "doc": { + "category": "stack_complex", + "description": "Equivalent to `SWAP` `OVER` or to `s1 s1 XCPU`.", + "gas": "18", + "fift": "TUCK", + "fift_examples": [], + "opcode": "66", + "stack": "a b - b a b" + }, + "bytecode": { "tlb": "#66", "prefix": "66", "operands": [] }, + "value_flow": { + "inputs": { "registers": [] }, + "outputs": { "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "XCHGX", + "since_version": 0, + "doc": { + "category": "stack_complex", + "description": "Pops integer `i` from the stack, then performs `s[i] XCHG`.", + "gas": "18", + "fift": "XCHGX", + "fift_examples": [], + "opcode": "67", + "stack": "" + }, + "bytecode": { "tlb": "#67", "prefix": "67", "operands": [] }, + "value_flow": { + "inputs": { "registers": [] }, + "outputs": { "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DEPTH", + "since_version": 0, + "doc": { + "category": "stack_complex", + "description": "Pushes the current depth of the stack.", + "gas": "18", + "fift": "DEPTH", + "fift_examples": [], + "opcode": "68", + "stack": "- depth" + }, + "bytecode": { "tlb": "#68", "prefix": "68", "operands": [] }, + "value_flow": { + "inputs": { "stack": [], "registers": [] }, + "outputs": { + "stack": [ + { "type": "simple", "name": "depth", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "CHKDEPTH", + "since_version": 0, + "doc": { + "category": "stack_complex", + "description": "Pops integer `i` from the stack, then checks whether there are at least `i` elements, generating a stack underflow exception otherwise.", + "gas": "18/58", + "fift": "CHKDEPTH", + "fift_examples": [], + "opcode": "69", + "stack": "i -" + }, + "bytecode": { "tlb": "#69", "prefix": "69", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "i", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "ONLYTOPX", + "since_version": 0, + "doc": { + "category": "stack_complex", + "description": "Pops integer `i` from the stack, then removes all but the top `i` elements.", + "gas": "18", + "fift": "ONLYTOPX", + "fift_examples": [], + "opcode": "6A", + "stack": "" + }, + "bytecode": { "tlb": "#6A", "prefix": "6A", "operands": [] }, + "value_flow": { + "inputs": { "registers": [] }, + "outputs": { "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "ONLYX", + "since_version": 0, + "doc": { + "category": "stack_complex", + "description": "Pops integer `i` from the stack, then leaves only the bottom `i` elements. Approximately equivalent to `DEPTH` `SWAP` `SUB` `DROPX`.", + "gas": "18", + "fift": "ONLYX", + "fift_examples": [], + "opcode": "6B", + "stack": "" + }, + "bytecode": { "tlb": "#6B", "prefix": "6B", "operands": [] }, + "value_flow": { + "inputs": { "registers": [] }, + "outputs": { "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "BLKDROP2", + "since_version": 0, + "doc": { + "category": "stack_complex", + "description": "Drops `i` stack elements under the top `j` elements.\n`1 <= i <= 15`, `0 <= j <= 15`\nEquivalent to `[i+j] 0 REVERSE` `[i] BLKDROP` `[j] 0 REVERSE`.", + "gas": "26", + "fift": "[i] [j] BLKDROP2", + "fift_examples": [], + "opcode": "6Cij", + "stack": "" + }, + "bytecode": { + "tlb": "#6C i:(## 4) j:uint4 {1 <= i}", + "prefix": "6C", + "operands_range_check": { "length": 4, "from": 1, "to": 15 }, + "operands": [ + { + "name": "i", + "type": "uint", + "size": 4, + "min_value": 1, + "max_value": 15, + "display_hints": [] + }, + { + "name": "j", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [] + } + ] + }, + "value_flow": { + "inputs": { "registers": [] }, + "outputs": { "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "NULL", + "since_version": 0, + "doc": { + "category": "tuple", + "description": "Pushes the only value of type _Null_.", + "gas": "18", + "fift": "NULL\nPUSHNULL", + "fift_examples": [], + "opcode": "6D", + "stack": " - null" + }, + "bytecode": { "tlb": "#6D", "prefix": "6D", "operands": [] }, + "value_flow": { + "inputs": { "stack": [], "registers": [] }, + "outputs": { + "stack": [{ "type": "const", "value": null, "value_type": "Null" }], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "ISNULL", + "since_version": 0, + "doc": { + "category": "tuple", + "description": "Checks whether `x` is a _Null_, and returns `-1` or `0` accordingly.", + "gas": "18", + "fift": "ISNULL", + "fift_examples": [], + "opcode": "6E", + "stack": "x - ?" + }, + "bytecode": { "tlb": "#6E", "prefix": "6E", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "TUPLE", + "since_version": 0, + "doc": { + "category": "tuple", + "description": "Creates a new _Tuple_ `t=(x_1, ... ,x_n)` containing `n` values `x_1`,..., `x_n`.\n`0 <= n <= 15`", + "gas": "26+n", + "fift": "[n] TUPLE", + "fift_examples": [], + "opcode": "6F0n", + "stack": "x_1 ... x_n - t" + }, + "bytecode": { + "tlb": "#6F0 n:uint4", + "prefix": "6F0", + "operands": [ + { + "name": "n", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { + "type": "array", + "name": "tuple_elements", + "length_var": "n", + "array_entry": [{ "type": "simple", "name": "x" }] + } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "t", "value_types": ["Tuple"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "INDEX", + "since_version": 0, + "doc": { + "category": "tuple", + "description": "Returns the `k`-th element of a _Tuple_ `t`.\n`0 <= k <= 15`.", + "gas": "26", + "fift": "[k] INDEX", + "fift_examples": [], + "opcode": "6F1k", + "stack": "t - x" + }, + "bytecode": { + "tlb": "#6F1 k:uint4", + "prefix": "6F1", + "operands": [ + { + "name": "k", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "t", "value_types": ["Tuple"] } + ], + "registers": [] + }, + "outputs": { + "stack": [{ "type": "simple", "name": "x" }], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "UNTUPLE", + "since_version": 0, + "doc": { + "category": "tuple", + "description": "Unpacks a _Tuple_ `t=(x_1,...,x_n)` of length equal to `0 <= n <= 15`.\nIf `t` is not a _Tuple_, or if `|t| != n`, a type check exception is thrown.", + "gas": "26+n", + "fift": "[n] UNTUPLE", + "fift_examples": [], + "opcode": "6F2n", + "stack": "t - x_1 ... x_n" + }, + "bytecode": { + "tlb": "#6F2 n:uint4", + "prefix": "6F2", + "operands": [ + { + "name": "n", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "t", "value_types": ["Tuple"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "array", + "name": "tuple_elements", + "length_var": "n", + "array_entry": [{ "type": "simple", "name": "x" }] + } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "UNPACKFIRST", + "since_version": 0, + "doc": { + "category": "tuple", + "description": "Unpacks first `0 <= k <= 15` elements of a _Tuple_ `t`.\nIf `|t|= |t|`, throws a range check exception.", + "gas": "26+|t|", + "fift": "[k] SETINDEX", + "fift_examples": [], + "opcode": "6F5k", + "stack": "t x - t'" + }, + "bytecode": { + "tlb": "#6F5 k:uint4", + "prefix": "6F5", + "operands": [ + { + "name": "k", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "t", "value_types": ["Tuple"] }, + { "type": "simple", "name": "x" } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "t2", "value_types": ["Tuple"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "INDEXQ", + "since_version": 0, + "doc": { + "category": "tuple", + "description": "Returns the `k`-th element of a _Tuple_ `t`, where `0 <= k <= 15`. In other words, returns `x_{k+1}` if `t=(x_1,...,x_n)`. If `k>=n`, or if `t` is _Null_, returns a _Null_ instead of `x`.", + "gas": "26", + "fift": "[k] INDEXQ", + "fift_examples": [], + "opcode": "6F6k", + "stack": "t - x" + }, + "bytecode": { + "tlb": "#6F6 k:uint4", + "prefix": "6F6", + "operands": [ + { + "name": "k", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "t", "value_types": ["Tuple", "Null"] } + ], + "registers": [] + }, + "outputs": { + "stack": [{ "type": "simple", "name": "x" }], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SETINDEXQ", + "since_version": 0, + "doc": { + "category": "tuple", + "description": "Sets the `k`-th component of _Tuple_ `t` to `x`, where `0 <= k < 16`, and returns the resulting _Tuple_ `t'`.\nIf `|t| <= k`, first extends the original _Tuple_ to length `n'=k+1` by setting all new components to _Null_. If the original value of `t` is _Null_, treats it as an empty _Tuple_. If `t` is not _Null_ or _Tuple_, throws an exception. If `x` is _Null_ and either `|t| <= k` or `t` is _Null_, then always returns `t'=t` (and does not consume tuple creation gas).", + "gas": "26+|t'|", + "fift": "[k] SETINDEXQ", + "fift_examples": [], + "opcode": "6F7k", + "stack": "t x - t'" + }, + "bytecode": { + "tlb": "#6F7 k:uint4", + "prefix": "6F7", + "operands": [ + { + "name": "k", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "t", "value_types": ["Tuple", "Null"] }, + { "type": "simple", "name": "x" } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "t2", "value_types": ["Tuple", "Null"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "TUPLEVAR", + "since_version": 0, + "doc": { + "category": "tuple", + "description": "Creates a new _Tuple_ `t` of length `n` similarly to `TUPLE`, but with `0 <= n <= 255` taken from the stack.", + "gas": "26+n", + "fift": "TUPLEVAR", + "fift_examples": [], + "opcode": "6F80", + "stack": "x_1 ... x_n n - t" + }, + "bytecode": { "tlb": "#6F80", "prefix": "6F80", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { + "type": "array", + "name": "tuple_elements", + "length_var": "n", + "array_entry": [{ "type": "simple", "name": "x" }] + }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "t", "value_types": ["Tuple"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "INDEXVAR", + "since_version": 0, + "doc": { + "category": "tuple", + "description": "Similar to `k INDEX`, but with `0 <= k <= 254` taken from the stack.", + "gas": "26", + "fift": "INDEXVAR", + "fift_examples": [], + "opcode": "6F81", + "stack": "t k - x" + }, + "bytecode": { "tlb": "#6F81", "prefix": "6F81", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "t", "value_types": ["Tuple"] }, + { "type": "simple", "name": "k", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [{ "type": "simple", "name": "x" }], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "UNTUPLEVAR", + "since_version": 0, + "doc": { + "category": "tuple", + "description": "Similar to `n UNTUPLE`, but with `0 <= n <= 255` taken from the stack.", + "gas": "26+n", + "fift": "UNTUPLEVAR", + "fift_examples": [], + "opcode": "6F82", + "stack": "t n - x_1 ... x_n" + }, + "bytecode": { "tlb": "#6F82", "prefix": "6F82", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "t", "value_types": ["Tuple"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "array", + "name": "tuple_elements", + "length_var": "n", + "array_entry": [{ "type": "simple", "name": "x" }] + } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "UNPACKFIRSTVAR", + "since_version": 0, + "doc": { + "category": "tuple", + "description": "Similar to `n UNPACKFIRST`, but with `0 <= n <= 255` taken from the stack.", + "gas": "26+n", + "fift": "UNPACKFIRSTVAR", + "fift_examples": [], + "opcode": "6F83", + "stack": "t n - x_1 ... x_n" + }, + "bytecode": { "tlb": "#6F83", "prefix": "6F83", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "t", "value_types": ["Tuple"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "array", + "name": "tuple_elements", + "length_var": "n", + "array_entry": [{ "type": "simple", "name": "x" }] + } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "EXPLODEVAR", + "since_version": 0, + "doc": { + "category": "tuple", + "description": "Similar to `n EXPLODE`, but with `0 <= n <= 255` taken from the stack.", + "gas": "26+m", + "fift": "EXPLODEVAR", + "fift_examples": [], + "opcode": "6F84", + "stack": "t n - x_1 ... x_m m" + }, + "bytecode": { "tlb": "#6F84", "prefix": "6F84", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "t", "value_types": ["Tuple"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "array", + "name": "tuple_elements", + "length_var": "m", + "array_entry": [{ "type": "simple", "name": "x" }] + }, + { "type": "simple", "name": "m", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SETINDEXVAR", + "since_version": 0, + "doc": { + "category": "tuple", + "description": "Similar to `k SETINDEX`, but with `0 <= k <= 254` taken from the stack.", + "gas": "26+|t'|", + "fift": "SETINDEXVAR", + "fift_examples": [], + "opcode": "6F85", + "stack": "t x k - t'" + }, + "bytecode": { "tlb": "#6F85", "prefix": "6F85", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "t", "value_types": ["Tuple"] }, + { "type": "simple", "name": "x" }, + { "type": "simple", "name": "k", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "t2", "value_types": ["Tuple"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "INDEXVARQ", + "since_version": 0, + "doc": { + "category": "tuple", + "description": "Similar to `n INDEXQ`, but with `0 <= k <= 254` taken from the stack.", + "gas": "26", + "fift": "INDEXVARQ", + "fift_examples": [], + "opcode": "6F86", + "stack": "t k - x" + }, + "bytecode": { "tlb": "#6F86", "prefix": "6F86", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "t", "value_types": ["Tuple", "Null"] }, + { "type": "simple", "name": "k", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [{ "type": "simple", "name": "x" }], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SETINDEXVARQ", + "since_version": 0, + "doc": { + "category": "tuple", + "description": "Similar to `k SETINDEXQ`, but with `0 <= k <= 254` taken from the stack.", + "gas": "26+|t'|", + "fift": "SETINDEXVARQ", + "fift_examples": [], + "opcode": "6F87", + "stack": "t x k - t'" + }, + "bytecode": { "tlb": "#6F87", "prefix": "6F87", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "t", "value_types": ["Tuple", "Null"] }, + { "type": "simple", "name": "x" }, + { "type": "simple", "name": "k", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "t2", "value_types": ["Tuple", "Null"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "TLEN", + "since_version": 0, + "doc": { + "category": "tuple", + "description": "Returns the length of a _Tuple_.", + "gas": "26", + "fift": "TLEN", + "fift_examples": [], + "opcode": "6F88", + "stack": "t - n" + }, + "bytecode": { "tlb": "#6F88", "prefix": "6F88", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "t", "value_types": ["Tuple"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QTLEN", + "since_version": 0, + "doc": { + "category": "tuple", + "description": "Similar to `TLEN`, but returns `-1` if `t` is not a _Tuple_.", + "gas": "26", + "fift": "QTLEN", + "fift_examples": [], + "opcode": "6F89", + "stack": "t - n or -1" + }, + "bytecode": { "tlb": "#6F89", "prefix": "6F89", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "t", "value_types": ["Tuple"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "ISTUPLE", + "since_version": 0, + "doc": { + "category": "tuple", + "description": "Returns `-1` or `0` depending on whether `t` is a _Tuple_.", + "gas": "26", + "fift": "ISTUPLE", + "fift_examples": [], + "opcode": "6F8A", + "stack": "t - ?" + }, + "bytecode": { "tlb": "#6F8A", "prefix": "6F8A", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "t", "value_types": ["Tuple"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LAST", + "since_version": 0, + "doc": { + "category": "tuple", + "description": "Returns the last element of a non-empty _Tuple_ `t`.", + "gas": "26", + "fift": "LAST", + "fift_examples": [], + "opcode": "6F8B", + "stack": "t - x" + }, + "bytecode": { "tlb": "#6F8B", "prefix": "6F8B", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "t", "value_types": ["Tuple"] } + ], + "registers": [] + }, + "outputs": { + "stack": [{ "type": "simple", "name": "x" }], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "TPUSH", + "since_version": 0, + "doc": { + "category": "tuple", + "description": "Appends a value `x` to a _Tuple_ `t=(x_1,...,x_n)`, but only if the resulting _Tuple_ `t'=(x_1,...,x_n,x)` is of length at most 255. Otherwise throws a type check exception.", + "gas": "26+|t'|", + "fift": "TPUSH\nCOMMA", + "fift_examples": [], + "opcode": "6F8C", + "stack": "t x - t'" + }, + "bytecode": { "tlb": "#6F8C", "prefix": "6F8C", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "t", "value_types": ["Tuple"] }, + { "type": "simple", "name": "x" } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "t2", "value_types": ["Tuple"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "TPOP", + "since_version": 0, + "doc": { + "category": "tuple", + "description": "Detaches the last element `x=x_n` from a non-empty _Tuple_ `t=(x_1,...,x_n)`, and returns both the resulting _Tuple_ `t'=(x_1,...,x_{n-1})` and the original last element `x`.", + "gas": "26+|t'|", + "fift": "TPOP", + "fift_examples": [], + "opcode": "6F8D", + "stack": "t - t' x" + }, + "bytecode": { "tlb": "#6F8D", "prefix": "6F8D", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "t", "value_types": ["Tuple"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "t2", "value_types": ["Tuple"] }, + { "type": "simple", "name": "x" } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "NULLSWAPIF", + "since_version": 0, + "doc": { + "category": "tuple", + "description": "Pushes a _Null_ under the topmost _Integer_ `x`, but only if `x!=0`.", + "gas": "26", + "fift": "NULLSWAPIF", + "fift_examples": [], + "opcode": "6FA0", + "stack": "x - x or null x" + }, + "bytecode": { "tlb": "#6FA0", "prefix": "6FA0", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "x", + "match": [{ "value": 0, "stack": [] }], + "else": [{ "type": "const", "value": null, "value_type": "Null" }] + }, + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "NULLSWAPIFNOT", + "since_version": 0, + "doc": { + "category": "tuple", + "description": "Pushes a _Null_ under the topmost _Integer_ `x`, but only if `x=0`. May be used for stack alignment after quiet primitives such as `PLDUXQ`.", + "gas": "26", + "fift": "NULLSWAPIFNOT", + "fift_examples": [], + "opcode": "6FA1", + "stack": "x - x or null x" + }, + "bytecode": { "tlb": "#6FA1", "prefix": "6FA1", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "x", + "match": [ + { + "value": 0, + "stack": [ + { "type": "const", "value": null, "value_type": "Null" } + ] + } + ], + "else": [] + }, + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "NULLROTRIF", + "since_version": 0, + "doc": { + "category": "tuple", + "description": "Pushes a _Null_ under the second stack entry from the top, but only if the topmost _Integer_ `y` is non-zero.", + "gas": "26", + "fift": "NULLROTRIF", + "fift_examples": [], + "opcode": "6FA2", + "stack": "x y - x y or null x y" + }, + "bytecode": { "tlb": "#6FA2", "prefix": "6FA2", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x" }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "y", + "match": [{ "value": 0, "stack": [] }], + "else": [{ "type": "const", "value": null, "value_type": "Null" }] + }, + { "type": "simple", "name": "x" }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "NULLROTRIFNOT", + "since_version": 0, + "doc": { + "category": "tuple", + "description": "Pushes a _Null_ under the second stack entry from the top, but only if the topmost _Integer_ `y` is zero. May be used for stack alignment after quiet primitives such as `LDUXQ`.", + "gas": "26", + "fift": "NULLROTRIFNOT", + "fift_examples": [], + "opcode": "6FA3", + "stack": "x y - x y or null x y" + }, + "bytecode": { "tlb": "#6FA3", "prefix": "6FA3", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x" }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "y", + "match": [ + { + "value": 0, + "stack": [ + { "type": "const", "value": null, "value_type": "Null" } + ] + } + ], + "else": [] + }, + { "type": "simple", "name": "x" }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "NULLSWAPIF2", + "since_version": 0, + "doc": { + "category": "tuple", + "description": "Pushes two nulls under the topmost _Integer_ `x`, but only if `x!=0`.\nEquivalent to `NULLSWAPIF` `NULLSWAPIF`.", + "gas": "26", + "fift": "NULLSWAPIF2", + "fift_examples": [], + "opcode": "6FA4", + "stack": "x - x or null null x" + }, + "bytecode": { "tlb": "#6FA4", "prefix": "6FA4", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "x", + "match": [{ "value": 0, "stack": [] }], + "else": [ + { "type": "const", "value": null, "value_type": "Null" }, + { "type": "const", "value": null, "value_type": "Null" } + ] + }, + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "NULLSWAPIFNOT2", + "since_version": 0, + "doc": { + "category": "tuple", + "description": "Pushes two nulls under the topmost _Integer_ `x`, but only if `x=0`.\nEquivalent to `NULLSWAPIFNOT` `NULLSWAPIFNOT`.", + "gas": "26", + "fift": "NULLSWAPIFNOT2", + "fift_examples": [], + "opcode": "6FA5", + "stack": "x - x or null null x" + }, + "bytecode": { "tlb": "#6FA5", "prefix": "6FA5", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "x", + "match": [ + { + "value": 0, + "stack": [ + { "type": "const", "value": null, "value_type": "Null" }, + { "type": "const", "value": null, "value_type": "Null" } + ] + } + ], + "else": [] + }, + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "NULLROTRIF2", + "since_version": 0, + "doc": { + "category": "tuple", + "description": "Pushes two nulls under the second stack entry from the top, but only if the topmost _Integer_ `y` is non-zero.\nEquivalent to `NULLROTRIF` `NULLROTRIF`.", + "gas": "26", + "fift": "NULLROTRIF2", + "fift_examples": [], + "opcode": "6FA6", + "stack": "x y - x y or null null x y" + }, + "bytecode": { "tlb": "#6FA6", "prefix": "6FA6", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x" }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "y", + "match": [{ "value": 0, "stack": [] }], + "else": [ + { "type": "const", "value": null, "value_type": "Null" }, + { "type": "const", "value": null, "value_type": "Null" } + ] + }, + { "type": "simple", "name": "x" }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "NULLROTRIFNOT2", + "since_version": 0, + "doc": { + "category": "tuple", + "description": "Pushes two nulls under the second stack entry from the top, but only if the topmost _Integer_ `y` is zero.\nEquivalent to `NULLROTRIFNOT` `NULLROTRIFNOT`.", + "gas": "26", + "fift": "NULLROTRIFNOT2", + "fift_examples": [], + "opcode": "6FA7", + "stack": "x y - x y or null null x y" + }, + "bytecode": { "tlb": "#6FA7", "prefix": "6FA7", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x" }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "y", + "match": [ + { + "value": 0, + "stack": [ + { "type": "const", "value": null, "value_type": "Null" }, + { "type": "const", "value": null, "value_type": "Null" } + ] + } + ], + "else": [] + }, + { "type": "simple", "name": "x" }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "INDEX2", + "since_version": 0, + "doc": { + "category": "tuple", + "description": "Recovers `x=(t_{i+1})_{j+1}` for `0 <= i,j <= 3`.\nEquivalent to `[i] INDEX` `[j] INDEX`.", + "gas": "26", + "fift": "[i] [j] INDEX2", + "fift_examples": [], + "opcode": "6FBij", + "stack": "t - x" + }, + "bytecode": { + "tlb": "#6FB i:uint2 j:uint2", + "prefix": "6FB", + "operands": [ + { + "name": "i", + "type": "uint", + "size": 2, + "min_value": 0, + "max_value": 3, + "display_hints": [] + }, + { + "name": "j", + "type": "uint", + "size": 2, + "min_value": 0, + "max_value": 3, + "display_hints": [] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "t", "value_types": ["Tuple"] } + ], + "registers": [] + }, + "outputs": { + "stack": [{ "type": "simple", "name": "x" }], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "INDEX3", + "since_version": 0, + "doc": { + "category": "tuple", + "description": "Recovers `x=t_{i+1}_{j+1}_{k+1}`.\n`0 <= i,j,k <= 3`\nEquivalent to `[i] [j] INDEX2` `[k] INDEX`.", + "gas": "26", + "fift": "[i] [j] [k] INDEX3", + "fift_examples": [], + "opcode": "6FE_ijk", + "stack": "t - x" + }, + "bytecode": { + "tlb": "#6FE_ i:uint2 j:uint2 k:uint2", + "prefix": "6FE_", + "operands": [ + { + "name": "i", + "type": "uint", + "size": 2, + "min_value": 0, + "max_value": 3, + "display_hints": [] + }, + { + "name": "j", + "type": "uint", + "size": 2, + "min_value": 0, + "max_value": 3, + "display_hints": [] + }, + { + "name": "k", + "type": "uint", + "size": 2, + "min_value": 0, + "max_value": 3, + "display_hints": [] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "t", "value_types": ["Tuple"] } + ], + "registers": [] + }, + "outputs": { + "stack": [{ "type": "simple", "name": "x" }], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PUSHINT_4", + "since_version": 0, + "doc": { + "category": "const_int", + "description": "Pushes integer `x` into the stack. `-5 <= x <= 10`.\nHere `i` equals four lower-order bits of `x` (`i=x mod 16`).", + "gas": "18", + "fift": "[x] PUSHINT\n[x] INT", + "fift_examples": [], + "opcode": "7i", + "stack": "- x" + }, + "bytecode": { + "tlb": "#7 i:uint4", + "prefix": "7", + "operands": [ + { + "name": "i", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [{ "type": "pushint4" }] + } + ] + }, + "value_flow": { + "inputs": { "stack": [], "registers": [] }, + "outputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PUSHINT_8", + "since_version": 0, + "doc": { + "category": "const_int", + "description": "Pushes integer `xx`. `-128 <= xx <= 127`.", + "gas": "26", + "fift": "[xx] PUSHINT\n[xx] INT", + "fift_examples": [], + "opcode": "80xx", + "stack": "- xx" + }, + "bytecode": { + "tlb": "#80 xx:int8", + "prefix": "80", + "operands": [ + { + "name": "x", + "type": "int", + "size": 8, + "min_value": -128, + "max_value": 127, + "display_hints": [] + } + ] + }, + "value_flow": { + "inputs": { "stack": [], "registers": [] }, + "outputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PUSHINT_16", + "since_version": 0, + "doc": { + "category": "const_int", + "description": "Pushes integer `xxxx`. `-2^15 <= xx < 2^15`.", + "gas": "34", + "fift": "[xxxx] PUSHINT\n[xxxx] INT", + "fift_examples": [], + "opcode": "81xxxx", + "stack": "- xxxx" + }, + "bytecode": { + "tlb": "#81 xxxx:int16", + "prefix": "81", + "operands": [ + { + "name": "x", + "type": "int", + "size": 16, + "min_value": -32768, + "max_value": 32767, + "display_hints": [] + } + ] + }, + "value_flow": { + "inputs": { "stack": [], "registers": [] }, + "outputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PUSHINT_LONG", + "since_version": 0, + "doc": { + "category": "const_int", + "description": "Pushes integer `xxx`.\n_Details:_ 5-bit `0 <= l <= 30` determines the length `n=8l+19` of signed big-endian integer `xxx`.\nThe total length of this instruction is `l+4` bytes or `n+13=8l+32` bits.", + "gas": "23", + "fift": "[xxx] PUSHINT\n[xxx] INT", + "fift_examples": [], + "opcode": "82lxxx", + "stack": "- xxx" + }, + "bytecode": { + "tlb": "#82 l:(## 5) xxx:(int (8 * l + 19))", + "prefix": "82", + "operands_range_check": { "length": 5, "from": 0, "to": 30 }, + "operands": [{ "name": "x", "type": "pushint_long" }] + }, + "value_flow": { + "inputs": { "stack": [], "registers": [] }, + "outputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PUSHPOW2", + "since_version": 0, + "doc": { + "category": "const_int", + "description": "(Quietly) pushes `2^(xx+1)` for `0 <= xx <= 255`.\n`2^256` is a `NaN`.", + "gas": "26", + "fift": "[xx+1] PUSHPOW2", + "fift_examples": [], + "opcode": "83xx", + "stack": "- 2^(xx+1)" + }, + "bytecode": { + "tlb": "#83 xx:uint8", + "prefix": "83", + "operands_range_check": { "length": 8, "from": 0, "to": 254 }, + "operands": [ + { + "name": "x", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 254, + "display_hints": [] + } + ] + }, + "value_flow": { + "inputs": { "stack": [], "registers": [] }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PUSHNAN", + "since_version": 0, + "doc": { + "category": "const_int", + "description": "Pushes a `NaN`.", + "gas": "26", + "fift": "PUSHNAN", + "fift_examples": [], + "opcode": "83FF", + "stack": "- NaN" + }, + "bytecode": { "tlb": "#83FF", "prefix": "83FF", "operands": [] }, + "value_flow": { + "inputs": { "stack": [], "registers": [] }, + "outputs": { + "stack": [ + { "type": "const", "value_type": "Integer", "value": null } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PUSHPOW2DEC", + "since_version": 0, + "doc": { + "category": "const_int", + "description": "Pushes `2^(xx+1)-1` for `0 <= xx <= 255`.", + "gas": "26", + "fift": "[xx+1] PUSHPOW2DEC", + "fift_examples": [], + "opcode": "84xx", + "stack": "- 2^(xx+1)-1" + }, + "bytecode": { + "tlb": "#84 xx:uint8", + "prefix": "84", + "operands": [ + { + "name": "x", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { "stack": [], "registers": [] }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PUSHNEGPOW2", + "since_version": 0, + "doc": { + "category": "const_int", + "description": "Pushes `-2^(xx+1)` for `0 <= xx <= 255`.", + "gas": "26", + "fift": "[xx+1] PUSHNEGPOW2", + "fift_examples": [], + "opcode": "85xx", + "stack": "- -2^(xx+1)" + }, + "bytecode": { + "tlb": "#85 xx:uint8", + "prefix": "85", + "operands": [ + { + "name": "x", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { "stack": [], "registers": [] }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PUSHREF", + "since_version": 0, + "doc": { + "category": "const_data", + "description": "Pushes the reference `ref` into the stack.\n_Details:_ Pushes the first reference of `cc.code` into the stack as a _Cell_ (and removes this reference from the current continuation).", + "gas": "18", + "fift": "[ref] PUSHREF", + "fift_examples": [], + "opcode": "88", + "stack": "- c" + }, + "bytecode": { + "tlb": "#88 c:^Cell", + "prefix": "88", + "operands": [{ "name": "c", "type": "ref", "display_hints": [] }] + }, + "value_flow": { + "inputs": { "stack": [], "registers": [] }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Cell"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PUSHREFSLICE", + "since_version": 0, + "doc": { + "category": "const_data", + "description": "Similar to `PUSHREF`, but converts the cell into a _Slice_.", + "gas": "118/43", + "fift": "[ref] PUSHREFSLICE", + "fift_examples": [], + "opcode": "89", + "stack": "- s" + }, + "bytecode": { + "tlb": "#89 c:^Cell", + "prefix": "89", + "operands": [{ "name": "c", "type": "ref", "display_hints": [] }] + }, + "value_flow": { + "inputs": { "stack": [], "registers": [] }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PUSHREFCONT", + "since_version": 0, + "doc": { + "category": "const_data", + "description": "Similar to `PUSHREFSLICE`, but makes a simple ordinary _Continuation_ out of the cell.", + "gas": "118/43", + "fift": "[ref] PUSHREFCONT", + "fift_examples": [], + "opcode": "8A", + "stack": "- cont" + }, + "bytecode": { + "tlb": "#8A c:^Cell", + "prefix": "8A", + "operands": [ + { + "name": "c", + "type": "ref", + "display_hints": [{ "type": "continuation" }] + } + ] + }, + "value_flow": { + "inputs": { "stack": [], "registers": [] }, + "outputs": { + "stack": [ + { + "type": "simple", + "name": "result", + "value_types": ["Continuation"] + } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PUSHSLICE", + "since_version": 0, + "doc": { + "category": "const_data", + "description": "Pushes the slice `slice` into the stack.\n_Details:_ Pushes the (prefix) subslice of `cc.code` consisting of its first `8x+4` bits and no references (i.e., essentially a bitstring), where `0 <= x <= 15`.\nA completion tag is assumed, meaning that all trailing zeroes and the last binary one (if present) are removed from this bitstring.\nIf the original bitstring consists only of zeroes, an empty slice will be pushed.", + "gas": "22", + "fift": "[slice] PUSHSLICE\n[slice] SLICE", + "fift_examples": [], + "opcode": "8Bxsss", + "stack": "- s" + }, + "bytecode": { + "tlb": "#8B x:(## 4) sss:((8 * x + 4) * Bit)", + "prefix": "8B", + "operands": [ + { + "name": "s", + "type": "subslice", + "bits_length_var_size": 4, + "bits_padding": 4, + "completion_tag": true, + "max_bits": 123, + "min_bits": 0, + "max_refs": 0, + "min_refs": 0, + "display_hints": [] + } + ] + }, + "value_flow": { + "inputs": { "stack": [], "registers": [] }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PUSHSLICE_REFS", + "since_version": 0, + "doc": { + "category": "const_data", + "description": "Pushes the slice `slice` into the stack.\n_Details:_ Pushes the (prefix) subslice of `cc.code` consisting of its first `1 <= r+1 <= 4` references and up to first `8xx+1` bits of data, with `0 <= xx <= 31`.\nA completion tag is also assumed.", + "gas": "25", + "fift": "[slice] PUSHSLICE\n[slice] SLICE", + "fift_examples": [], + "opcode": "8Crxxssss", + "stack": "- s" + }, + "bytecode": { + "tlb": "#8C r:(## 2) xx:(## 5) c:((r + 1) * ^Cell) ssss:((8 * xx + 1) * Bit)", + "prefix": "8C", + "operands": [ + { + "name": "slice", + "type": "subslice", + "bits_length_var_size": 5, + "refs_length_var_size": 2, + "bits_padding": 1, + "refs_add": 1, + "completion_tag": true, + "max_bits": 248, + "min_bits": 0, + "max_refs": 4, + "min_refs": 1, + "display_hints": [] + } + ] + }, + "value_flow": { + "inputs": { "stack": [], "registers": [] }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PUSHSLICE_LONG", + "since_version": 0, + "doc": { + "category": "const_data", + "description": "Pushes the slice `slice` into the stack.\n_Details:_ Pushes the subslice of `cc.code` consisting of `0 <= r <= 4` references and up to `8xx+6` bits of data, with `0 <= xx <= 127`.\nA completion tag is assumed.", + "gas": "28", + "fift": "[slice] PUSHSLICE\n[slice] SLICE", + "fift_examples": [ + { + "fift": "x{} PUSHSLICE x{ABCD1234} PUSHSLICE b{01101} PUSHSLICE", + "description": "Examples of `PUSHSLICE`. `x{}` is an empty slice. `x{...}` is a hexadecimal literal. `b{...}` is a binary literal. More on slice literals [here](https://github.com/Piterden/TON-docs/blob/master/Fift.%20A%20Brief%20Introduction.md#user-content-51-slice-literals). Note that the assembler can replace `PUSHSLICE` with `PUSHREFSLICE` in certain situations (e.g. if there's not enough space in the current continuation)." + }, + { + "fift": " PUSHREF PUSHREFSLICE", + "description": "Examples of `PUSHREF` and `PUSHREFSLICE`. More on building cells in fift [here](https://github.com/Piterden/TON-docs/blob/master/Fift.%20A%20Brief%20Introduction.md#user-content-52-builder-primitives)." + } + ], + "opcode": "8Drxxsssss", + "stack": "- s" + }, + "bytecode": { + "tlb": "#8D r:(#<= 4) xx:(## 7) c:(r * ^Cell) ssss:((8 * xx + 6) * Bit)", + "prefix": "8D", + "operands_range_check": { "length": 3, "from": 0, "to": 4 }, + "operands": [ + { + "name": "slice", + "type": "subslice", + "bits_length_var_size": 7, + "refs_length_var_size": 3, + "bits_padding": 6, + "refs_add": 0, + "completion_tag": true, + "max_bits": 1021, + "min_bits": 0, + "max_refs": 4, + "min_refs": 0, + "display_hints": [] + } + ] + }, + "value_flow": { + "inputs": { "stack": [], "registers": [] }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PUSHCONT", + "since_version": 0, + "doc": { + "category": "const_data", + "description": "Pushes a continuation made from `builder`.\n_Details:_ Pushes the simple ordinary continuation `cccc` made from the first `0 <= r <= 3` references and the first `0 <= xx <= 127` bytes of `cc.code`.", + "gas": "26", + "fift": "[builder] PUSHCONT\n[builder] CONT", + "fift_examples": [], + "opcode": "8F_rxxcccc", + "stack": "- c" + }, + "bytecode": { + "tlb": "#8F_ r:(## 2) xx:(## 7) c:(r * ^Cell) ssss:((8 * xx) * Bit)", + "prefix": "8F_", + "operands": [ + { + "name": "s", + "type": "subslice", + "bits_length_var_size": 7, + "refs_length_var_size": 2, + "bits_padding": 0, + "refs_add": 0, + "completion_tag": false, + "max_bits": 1016, + "min_bits": 0, + "max_refs": 3, + "min_refs": 0, + "display_hints": [] + } + ] + }, + "value_flow": { + "inputs": { "stack": [], "registers": [] }, + "outputs": { + "stack": [ + { + "type": "simple", + "name": "result", + "value_types": ["Continuation"] + } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PUSHCONT_SHORT", + "since_version": 0, + "doc": { + "category": "const_data", + "description": "Pushes a continuation made from `builder`.\n_Details:_ Pushes an `x`-byte continuation for `0 <= x <= 15`.", + "gas": "18", + "fift": "[builder] PUSHCONT\n[builder] CONT", + "fift_examples": [ + { + "fift": "<{ code }> PUSHCONT <{ code }> CONT CONT:<{ code }>", + "description": "Pushes a continuation with code `code`. Note that the assembler can replace `PUSHCONT` with `PUSHREFCONT` in certain situations (e.g. if there's not enough space in the current continuation)." + } + ], + "opcode": "9xccc", + "stack": "- c" + }, + "bytecode": { + "tlb": "#9 x:(## 4) ssss:((8 * x) * Bit)", + "prefix": "9", + "operands": [ + { + "name": "s", + "type": "subslice", + "bits_length_var_size": 4, + "bits_padding": 0, + "completion_tag": false, + "max_bits": 120, + "min_bits": 0, + "max_refs": 0, + "min_refs": 0, + "display_hints": [] + } + ] + }, + "value_flow": { + "inputs": { "stack": [], "registers": [] }, + "outputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Continuation"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "ADD", + "since_version": 0, + "doc": { + "category": "arithm_basic", + "description": "", + "gas": "18", + "fift": "ADD", + "fift_examples": [], + "opcode": "A0", + "stack": "x y - x+y" + }, + "bytecode": { "tlb": "#A0", "prefix": "A0", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SUB", + "since_version": 0, + "doc": { + "category": "arithm_basic", + "description": "", + "gas": "18", + "fift": "SUB", + "fift_examples": [], + "opcode": "A1", + "stack": "x y - x-y" + }, + "bytecode": { "tlb": "#A1", "prefix": "A1", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SUBR", + "since_version": 0, + "doc": { + "category": "arithm_basic", + "description": "Equivalent to `SWAP` `SUB`.", + "gas": "18", + "fift": "SUBR", + "fift_examples": [], + "opcode": "A2", + "stack": "x y - y-x" + }, + "bytecode": { "tlb": "#A2", "prefix": "A2", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "NEGATE", + "since_version": 0, + "doc": { + "category": "arithm_basic", + "description": "Equivalent to `-1 MULCONST` or to `ZERO SUBR`.\nNotice that it triggers an integer overflow exception if `x=-2^256`.", + "gas": "18", + "fift": "NEGATE", + "fift_examples": [], + "opcode": "A3", + "stack": "x - -x" + }, + "bytecode": { "tlb": "#A3", "prefix": "A3", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "INC", + "since_version": 0, + "doc": { + "category": "arithm_basic", + "description": "Equivalent to `1 ADDCONST`.", + "gas": "18", + "fift": "INC", + "fift_examples": [], + "opcode": "A4", + "stack": "x - x+1" + }, + "bytecode": { "tlb": "#A4", "prefix": "A4", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DEC", + "since_version": 0, + "doc": { + "category": "arithm_basic", + "description": "Equivalent to `-1 ADDCONST`.", + "gas": "18", + "fift": "DEC", + "fift_examples": [], + "opcode": "A5", + "stack": "x - x-1" + }, + "bytecode": { "tlb": "#A5", "prefix": "A5", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "ADDCONST", + "since_version": 0, + "doc": { + "category": "arithm_basic", + "description": "`-128 <= cc <= 127`.", + "gas": "26", + "fift": "[cc] ADDCONST\n[cc] ADDINT\n[-cc] SUBCONST\n[-cc] SUBINT", + "fift_examples": [], + "opcode": "A6cc", + "stack": "x - x+cc" + }, + "bytecode": { + "tlb": "#A6 cc:int8", + "prefix": "A6", + "operands": [ + { + "name": "c", + "type": "int", + "size": 8, + "min_value": -128, + "max_value": 127, + "display_hints": [] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "MULCONST", + "since_version": 0, + "doc": { + "category": "arithm_basic", + "description": "`-128 <= cc <= 127`.", + "gas": "26", + "fift": "[cc] MULCONST\n[cc] MULINT", + "fift_examples": [], + "opcode": "A7cc", + "stack": "x - x*cc" + }, + "bytecode": { + "tlb": "#A7 cc:int8", + "prefix": "A7", + "operands": [ + { + "name": "c", + "type": "int", + "size": 8, + "min_value": -128, + "max_value": 127, + "display_hints": [] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "MUL", + "since_version": 0, + "doc": { + "category": "arithm_basic", + "description": "", + "gas": "18", + "fift": "MUL", + "fift_examples": [], + "opcode": "A8", + "stack": "x y - x*y" + }, + "bytecode": { "tlb": "#A8", "prefix": "A8", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "ADDDIVMOD", + "since_version": 4, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "26", + "fift": "ADDDIVMOD", + "fift_examples": [], + "opcode": "A900", + "stack": "x w z - q=floor((x+w)/z) r=(x+w)-zq" + }, + "bytecode": { "tlb": "#A900", "prefix": "A900", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "w", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "q", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "ADDDIVMODR", + "since_version": 4, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "26", + "fift": "ADDDIVMODR", + "fift_examples": [], + "opcode": "A901", + "stack": "x w z - q=round((x+w)/z) r=(x+w)-zq" + }, + "bytecode": { "tlb": "#A901", "prefix": "A901", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "w", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "q", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "ADDDIVMODC", + "since_version": 4, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "26", + "fift": "ADDDIVMODC", + "fift_examples": [], + "opcode": "A902", + "stack": "x w y - q=ceil((x+w)/z) r=(x+w)-zq" + }, + "bytecode": { "tlb": "#A902", "prefix": "A902", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "w", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "q", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DIV", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "`q=floor(x/y)`, `r=x-y*q`", + "gas": "26", + "fift": "DIV", + "fift_examples": [], + "opcode": "A904", + "stack": "x y - q" + }, + "bytecode": { "tlb": "#A904", "prefix": "A904", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DIVR", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "`q'=round(x/y)`, `r'=x-y*q'`", + "gas": "26", + "fift": "DIVR", + "fift_examples": [], + "opcode": "A905", + "stack": "x y - q'" + }, + "bytecode": { "tlb": "#A905", "prefix": "A905", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DIVC", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "`q''=ceil(x/y)`, `r''=x-y*q''`", + "gas": "26", + "fift": "DIVC", + "fift_examples": [], + "opcode": "A906", + "stack": "x y - q''" + }, + "bytecode": { "tlb": "#A906", "prefix": "A906", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "MOD", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "26", + "fift": "MOD", + "fift_examples": [], + "opcode": "A908", + "stack": "x y - r" + }, + "bytecode": { "tlb": "#A908", "prefix": "A908", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "MODR", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "26", + "fift": "MODR", + "fift_examples": [], + "opcode": "A909", + "stack": "x y - r" + }, + "bytecode": { "tlb": "#A909", "prefix": "A909", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "MODC", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "26", + "fift": "MODC", + "fift_examples": [], + "opcode": "A90A", + "stack": "x y - r" + }, + "bytecode": { "tlb": "#A90A", "prefix": "A90A", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DIVMOD", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "26", + "fift": "DIVMOD", + "fift_examples": [], + "opcode": "A90C", + "stack": "x y - q r" + }, + "bytecode": { "tlb": "#A90C", "prefix": "A90C", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "q", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DIVMODR", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "26", + "fift": "DIVMODR", + "fift_examples": [], + "opcode": "A90D", + "stack": "x y - q' r'" + }, + "bytecode": { "tlb": "#A90D", "prefix": "A90D", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "q", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DIVMODC", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "26", + "fift": "DIVMODC", + "fift_examples": [], + "opcode": "A90E", + "stack": "x y - q'' r''" + }, + "bytecode": { "tlb": "#A90E", "prefix": "A90E", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "q", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "ADDRSHIFTMOD", + "since_version": 4, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "26", + "fift": "ADDRSHIFTMOD", + "fift_examples": [], + "opcode": "A920", + "stack": "x w z - q=floor((x+w)/2^z) r=(x+w)-q*2^z" + }, + "bytecode": { "tlb": "#A920", "prefix": "A920", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "w", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "q", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "ADDRSHIFTMODR", + "since_version": 4, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "26", + "fift": "ADDRSHIFTMODR", + "fift_examples": [], + "opcode": "A921", + "stack": "x w z - q=round((x+w)/2^z) r=(x+w)-q*2^z" + }, + "bytecode": { "tlb": "#A921", "prefix": "A921", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "w", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "q", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "ADDRSHIFTMODC", + "since_version": 4, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "26", + "fift": "ADDRSHIFTMODC", + "fift_examples": [], + "opcode": "A922", + "stack": "x w z - q=ceil((x+w)/2^z) r=(x+w)-q*2^z" + }, + "bytecode": { "tlb": "#A922", "prefix": "A922", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "w", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "q", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "RSHIFTR_VAR", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "26", + "fift": "RSHIFTR", + "fift_examples": [], + "opcode": "A925", + "stack": "x y - round(x/2^y)" + }, + "bytecode": { "tlb": "#A925", "prefix": "A925", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "RSHIFTC_VAR", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "26", + "fift": "RSHIFTC", + "fift_examples": [], + "opcode": "A926", + "stack": "x y - ceil(x/2^y)" + }, + "bytecode": { "tlb": "#A926", "prefix": "A926", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "MODPOW2_VAR", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "26", + "fift": "MODPOW2", + "fift_examples": [], + "opcode": "A928", + "stack": "x y - x mod 2^y" + }, + "bytecode": { "tlb": "#A928", "prefix": "A928", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "MODPOW2R_VAR", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "26", + "fift": "MODPOW2R", + "fift_examples": [], + "opcode": "A929", + "stack": "x y - x mod 2^y" + }, + "bytecode": { "tlb": "#A929", "prefix": "A929", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "MODPOW2C_VAR", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "26", + "fift": "MODPOW2C", + "fift_examples": [], + "opcode": "A92A", + "stack": "x y - x mod 2^y" + }, + "bytecode": { "tlb": "#A92A", "prefix": "A92A", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "RSHIFTMOD_VAR", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "26", + "fift": "RSHIFTMOD", + "fift_examples": [], + "opcode": "A92C", + "stack": "x y - q=floor(x/2^y) r=x-q*2^y" + }, + "bytecode": { "tlb": "#A92C", "prefix": "A92C", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "q", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "RSHIFTMODR_VAR", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "26", + "fift": "RSHIFTMODR", + "fift_examples": [], + "opcode": "A92D", + "stack": "x y - q=round(x/2^y) r=x-q*2^y" + }, + "bytecode": { "tlb": "#A92D", "prefix": "A92D", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "q", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "RSHIFTMODC_VAR", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "26", + "fift": "RSHIFTMODC", + "fift_examples": [], + "opcode": "A92E", + "stack": "x y - q=ceil(x/2^y) r=x-q*2^y" + }, + "bytecode": { "tlb": "#A92E", "prefix": "A92E", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "q", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "ADDRSHIFTMOD", + "since_version": 4, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "34", + "fift": "[tt+1] ADDRSHIFT#MOD", + "fift_examples": [], + "opcode": "A930tt", + "stack": "x w - q=floor((x+w)/2^(tt+1)) r=(x+w)-q*2^(tt+1)" + }, + "bytecode": { + "tlb": "#A930 tt:uint8", + "prefix": "A930", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "w", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "q", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "ADDRSHIFTRMOD", + "since_version": 4, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "34", + "fift": "[tt+1] ADDRSHIFTR#MOD", + "fift_examples": [], + "opcode": "A931tt", + "stack": "x w - q=round((x+w)/2^(tt+1)) r=(x+w)-q*2^(tt+1)" + }, + "bytecode": { + "tlb": "#A931 tt:uint8", + "prefix": "A931", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "w", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "q", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "ADDRSHIFTCMOD", + "since_version": 4, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "34", + "fift": "[tt+1] ADDRSHIFTC#MOD", + "fift_examples": [], + "opcode": "A932tt", + "stack": "x w - q=round((x+w)/2^(tt+1)) r=(x+w)-q*2^(tt+1)" + }, + "bytecode": { + "tlb": "#A932 tt:uint8", + "prefix": "A932", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "w", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "q", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "RSHIFTR", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "34", + "fift": "[tt+1] RSHIFTR#", + "fift_examples": [], + "opcode": "A935tt", + "stack": "x - round(x/2^(tt+1))" + }, + "bytecode": { + "tlb": "#A935 tt:uint8", + "prefix": "A935", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "RSHIFTC", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "34", + "fift": "[tt+1] RSHIFTC#", + "fift_examples": [], + "opcode": "A936tt", + "stack": "x - ceil(x/2^(tt+1))" + }, + "bytecode": { + "tlb": "#A936 tt:uint8", + "prefix": "A936", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "MODPOW2", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "34", + "fift": "[tt+1] MODPOW2#", + "fift_examples": [], + "opcode": "A938tt", + "stack": "x - x mod 2^(tt+1)" + }, + "bytecode": { + "tlb": "#A938 tt:uint8", + "prefix": "A938", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "MODPOW2R", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "34", + "fift": "[tt+1] MODPOW2R#", + "fift_examples": [], + "opcode": "A939tt", + "stack": "x - x mod 2^(tt+1)" + }, + "bytecode": { + "tlb": "#A939 tt:uint8", + "prefix": "A939", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "MODPOW2C", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "34", + "fift": "[tt+1] MODPOW2C#", + "fift_examples": [], + "opcode": "A93Att", + "stack": "x - x mod 2^(tt+1)" + }, + "bytecode": { + "tlb": "#A93A tt:uint8", + "prefix": "A93A", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "RSHIFTMOD", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "34", + "fift": "[tt+1] RSHIFT#MOD", + "fift_examples": [], + "opcode": "A93Ctt", + "stack": "x - q=floor(x/2^(tt+1)) r=x-q*2^(tt+1)" + }, + "bytecode": { + "tlb": "#A93C tt:uint8", + "prefix": "A93C", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "q", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "RSHIFTRMOD", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "34", + "fift": "[tt+1] RSHIFTR#MOD", + "fift_examples": [], + "opcode": "A93Dtt", + "stack": "x - q=round(x/2^(tt+1)) r=x-q*2^(tt+1)" + }, + "bytecode": { + "tlb": "#A93D tt:uint8", + "prefix": "A93D", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "q", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "RSHIFTCMOD", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "34", + "fift": "[tt+1] RSHIFTC#MOD", + "fift_examples": [], + "opcode": "A93Ett", + "stack": "x - q=ceil(x/2^(tt+1)) r=x-q*2^(tt+1)" + }, + "bytecode": { + "tlb": "#A93E tt:uint8", + "prefix": "A93E", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "q", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "MULADDDIVMOD", + "since_version": 4, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "26", + "fift": "MULADDDIVMOD", + "fift_examples": [], + "opcode": "A980", + "stack": "x y w z - q=floor((xy+w)/z) r=(xy+w)-zq" + }, + "bytecode": { "tlb": "#A980", "prefix": "A980", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "w", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "q", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "MULADDDIVMODR", + "since_version": 4, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "26", + "fift": "MULADDDIVMODR", + "fift_examples": [], + "opcode": "A981", + "stack": "x y w z - q=round((xy+w)/z) r=(xy+w)-zq" + }, + "bytecode": { "tlb": "#A981", "prefix": "A981", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "w", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "q", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "MULADDDIVMODC", + "since_version": 4, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "26", + "fift": "MULADDDIVMODC", + "fift_examples": [], + "opcode": "A982", + "stack": "x y w z - q=ceil((xy+w)/z) r=(xy+w)-zq" + }, + "bytecode": { "tlb": "#A982", "prefix": "A982", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "w", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "q", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "MULDIV", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "`q=floor(x*y/z)`", + "gas": "26", + "fift": "MULDIV", + "fift_examples": [], + "opcode": "A984", + "stack": "x y z - q" + }, + "bytecode": { "tlb": "#A984", "prefix": "A984", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "MULDIVR", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "`q'=round(x*y/z)`", + "gas": "26", + "fift": "MULDIVR", + "fift_examples": [], + "opcode": "A985", + "stack": "x y z - q'" + }, + "bytecode": { "tlb": "#A985", "prefix": "A985", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "MULDIVC", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "`q'=ceil(x*y/z)`", + "gas": "26", + "fift": "MULDIVC", + "fift_examples": [], + "opcode": "A986", + "stack": "x y z - q'" + }, + "bytecode": { "tlb": "#A986", "prefix": "A986", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "MULMOD", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "26", + "fift": "MULMOD", + "fift_examples": [], + "opcode": "A988", + "stack": "x y z - x*y mod z" + }, + "bytecode": { "tlb": "#A988", "prefix": "A988", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "MULMODR", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "26", + "fift": "MULMODR", + "fift_examples": [], + "opcode": "A989", + "stack": "x y z - x*y mod z" + }, + "bytecode": { "tlb": "#A989", "prefix": "A989", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "MULMODC", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "26", + "fift": "MULMODC", + "fift_examples": [], + "opcode": "A98A", + "stack": "x y z - x*y mod z" + }, + "bytecode": { "tlb": "#A98A", "prefix": "A98A", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "MULDIVMOD", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "`q=floor(x*y/z)`, `r=x*y-z*q`", + "gas": "26", + "fift": "MULDIVMOD", + "fift_examples": [], + "opcode": "A98C", + "stack": "x y z - q r" + }, + "bytecode": { "tlb": "#A98C", "prefix": "A98C", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "q", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "MULDIVMODR", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "`q=round(x*y/z)`, `r=x*y-z*q`", + "gas": "26", + "fift": "MULDIVMODR", + "fift_examples": [], + "opcode": "A98D", + "stack": "x y z - q r" + }, + "bytecode": { "tlb": "#A98D", "prefix": "A98D", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "q", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "MULDIVMODC", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "`q=ceil(x*y/z)`, `r=x*y-z*q`", + "gas": "26", + "fift": "MULDIVMODC", + "fift_examples": [], + "opcode": "A98E", + "stack": "x y z - q r" + }, + "bytecode": { "tlb": "#A98E", "prefix": "A98E", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "q", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "MULADDRSHIFTMOD", + "since_version": 4, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "26", + "fift": "MULADDRSHIFTMOD", + "fift_examples": [], + "opcode": "A9A0", + "stack": "x y w z - q=floor((xy+w)/2^z) r=(xy+w)-q*2^z" + }, + "bytecode": { "tlb": "#A9A0", "prefix": "A9A0", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "w", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "q", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "MULADDRSHIFTRMOD", + "since_version": 4, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "26", + "fift": "MULADDRSHIFTRMOD", + "fift_examples": [], + "opcode": "A9A1", + "stack": "x y w z - q=round((xy+w)/2^z) r=(xy+w)-q*2^z" + }, + "bytecode": { "tlb": "#A9A1", "prefix": "A9A1", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "w", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "q", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "MULADDRSHIFTCMOD", + "since_version": 4, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "26", + "fift": "MULADDRSHIFTCMOD", + "fift_examples": [], + "opcode": "A9A2", + "stack": "x y w z - q=ceil((xy+w)/2^z) r=(xy+w)-q*2^z" + }, + "bytecode": { "tlb": "#A9A2", "prefix": "A9A2", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "w", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "q", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "MULRSHIFT_VAR", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "`0 <= z <= 256`", + "gas": "26", + "fift": "MULRSHIFT", + "fift_examples": [], + "opcode": "A9A4", + "stack": "x y z - floor(x*y/2^z)" + }, + "bytecode": { "tlb": "#A9A4", "prefix": "A9A4", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "MULRSHIFTR_VAR", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "`0 <= z <= 256`", + "gas": "26", + "fift": "MULRSHIFTR", + "fift_examples": [], + "opcode": "A9A5", + "stack": "x y z - round(x*y/2^z)" + }, + "bytecode": { "tlb": "#A9A5", "prefix": "A9A5", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "MULRSHIFTC_VAR", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "`0 <= z <= 256`", + "gas": "26", + "fift": "MULRSHIFTC", + "fift_examples": [], + "opcode": "A9A6", + "stack": "x y z - ceil(x*y/2^z)" + }, + "bytecode": { "tlb": "#A9A6", "prefix": "A9A6", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "MULMODPOW2_VAR", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "26", + "fift": "MULMODPOW2_VAR", + "fift_examples": [], + "opcode": "A9A8", + "stack": "x y z - x*y mod 2^z" + }, + "bytecode": { "tlb": "#A9A8", "prefix": "A9A8", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "MULMODPOW2R_VAR", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "26", + "fift": "MULMODPOW2R_VAR", + "fift_examples": [], + "opcode": "A9A9", + "stack": "x y z - x*y mod 2^z" + }, + "bytecode": { "tlb": "#A9A9", "prefix": "A9A9", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "MULMODPOW2C_VAR", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "26", + "fift": "MULMODPOW2C_VAR", + "fift_examples": [], + "opcode": "A9AA", + "stack": "x y z - x*y mod 2^z" + }, + "bytecode": { "tlb": "#A9AA", "prefix": "A9AA", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "MULRSHIFTMOD_VAR", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "26", + "fift": "MULRSHIFTMOD_VAR", + "fift_examples": [], + "opcode": "A9AC", + "stack": "x y z - q=floor(x*y/2^z) r=xy-q*2^z" + }, + "bytecode": { "tlb": "#A9AC", "prefix": "A9AC", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "MULRSHIFTRMOD_VAR", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "26", + "fift": "MULRSHIFTRMOD_VAR", + "fift_examples": [], + "opcode": "A9AD", + "stack": "x y z - q=round(x*y/2^z) r=xy-q*2^z" + }, + "bytecode": { "tlb": "#A9AD", "prefix": "A9AD", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "MULRSHIFTCMOD_VAR", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "26", + "fift": "MULRSHIFTCMOD_VAR", + "fift_examples": [], + "opcode": "A9AE", + "stack": "x y z - q=ceil(x*y/2^z) r=xy-q*2^z" + }, + "bytecode": { "tlb": "#A9AE", "prefix": "A9AE", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "MULADDRSHIFTMOD", + "since_version": 4, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "34", + "fift": "[tt+1] MULADDRSHIFT#MOD", + "fift_examples": [], + "opcode": "A9B0tt", + "stack": "x y w - q=floor((xy+w)/2^z) r=(xy+w)-q*2^z" + }, + "bytecode": { + "tlb": "#A9B0 tt:uint8", + "prefix": "A9B0", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "w", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "MULADDRSHIFTRMOD", + "since_version": 4, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "34", + "fift": "[tt+1] MULADDRSHIFTR#MOD", + "fift_examples": [], + "opcode": "A9B1tt", + "stack": "x y w - q=round((xy+w)/2^z) r=(xy+w)-q*2^z" + }, + "bytecode": { + "tlb": "#A9B1 tt:uint8", + "prefix": "A9B1", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "w", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "MULADDRSHIFTCMOD", + "since_version": 4, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "34", + "fift": "[tt+1] MULADDRSHIFTC#MOD", + "fift_examples": [], + "opcode": "A9B2tt", + "stack": "x y w - q=ceil((xy+w)/2^z) r=(xy+w)-q*2^z" + }, + "bytecode": { + "tlb": "#A9B2 tt:uint8", + "prefix": "A9B2", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "w", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "MULRSHIFT", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "34", + "fift": "[tt+1] MULRSHIFT#", + "fift_examples": [], + "opcode": "A9B4tt", + "stack": "x y - floor(x*y/2^(tt+1))" + }, + "bytecode": { + "tlb": "#A9B4 tt:uint8", + "prefix": "A9B4", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "MULRSHIFTR", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "34", + "fift": "[tt+1] MULRSHIFTR#", + "fift_examples": [], + "opcode": "A9B5tt", + "stack": "x y - round(x*y/2^(tt+1))" + }, + "bytecode": { + "tlb": "#A9B5 tt:uint8", + "prefix": "A9B5", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "MULRSHIFTC", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "34", + "fift": "[tt+1] MULRSHIFTC#", + "fift_examples": [], + "opcode": "A9B6tt", + "stack": "x y - ceil(x*y/2^(tt+1))" + }, + "bytecode": { + "tlb": "#A9B6 tt:uint8", + "prefix": "A9B6", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "MULMODPOW2", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "34", + "fift": "[tt+1] MULMODPOW2#", + "fift_examples": [], + "opcode": "A9B8tt", + "stack": "x y - x*y mod 2^(tt+1)" + }, + "bytecode": { + "tlb": "#A9B8 tt:uint8", + "prefix": "A9B8", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "MULMODPOW2R", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "34", + "fift": "[tt+1] MULMODPOW2R#", + "fift_examples": [], + "opcode": "A9B9tt", + "stack": "x y - x*y mod 2^(tt+1)" + }, + "bytecode": { + "tlb": "#A9B9 tt:uint8", + "prefix": "A9B9", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "MULMODPOW2C", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "34", + "fift": "[tt+1] MULMODPOW2C#", + "fift_examples": [], + "opcode": "A9BAtt", + "stack": "x y - x*y mod 2^(tt+1)" + }, + "bytecode": { + "tlb": "#A9BA tt:uint8", + "prefix": "A9BA", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "MULRSHIFTMOD", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "34", + "fift": "MULRSHIFT#MOD", + "fift_examples": [], + "opcode": "A9BC", + "stack": "x y - q=floor(x*y/2^(tt+1)) r=xy-q*2^(tt+1)" + }, + "bytecode": { + "tlb": "#A9BC", + "prefix": "A9BC", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "MULRSHIFTRMOD", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "34", + "fift": "MULRSHIFTR#MOD", + "fift_examples": [], + "opcode": "A9BD", + "stack": "x y - q=round(x*y/2^(tt+1)) r=xy-q*2^(tt+1)" + }, + "bytecode": { + "tlb": "#A9BD", + "prefix": "A9BD", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "MULRSHIFTCMOD", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "34", + "fift": "MULRSHIFTC#MOD", + "fift_examples": [], + "opcode": "A9BE", + "stack": "x y - q=ceil(x*y/2^(tt+1)) r=xy-q*2^(tt+1)" + }, + "bytecode": { + "tlb": "#A9BE", + "prefix": "A9BE", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LSHIFTADDDIVMOD_VAR", + "since_version": 4, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "26", + "fift": "LSHIFTADDDIVMOD", + "fift_examples": [], + "opcode": "A9C0", + "stack": "x w z y - q=floor((x*2^y+w)/z) r=(x*2^y+w)-zq" + }, + "bytecode": { "tlb": "#A9C0", "prefix": "A9C0", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "w", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LSHIFTADDDIVMODR_VAR", + "since_version": 4, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "26", + "fift": "LSHIFTADDDIVMODR", + "fift_examples": [], + "opcode": "A9C1", + "stack": "x w z y - q=round((x*2^y+w)/z) r=(x*2^y+w)-zq" + }, + "bytecode": { "tlb": "#A9C1", "prefix": "A9C1", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "w", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LSHIFTADDDIVMODC_VAR", + "since_version": 4, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "26", + "fift": "LSHIFTADDDIVMODC", + "fift_examples": [], + "opcode": "A9C2", + "stack": "x w z y - q=round((x*2^y+w)/z) r=(x*2^y+w)-zq" + }, + "bytecode": { "tlb": "#A9C2", "prefix": "A9C2", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "w", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LSHIFTDIV_VAR", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "`0 <= z <= 256`", + "gas": "26", + "fift": "LSHIFTDIV", + "fift_examples": [], + "opcode": "A9C4", + "stack": "x y z - floor(2^z*x/y)" + }, + "bytecode": { "tlb": "#A9C4", "prefix": "A9C4", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LSHIFTDIVR_VAR", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "`0 <= z <= 256`", + "gas": "26", + "fift": "LSHIFTDIVR", + "fift_examples": [], + "opcode": "A9C5", + "stack": "x y z - round(2^z*x/y)" + }, + "bytecode": { "tlb": "#A9C5", "prefix": "A9C5", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LSHIFTDIVC_VAR", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "`0 <= z <= 256`", + "gas": "26", + "fift": "LSHIFTDIVC", + "fift_examples": [], + "opcode": "A9C6", + "stack": "x y z - ceil(2^z*x/y)" + }, + "bytecode": { "tlb": "#A9C6", "prefix": "A9C6", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LSHIFTMOD_VAR", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "26", + "fift": "LSHIFTMOD", + "fift_examples": [], + "opcode": "A9C8", + "stack": "x y z - 2^z*x mod y" + }, + "bytecode": { "tlb": "#A9C8", "prefix": "A9C8", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LSHIFTMODR_VAR", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "26", + "fift": "LSHIFTMODR", + "fift_examples": [], + "opcode": "A9C9", + "stack": "x y z - 2^z*x mod y" + }, + "bytecode": { "tlb": "#A9C9", "prefix": "A9C9", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LSHIFTMODC_VAR", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "26", + "fift": "LSHIFTMODC", + "fift_examples": [], + "opcode": "A9CA", + "stack": "x y z - 2^z*x mod y" + }, + "bytecode": { "tlb": "#A9CA", "prefix": "A9CA", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LSHIFTDIVMOD_VAR", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "26", + "fift": "LSHIFTDIVMOD", + "fift_examples": [], + "opcode": "A9CC", + "stack": "x y z - q=floor(2^z*x/y) r=2^z*x-q*y" + }, + "bytecode": { "tlb": "#A9CC", "prefix": "A9CC", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LSHIFTDIVMODR_VAR", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "26", + "fift": "LSHIFTDIVMODR", + "fift_examples": [], + "opcode": "A9CD", + "stack": "x y z - q=round(2^z*x/y) r=2^z*x-q*y" + }, + "bytecode": { "tlb": "#A9CD", "prefix": "A9CD", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LSHIFTDIVMODC_VAR", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "26", + "fift": "LSHIFTDIVMODC", + "fift_examples": [], + "opcode": "A9CE", + "stack": "x y z - q=ceil(2^z*x/y) r=2^z*x-q*y" + }, + "bytecode": { "tlb": "#A9CE", "prefix": "A9CE", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LSHIFTADDDIVMOD", + "since_version": 4, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "34", + "fift": "[tt+1] LSHIFT#ADDDIVMOD", + "fift_examples": [], + "opcode": "A9D0tt", + "stack": "x w z - q=floor((x*2^y+w)/z) r=(x*2^y+w)-zq" + }, + "bytecode": { + "tlb": "#A9D0 tt:uint8", + "prefix": "A9D0", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "w", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LSHIFTADDDIVMODR", + "since_version": 4, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "34", + "fift": "[tt+1] LSHIFT#ADDDIVMODR", + "fift_examples": [], + "opcode": "A9D1tt", + "stack": "x w z - q=round((x*2^y+w)/z) r=(x*2^y+w)-zq" + }, + "bytecode": { + "tlb": "#A9D1 tt:uint8", + "prefix": "A9D1", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "w", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LSHIFTADDDIVMODC", + "since_version": 4, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "34", + "fift": "[tt+1] LSHIFT#ADDDIVMODC", + "fift_examples": [], + "opcode": "A9D2tt", + "stack": "x w z - q=ceil((x*2^y+w)/z) r=(x*2^y+w)-zq" + }, + "bytecode": { + "tlb": "#A9D2 tt:uint8", + "prefix": "A9D2", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "w", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LSHIFTDIV", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "34", + "fift": "[tt+1] LSHIFT#DIV", + "fift_examples": [], + "opcode": "A9D4tt", + "stack": "x y - floor(2^(tt+1)*x/y)" + }, + "bytecode": { + "tlb": "#A9D4 tt:uint8", + "prefix": "A9D4", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LSHIFTDIVR", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "34", + "fift": "[tt+1] LSHIFT#DIVR", + "fift_examples": [], + "opcode": "A9D5tt", + "stack": "x y - round(2^(tt+1)*x/y)" + }, + "bytecode": { + "tlb": "#A9D5 tt:uint8", + "prefix": "A9D5", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LSHIFTDIVC", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "26", + "fift": "[tt+1] LSHIFT#DIVC", + "fift_examples": [], + "opcode": "A9D6tt", + "stack": "x y - ceil(2^(tt+1)*x/y)" + }, + "bytecode": { + "tlb": "#A9D6 tt:uint8", + "prefix": "A9D6", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LSHIFTMOD", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "34", + "fift": "[tt+1] LSHIFT#MOD", + "fift_examples": [], + "opcode": "A9D8tt", + "stack": "x y - 2^(tt+1)*x mod y" + }, + "bytecode": { + "tlb": "#A9D8 tt:uint8", + "prefix": "A9D8", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LSHIFTMODR", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "34", + "fift": "[tt+1] LSHIFT#MODR", + "fift_examples": [], + "opcode": "A9D9tt", + "stack": "x y - 2^(tt+1)*x mod y" + }, + "bytecode": { + "tlb": "#A9D9 tt:uint8", + "prefix": "A9D9", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LSHIFTMODC", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "34", + "fift": "[tt+1] LSHIFT#MODC", + "fift_examples": [], + "opcode": "A9DAtt", + "stack": "x y - 2^(tt+1)*x mod y" + }, + "bytecode": { + "tlb": "#A9DA tt:uint8", + "prefix": "A9DA", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LSHIFTDIVMOD", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "34", + "fift": "[tt+1] LSHIFT#DIVMOD", + "fift_examples": [], + "opcode": "A9DCtt", + "stack": "x y - q=floor(2^(tt+1)*x/y) r=2^(tt+1)*x-q*y" + }, + "bytecode": { + "tlb": "#A9DC tt:uint8", + "prefix": "A9DC", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LSHIFTDIVMODR", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "34", + "fift": "[tt+1] LSHIFT#DIVMODR", + "fift_examples": [], + "opcode": "A9DDtt", + "stack": "x y - q=round(2^(tt+1)*x/y) r=2^(tt+1)*x-q*y" + }, + "bytecode": { + "tlb": "#A9DD tt:uint8", + "prefix": "A9DD", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LSHIFTDIVMODC", + "since_version": 0, + "doc": { + "category": "arithm_div", + "description": "", + "gas": "34", + "fift": "[tt+1] LSHIFT#DIVMODC", + "fift_examples": [], + "opcode": "A9DEtt", + "stack": "x y - q=ceil(2^(tt+1)*x/y) r=2^(tt+1)*x-q*y" + }, + "bytecode": { + "tlb": "#A9DE tt:uint8", + "prefix": "A9DE", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LSHIFT", + "since_version": 0, + "doc": { + "category": "arithm_logical", + "description": "`0 <= cc <= 255`", + "gas": "26", + "fift": "[cc+1] LSHIFT#", + "fift_examples": [], + "opcode": "AAcc", + "stack": "x - x*2^(cc+1)" + }, + "bytecode": { + "tlb": "#AA cc:uint8", + "prefix": "AA", + "operands": [ + { + "name": "c", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "RSHIFT", + "since_version": 0, + "doc": { + "category": "arithm_logical", + "description": "`0 <= cc <= 255`", + "gas": "18", + "fift": "[cc+1] RSHIFT#", + "fift_examples": [], + "opcode": "ABcc", + "stack": "x - floor(x/2^(cc+1))" + }, + "bytecode": { + "tlb": "#AB cc:uint8", + "prefix": "AB", + "operands": [ + { + "name": "c", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LSHIFT_VAR", + "since_version": 0, + "doc": { + "category": "arithm_logical", + "description": "`0 <= y <= 1023`", + "gas": "18", + "fift": "LSHIFT", + "fift_examples": [], + "opcode": "AC", + "stack": "x y - x*2^y" + }, + "bytecode": { "tlb": "#AC", "prefix": "AC", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "RSHIFT_VAR", + "since_version": 0, + "doc": { + "category": "arithm_logical", + "description": "`0 <= y <= 1023`", + "gas": "18", + "fift": "RSHIFT", + "fift_examples": [], + "opcode": "AD", + "stack": "x y - floor(x/2^y)" + }, + "bytecode": { "tlb": "#AD", "prefix": "AD", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "POW2", + "since_version": 0, + "doc": { + "category": "arithm_logical", + "description": "`0 <= y <= 1023`\nEquivalent to `ONE` `SWAP` `LSHIFT`.", + "gas": "18", + "fift": "POW2", + "fift_examples": [], + "opcode": "AE", + "stack": "y - 2^y" + }, + "bytecode": { "tlb": "#AE", "prefix": "AE", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "AND", + "since_version": 0, + "doc": { + "category": "arithm_logical", + "description": "Bitwise and of two signed integers `x` and `y`, sign-extended to infinity.", + "gas": "18", + "fift": "AND", + "fift_examples": [], + "opcode": "B0", + "stack": "x y - x&y" + }, + "bytecode": { "tlb": "#B0", "prefix": "B0", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "OR", + "since_version": 0, + "doc": { + "category": "arithm_logical", + "description": "Bitwise or of two integers.", + "gas": "18", + "fift": "OR", + "fift_examples": [], + "opcode": "B1", + "stack": "x y - x|y" + }, + "bytecode": { "tlb": "#B1", "prefix": "B1", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "XOR", + "since_version": 0, + "doc": { + "category": "arithm_logical", + "description": "Bitwise xor of two integers.", + "gas": "18", + "fift": "XOR", + "fift_examples": [], + "opcode": "B2", + "stack": "x y - x xor y" + }, + "bytecode": { "tlb": "#B2", "prefix": "B2", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "NOT", + "since_version": 0, + "doc": { + "category": "arithm_logical", + "description": "Bitwise not of an integer.", + "gas": "26", + "fift": "NOT", + "fift_examples": [], + "opcode": "B3", + "stack": "x - ~x" + }, + "bytecode": { "tlb": "#B3", "prefix": "B3", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "FITS", + "since_version": 0, + "doc": { + "category": "arithm_logical", + "description": "Checks whether `x` is a `cc+1`-bit signed integer for `0 <= cc <= 255` (i.e., whether `-2^cc <= x < 2^cc`).\nIf not, either triggers an integer overflow exception, or replaces `x` with a `NaN` (quiet version).", + "gas": "26/76", + "fift": "[cc+1] FITS", + "fift_examples": [], + "opcode": "B4cc", + "stack": "x - x" + }, + "bytecode": { + "tlb": "#B4 cc:uint8", + "prefix": "B4", + "operands": [ + { + "name": "c", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "UFITS", + "since_version": 0, + "doc": { + "category": "arithm_logical", + "description": "Checks whether `x` is a `cc+1`-bit unsigned integer for `0 <= cc <= 255` (i.e., whether `0 <= x < 2^(cc+1)`).", + "gas": "26/76", + "fift": "[cc+1] UFITS", + "fift_examples": [], + "opcode": "B5cc", + "stack": "x - x" + }, + "bytecode": { + "tlb": "#B5 cc:uint8", + "prefix": "B5", + "operands": [ + { + "name": "c", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "FITSX", + "since_version": 0, + "doc": { + "category": "arithm_logical", + "description": "Checks whether `x` is a `c`-bit signed integer for `0 <= c <= 1023`.", + "gas": "26/76", + "fift": "FITSX", + "fift_examples": [], + "opcode": "B600", + "stack": "x c - x" + }, + "bytecode": { "tlb": "#B600", "prefix": "B600", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "c", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "UFITSX", + "since_version": 0, + "doc": { + "category": "arithm_logical", + "description": "Checks whether `x` is a `c`-bit unsigned integer for `0 <= c <= 1023`.", + "gas": "26/76", + "fift": "UFITSX", + "fift_examples": [], + "opcode": "B601", + "stack": "x c - x" + }, + "bytecode": { "tlb": "#B601", "prefix": "B601", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "c", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "BITSIZE", + "since_version": 0, + "doc": { + "category": "arithm_logical", + "description": "Computes smallest `c >= 0` such that `x` fits into a `c`-bit signed integer (`-2^(c-1) <= c < 2^(c-1)`).", + "gas": "26", + "fift": "BITSIZE", + "fift_examples": [], + "opcode": "B602", + "stack": "x - c" + }, + "bytecode": { "tlb": "#B602", "prefix": "B602", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "UBITSIZE", + "since_version": 0, + "doc": { + "category": "arithm_logical", + "description": "Computes smallest `c >= 0` such that `x` fits into a `c`-bit unsigned integer (`0 <= x < 2^c`), or throws a range check exception.", + "gas": "26", + "fift": "UBITSIZE", + "fift_examples": [], + "opcode": "B603", + "stack": "x - c" + }, + "bytecode": { "tlb": "#B603", "prefix": "B603", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "MIN", + "since_version": 0, + "doc": { + "category": "arithm_logical", + "description": "Computes the minimum of two integers `x` and `y`.", + "gas": "26", + "fift": "MIN", + "fift_examples": [], + "opcode": "B608", + "stack": "x y - x or y" + }, + "bytecode": { "tlb": "#B608", "prefix": "B608", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "MAX", + "since_version": 0, + "doc": { + "category": "arithm_logical", + "description": "Computes the maximum of two integers `x` and `y`.", + "gas": "26", + "fift": "MAX", + "fift_examples": [], + "opcode": "B609", + "stack": "x y - x or y" + }, + "bytecode": { "tlb": "#B609", "prefix": "B609", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "MINMAX", + "since_version": 0, + "doc": { + "category": "arithm_logical", + "description": "Sorts two integers. Quiet version of this operation returns two `NaN`s if any of the arguments are `NaN`s.", + "gas": "26", + "fift": "MINMAX\nINTSORT2", + "fift_examples": [], + "opcode": "B60A", + "stack": "x y - x y or y x" + }, + "bytecode": { "tlb": "#B60A", "prefix": "B60A", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "r1", "value_types": ["Integer"] }, + { "type": "simple", "name": "r2", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "ABS", + "since_version": 0, + "doc": { + "category": "arithm_logical", + "description": "Computes the absolute value of an integer `x`.", + "gas": "26", + "fift": "ABS", + "fift_examples": [], + "opcode": "B60B", + "stack": "x - |x|" + }, + "bytecode": { "tlb": "#B60B", "prefix": "B60B", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QADD", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "26", + "fift": "QADD", + "fift_examples": [], + "opcode": "B7A0", + "stack": "x y - x+y" + }, + "bytecode": { "tlb": "#B7A0", "prefix": "B7A0", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QSUB", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "26", + "fift": "QSUB", + "fift_examples": [], + "opcode": "B7A1", + "stack": "x y - x-y" + }, + "bytecode": { "tlb": "#B7A1", "prefix": "B7A1", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QSUBR", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "26", + "fift": "QSUBR", + "fift_examples": [], + "opcode": "B7A2", + "stack": "x y - y-x" + }, + "bytecode": { "tlb": "#B7A2", "prefix": "B7A2", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QNEGATE", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "26", + "fift": "QNEGATE", + "fift_examples": [], + "opcode": "B7A3", + "stack": "x - -x" + }, + "bytecode": { "tlb": "#B7A3", "prefix": "B7A3", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QINC", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "26", + "fift": "QINC", + "fift_examples": [], + "opcode": "B7A4", + "stack": "x - x+1" + }, + "bytecode": { "tlb": "#B7A4", "prefix": "B7A4", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QDEC", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "26", + "fift": "QDEC", + "fift_examples": [], + "opcode": "B7A5", + "stack": "x - x-1" + }, + "bytecode": { "tlb": "#B7A5", "prefix": "B7A5", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QMUL", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "26", + "fift": "QMUL", + "fift_examples": [], + "opcode": "B7A8", + "stack": "x y - x*y" + }, + "bytecode": { "tlb": "#B7A8", "prefix": "B7A8", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QADDDIVMOD", + "since_version": 4, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "34", + "fift": "QADDDIVMOD", + "fift_examples": [], + "opcode": "B7A900", + "stack": "x w z - q=floor((x+w)/z) r=(x+w)-zq" + }, + "bytecode": { "tlb": "#B7A900", "prefix": "B7A900", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "w", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "q", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QADDDIVMODR", + "since_version": 4, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "34", + "fift": "QADDDIVMODR", + "fift_examples": [], + "opcode": "B7A901", + "stack": "x w z - q=round((x+w)/z) r=(x+w)-zq" + }, + "bytecode": { "tlb": "#B7A901", "prefix": "B7A901", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "w", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "q", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QADDDIVMODC", + "since_version": 4, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "34", + "fift": "QADDDIVMODC", + "fift_examples": [], + "opcode": "B7A902", + "stack": "x w y - q=ceil((x+w)/z) r=(x+w)-zq" + }, + "bytecode": { "tlb": "#B7A902", "prefix": "B7A902", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "w", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "q", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QDIV", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "Division returns `NaN` if `y=0`.", + "gas": "34", + "fift": "QDIV", + "fift_examples": [], + "opcode": "B7A904", + "stack": "x y - q" + }, + "bytecode": { "tlb": "#B7A904", "prefix": "B7A904", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QDIVR", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "34", + "fift": "QDIVR", + "fift_examples": [], + "opcode": "B7A905", + "stack": "x y - q'" + }, + "bytecode": { "tlb": "#B7A905", "prefix": "B7A905", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QDIVC", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "34", + "fift": "QDIVC", + "fift_examples": [], + "opcode": "B7A906", + "stack": "x y - q''" + }, + "bytecode": { "tlb": "#B7A906", "prefix": "B7A906", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QMOD", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "34", + "fift": "QMOD", + "fift_examples": [], + "opcode": "B7A908", + "stack": "x y - r" + }, + "bytecode": { "tlb": "#B7A908", "prefix": "B7A908", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QMODR", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "34", + "fift": "QMODR", + "fift_examples": [], + "opcode": "B7A909", + "stack": "x y - r" + }, + "bytecode": { "tlb": "#B7A909", "prefix": "B7A909", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QMODC", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "34", + "fift": "QMODC", + "fift_examples": [], + "opcode": "B7A90A", + "stack": "x y - r" + }, + "bytecode": { "tlb": "#B7A90A", "prefix": "B7A90A", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QDIVMOD", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "34", + "fift": "QDIVMOD", + "fift_examples": [], + "opcode": "B7A90C", + "stack": "x y - q r" + }, + "bytecode": { "tlb": "#B7A90C", "prefix": "B7A90C", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "q", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QDIVMODR", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "34", + "fift": "QDIVMODR", + "fift_examples": [], + "opcode": "B7A90D", + "stack": "x y - q' r'" + }, + "bytecode": { "tlb": "#B7A90D", "prefix": "B7A90D", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "q", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QDIVMODC", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "34", + "fift": "QDIVMODC", + "fift_examples": [], + "opcode": "B7A90E", + "stack": "x y - q'' r''" + }, + "bytecode": { "tlb": "#B7A90E", "prefix": "B7A90E", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "q", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QADDRSHIFTMOD", + "since_version": 4, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "34", + "fift": "QADDRSHIFTMOD", + "fift_examples": [], + "opcode": "B7A920", + "stack": "x w z - q=floor((x+w)/2^z) r=(x+w)-q*2^z" + }, + "bytecode": { "tlb": "#B7A920", "prefix": "B7A920", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "w", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "q", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QADDRSHIFTMODR", + "since_version": 4, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "34", + "fift": "QADDRSHIFTMODR", + "fift_examples": [], + "opcode": "B7A921", + "stack": "x w z - q=round((x+w)/2^z) r=(x+w)-q*2^z" + }, + "bytecode": { "tlb": "#B7A921", "prefix": "B7A921", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "w", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "q", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QADDRSHIFTMODC", + "since_version": 4, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "34", + "fift": "QADDRSHIFTMODC", + "fift_examples": [], + "opcode": "B7A922", + "stack": "x w z - q=ceil((x+w)/2^z) r=(x+w)-q*2^z" + }, + "bytecode": { "tlb": "#B7A922", "prefix": "B7A922", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "w", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "q", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QRSHIFTR_VAR", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "34", + "fift": "QRSHIFTR", + "fift_examples": [], + "opcode": "B7A925", + "stack": "x y - round(x/2^y)" + }, + "bytecode": { "tlb": "#B7A925", "prefix": "B7A925", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QRSHIFTC_VAR", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "34", + "fift": "QRSHIFTC", + "fift_examples": [], + "opcode": "B7A926", + "stack": "x y - ceil(x/2^y)" + }, + "bytecode": { "tlb": "#B7A926", "prefix": "B7A926", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QMODPOW2_VAR", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "34", + "fift": "QMODPOW2", + "fift_examples": [], + "opcode": "B7A928", + "stack": "x y - x mod 2^y" + }, + "bytecode": { "tlb": "#B7A928", "prefix": "B7A928", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QMODPOW2R_VAR", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "34", + "fift": "QMODPOW2R", + "fift_examples": [], + "opcode": "B7A929", + "stack": "x y - x mod 2^y" + }, + "bytecode": { "tlb": "#B7A929", "prefix": "B7A929", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QMODPOW2C_VAR", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "34", + "fift": "QMODPOW2C", + "fift_examples": [], + "opcode": "B7A92A", + "stack": "x y - x mod 2^y" + }, + "bytecode": { "tlb": "#B7A92A", "prefix": "B7A92A", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QRSHIFTMOD_VAR", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "34", + "fift": "QRSHIFTMOD", + "fift_examples": [], + "opcode": "B7A92C", + "stack": "x y - q=floor(x/2^y) r=x-q*2^y" + }, + "bytecode": { "tlb": "#B7A92C", "prefix": "B7A92C", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "q", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QRSHIFTMODR_VAR", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "34", + "fift": "QRSHIFTMODR", + "fift_examples": [], + "opcode": "B7A92D", + "stack": "x y - q=round(x/2^y) r=x-q*2^y" + }, + "bytecode": { "tlb": "#B7A92D", "prefix": "B7A92D", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "q", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QRSHIFTMODC_VAR", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "34", + "fift": "QRSHIFTMODC", + "fift_examples": [], + "opcode": "B7A92E", + "stack": "x y - q=ceil(x/2^y) r=x-q*2^y" + }, + "bytecode": { "tlb": "#B7A92E", "prefix": "B7A92E", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "q", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QADDRSHIFTMOD", + "since_version": 9999, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "42", + "fift": "[tt+1] QADDRSHIFT#MOD", + "fift_examples": [], + "opcode": "B7A930tt", + "stack": "x w - q=floor((x+w)/2^(tt+1)) r=(x+w)-q*2^(tt+1)" + }, + "bytecode": { + "tlb": "#B7A930 tt:uint8", + "prefix": "B7A930", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "w", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "q", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QADDRSHIFTRMOD", + "since_version": 9999, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "42", + "fift": "[tt+1] QADDRSHIFTR#MOD", + "fift_examples": [], + "opcode": "B7A931tt", + "stack": "x w - q=round((x+w)/2^(tt+1)) r=(x+w)-q*2^(tt+1)" + }, + "bytecode": { + "tlb": "#B7A931 tt:uint8", + "prefix": "B7A931", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "w", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "q", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QADDRSHIFTCMOD", + "since_version": 9999, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "42", + "fift": "[tt+1] QADDRSHIFTC#MOD", + "fift_examples": [], + "opcode": "B7A932tt", + "stack": "x w - q=round((x+w)/2^(tt+1)) r=(x+w)-q*2^(tt+1)" + }, + "bytecode": { + "tlb": "#B7A932 tt:uint8", + "prefix": "B7A932", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "w", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "q", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QRSHIFTR", + "since_version": 9999, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "42", + "fift": "[tt+1] QRSHIFTR#", + "fift_examples": [], + "opcode": "B7A935tt", + "stack": "x - round(x/2^(tt+1))" + }, + "bytecode": { + "tlb": "#B7A935 tt:uint8", + "prefix": "B7A935", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QRSHIFTC", + "since_version": 9999, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "42", + "fift": "[tt+1] QRSHIFTC#", + "fift_examples": [], + "opcode": "B7A936tt", + "stack": "x - ceil(x/2^(tt+1))" + }, + "bytecode": { + "tlb": "#B7A936 tt:uint8", + "prefix": "B7A936", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QMODPOW2", + "since_version": 9999, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "42", + "fift": "[tt+1] QMODPOW2#", + "fift_examples": [], + "opcode": "B7A938tt", + "stack": "x - x mod 2^(tt+1)" + }, + "bytecode": { + "tlb": "#B7A938 tt:uint8", + "prefix": "B7A938", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QMODPOW2R", + "since_version": 9999, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "42", + "fift": "[tt+1] QMODPOW2R#", + "fift_examples": [], + "opcode": "B7A939tt", + "stack": "x - x mod 2^(tt+1)" + }, + "bytecode": { + "tlb": "#B7A939 tt:uint8", + "prefix": "B7A939", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QMODPOW2C", + "since_version": 9999, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "42", + "fift": "[tt+1] QMODPOW2C#", + "fift_examples": [], + "opcode": "B7A93Att", + "stack": "x - x mod 2^(tt+1)" + }, + "bytecode": { + "tlb": "#B7A93A tt:uint8", + "prefix": "B7A93A", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QRSHIFTMOD", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "42", + "fift": "[tt+1] QRSHIFT#MOD", + "fift_examples": [], + "opcode": "A93Ctt", + "stack": "x - q=floor(x/2^(tt+1)) r=x-q*2^(tt+1)" + }, + "bytecode": { + "tlb": "#A93C tt:uint8", + "prefix": "A93C", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "q", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QRSHIFTRMOD", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "42", + "fift": "[tt+1] QRSHIFTR#MOD", + "fift_examples": [], + "opcode": "A93Dtt", + "stack": "x - q=round(x/2^(tt+1)) r=x-q*2^(tt+1)" + }, + "bytecode": { + "tlb": "#A93D tt:uint8", + "prefix": "A93D", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "q", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QRSHIFTCMOD", + "since_version": 9999, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "42", + "fift": "[tt+1] QRSHIFTC#MOD", + "fift_examples": [], + "opcode": "B7A93Ett", + "stack": "x - q=ceil(x/2^(tt+1)) r=x-q*2^(tt+1)" + }, + "bytecode": { + "tlb": "#B7A93E tt:uint8", + "prefix": "B7A93E", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "q", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QMULADDDIVMOD", + "since_version": 4, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "34", + "fift": "QMULADDDIVMOD", + "fift_examples": [], + "opcode": "B7A980", + "stack": "x y w z - q=floor((xy+w)/z) r=(xy+w)-zq" + }, + "bytecode": { "tlb": "#B7A980", "prefix": "B7A980", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "w", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "q", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QMULADDDIVMODR", + "since_version": 4, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "34", + "fift": "QMULADDDIVMODR", + "fift_examples": [], + "opcode": "B7A981", + "stack": "x y w z - q=round((xy+w)/z) r=(xy+w)-zq" + }, + "bytecode": { "tlb": "#B7A981", "prefix": "B7A981", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "w", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "q", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QMULADDDIVMODC", + "since_version": 4, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "34", + "fift": "QMULADDDIVMODC", + "fift_examples": [], + "opcode": "B7A982", + "stack": "x y w z - q=ceil((xy+w)/z) r=(xy+w)-zq" + }, + "bytecode": { "tlb": "#B7A982", "prefix": "B7A982", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "w", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "q", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QMULDIV", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "`q=floor(x*y/z)`", + "gas": "34", + "fift": "QMULDIV", + "fift_examples": [], + "opcode": "B7A984", + "stack": "x y z - q" + }, + "bytecode": { "tlb": "#B7A984", "prefix": "B7A984", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QMULDIVR", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "34", + "fift": "QMULDIVR", + "fift_examples": [], + "opcode": "B7A985", + "stack": "x y z - q'" + }, + "bytecode": { "tlb": "#B7A985", "prefix": "B7A985", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "q", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QMULDIVC", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "`q'=ceil(x*y/z)`", + "gas": "34", + "fift": "QMULDIVC", + "fift_examples": [], + "opcode": "B7A986", + "stack": "x y z - q'" + }, + "bytecode": { "tlb": "#B7A986", "prefix": "B7A986", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QMULMOD", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "34", + "fift": "QMULMOD", + "fift_examples": [], + "opcode": "B7A988", + "stack": "x y z - x*y mod z" + }, + "bytecode": { "tlb": "#B7A988", "prefix": "B7A988", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QMULMODR", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "34", + "fift": "QMULMODR", + "fift_examples": [], + "opcode": "B7A989", + "stack": "x y z - x*y mod z" + }, + "bytecode": { "tlb": "#B7A989", "prefix": "B7A989", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QMULMODC", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "34", + "fift": "QMULMODC", + "fift_examples": [], + "opcode": "B7A98A", + "stack": "x y z - x*y mod z" + }, + "bytecode": { "tlb": "#B7A98A", "prefix": "B7A98A", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QMULDIVMOD", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "34", + "fift": "QMULDIVMOD", + "fift_examples": [], + "opcode": "B7A98C", + "stack": "x y z - q r" + }, + "bytecode": { "tlb": "#B7A98C", "prefix": "B7A98C", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "q", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QMULDIVMODR", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "`q=round(x*y/z)`, `r=x*y-z*q`", + "gas": "34", + "fift": "QMULDIVMODR", + "fift_examples": [], + "opcode": "B7A98D", + "stack": "x y z - q r" + }, + "bytecode": { "tlb": "#B7A98D", "prefix": "B7A98D", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "q", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QMULDIVMODC", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "`q=ceil(x*y/z)`, `r=x*y-z*q`", + "gas": "34", + "fift": "QMULDIVMODC", + "fift_examples": [], + "opcode": "B7A98E", + "stack": "x y z - q r" + }, + "bytecode": { "tlb": "#B7A98E", "prefix": "B7A98E", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "q", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QMULADDRSHIFTMOD", + "since_version": 4, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "34", + "fift": "QMULADDRSHIFTMOD", + "fift_examples": [], + "opcode": "B7A9A0", + "stack": "x y w z - q=floor((xy+w)/2^z) r=(xy+w)-q*2^z" + }, + "bytecode": { "tlb": "#B7A9A0", "prefix": "B7A9A0", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "w", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "q", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QMULADDRSHIFTRMOD", + "since_version": 4, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "34", + "fift": "QMULADDRSHIFTRMOD", + "fift_examples": [], + "opcode": "B7A9A1", + "stack": "x y w z - q=round((xy+w)/2^z) r=(xy+w)-q*2^z" + }, + "bytecode": { "tlb": "#B7A9A1", "prefix": "B7A9A1", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "w", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "q", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QMULADDRSHIFTCMOD", + "since_version": 4, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "34", + "fift": "QMULADDRSHIFTCMOD", + "fift_examples": [], + "opcode": "B7A9A2", + "stack": "x y w z - q=ceil((xy+w)/2^z) r=(xy+w)-q*2^z" + }, + "bytecode": { "tlb": "#B7A9A2", "prefix": "B7A9A2", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "w", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "q", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QMULRSHIFT_VAR", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "`0 <= z <= 256`", + "gas": "34", + "fift": "QMULRSHIFT", + "fift_examples": [], + "opcode": "B7A9A4", + "stack": "x y z - floor(x*y/2^z)" + }, + "bytecode": { "tlb": "#B7A9A4", "prefix": "B7A9A4", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QMULRSHIFTR_VAR", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "`0 <= z <= 256`", + "gas": "34", + "fift": "QMULRSHIFTR", + "fift_examples": [], + "opcode": "B7A9A5", + "stack": "x y z - round(x*y/2^z)" + }, + "bytecode": { "tlb": "#B7A9A5", "prefix": "B7A9A5", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QMULRSHIFTC_VAR", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "`0 <= z <= 256`", + "gas": "34", + "fift": "QMULRSHIFTC", + "fift_examples": [], + "opcode": "B7A9A6", + "stack": "x y z - ceil(x*y/2^z)" + }, + "bytecode": { "tlb": "#B7A9A6", "prefix": "B7A9A6", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QMULMODPOW2_VAR", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "34", + "fift": "QMULMODPOW2_VAR", + "fift_examples": [], + "opcode": "B7A9A8", + "stack": "x y z - x*y mod 2^z" + }, + "bytecode": { "tlb": "#B7A9A8", "prefix": "B7A9A8", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QMULMODPOW2R_VAR", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "34", + "fift": "QMULMODPOW2R_VAR", + "fift_examples": [], + "opcode": "B7A9A9", + "stack": "x y z - x*y mod 2^z" + }, + "bytecode": { "tlb": "#B7A9A9", "prefix": "B7A9A9", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QMULMODPOW2C_VAR", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "34", + "fift": "QMULMODPOW2C_VAR", + "fift_examples": [], + "opcode": "B7A9AA", + "stack": "x y z - x*y mod 2^z" + }, + "bytecode": { "tlb": "#B7A9AA", "prefix": "B7A9AA", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QMULRSHIFTMOD_VAR", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "34", + "fift": "QMULRSHIFTMOD_VAR", + "fift_examples": [], + "opcode": "B7A9AC", + "stack": "x y z - q=floor(x*y/2^z) r=xy-q*2^z" + }, + "bytecode": { "tlb": "#B7A9AC", "prefix": "B7A9AC", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QMULRSHIFTRMOD_VAR", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "34", + "fift": "QMULRSHIFTRMOD_VAR", + "fift_examples": [], + "opcode": "B7A9AD", + "stack": "x y z - q=round(x*y/2^z) r=xy-q*2^z" + }, + "bytecode": { "tlb": "#B7A9AD", "prefix": "B7A9AD", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QMULRSHIFTCMOD_VAR", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "34", + "fift": "QMULRSHIFTCMOD_VAR", + "fift_examples": [], + "opcode": "B7A9AE", + "stack": "x y z - q=ceil(x*y/2^z) r=xy-q*2^z" + }, + "bytecode": { "tlb": "#B7A9AE", "prefix": "B7A9AE", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QMULADDRSHIFTMOD", + "since_version": 9999, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "42", + "fift": "[tt+1] QMULADDRSHIFT#MOD", + "fift_examples": [], + "opcode": "B7A9B0tt", + "stack": "x y w - q=floor((xy+w)/2^z) r=(xy+w)-q*2^z" + }, + "bytecode": { + "tlb": "#B7A9B0 tt:uint8", + "prefix": "B7A9B0", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "w", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QMULADDRSHIFTRMOD", + "since_version": 9999, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "42", + "fift": "[tt+1] QMULADDRSHIFTR#MOD", + "fift_examples": [], + "opcode": "B7A9B1tt", + "stack": "x y w - q=round((xy+w)/2^z) r=(xy+w)-q*2^z" + }, + "bytecode": { + "tlb": "#B7A9B1 tt:uint8", + "prefix": "B7A9B1", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "w", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QMULADDRSHIFTCMOD", + "since_version": 9999, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "42", + "fift": "[tt+1] QMULADDRSHIFTC#MOD", + "fift_examples": [], + "opcode": "B7A9B2tt", + "stack": "x y w - q=ceil((xy+w)/2^z) r=(xy+w)-q*2^z" + }, + "bytecode": { + "tlb": "#B7A9B2 tt:uint8", + "prefix": "B7A9B2", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "w", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QMULRSHIFT", + "since_version": 9999, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "42", + "fift": "[tt+1] QMULRSHIFT#", + "fift_examples": [], + "opcode": "B7A9B4tt", + "stack": "x y - floor(x*y/2^(tt+1))" + }, + "bytecode": { + "tlb": "#B7A9B4 tt:uint8", + "prefix": "B7A9B4", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QMULRSHIFTR", + "since_version": 9999, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "42", + "fift": "[tt+1] QMULRSHIFTR#", + "fift_examples": [], + "opcode": "B7A9B5tt", + "stack": "x y - round(x*y/2^(tt+1))" + }, + "bytecode": { + "tlb": "#B7A9B5 tt:uint8", + "prefix": "B7A9B5", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QMULRSHIFTC", + "since_version": 9999, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "42", + "fift": "[tt+1] QMULRSHIFTC#", + "fift_examples": [], + "opcode": "B7A9B6tt", + "stack": "x y - ceil(x*y/2^(tt+1))" + }, + "bytecode": { + "tlb": "#B7A9B6 tt:uint8", + "prefix": "B7A9B6", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QMULMODPOW2", + "since_version": 9999, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "42", + "fift": "[tt+1] QMULMODPOW2#", + "fift_examples": [], + "opcode": "B7A9B8tt", + "stack": "x y - x*y mod 2^(tt+1)" + }, + "bytecode": { + "tlb": "#B7A9B8 tt:uint8", + "prefix": "B7A9B8", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QMULMODPOW2R", + "since_version": 9999, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "42", + "fift": "[tt+1] QMULMODPOW2R#", + "fift_examples": [], + "opcode": "B7A9B9tt", + "stack": "x y - x*y mod 2^(tt+1)" + }, + "bytecode": { + "tlb": "#B7A9B9 tt:uint8", + "prefix": "B7A9B9", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QMULMODPOW2C", + "since_version": 9999, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "42", + "fift": "[tt+1] QMULMODPOW2C#", + "fift_examples": [], + "opcode": "B7A9BAtt", + "stack": "x y - x*y mod 2^(tt+1)" + }, + "bytecode": { + "tlb": "#B7A9BA tt:uint8", + "prefix": "B7A9BA", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QMULRSHIFTMOD", + "since_version": 9999, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "42", + "fift": "QMULRSHIFT#MOD", + "fift_examples": [], + "opcode": "B7A9BC", + "stack": "x y - q=floor(x*y/2^(tt+1)) r=xy-q*2^(tt+1)" + }, + "bytecode": { "tlb": "#B7A9BC", "prefix": "B7A9BC", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QMULRSHIFTRMOD", + "since_version": 9999, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "42", + "fift": "QMULRSHIFTR#MOD", + "fift_examples": [], + "opcode": "B7A9BD", + "stack": "x y - q=round(x*y/2^(tt+1)) r=xy-q*2^(tt+1)" + }, + "bytecode": { "tlb": "#B7A9BD", "prefix": "B7A9BD", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QMULRSHIFTCMOD", + "since_version": 9999, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "42", + "fift": "QMULRSHIFTC#MOD", + "fift_examples": [], + "opcode": "B7A9BE", + "stack": "x y - q=ceil(x*y/2^(tt+1)) r=xy-q*2^(tt+1)" + }, + "bytecode": { "tlb": "#B7A9BE", "prefix": "B7A9BE", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QLSHIFTADDDIVMOD_VAR", + "since_version": 4, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "34", + "fift": "QLSHIFTADDDIVMOD", + "fift_examples": [], + "opcode": "B7A9C0", + "stack": "x w z y - q=floor((x*2^y+w)/z) r=(x*2^y+w)-zq" + }, + "bytecode": { "tlb": "#B7A9C0", "prefix": "B7A9C0", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "w", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QLSHIFTADDDIVMODR_VAR", + "since_version": 4, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "34", + "fift": "QLSHIFTADDDIVMODR", + "fift_examples": [], + "opcode": "B7A9C1", + "stack": "x w z y - q=round((x*2^y+w)/z) r=(x*2^y+w)-zq" + }, + "bytecode": { "tlb": "#B7A9C1", "prefix": "B7A9C1", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "w", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QLSHIFTADDDIVMODC_VAR", + "since_version": 4, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "34", + "fift": "QLSHIFTADDDIVMODC", + "fift_examples": [], + "opcode": "B7A9C2", + "stack": "x w z y - q=round((x*2^y+w)/z) r=(x*2^y+w)-zq" + }, + "bytecode": { "tlb": "#B7A9C2", "prefix": "B7A9C2", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "w", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QLSHIFTDIV_VAR", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "`0 <= z <= 256`", + "gas": "34", + "fift": "QLSHIFTDIV", + "fift_examples": [], + "opcode": "B7A9C4", + "stack": "x y z - floor(2^z*x/y)" + }, + "bytecode": { "tlb": "#B7A9C4", "prefix": "B7A9C4", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QLSHIFTDIVR_VAR", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "`0 <= z <= 256`", + "gas": "34", + "fift": "QLSHIFTDIVR", + "fift_examples": [], + "opcode": "B7A9C5", + "stack": "x y z - round(2^z*x/y)" + }, + "bytecode": { "tlb": "#B7A9C5", "prefix": "B7A9C5", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QLSHIFTDIVC_VAR", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "`0 <= z <= 256`", + "gas": "34", + "fift": "QLSHIFTDIVC", + "fift_examples": [], + "opcode": "B7A9C6", + "stack": "x y z - ceil(2^z*x/y)" + }, + "bytecode": { "tlb": "#B7A9C6", "prefix": "B7A9C6", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QLSHIFTMOD_VAR", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "34", + "fift": "QLSHIFTMOD", + "fift_examples": [], + "opcode": "B7A9C8", + "stack": "x y z - 2^z*x mod y" + }, + "bytecode": { "tlb": "#B7A9C8", "prefix": "B7A9C8", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QLSHIFTMODR_VAR", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "34", + "fift": "QLSHIFTMODR", + "fift_examples": [], + "opcode": "B7A9C9", + "stack": "x y z - 2^z*x mod y" + }, + "bytecode": { "tlb": "#B7A9C9", "prefix": "B7A9C9", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QLSHIFTMODC_VAR", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "34", + "fift": "QLSHIFTMODC", + "fift_examples": [], + "opcode": "B7A9CA", + "stack": "x y z - 2^z*x mod y" + }, + "bytecode": { "tlb": "#B7A9CA", "prefix": "B7A9CA", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QLSHIFTDIVMOD_VAR", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "34", + "fift": "QLSHIFTDIVMOD", + "fift_examples": [], + "opcode": "B7A9CC", + "stack": "x y z - q=floor(2^z*x/y) r=2^z*x-q*y" + }, + "bytecode": { "tlb": "#B7A9CC", "prefix": "B7A9CC", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QLSHIFTDIVMODR_VAR", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "34", + "fift": "QLSHIFTDIVMODR", + "fift_examples": [], + "opcode": "B7A9CD", + "stack": "x y z - q=round(2^z*x/y) r=2^z*x-q*y" + }, + "bytecode": { "tlb": "#B7A9CD", "prefix": "B7A9CD", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QLSHIFTDIVMODC_VAR", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "34", + "fift": "QLSHIFTDIVMODC", + "fift_examples": [], + "opcode": "B7A9CE", + "stack": "x y z - q=ceil(2^z*x/y) r=2^z*x-q*y" + }, + "bytecode": { "tlb": "#B7A9CE", "prefix": "B7A9CE", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QLSHIFTADDDIVMOD", + "since_version": 9999, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "42", + "fift": "[tt+1] QLSHIFT#ADDDIVMOD", + "fift_examples": [], + "opcode": "B7A9D0tt", + "stack": "x w z - q=floor((x*2^(tt+1)+w)/z) r=(x*2^(tt+1)+w)-zq" + }, + "bytecode": { + "tlb": "#B7A9D0 tt:uint8", + "prefix": "B7A9D0", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "w", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QLSHIFTADDDIVMODR", + "since_version": 9999, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "42", + "fift": "[tt+1] QLSHIFT#ADDDIVMODR", + "fift_examples": [], + "opcode": "B7A9D1tt", + "stack": "x w z - q=round((x*2^(tt+1)+w)/z) r=(x*2^(tt+1)+w)-zq" + }, + "bytecode": { + "tlb": "#B7A9D1 tt:uint8", + "prefix": "B7A9D1", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "w", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QLSHIFTADDDIVMODC", + "since_version": 9999, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "42", + "fift": "[tt+1] QLSHIFT#ADDDIVMODC", + "fift_examples": [], + "opcode": "B7A9D2tt", + "stack": "x w z - q=ceil((x*2^(tt+1)+w)/z) r=(x*2^(tt+1)+w)-zq" + }, + "bytecode": { + "tlb": "#B7A9D2 tt:uint8", + "prefix": "B7A9D2", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "w", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QLSHIFTDIV", + "since_version": 9999, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "42", + "fift": "[tt+1] QLSHIFT#DIV", + "fift_examples": [], + "opcode": "B7A9D4tt", + "stack": "x y - floor(2^(tt+1)*x/y)" + }, + "bytecode": { + "tlb": "#B7A9D4 tt:uint8", + "prefix": "B7A9D4", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QLSHIFTDIVR", + "since_version": 9999, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "42", + "fift": "[tt+1] QLSHIFT#DIVR", + "fift_examples": [], + "opcode": "B7A9D5tt", + "stack": "x y - round(2^(tt+1)*x/y)" + }, + "bytecode": { + "tlb": "#B7A9D5 tt:uint8", + "prefix": "B7A9D5", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QLSHIFTDIVC", + "since_version": 9999, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "34", + "fift": "[tt+1] QLSHIFT#DIVC", + "fift_examples": [], + "opcode": "B7A9D6tt", + "stack": "x y - ceil(2^(tt+1)*x/y)" + }, + "bytecode": { + "tlb": "#B7A9D6 tt:uint8", + "prefix": "B7A9D6", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QLSHIFTMOD", + "since_version": 9999, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "42", + "fift": "[tt+1] QLSHIFT#MOD", + "fift_examples": [], + "opcode": "B7A9D8tt", + "stack": "x y - 2^(tt+1)*x mod y" + }, + "bytecode": { + "tlb": "#B7A9D8 tt:uint8", + "prefix": "B7A9D8", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QLSHIFTMODR", + "since_version": 9999, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "42", + "fift": "[tt+1] LSHIFT#MODR", + "fift_examples": [], + "opcode": "B7A9D9tt", + "stack": "x y - 2^(tt+1)*x mod y" + }, + "bytecode": { + "tlb": "#B7A9D9 tt:uint8", + "prefix": "B7A9D9", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QLSHIFTMODC", + "since_version": 9999, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "42", + "fift": "[tt+1] QLSHIFT#MODC", + "fift_examples": [], + "opcode": "B7A9DAtt", + "stack": "x y - 2^(tt+1)*x mod y" + }, + "bytecode": { + "tlb": "#B7A9DA tt:uint8", + "prefix": "B7A9DA", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QLSHIFTDIVMOD", + "since_version": 9999, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "42", + "fift": "[tt+1] QLSHIFT#DIVMOD", + "fift_examples": [], + "opcode": "B7A9DCtt", + "stack": "x y - q=floor(2^(tt+1)*x/y) r=2^(tt+1)*x-q*y" + }, + "bytecode": { + "tlb": "#B7A9DC tt:uint8", + "prefix": "B7A9DC", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QLSHIFTDIVMODR", + "since_version": 9999, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "42", + "fift": "[tt+1] QLSHIFT#DIVMODR", + "fift_examples": [], + "opcode": "B7A9DDtt", + "stack": "x y - q=round(2^(tt+1)*x/y) r=2^(tt+1)*x-q*y" + }, + "bytecode": { + "tlb": "#B7A9DD tt:uint8", + "prefix": "B7A9DD", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QLSHIFTDIVMODC", + "since_version": 9999, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "42", + "fift": "[tt+1] QLSHIFT#DIVMODC", + "fift_examples": [], + "opcode": "B7A9DEtt", + "stack": "x y - q=ceil(2^(tt+1)*x/y) r=2^(tt+1)*x-q*y" + }, + "bytecode": { + "tlb": "#B7A9DE tt:uint8", + "prefix": "B7A9DE", + "operands": [ + { + "name": "t", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QLSHIFT", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "`0 <= cc <= 255`", + "gas": "34", + "fift": "[cc+1] QLSHIFT#", + "fift_examples": [], + "opcode": "B7AAcc", + "stack": "x - x*2^(cc+1)" + }, + "bytecode": { + "tlb": "#B7AA cc:uint8", + "prefix": "B7AA", + "operands": [ + { + "name": "c", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QRSHIFT", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "`0 <= cc <= 255`", + "gas": "26", + "fift": "[cc+1] RSHIFT#", + "fift_examples": [], + "opcode": "B7ABcc", + "stack": "x - floor(x/2^(cc+1))" + }, + "bytecode": { + "tlb": "#B7AB cc:uint8", + "prefix": "B7AB", + "operands": [ + { + "name": "c", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QLSHIFT_VAR", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "26", + "fift": "QLSHIFT", + "fift_examples": [], + "opcode": "B7AC", + "stack": "x y - x*2^y" + }, + "bytecode": { "tlb": "#B7AC", "prefix": "B7AC", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QRSHIFT_VAR", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "26", + "fift": "QRSHIFT", + "fift_examples": [], + "opcode": "B7AD", + "stack": "x y - floor(x/2^y)" + }, + "bytecode": { "tlb": "#B7AD", "prefix": "B7AD", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QPOW2", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "26", + "fift": "QPOW2", + "fift_examples": [], + "opcode": "B7AE", + "stack": "y - 2^y" + }, + "bytecode": { "tlb": "#B7AE", "prefix": "B7AE", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QAND", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "26", + "fift": "QAND", + "fift_examples": [], + "opcode": "B7B0", + "stack": "x y - x&y" + }, + "bytecode": { "tlb": "#B7B0", "prefix": "B7B0", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QOR", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "26", + "fift": "QOR", + "fift_examples": [], + "opcode": "B7B1", + "stack": "x y - x|y" + }, + "bytecode": { "tlb": "#B7B1", "prefix": "B7B1", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QXOR", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "26", + "fift": "QXOR", + "fift_examples": [], + "opcode": "B7B2", + "stack": "x y - x xor y" + }, + "bytecode": { "tlb": "#B7B2", "prefix": "B7B2", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QNOT", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "", + "gas": "26", + "fift": "QNOT", + "fift_examples": [], + "opcode": "B7B3", + "stack": "x - ~x" + }, + "bytecode": { "tlb": "#B7B3", "prefix": "B7B3", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QFITS", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "Replaces `x` with a `NaN` if x is not a `cc+1`-bit signed integer, leaves it intact otherwise.", + "gas": "34", + "fift": "[cc+1] QFITS", + "fift_examples": [], + "opcode": "B7B4cc", + "stack": "x - x" + }, + "bytecode": { + "tlb": "#B7B4 cc:uint8", + "prefix": "B7B4", + "operands": [ + { + "name": "c", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QUFITS", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "Replaces `x` with a `NaN` if x is not a `cc+1`-bit unsigned integer, leaves it intact otherwise.", + "gas": "34", + "fift": "[cc+1] QUFITS", + "fift_examples": [], + "opcode": "B7B5cc", + "stack": "x - x" + }, + "bytecode": { + "tlb": "#B7B5 cc:uint8", + "prefix": "B7B5", + "operands": [ + { + "name": "c", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QFITSX", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "Replaces `x` with a `NaN` if x is not a c-bit signed integer, leaves it intact otherwise.", + "gas": "34", + "fift": "QFITSX", + "fift_examples": [], + "opcode": "B7B600", + "stack": "x c - x" + }, + "bytecode": { "tlb": "#B7B600", "prefix": "B7B600", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "c", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "QUFITSX", + "since_version": 0, + "doc": { + "category": "arithm_quiet", + "description": "Replaces `x` with a `NaN` if x is not a c-bit unsigned integer, leaves it intact otherwise.", + "gas": "34", + "fift": "QUFITSX", + "fift_examples": [], + "opcode": "B7B601", + "stack": "x c - x" + }, + "bytecode": { "tlb": "#B7B601", "prefix": "B7B601", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "c", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SGN", + "since_version": 0, + "doc": { + "category": "compare_int", + "description": "Computes the sign of an integer `x`:\n`-1` if `x<0`, `0` if `x=0`, `1` if `x>0`.", + "gas": "18", + "fift": "SGN", + "fift_examples": [], + "opcode": "B8", + "stack": "x - sgn(x)" + }, + "bytecode": { "tlb": "#B8", "prefix": "B8", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LESS", + "since_version": 0, + "doc": { + "category": "compare_int", + "description": "Returns `-1` if `xy" + }, + "bytecode": { "tlb": "#BC", "prefix": "BC", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "NEQ", + "since_version": 0, + "doc": { + "category": "compare_int", + "description": "Equivalent to `EQUAL` `NOT`.", + "gas": "18", + "fift": "NEQ", + "fift_examples": [], + "opcode": "BD", + "stack": "x y - x!=y" + }, + "bytecode": { "tlb": "#BD", "prefix": "BD", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "GEQ", + "since_version": 0, + "doc": { + "category": "compare_int", + "description": "Equivalent to `LESS` `NOT`.", + "gas": "18", + "fift": "GEQ", + "fift_examples": [], + "opcode": "BE", + "stack": "x y - x>=y" + }, + "bytecode": { "tlb": "#BE", "prefix": "BE", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "CMP", + "since_version": 0, + "doc": { + "category": "compare_int", + "description": "Computes the sign of `x-y`:\n`-1` if `xy`.\nNo integer overflow can occur here unless `x` or `y` is a `NaN`.", + "gas": "18", + "fift": "CMP", + "fift_examples": [], + "opcode": "BF", + "stack": "x y - sgn(x-y)" + }, + "bytecode": { "tlb": "#BF", "prefix": "BF", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "EQINT", + "since_version": 0, + "doc": { + "category": "compare_int", + "description": "Returns `-1` if `x=yy`, `0` otherwise.\n`-2^7 <= yy < 2^7`.", + "gas": "26", + "fift": "[yy] EQINT", + "fift_examples": [], + "opcode": "C0yy", + "stack": "x - x=yy" + }, + "bytecode": { + "tlb": "#C0 yy:int8", + "prefix": "C0", + "operands": [ + { + "name": "y", + "type": "int", + "size": 8, + "min_value": -128, + "max_value": 127, + "display_hints": [] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LESSINT", + "since_version": 0, + "doc": { + "category": "compare_int", + "description": "Returns `-1` if `xyy`, `0` otherwise.\n`-2^7 <= yy < 2^7`.", + "gas": "26", + "fift": "[yy] GTINT\n[yy+1] GEQINT", + "fift_examples": [], + "opcode": "C2yy", + "stack": "x - x>yy" + }, + "bytecode": { + "tlb": "#C2 yy:int8", + "prefix": "C2", + "operands": [ + { + "name": "y", + "type": "int", + "size": 8, + "min_value": -128, + "max_value": 127, + "display_hints": [] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "NEQINT", + "since_version": 0, + "doc": { + "category": "compare_int", + "description": "Returns `-1` if `x!=yy`, `0` otherwise.\n`-2^7 <= yy < 2^7`.", + "gas": "26", + "fift": "[yy] NEQINT", + "fift_examples": [], + "opcode": "C3yy", + "stack": "x - x!=yy" + }, + "bytecode": { + "tlb": "#C3 yy:int8", + "prefix": "C3", + "operands": [ + { + "name": "y", + "type": "int", + "size": 8, + "min_value": -128, + "max_value": 127, + "display_hints": [] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "ISNAN", + "since_version": 0, + "doc": { + "category": "compare_int", + "description": "Checks whether `x` is a `NaN`.", + "gas": "18", + "fift": "ISNAN", + "fift_examples": [], + "opcode": "C4", + "stack": "x - x=NaN" + }, + "bytecode": { "tlb": "#C4", "prefix": "C4", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "CHKNAN", + "since_version": 0, + "doc": { + "category": "compare_int", + "description": "Throws an arithmetic overflow exception if `x` is a `NaN`.", + "gas": "18/68", + "fift": "CHKNAN", + "fift_examples": [], + "opcode": "C5", + "stack": "x - x" + }, + "bytecode": { "tlb": "#C5", "prefix": "C5", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SEMPTY", + "since_version": 0, + "doc": { + "category": "compare_other", + "description": "Checks whether a _Slice_ `s` is empty (i.e., contains no bits of data and no cell references).", + "gas": "26", + "fift": "SEMPTY", + "fift_examples": [], + "opcode": "C700", + "stack": "s - ?" + }, + "bytecode": { "tlb": "#C700", "prefix": "C700", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SDEMPTY", + "since_version": 0, + "doc": { + "category": "compare_other", + "description": "Checks whether _Slice_ `s` has no bits of data.", + "gas": "26", + "fift": "SDEMPTY", + "fift_examples": [], + "opcode": "C701", + "stack": "s - ?" + }, + "bytecode": { "tlb": "#C701", "prefix": "C701", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SREMPTY", + "since_version": 0, + "doc": { + "category": "compare_other", + "description": "Checks whether _Slice_ `s` has no references.", + "gas": "26", + "fift": "SREMPTY", + "fift_examples": [], + "opcode": "C702", + "stack": "s - ?" + }, + "bytecode": { "tlb": "#C702", "prefix": "C702", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SDFIRST", + "since_version": 0, + "doc": { + "category": "compare_other", + "description": "Checks whether the first bit of _Slice_ `s` is a one.", + "gas": "26", + "fift": "SDFIRST", + "fift_examples": [], + "opcode": "C703", + "stack": "s - ?" + }, + "bytecode": { "tlb": "#C703", "prefix": "C703", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SDLEXCMP", + "since_version": 0, + "doc": { + "category": "compare_other", + "description": "Compares the data of `s` lexicographically with the data of `s'`, returning `-1`, 0, or 1 depending on the result.", + "gas": "26", + "fift": "SDLEXCMP", + "fift_examples": [], + "opcode": "C704", + "stack": "s s' - x" + }, + "bytecode": { "tlb": "#C704", "prefix": "C704", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] }, + { "type": "simple", "name": "s2", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SDEQ", + "since_version": 0, + "doc": { + "category": "compare_other", + "description": "Checks whether the data parts of `s` and `s'` coincide, equivalent to `SDLEXCMP` `ISZERO`.", + "gas": "26", + "fift": "SDEQ", + "fift_examples": [], + "opcode": "C705", + "stack": "s s' - ?" + }, + "bytecode": { "tlb": "#C705", "prefix": "C705", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] }, + { "type": "simple", "name": "s2", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SDPFX", + "since_version": 0, + "doc": { + "category": "compare_other", + "description": "Checks whether `s` is a prefix of `s'`.", + "gas": "26", + "fift": "SDPFX", + "fift_examples": [], + "opcode": "C708", + "stack": "s s' - ?" + }, + "bytecode": { "tlb": "#C708", "prefix": "C708", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] }, + { "type": "simple", "name": "s2", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SDPFXREV", + "since_version": 0, + "doc": { + "category": "compare_other", + "description": "Checks whether `s'` is a prefix of `s`, equivalent to `SWAP` `SDPFX`.", + "gas": "26", + "fift": "SDPFXREV", + "fift_examples": [], + "opcode": "C709", + "stack": "s s' - ?" + }, + "bytecode": { "tlb": "#C709", "prefix": "C709", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] }, + { "type": "simple", "name": "s2", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SDPPFX", + "since_version": 0, + "doc": { + "category": "compare_other", + "description": "Checks whether `s` is a proper prefix of `s'` (i.e., a prefix distinct from `s'`).", + "gas": "26", + "fift": "SDPPFX", + "fift_examples": [], + "opcode": "C70A", + "stack": "s s' - ?" + }, + "bytecode": { "tlb": "#C70A", "prefix": "C70A", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] }, + { "type": "simple", "name": "s2", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SDPPFXREV", + "since_version": 0, + "doc": { + "category": "compare_other", + "description": "Checks whether `s'` is a proper prefix of `s`.", + "gas": "26", + "fift": "SDPPFXREV", + "fift_examples": [], + "opcode": "C70B", + "stack": "s s' - ?" + }, + "bytecode": { "tlb": "#C70B", "prefix": "C70B", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] }, + { "type": "simple", "name": "s2", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SDSFX", + "since_version": 0, + "doc": { + "category": "compare_other", + "description": "Checks whether `s` is a suffix of `s'`.", + "gas": "26", + "fift": "SDSFX", + "fift_examples": [], + "opcode": "C70C", + "stack": "s s' - ?" + }, + "bytecode": { "tlb": "#C70C", "prefix": "C70C", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] }, + { "type": "simple", "name": "s2", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SDSFXREV", + "since_version": 0, + "doc": { + "category": "compare_other", + "description": "Checks whether `s'` is a suffix of `s`.", + "gas": "26", + "fift": "SDSFXREV", + "fift_examples": [], + "opcode": "C70D", + "stack": "s s' - ?" + }, + "bytecode": { "tlb": "#C70D", "prefix": "C70D", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] }, + { "type": "simple", "name": "s2", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SDPSFX", + "since_version": 0, + "doc": { + "category": "compare_other", + "description": "Checks whether `s` is a proper suffix of `s'`.", + "gas": "26", + "fift": "SDPSFX", + "fift_examples": [], + "opcode": "C70E", + "stack": "s s' - ?" + }, + "bytecode": { "tlb": "#C70E", "prefix": "C70E", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] }, + { "type": "simple", "name": "s2", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SDPSFXREV", + "since_version": 0, + "doc": { + "category": "compare_other", + "description": "Checks whether `s'` is a proper suffix of `s`.", + "gas": "26", + "fift": "SDPSFXREV", + "fift_examples": [], + "opcode": "C70F", + "stack": "s s' - ?" + }, + "bytecode": { "tlb": "#C70F", "prefix": "C70F", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] }, + { "type": "simple", "name": "s2", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SDCNTLEAD0", + "since_version": 0, + "doc": { + "category": "compare_other", + "description": "Returns the number of leading zeroes in `s`.", + "gas": "26", + "fift": "SDCNTLEAD0", + "fift_examples": [], + "opcode": "C710", + "stack": "s - n" + }, + "bytecode": { "tlb": "#C710", "prefix": "C710", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SDCNTLEAD1", + "since_version": 0, + "doc": { + "category": "compare_other", + "description": "Returns the number of leading ones in `s`.", + "gas": "26", + "fift": "SDCNTLEAD1", + "fift_examples": [], + "opcode": "C711", + "stack": "s - n" + }, + "bytecode": { "tlb": "#C711", "prefix": "C711", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SDCNTTRAIL0", + "since_version": 0, + "doc": { + "category": "compare_other", + "description": "Returns the number of trailing zeroes in `s`.", + "gas": "26", + "fift": "SDCNTTRAIL0", + "fift_examples": [], + "opcode": "C712", + "stack": "s - n" + }, + "bytecode": { "tlb": "#C712", "prefix": "C712", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SDCNTTRAIL1", + "since_version": 0, + "doc": { + "category": "compare_other", + "description": "Returns the number of trailing ones in `s`.", + "gas": "26", + "fift": "SDCNTTRAIL1", + "fift_examples": [], + "opcode": "C713", + "stack": "s - n" + }, + "bytecode": { "tlb": "#C713", "prefix": "C713", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "NEWC", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "Creates a new empty _Builder_.", + "gas": "18", + "fift": "NEWC", + "fift_examples": [], + "opcode": "C8", + "stack": "- b" + }, + "bytecode": { "tlb": "#C8", "prefix": "C8", "operands": [] }, + "value_flow": { + "inputs": { "stack": [], "registers": [] }, + "outputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "ENDC", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "Converts a _Builder_ into an ordinary _Cell_.", + "gas": "518", + "fift": "ENDC", + "fift_examples": [], + "opcode": "C9", + "stack": "b - c" + }, + "bytecode": { "tlb": "#C9", "prefix": "C9", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] } + ], + "registers": [] + }, + "outputs": { + "stack": [{ "type": "simple", "name": "c", "value_types": ["Cell"] }], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "STI", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "Stores a signed `cc+1`-bit integer `x` into _Builder_ `b` for `0 <= cc <= 255`, throws a range check exception if `x` does not fit into `cc+1` bits.", + "gas": "26", + "fift": "[cc+1] STI", + "fift_examples": [], + "opcode": "CAcc", + "stack": "x b - b'" + }, + "bytecode": { + "tlb": "#CA cc:uint8", + "prefix": "CA", + "operands": [ + { + "name": "c", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "b", "value_types": ["Builder"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "b2", "value_types": ["Builder"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "STU", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "Stores an unsigned `cc+1`-bit integer `x` into _Builder_ `b`. In all other respects it is similar to `STI`.", + "gas": "26", + "fift": "[cc+1] STU", + "fift_examples": [], + "opcode": "CBcc", + "stack": "x b - b'" + }, + "bytecode": { + "tlb": "#CB cc:uint8", + "prefix": "CB", + "operands": [ + { + "name": "c", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "b", "value_types": ["Builder"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "b2", "value_types": ["Builder"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "STREF", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "Stores a reference to _Cell_ `c` into _Builder_ `b`.", + "gas": "18", + "fift": "STREF", + "fift_examples": [], + "opcode": "CC", + "stack": "c b - b'" + }, + "bytecode": { "tlb": "#CC", "prefix": "CC", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Cell"] }, + { "type": "simple", "name": "b", "value_types": ["Builder"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "b2", "value_types": ["Builder"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "STBREFR", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "Equivalent to `ENDC` `SWAP` `STREF`.", + "gas": "518", + "fift": "STBREFR\nENDCST", + "fift_examples": [], + "opcode": "CD", + "stack": "b b'' - b" + }, + "bytecode": { "tlb": "#CD", "prefix": "CD", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { "type": "simple", "name": "child", "value_types": ["Builder"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "b2", "value_types": ["Builder"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "STSLICE", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "Stores _Slice_ `s` into _Builder_ `b`.", + "gas": "18", + "fift": "STSLICE", + "fift_examples": [], + "opcode": "CE", + "stack": "s b - b'" + }, + "bytecode": { "tlb": "#CE", "prefix": "CE", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] }, + { "type": "simple", "name": "b", "value_types": ["Builder"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "b2", "value_types": ["Builder"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "STIX", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "Stores a signed `l`-bit integer `x` into `b` for `0 <= l <= 257`.", + "gas": "26", + "fift": "STIX", + "fift_examples": [], + "opcode": "CF00", + "stack": "x b l - b'" + }, + "bytecode": { "tlb": "#CF00", "prefix": "CF00", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { "type": "simple", "name": "l", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "b2", "value_types": ["Builder"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "STUX", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "Stores an unsigned `l`-bit integer `x` into `b` for `0 <= l <= 256`.", + "gas": "26", + "fift": "STUX", + "fift_examples": [], + "opcode": "CF01", + "stack": "x b l - b'" + }, + "bytecode": { "tlb": "#CF01", "prefix": "CF01", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { "type": "simple", "name": "l", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "b2", "value_types": ["Builder"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "STIXR", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "Similar to `STIX`, but with arguments in a different order.", + "gas": "26", + "fift": "STIXR", + "fift_examples": [], + "opcode": "CF02", + "stack": "b x l - b'" + }, + "bytecode": { "tlb": "#CF02", "prefix": "CF02", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "l", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "b2", "value_types": ["Builder"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "STUXR", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "Similar to `STUX`, but with arguments in a different order.", + "gas": "26", + "fift": "STUXR", + "fift_examples": [], + "opcode": "CF03", + "stack": "b x l - b'" + }, + "bytecode": { "tlb": "#CF03", "prefix": "CF03", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "l", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "b2", "value_types": ["Builder"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "STIXQ", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "A quiet version of `STIX`. If there is no space in `b`, sets `b'=b` and `f=-1`.\nIf `x` does not fit into `l` bits, sets `b'=b` and `f=1`.\nIf the operation succeeds, `b'` is the new _Builder_ and `f=0`.\nHowever, `0 <= l <= 257`, with a range check exception if this is not so.", + "gas": "26", + "fift": "STIXQ", + "fift_examples": [], + "opcode": "CF04", + "stack": "x b l - x b f or b' 0" + }, + "bytecode": { "tlb": "#CF04", "prefix": "CF04", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { "type": "simple", "name": "l", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { + "type": "simple", + "name": "b2", + "value_types": ["Builder"] + } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "x", + "value_types": ["Integer"] + }, + { + "type": "simple", + "name": "b", + "value_types": ["Builder"] + } + ] + }, + { + "value": 1, + "stack": [ + { + "type": "simple", + "name": "x", + "value_types": ["Integer"] + }, + { + "type": "simple", + "name": "b", + "value_types": ["Builder"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "STUXQ", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "A quiet version of `STUX`.", + "gas": "26", + "fift": "STUXQ", + "fift_examples": [], + "opcode": "CF05", + "stack": "x b l - x b f or b' 0" + }, + "bytecode": { "tlb": "#CF05", "prefix": "CF05", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { "type": "simple", "name": "l", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { + "type": "simple", + "name": "b2", + "value_types": ["Builder"] + } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "x", + "value_types": ["Integer"] + }, + { + "type": "simple", + "name": "b", + "value_types": ["Builder"] + } + ] + }, + { + "value": 1, + "stack": [ + { + "type": "simple", + "name": "x", + "value_types": ["Integer"] + }, + { + "type": "simple", + "name": "b", + "value_types": ["Builder"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "STIXRQ", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "A quiet version of `STIXR`.", + "gas": "26", + "fift": "STIXRQ", + "fift_examples": [], + "opcode": "CF06", + "stack": "b x l - b x f or b' 0" + }, + "bytecode": { "tlb": "#CF06", "prefix": "CF06", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "l", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { + "type": "simple", + "name": "b2", + "value_types": ["Builder"] + } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "b", + "value_types": ["Builder"] + }, + { + "type": "simple", + "name": "x", + "value_types": ["Integer"] + } + ] + }, + { + "value": 1, + "stack": [ + { + "type": "simple", + "name": "b", + "value_types": ["Builder"] + }, + { + "type": "simple", + "name": "x", + "value_types": ["Integer"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "STUXRQ", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "A quiet version of `STUXR`.", + "gas": "26", + "fift": "STUXRQ", + "fift_examples": [], + "opcode": "CF07", + "stack": "b x l - b x f or b' 0" + }, + "bytecode": { "tlb": "#CF07", "prefix": "CF07", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "l", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { + "type": "simple", + "name": "b2", + "value_types": ["Builder"] + } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "b", + "value_types": ["Builder"] + }, + { + "type": "simple", + "name": "x", + "value_types": ["Integer"] + } + ] + }, + { + "value": 1, + "stack": [ + { + "type": "simple", + "name": "b", + "value_types": ["Builder"] + }, + { + "type": "simple", + "name": "x", + "value_types": ["Integer"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "STI_ALT", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "A longer version of `[cc+1] STI`.", + "gas": "34", + "fift": "[cc+1] STI_l", + "fift_examples": [], + "opcode": "CF08cc", + "stack": "x b - b'" + }, + "bytecode": { + "tlb": "#CF08 cc:uint8", + "prefix": "CF08", + "operands": [ + { + "name": "c", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "b", "value_types": ["Builder"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "b2", "value_types": ["Builder"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "STU_ALT", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "A longer version of `[cc+1] STU`.", + "gas": "34", + "fift": "[cc+1] STU_l", + "fift_examples": [], + "opcode": "CF09cc", + "stack": "x b - b'" + }, + "bytecode": { + "tlb": "#CF09 cc:uint8", + "prefix": "CF09", + "operands": [ + { + "name": "c", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "b", "value_types": ["Builder"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "b2", "value_types": ["Builder"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "STIR", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "Equivalent to `SWAP` `[cc+1] STI`.", + "gas": "34", + "fift": "[cc+1] STIR", + "fift_examples": [], + "opcode": "CF0Acc", + "stack": "b x - b'" + }, + "bytecode": { + "tlb": "#CF0A cc:uint8", + "prefix": "CF0A", + "operands": [ + { + "name": "c", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "b2", "value_types": ["Builder"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "STUR", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "Equivalent to `SWAP` `[cc+1] STU`.", + "gas": "34", + "fift": "[cc+1] STUR", + "fift_examples": [], + "opcode": "CF0Bcc", + "stack": "b x - b'" + }, + "bytecode": { + "tlb": "#CF0B cc:uint8", + "prefix": "CF0B", + "operands": [ + { + "name": "c", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "b2", "value_types": ["Builder"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "STIQ", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "A quiet version of `STI`.", + "gas": "34", + "fift": "[cc+1] STIQ", + "fift_examples": [], + "opcode": "CF0Ccc", + "stack": "x b - x b f or b' 0" + }, + "bytecode": { + "tlb": "#CF0C cc:uint8", + "prefix": "CF0C", + "operands": [ + { + "name": "c", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "b", "value_types": ["Builder"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { + "type": "simple", + "name": "b2", + "value_types": ["Builder"] + } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "x", + "value_types": ["Integer"] + }, + { + "type": "simple", + "name": "b", + "value_types": ["Builder"] + } + ] + }, + { + "value": 1, + "stack": [ + { + "type": "simple", + "name": "x", + "value_types": ["Integer"] + }, + { + "type": "simple", + "name": "b", + "value_types": ["Builder"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "STUQ", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "A quiet version of `STU`.", + "gas": "34", + "fift": "[cc+1] STUQ", + "fift_examples": [], + "opcode": "CF0Dcc", + "stack": "x b - x b f or b' 0" + }, + "bytecode": { + "tlb": "#CF0D cc:uint8", + "prefix": "CF0D", + "operands": [ + { + "name": "c", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "b", "value_types": ["Builder"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { + "type": "simple", + "name": "b2", + "value_types": ["Builder"] + } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "x", + "value_types": ["Integer"] + }, + { + "type": "simple", + "name": "b", + "value_types": ["Builder"] + } + ] + }, + { + "value": 1, + "stack": [ + { + "type": "simple", + "name": "x", + "value_types": ["Integer"] + }, + { + "type": "simple", + "name": "b", + "value_types": ["Builder"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "STIRQ", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "A quiet version of `STIR`.", + "gas": "34", + "fift": "[cc+1] STIRQ", + "fift_examples": [], + "opcode": "CF0Ecc", + "stack": "b x - b x f or b' 0" + }, + "bytecode": { + "tlb": "#CF0E cc:uint8", + "prefix": "CF0E", + "operands": [ + { + "name": "c", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { + "type": "simple", + "name": "b2", + "value_types": ["Builder"] + } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "b", + "value_types": ["Builder"] + }, + { + "type": "simple", + "name": "x", + "value_types": ["Integer"] + } + ] + }, + { + "value": 1, + "stack": [ + { + "type": "simple", + "name": "b", + "value_types": ["Builder"] + }, + { + "type": "simple", + "name": "x", + "value_types": ["Integer"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "STURQ", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "A quiet version of `STUR`.", + "gas": "34", + "fift": "[cc+1] STURQ", + "fift_examples": [], + "opcode": "CF0Fcc", + "stack": "b x - b x f or b' 0" + }, + "bytecode": { + "tlb": "#CF0F cc:uint8", + "prefix": "CF0F", + "operands": [ + { + "name": "c", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { + "type": "simple", + "name": "b2", + "value_types": ["Builder"] + } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "b", + "value_types": ["Builder"] + }, + { + "type": "simple", + "name": "x", + "value_types": ["Integer"] + } + ] + }, + { + "value": 1, + "stack": [ + { + "type": "simple", + "name": "b", + "value_types": ["Builder"] + }, + { + "type": "simple", + "name": "x", + "value_types": ["Integer"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "STREF_ALT", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "A longer version of `STREF`.", + "gas": "26", + "fift": "STREF_l", + "fift_examples": [], + "opcode": "CF10", + "stack": "c b - b'" + }, + "bytecode": { "tlb": "#CF10", "prefix": "CF10", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Cell"] }, + { "type": "simple", "name": "b", "value_types": ["Builder"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "b2", "value_types": ["Builder"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "STBREF", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "Equivalent to `SWAP` `STBREFR`.", + "gas": "526", + "fift": "STBREF", + "fift_examples": [], + "opcode": "CF11", + "stack": "b' b - b''" + }, + "bytecode": { "tlb": "#CF11", "prefix": "CF11", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "child", "value_types": ["Builder"] }, + { "type": "simple", "name": "b", "value_types": ["Builder"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "b2", "value_types": ["Builder"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "STSLICE_ALT", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "A longer version of `STSLICE`.", + "gas": "26", + "fift": "STSLICE_l", + "fift_examples": [], + "opcode": "CF12", + "stack": "s b - b'" + }, + "bytecode": { "tlb": "#CF12", "prefix": "CF12", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] }, + { "type": "simple", "name": "b", "value_types": ["Builder"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "b2", "value_types": ["Builder"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "STB", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "Appends all data from _Builder_ `b'` to _Builder_ `b`.", + "gas": "26", + "fift": "STB", + "fift_examples": [], + "opcode": "CF13", + "stack": "b' b - b''" + }, + "bytecode": { "tlb": "#CF13", "prefix": "CF13", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b2", "value_types": ["Builder"] }, + { "type": "simple", "name": "b", "value_types": ["Builder"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "b3", "value_types": ["Builder"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "STREFR", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "Equivalent to `SWAP` `STREF`.", + "gas": "26", + "fift": "STREFR", + "fift_examples": [], + "opcode": "CF14", + "stack": "b c - b'" + }, + "bytecode": { "tlb": "#CF14", "prefix": "CF14", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { "type": "simple", "name": "c", "value_types": ["Cell"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "b2", "value_types": ["Builder"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "STBREFR_ALT", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "A longer encoding of `STBREFR`.", + "gas": "526", + "fift": "STBREFR_l", + "fift_examples": [], + "opcode": "CF15", + "stack": "b b' - b''" + }, + "bytecode": { "tlb": "#CF15", "prefix": "CF15", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { "type": "simple", "name": "b2", "value_types": ["Builder"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "b3", "value_types": ["Builder"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "STSLICER", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "Equivalent to `SWAP` `STSLICE`.", + "gas": "26", + "fift": "STSLICER", + "fift_examples": [], + "opcode": "CF16", + "stack": "b s - b'" + }, + "bytecode": { "tlb": "#CF16", "prefix": "CF16", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "b2", "value_types": ["Builder"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "STBR", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "Concatenates two builders.\nEquivalent to `SWAP` `STB`.", + "gas": "26", + "fift": "STBR\nBCONCAT", + "fift_examples": [], + "opcode": "CF17", + "stack": "b b' - b''" + }, + "bytecode": { "tlb": "#CF17", "prefix": "CF17", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { "type": "simple", "name": "b2", "value_types": ["Builder"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "b3", "value_types": ["Builder"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "STREFQ", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "Quiet version of `STREF`.", + "gas": "26", + "fift": "STREFQ", + "fift_examples": [], + "opcode": "CF18", + "stack": "c b - c b -1 or b' 0" + }, + "bytecode": { "tlb": "#CF18", "prefix": "CF18", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Cell"] }, + { "type": "simple", "name": "b", "value_types": ["Builder"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { + "type": "simple", + "name": "b2", + "value_types": ["Builder"] + } + ] + }, + { + "value": -1, + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Cell"] }, + { + "type": "simple", + "name": "b", + "value_types": ["Builder"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "STBREFQ", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "Quiet version of `STBREF`.", + "gas": "526", + "fift": "STBREFQ", + "fift_examples": [], + "opcode": "CF19", + "stack": "b' b - b' b -1 or b'' 0" + }, + "bytecode": { "tlb": "#CF19", "prefix": "CF19", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b2", "value_types": ["Builder"] }, + { "type": "simple", "name": "b", "value_types": ["Builder"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { + "type": "simple", + "name": "b3", + "value_types": ["Builder"] + } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "b2", + "value_types": ["Builder"] + }, + { + "type": "simple", + "name": "b", + "value_types": ["Builder"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "STSLICEQ", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "Quiet version of `STSLICE`.", + "gas": "26", + "fift": "STSLICEQ", + "fift_examples": [], + "opcode": "CF1A", + "stack": "s b - s b -1 or b' 0" + }, + "bytecode": { "tlb": "#CF1A", "prefix": "CF1A", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] }, + { "type": "simple", "name": "b", "value_types": ["Builder"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { + "type": "simple", + "name": "b2", + "value_types": ["Builder"] + } + ] + }, + { + "value": -1, + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] }, + { + "type": "simple", + "name": "b", + "value_types": ["Builder"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "STBQ", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "Quiet version of `STB`.", + "gas": "26", + "fift": "STBQ", + "fift_examples": [], + "opcode": "CF1B", + "stack": "b' b - b' b -1 or b'' 0" + }, + "bytecode": { "tlb": "#CF1B", "prefix": "CF1B", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b2", "value_types": ["Builder"] }, + { "type": "simple", "name": "b", "value_types": ["Builder"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { + "type": "simple", + "name": "b3", + "value_types": ["Builder"] + } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "b2", + "value_types": ["Builder"] + }, + { + "type": "simple", + "name": "b", + "value_types": ["Builder"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "STREFRQ", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "Quiet version of `STREFR`.", + "gas": "26", + "fift": "STREFRQ", + "fift_examples": [], + "opcode": "CF1C", + "stack": "b c - b c -1 or b' 0" + }, + "bytecode": { "tlb": "#CF1C", "prefix": "CF1C", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { "type": "simple", "name": "c", "value_types": ["Cell"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { + "type": "simple", + "name": "b2", + "value_types": ["Builder"] + } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "b", + "value_types": ["Builder"] + }, + { "type": "simple", "name": "c", "value_types": ["Cell"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "STBREFRQ", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "Quiet version of `STBREFR`.", + "gas": "526", + "fift": "STBREFRQ", + "fift_examples": [], + "opcode": "CF1D", + "stack": "b b' - b b' -1 or b'' 0" + }, + "bytecode": { "tlb": "#CF1D", "prefix": "CF1D", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b2", "value_types": ["Builder"] }, + { "type": "simple", "name": "b", "value_types": ["Builder"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { + "type": "simple", + "name": "b3", + "value_types": ["Builder"] + } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "b2", + "value_types": ["Builder"] + }, + { + "type": "simple", + "name": "b", + "value_types": ["Builder"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "STSLICERQ", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "Quiet version of `STSLICER`.", + "gas": "26", + "fift": "STSLICERQ", + "fift_examples": [], + "opcode": "CF1E", + "stack": "b s - b s -1 or b'' 0" + }, + "bytecode": { "tlb": "#CF1E", "prefix": "CF1E", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { + "type": "simple", + "name": "b3", + "value_types": ["Builder"] + } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "b", + "value_types": ["Builder"] + }, + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "STBRQ", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "Quiet version of `STBR`.", + "gas": "26", + "fift": "STBRQ\nBCONCATQ", + "fift_examples": [], + "opcode": "CF1F", + "stack": "b b' - b b' -1 or b'' 0" + }, + "bytecode": { "tlb": "#CF1F", "prefix": "CF1F", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { "type": "simple", "name": "b2", "value_types": ["Builder"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { + "type": "simple", + "name": "b3", + "value_types": ["Builder"] + } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "b", + "value_types": ["Builder"] + }, + { + "type": "simple", + "name": "b2", + "value_types": ["Builder"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "STREFCONST", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "Equivalent to `PUSHREF` `STREFR`.", + "gas": "26", + "fift": "[ref] STREFCONST", + "fift_examples": [], + "opcode": "CF20", + "stack": "b - b'" + }, + "bytecode": { + "tlb": "#CF20 c:^Cell", + "prefix": "CF20", + "operands": [{ "name": "c", "type": "ref", "display_hints": [] }] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "b2", "value_types": ["Builder"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "STREF2CONST", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "Equivalent to `STREFCONST` `STREFCONST`.", + "gas": "26", + "fift": "[ref] [ref] STREF2CONST", + "fift_examples": [], + "opcode": "CF21", + "stack": "b - b'" + }, + "bytecode": { + "tlb": "#CF21 c1:^Cell c2:^Cell", + "prefix": "CF21", + "operands": [ + { "name": "c1", "type": "ref", "display_hints": [] }, + { "name": "c2", "type": "ref", "display_hints": [] } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "b2", "value_types": ["Builder"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "ENDXC", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "If `x!=0`, creates a _special_ or _exotic_ cell from _Builder_ `b`.\nThe type of the exotic cell must be stored in the first 8 bits of `b`.\nIf `x=0`, it is equivalent to `ENDC`. Otherwise some validity checks on the data and references of `b` are performed before creating the exotic cell.", + "gas": "526", + "fift": "", + "fift_examples": [], + "opcode": "CF23", + "stack": "b x - c" + }, + "bytecode": { "tlb": "#CF23", "prefix": "CF23", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [{ "type": "simple", "name": "c", "value_types": ["Cell"] }], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "STILE4", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "Stores a little-endian signed 32-bit integer.", + "gas": "26", + "fift": "STILE4", + "fift_examples": [], + "opcode": "CF28", + "stack": "x b - b'" + }, + "bytecode": { "tlb": "#CF28", "prefix": "CF28", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "b", "value_types": ["Builder"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "b2", "value_types": ["Builder"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "STULE4", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "Stores a little-endian unsigned 32-bit integer.", + "gas": "26", + "fift": "STULE4", + "fift_examples": [], + "opcode": "CF29", + "stack": "x b - b'" + }, + "bytecode": { "tlb": "#CF29", "prefix": "CF29", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "b", "value_types": ["Builder"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "b2", "value_types": ["Builder"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "STILE8", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "Stores a little-endian signed 64-bit integer.", + "gas": "26", + "fift": "STILE8", + "fift_examples": [], + "opcode": "CF2A", + "stack": "x b - b'" + }, + "bytecode": { "tlb": "#CF2A", "prefix": "CF2A", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "b", "value_types": ["Builder"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "b2", "value_types": ["Builder"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "STULE8", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "Stores a little-endian unsigned 64-bit integer.", + "gas": "26", + "fift": "STULE8", + "fift_examples": [], + "opcode": "CF2B", + "stack": "x b - b'" + }, + "bytecode": { "tlb": "#CF2B", "prefix": "CF2B", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "b", "value_types": ["Builder"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "b2", "value_types": ["Builder"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "BDEPTH", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "Returns the depth of _Builder_ `b`. If no cell references are stored in `b`, then `x=0`; otherwise `x` is one plus the maximum of depths of cells referred to from `b`.", + "gas": "26", + "fift": "BDEPTH", + "fift_examples": [], + "opcode": "CF30", + "stack": "b - x" + }, + "bytecode": { "tlb": "#CF30", "prefix": "CF30", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "BBITS", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "Returns the number of data bits already stored in _Builder_ `b`.", + "gas": "26", + "fift": "BBITS", + "fift_examples": [], + "opcode": "CF31", + "stack": "b - x" + }, + "bytecode": { "tlb": "#CF31", "prefix": "CF31", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "BREFS", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "Returns the number of cell references already stored in `b`.", + "gas": "26", + "fift": "BREFS", + "fift_examples": [], + "opcode": "CF32", + "stack": "b - y" + }, + "bytecode": { "tlb": "#CF32", "prefix": "CF32", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "BBITREFS", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "Returns the numbers of both data bits and cell references in `b`.", + "gas": "26", + "fift": "BBITREFS", + "fift_examples": [], + "opcode": "CF33", + "stack": "b - x y" + }, + "bytecode": { "tlb": "#CF33", "prefix": "CF33", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "BREMBITS", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "Returns the number of data bits that can still be stored in `b`.", + "gas": "26", + "fift": "BREMBITS", + "fift_examples": [], + "opcode": "CF35", + "stack": "b - x'" + }, + "bytecode": { "tlb": "#CF35", "prefix": "CF35", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "x2", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "BREMREFS", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "Returns the number of references that can still be stored in `b`.", + "gas": "26", + "fift": "BREMREFS", + "fift_examples": [], + "opcode": "CF36", + "stack": "b - y'" + }, + "bytecode": { "tlb": "#CF36", "prefix": "CF36", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "y2", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "BREMBITREFS", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "Returns the numbers of both data bits and references that can still be stored in `b`.", + "gas": "26", + "fift": "BREMBITREFS", + "fift_examples": [], + "opcode": "CF37", + "stack": "b - x' y'" + }, + "bytecode": { "tlb": "#CF37", "prefix": "CF37", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "x2", "value_types": ["Integer"] }, + { "type": "simple", "name": "y2", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "BCHKBITS", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "Checks whether `cc+1` bits can be stored into `b`, where `0 <= cc <= 255`.", + "gas": "34/84", + "fift": "[cc+1] BCHKBITS#", + "fift_examples": [], + "opcode": "CF38cc", + "stack": "b -" + }, + "bytecode": { + "tlb": "#CF38 cc:uint8", + "prefix": "CF38", + "operands": [ + { + "name": "c", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "BCHKBITS_VAR", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "Checks whether `x` bits can be stored into `b`, `0 <= x <= 1023`. If there is no space for `x` more bits in `b`, or if `x` is not within the range `0...1023`, throws an exception.", + "gas": "26/76", + "fift": "BCHKBITS", + "fift_examples": [], + "opcode": "CF39", + "stack": "b x - " + }, + "bytecode": { "tlb": "#CF39", "prefix": "CF39", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "BCHKREFS", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "Checks whether `y` references can be stored into `b`, `0 <= y <= 7`.", + "gas": "26/76", + "fift": "BCHKREFS", + "fift_examples": [], + "opcode": "CF3A", + "stack": "b y - " + }, + "bytecode": { "tlb": "#CF3A", "prefix": "CF3A", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "BCHKBITREFS", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "Checks whether `x` bits and `y` references can be stored into `b`, `0 <= x <= 1023`, `0 <= y <= 7`.", + "gas": "26/76", + "fift": "BCHKBITREFS", + "fift_examples": [], + "opcode": "CF3B", + "stack": "b x y - " + }, + "bytecode": { "tlb": "#CF3B", "prefix": "CF3B", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "BCHKBITSQ", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "Checks whether `cc+1` bits can be stored into `b`, where `0 <= cc <= 255`.", + "gas": "34", + "fift": "[cc+1] BCHKBITSQ#", + "fift_examples": [], + "opcode": "CF3Ccc", + "stack": "b - ?" + }, + "bytecode": { + "tlb": "#CF3C cc:uint8", + "prefix": "CF3C", + "operands": [ + { + "name": "c", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "BCHKBITSQ_VAR", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "Checks whether `x` bits can be stored into `b`, `0 <= x <= 1023`.", + "gas": "26", + "fift": "BCHKBITSQ", + "fift_examples": [], + "opcode": "CF3D", + "stack": "b x - ?" + }, + "bytecode": { "tlb": "#CF3D", "prefix": "CF3D", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "BCHKREFSQ", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "Checks whether `y` references can be stored into `b`, `0 <= y <= 7`.", + "gas": "26", + "fift": "BCHKREFSQ", + "fift_examples": [], + "opcode": "CF3E", + "stack": "b y - ?" + }, + "bytecode": { "tlb": "#CF3E", "prefix": "CF3E", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "BCHKBITREFSQ", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "Checks whether `x` bits and `y` references can be stored into `b`, `0 <= x <= 1023`, `0 <= y <= 7`.", + "gas": "26", + "fift": "BCHKBITREFSQ", + "fift_examples": [], + "opcode": "CF3F", + "stack": "b x y - ?" + }, + "bytecode": { "tlb": "#CF3F", "prefix": "CF3F", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "STZEROES", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "Stores `n` binary zeroes into _Builder_ `b`.", + "gas": "26", + "fift": "STZEROES", + "fift_examples": [], + "opcode": "CF40", + "stack": "b n - b'" + }, + "bytecode": { "tlb": "#CF40", "prefix": "CF40", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "b2", "value_types": ["Builder"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "STONES", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "Stores `n` binary ones into _Builder_ `b`.", + "gas": "26", + "fift": "STONES", + "fift_examples": [], + "opcode": "CF41", + "stack": "b n - b'" + }, + "bytecode": { "tlb": "#CF41", "prefix": "CF41", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "b2", "value_types": ["Builder"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "STSAME", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "Stores `n` binary `x`es (`0 <= x <= 1`) into _Builder_ `b`.", + "gas": "26", + "fift": "STSAME", + "fift_examples": [], + "opcode": "CF42", + "stack": "b n x - b'" + }, + "bytecode": { "tlb": "#CF42", "prefix": "CF42", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] }, + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "b2", "value_types": ["Builder"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "STSLICECONST", + "since_version": 0, + "doc": { + "category": "cell_build", + "description": "Stores a constant subslice `sss`.\n_Details:_ `sss` consists of `0 <= x <= 3` references and up to `8y+2` data bits, with `0 <= y <= 7`. Completion bit is assumed.\nNote that the assembler can replace `STSLICECONST` with `PUSHSLICE` `STSLICER` if the slice is too big.", + "gas": "24", + "fift": "[slice] STSLICECONST", + "fift_examples": [], + "opcode": "CFC0_xysss", + "stack": "b - b'" + }, + "bytecode": { + "tlb": "#CFC0_ x:(## 2) y:(## 3) c:(x * ^Cell) sss:((8 * y + 2) * Bit)", + "prefix": "CFC0_", + "operands": [ + { + "name": "s", + "type": "subslice", + "bits_length_var_size": 3, + "refs_length_var_size": 2, + "bits_padding": 2, + "refs_add": 0, + "completion_tag": true, + "max_bits": 57, + "min_bits": 0, + "max_refs": 3, + "min_refs": 0, + "display_hints": [] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "b2", "value_types": ["Builder"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "CTOS", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Converts a _Cell_ into a _Slice_. Notice that `c` must be either an ordinary cell, or an exotic cell which is automatically _loaded_ to yield an ordinary cell `c'`, converted into a _Slice_ afterwards.", + "gas": "118/43", + "fift": "CTOS", + "fift_examples": [], + "opcode": "D0", + "stack": "c - s" + }, + "bytecode": { "tlb": "#D0", "prefix": "D0", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [{ "type": "simple", "name": "c", "value_types": ["Cell"] }], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "ENDS", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Removes a _Slice_ `s` from the stack, and throws an exception if it is not empty.", + "gas": "18/68", + "fift": "ENDS", + "fift_examples": [], + "opcode": "D1", + "stack": "s - " + }, + "bytecode": { "tlb": "#D1", "prefix": "D1", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LDI", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Loads (i.e., parses) a signed `cc+1`-bit integer `x` from _Slice_ `s`, and returns the remainder of `s` as `s'`.", + "gas": "26", + "fift": "[cc+1] LDI", + "fift_examples": [], + "opcode": "D2cc", + "stack": "s - x s'" + }, + "bytecode": { + "tlb": "#D2 cc:uint8", + "prefix": "D2", + "operands": [ + { + "name": "c", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "s2", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LDU", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Loads an unsigned `cc+1`-bit integer `x` from _Slice_ `s`.", + "gas": "26", + "fift": "[cc+1] LDU", + "fift_examples": [], + "opcode": "D3cc", + "stack": "s - x s'" + }, + "bytecode": { + "tlb": "#D3 cc:uint8", + "prefix": "D3", + "operands": [ + { + "name": "c", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "s2", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LDREF", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Loads a cell reference `c` from `s`.", + "gas": "18", + "fift": "LDREF", + "fift_examples": [], + "opcode": "D4", + "stack": "s - c s'" + }, + "bytecode": { "tlb": "#D4", "prefix": "D4", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Cell"] }, + { "type": "simple", "name": "s2", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LDREFRTOS", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Equivalent to `LDREF` `SWAP` `CTOS`.", + "gas": "118/43", + "fift": "LDREFRTOS", + "fift_examples": [], + "opcode": "D5", + "stack": "s - s' s''" + }, + "bytecode": { "tlb": "#D5", "prefix": "D5", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "s2", "value_types": ["Slice"] }, + { "type": "simple", "name": "s3", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LDSLICE", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Cuts the next `cc+1` bits of `s` into a separate _Slice_ `s''`.", + "gas": "26", + "fift": "[cc+1] LDSLICE", + "fift_examples": [], + "opcode": "D6cc", + "stack": "s - s'' s'" + }, + "bytecode": { + "tlb": "#D6 cc:uint8", + "prefix": "D6", + "operands": [ + { + "name": "c", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "s3", "value_types": ["Slice"] }, + { "type": "simple", "name": "s2", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LDIX", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Loads a signed `l`-bit (`0 <= l <= 257`) integer `x` from _Slice_ `s`, and returns the remainder of `s` as `s'`.", + "gas": "26", + "fift": "LDIX", + "fift_examples": [], + "opcode": "D700", + "stack": "s l - x s'" + }, + "bytecode": { "tlb": "#D700", "prefix": "D700", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] }, + { "type": "simple", "name": "l", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "s2", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LDUX", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Loads an unsigned `l`-bit integer `x` from (the first `l` bits of) `s`, with `0 <= l <= 256`.", + "gas": "26", + "fift": "LDUX", + "fift_examples": [], + "opcode": "D701", + "stack": "s l - x s'" + }, + "bytecode": { "tlb": "#D701", "prefix": "D701", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] }, + { "type": "simple", "name": "l", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "s2", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PLDIX", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Preloads a signed `l`-bit integer from _Slice_ `s`, for `0 <= l <= 257`.", + "gas": "26", + "fift": "PLDIX", + "fift_examples": [], + "opcode": "D702", + "stack": "s l - x" + }, + "bytecode": { "tlb": "#D702", "prefix": "D702", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] }, + { "type": "simple", "name": "l", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PLDUX", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Preloads an unsigned `l`-bit integer from `s`, for `0 <= l <= 256`.", + "gas": "26", + "fift": "PLDUX", + "fift_examples": [], + "opcode": "D703", + "stack": "s l - x" + }, + "bytecode": { "tlb": "#D703", "prefix": "D703", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] }, + { "type": "simple", "name": "l", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LDIXQ", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Quiet version of `LDIX`: loads a signed `l`-bit integer from `s` similarly to `LDIX`, but returns a success flag, equal to `-1` on success or to `0` on failure (if `s` does not have `l` bits), instead of throwing a cell underflow exception.", + "gas": "26", + "fift": "LDIXQ", + "fift_examples": [], + "opcode": "D704", + "stack": "s l - x s' -1 or s 0" + }, + "bytecode": { "tlb": "#D704", "prefix": "D704", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] }, + { "type": "simple", "name": "l", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "x", + "value_types": ["Integer"] + }, + { "type": "simple", "name": "s2", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LDUXQ", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Quiet version of `LDUX`.", + "gas": "26", + "fift": "LDUXQ", + "fift_examples": [], + "opcode": "D705", + "stack": "s l - x s' -1 or s 0" + }, + "bytecode": { "tlb": "#D705", "prefix": "D705", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] }, + { "type": "simple", "name": "l", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "x", + "value_types": ["Integer"] + }, + { "type": "simple", "name": "s2", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PLDIXQ", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Quiet version of `PLDIX`.", + "gas": "26", + "fift": "PLDIXQ", + "fift_examples": [], + "opcode": "D706", + "stack": "s l - x -1 or 0" + }, + "bytecode": { "tlb": "#D706", "prefix": "D706", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] }, + { "type": "simple", "name": "l", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { "value": 0, "stack": [] }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "x", + "value_types": ["Integer"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PLDUXQ", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Quiet version of `PLDUX`.", + "gas": "26", + "fift": "PLDUXQ", + "fift_examples": [], + "opcode": "D707", + "stack": "s l - x -1 or 0" + }, + "bytecode": { "tlb": "#D707", "prefix": "D707", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] }, + { "type": "simple", "name": "l", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { "value": 0, "stack": [] }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "x", + "value_types": ["Integer"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LDI_ALT", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "A longer encoding for `LDI`.", + "gas": "34", + "fift": "[cc+1] LDI_l", + "fift_examples": [], + "opcode": "D708cc", + "stack": "s - x s'" + }, + "bytecode": { + "tlb": "#D708 cc:uint8", + "prefix": "D708", + "operands": [ + { + "name": "c", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "s2", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LDU_ALT", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "A longer encoding for `LDU`.", + "gas": "34", + "fift": "[cc+1] LDU_l", + "fift_examples": [], + "opcode": "D709cc", + "stack": "s - x s'" + }, + "bytecode": { + "tlb": "#D709 cc:uint8", + "prefix": "D709", + "operands": [ + { + "name": "c", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "s2", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PLDI", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Preloads a signed `cc+1`-bit integer from _Slice_ `s`.", + "gas": "34", + "fift": "[cc+1] PLDI", + "fift_examples": [], + "opcode": "D70Acc", + "stack": "s - x" + }, + "bytecode": { + "tlb": "#D70A cc:uint8", + "prefix": "D70A", + "operands": [ + { + "name": "c", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PLDU", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Preloads an unsigned `cc+1`-bit integer from `s`.", + "gas": "34", + "fift": "[cc+1] PLDU", + "fift_examples": [], + "opcode": "D70Bcc", + "stack": "s - x" + }, + "bytecode": { + "tlb": "#D70B cc:uint8", + "prefix": "D70B", + "operands": [ + { + "name": "c", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LDIQ", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "A quiet version of `LDI`.", + "gas": "34", + "fift": "[cc+1] LDIQ", + "fift_examples": [], + "opcode": "D70Ccc", + "stack": "s - x s' -1 or s 0" + }, + "bytecode": { + "tlb": "#D70C cc:uint8", + "prefix": "D70C", + "operands": [ + { + "name": "c", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "x", + "value_types": ["Integer"] + }, + { "type": "simple", "name": "s2", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LDUQ", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "A quiet version of `LDU`.", + "gas": "34", + "fift": "[cc+1] LDUQ", + "fift_examples": [], + "opcode": "D70Dcc", + "stack": "s - x s' -1 or s 0" + }, + "bytecode": { + "tlb": "#D70D cc:uint8", + "prefix": "D70D", + "operands": [ + { + "name": "c", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "x", + "value_types": ["Integer"] + }, + { "type": "simple", "name": "s2", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PLDIQ", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "A quiet version of `PLDI`.", + "gas": "34", + "fift": "[cc+1] PLDIQ", + "fift_examples": [], + "opcode": "D70Ecc", + "stack": "s - x -1 or 0" + }, + "bytecode": { + "tlb": "#D70E cc:uint8", + "prefix": "D70E", + "operands": [ + { + "name": "c", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { "value": 0, "stack": [] }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "x", + "value_types": ["Integer"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PLDUQ", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "A quiet version of `PLDU`.", + "gas": "34", + "fift": "[cc+1] PLDUQ", + "fift_examples": [], + "opcode": "D70Fcc", + "stack": "s - x -1 or 0" + }, + "bytecode": { + "tlb": "#D70F cc:uint8", + "prefix": "D70F", + "operands": [ + { + "name": "c", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { "value": 0, "stack": [] }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "x", + "value_types": ["Integer"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PLDUZ", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Preloads the first `32(c+1)` bits of _Slice_ `s` into an unsigned integer `x`, for `0 <= c <= 7`. If `s` is shorter than necessary, missing bits are assumed to be zero. This operation is intended to be used along with `IFBITJMP` and similar instructions.", + "gas": "26", + "fift": "[32(c+1)] PLDUZ", + "fift_examples": [], + "opcode": "D714_c", + "stack": "s - s x" + }, + "bytecode": { + "tlb": "#D714_ c:uint3", + "prefix": "D714_", + "operands": [ + { + "name": "c", + "type": "uint", + "size": 3, + "min_value": 0, + "max_value": 7, + "display_hints": [{ "type": "plduz" }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] }, + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LDSLICEX", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Loads the first `0 <= l <= 1023` bits from _Slice_ `s` into a separate _Slice_ `s''`, returning the remainder of `s` as `s'`.", + "gas": "26", + "fift": "LDSLICEX", + "fift_examples": [], + "opcode": "D718", + "stack": "s l - s'' s'" + }, + "bytecode": { "tlb": "#D718", "prefix": "D718", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] }, + { "type": "simple", "name": "l", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "s3", "value_types": ["Slice"] }, + { "type": "simple", "name": "s2", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PLDSLICEX", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Returns the first `0 <= l <= 1023` bits of `s` as `s''`.", + "gas": "26", + "fift": "PLDSLICEX", + "fift_examples": [], + "opcode": "D719", + "stack": "s l - s''" + }, + "bytecode": { "tlb": "#D719", "prefix": "D719", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] }, + { "type": "simple", "name": "l", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "s3", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LDSLICEXQ", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "A quiet version of `LDSLICEX`.", + "gas": "26", + "fift": "LDSLICEXQ", + "fift_examples": [], + "opcode": "D71A", + "stack": "s l - s'' s' -1 or s 0" + }, + "bytecode": { "tlb": "#D71A", "prefix": "D71A", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] }, + { "type": "simple", "name": "l", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "s3", + "value_types": ["Slice"] + }, + { "type": "simple", "name": "s2", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PLDSLICEXQ", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "A quiet version of `LDSLICEXQ`.", + "gas": "26", + "fift": "PLDSLICEXQ", + "fift_examples": [], + "opcode": "D71B", + "stack": "s l - s' -1 or 0" + }, + "bytecode": { "tlb": "#D71B", "prefix": "D71B", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] }, + { "type": "simple", "name": "l", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { "value": 0, "stack": [] }, + { + "value": -1, + "stack": [ + { "type": "simple", "name": "s2", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LDSLICE_ALT", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "A longer encoding for `LDSLICE`.", + "gas": "34", + "fift": "[cc+1] LDSLICE_l", + "fift_examples": [], + "opcode": "D71Ccc", + "stack": "s - s'' s'" + }, + "bytecode": { + "tlb": "#D71C cc:uint8", + "prefix": "D71C", + "operands": [ + { + "name": "c", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "s3", "value_types": ["Slice"] }, + { "type": "simple", "name": "s2", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PLDSLICE", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Returns the first `0 < cc+1 <= 256` bits of `s` as `s''`.", + "gas": "34", + "fift": "[cc+1] PLDSLICE", + "fift_examples": [], + "opcode": "D71Dcc", + "stack": "s - s''" + }, + "bytecode": { + "tlb": "#D71D cc:uint8", + "prefix": "D71D", + "operands": [ + { + "name": "c", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "s3", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LDSLICEQ", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "A quiet version of `LDSLICE`.", + "gas": "34", + "fift": "[cc+1] LDSLICEQ", + "fift_examples": [], + "opcode": "D71Ecc", + "stack": "s - s'' s' -1 or s 0" + }, + "bytecode": { + "tlb": "#D71E cc:uint8", + "prefix": "D71E", + "operands": [ + { + "name": "c", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "s3", + "value_types": ["Slice"] + }, + { "type": "simple", "name": "s2", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PLDSLICEQ", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "A quiet version of `PLDSLICE`.", + "gas": "34", + "fift": "[cc+1] PLDSLICEQ", + "fift_examples": [], + "opcode": "D71Fcc", + "stack": "s - s'' -1 or 0" + }, + "bytecode": { + "tlb": "#D71F cc:uint8", + "prefix": "D71F", + "operands": [ + { + "name": "c", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [{ "type": "add", "value": 1 }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { "value": 0, "stack": [] }, + { + "value": -1, + "stack": [ + { "type": "simple", "name": "s3", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SDCUTFIRST", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Returns the first `0 <= l <= 1023` bits of `s`. It is equivalent to `PLDSLICEX`.", + "gas": "26", + "fift": "SDCUTFIRST", + "fift_examples": [], + "opcode": "D720", + "stack": "s l - s'" + }, + "bytecode": { "tlb": "#D720", "prefix": "D720", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] }, + { "type": "simple", "name": "l", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "s2", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SDSKIPFIRST", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Returns all but the first `0 <= l <= 1023` bits of `s`. It is equivalent to `LDSLICEX` `NIP`.", + "gas": "26", + "fift": "SDSKIPFIRST", + "fift_examples": [], + "opcode": "D721", + "stack": "s l - s'" + }, + "bytecode": { "tlb": "#D721", "prefix": "D721", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] }, + { "type": "simple", "name": "l", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "s2", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SDCUTLAST", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Returns the last `0 <= l <= 1023` bits of `s`.", + "gas": "26", + "fift": "SDCUTLAST", + "fift_examples": [], + "opcode": "D722", + "stack": "s l - s'" + }, + "bytecode": { "tlb": "#D722", "prefix": "D722", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] }, + { "type": "simple", "name": "l", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "s2", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SDSKIPLAST", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Returns all but the last `0 <= l <= 1023` bits of `s`.", + "gas": "26", + "fift": "SDSKIPLAST", + "fift_examples": [], + "opcode": "D723", + "stack": "s l - s'" + }, + "bytecode": { "tlb": "#D723", "prefix": "D723", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] }, + { "type": "simple", "name": "l", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "s2", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SDSUBSTR", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Returns `0 <= l' <= 1023` bits of `s` starting from offset `0 <= l <= 1023`, thus extracting a bit substring out of the data of `s`.", + "gas": "26", + "fift": "SDSUBSTR", + "fift_examples": [], + "opcode": "D724", + "stack": "s l l' - s'" + }, + "bytecode": { "tlb": "#D724", "prefix": "D724", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] }, + { "type": "simple", "name": "l", "value_types": ["Integer"] }, + { "type": "simple", "name": "l2", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "s2", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SDBEGINSX", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Checks whether `s` begins with (the data bits of) `s'`, and removes `s'` from `s` on success. On failure throws a cell deserialization exception. Primitive `SDPFXREV` can be considered a quiet version of `SDBEGINSX`.", + "gas": "26", + "fift": "SDBEGINSX", + "fift_examples": [], + "opcode": "D726", + "stack": "s s' - s''" + }, + "bytecode": { "tlb": "#D726", "prefix": "D726", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] }, + { "type": "simple", "name": "s2", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "s3", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SDBEGINSXQ", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "A quiet version of `SDBEGINSX`.", + "gas": "26", + "fift": "SDBEGINSXQ", + "fift_examples": [], + "opcode": "D727", + "stack": "s s' - s'' -1 or s 0" + }, + "bytecode": { "tlb": "#D727", "prefix": "D727", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] }, + { "type": "simple", "name": "s2", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ] + }, + { + "value": -1, + "stack": [ + { "type": "simple", "name": "s3", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SDBEGINS", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Checks whether `s` begins with constant bitstring `sss` of length `8x+3` (with continuation bit assumed), where `0 <= x <= 127`, and removes `sss` from `s` on success.", + "gas": "31", + "fift": "[slice] SDBEGINS", + "fift_examples": [], + "opcode": "D72A_xsss", + "stack": "s - s''" + }, + "bytecode": { + "tlb": "#D72A_ x:(## 7) sss:((8 * x + 3) * Bit)", + "prefix": "D72A_", + "operands": [ + { + "name": "s", + "type": "subslice", + "bits_length_var_size": 7, + "bits_padding": 3, + "completion_tag": true, + "max_bits": 1018, + "min_bits": 0, + "max_refs": 0, + "min_refs": 0, + "display_hints": [] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "s3", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SDBEGINSQ", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "A quiet version of `SDBEGINS`.", + "gas": "31", + "fift": "[slice] SDBEGINSQ", + "fift_examples": [], + "opcode": "D72E_xsss", + "stack": "s - s'' -1 or s 0" + }, + "bytecode": { + "tlb": "#D72E_ x:(## 7) sss:((8 * x + 3) * Bit)", + "prefix": "D72E_", + "operands": [ + { + "name": "s", + "type": "subslice", + "bits_length_var_size": 7, + "bits_padding": 3, + "completion_tag": true, + "max_bits": 1018, + "min_bits": 0, + "max_refs": 0, + "min_refs": 0, + "display_hints": [] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ] + }, + { + "value": -1, + "stack": [ + { "type": "simple", "name": "s3", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SCUTFIRST", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Returns the first `0 <= l <= 1023` bits and first `0 <= r <= 4` references of `s`.", + "gas": "26", + "fift": "SCUTFIRST", + "fift_examples": [], + "opcode": "D730", + "stack": "s l r - s'" + }, + "bytecode": { "tlb": "#D730", "prefix": "D730", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] }, + { "type": "simple", "name": "l", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "s2", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SSKIPFIRST", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Returns all but the first `l` bits of `s` and `r` references of `s`.", + "gas": "26", + "fift": "SSKIPFIRST", + "fift_examples": [], + "opcode": "D731", + "stack": "s l r - s'" + }, + "bytecode": { "tlb": "#D731", "prefix": "D731", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] }, + { "type": "simple", "name": "l", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "s2", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SCUTLAST", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Returns the last `0 <= l <= 1023` data bits and last `0 <= r <= 4` references of `s`.", + "gas": "26", + "fift": "SCUTLAST", + "fift_examples": [], + "opcode": "D732", + "stack": "s l r - s'" + }, + "bytecode": { "tlb": "#D732", "prefix": "D732", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] }, + { "type": "simple", "name": "l", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "s2", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SSKIPLAST", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Returns all but the last `l` bits of `s` and `r` references of `s`.", + "gas": "26", + "fift": "SSKIPLAST", + "fift_examples": [], + "opcode": "D733", + "stack": "s l r - s'" + }, + "bytecode": { "tlb": "#D733", "prefix": "D733", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] }, + { "type": "simple", "name": "l", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "s2", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SUBSLICE", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Returns `0 <= l' <= 1023` bits and `0 <= r' <= 4` references from _Slice_ `s`, after skipping the first `0 <= l <= 1023` bits and first `0 <= r <= 4` references.", + "gas": "26", + "fift": "SUBSLICE", + "fift_examples": [], + "opcode": "D734", + "stack": "s l r l' r' - s'" + }, + "bytecode": { "tlb": "#D734", "prefix": "D734", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] }, + { "type": "simple", "name": "l", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] }, + { "type": "simple", "name": "l2", "value_types": ["Integer"] }, + { "type": "simple", "name": "r2", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "s2", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SPLIT", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Splits the first `0 <= l <= 1023` data bits and first `0 <= r <= 4` references from `s` into `s'`, returning the remainder of `s` as `s''`.", + "gas": "26", + "fift": "SPLIT", + "fift_examples": [], + "opcode": "D736", + "stack": "s l r - s' s''" + }, + "bytecode": { "tlb": "#D736", "prefix": "D736", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] }, + { "type": "simple", "name": "l", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "s2", "value_types": ["Slice"] }, + { "type": "simple", "name": "s3", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SPLITQ", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "A quiet version of `SPLIT`.", + "gas": "26", + "fift": "SPLITQ", + "fift_examples": [], + "opcode": "D737", + "stack": "s l r - s' s'' -1 or s 0" + }, + "bytecode": { "tlb": "#D737", "prefix": "D737", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] }, + { "type": "simple", "name": "l", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "s2", + "value_types": ["Slice"] + }, + { "type": "simple", "name": "s3", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "XCTOS", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Transforms an ordinary or exotic cell into a _Slice_, as if it were an ordinary cell. A flag is returned indicating whether `c` is exotic. If that be the case, its type can later be deserialized from the first eight bits of `s`.", + "gas": "", + "fift": "", + "fift_examples": [], + "opcode": "D739", + "stack": "c - s ?" + }, + "bytecode": { "tlb": "#D739", "prefix": "D739", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [{ "type": "simple", "name": "c", "value_types": ["Cell"] }], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] }, + { "type": "simple", "name": "flag", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "XLOAD", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Loads an exotic cell `c` and returns an ordinary cell `c'`. If `c` is already ordinary, does nothing. If `c` cannot be loaded, throws an exception.", + "gas": "", + "fift": "", + "fift_examples": [], + "opcode": "D73A", + "stack": "c - c'" + }, + "bytecode": { "tlb": "#D73A", "prefix": "D73A", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [{ "type": "simple", "name": "c", "value_types": ["Cell"] }], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "c2", "value_types": ["Cell"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "XLOADQ", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Loads an exotic cell `c` and returns an ordinary cell `c'`. If `c` is already ordinary, does nothing. If `c` cannot be loaded, returns 0.", + "gas": "", + "fift": "", + "fift_examples": [], + "opcode": "D73B", + "stack": "c - c' -1 or c 0" + }, + "bytecode": { "tlb": "#D73B", "prefix": "D73B", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [{ "type": "simple", "name": "c", "value_types": ["Cell"] }], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Cell"] } + ] + }, + { + "value": -1, + "stack": [ + { "type": "simple", "name": "c2", "value_types": ["Cell"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SCHKBITS", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Checks whether there are at least `l` data bits in _Slice_ `s`. If this is not the case, throws a cell deserialisation (i.e., cell underflow) exception.", + "gas": "26/76", + "fift": "SCHKBITS", + "fift_examples": [], + "opcode": "D741", + "stack": "s l - " + }, + "bytecode": { "tlb": "#D741", "prefix": "D741", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] }, + { "type": "simple", "name": "l", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SCHKREFS", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Checks whether there are at least `r` references in _Slice_ `s`.", + "gas": "26/76", + "fift": "SCHKREFS", + "fift_examples": [], + "opcode": "D742", + "stack": "s r - " + }, + "bytecode": { "tlb": "#D742", "prefix": "D742", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SCHKBITREFS", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Checks whether there are at least `l` data bits and `r` references in _Slice_ `s`.", + "gas": "26/76", + "fift": "SCHKBITREFS", + "fift_examples": [], + "opcode": "D743", + "stack": "s l r - " + }, + "bytecode": { "tlb": "#D743", "prefix": "D743", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] }, + { "type": "simple", "name": "l", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SCHKBITSQ", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Checks whether there are at least `l` data bits in _Slice_ `s`.", + "gas": "26", + "fift": "SCHKBITSQ", + "fift_examples": [], + "opcode": "D745", + "stack": "s l - ?" + }, + "bytecode": { "tlb": "#D745", "prefix": "D745", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] }, + { "type": "simple", "name": "l", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SCHKREFSQ", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Checks whether there are at least `r` references in _Slice_ `s`.", + "gas": "26", + "fift": "SCHKREFSQ", + "fift_examples": [], + "opcode": "D746", + "stack": "s r - ?" + }, + "bytecode": { "tlb": "#D746", "prefix": "D746", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SCHKBITREFSQ", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Checks whether there are at least `l` data bits and `r` references in _Slice_ `s`.", + "gas": "26", + "fift": "SCHKBITREFSQ", + "fift_examples": [], + "opcode": "D747", + "stack": "s l r - ?" + }, + "bytecode": { "tlb": "#D747", "prefix": "D747", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] }, + { "type": "simple", "name": "l", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PLDREFVAR", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Returns the `n`-th cell reference of _Slice_ `s` for `0 <= n <= 3`.", + "gas": "26", + "fift": "PLDREFVAR", + "fift_examples": [], + "opcode": "D748", + "stack": "s n - c" + }, + "bytecode": { "tlb": "#D748", "prefix": "D748", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [{ "type": "simple", "name": "c", "value_types": ["Cell"] }], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SBITS", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Returns the number of data bits in _Slice_ `s`.", + "gas": "26", + "fift": "SBITS", + "fift_examples": [], + "opcode": "D749", + "stack": "s - l" + }, + "bytecode": { "tlb": "#D749", "prefix": "D749", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "l", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SREFS", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Returns the number of references in _Slice_ `s`.", + "gas": "26", + "fift": "SREFS", + "fift_examples": [], + "opcode": "D74A", + "stack": "s - r" + }, + "bytecode": { "tlb": "#D74A", "prefix": "D74A", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SBITREFS", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Returns both the number of data bits and the number of references in `s`.", + "gas": "26", + "fift": "SBITREFS", + "fift_examples": [], + "opcode": "D74B", + "stack": "s - l r" + }, + "bytecode": { "tlb": "#D74B", "prefix": "D74B", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "l", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PLDREFIDX", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Returns the `n`-th cell reference of _Slice_ `s`, where `0 <= n <= 3`.", + "gas": "26", + "fift": "[n] PLDREFIDX", + "fift_examples": [], + "opcode": "D74E_n", + "stack": "s - c" + }, + "bytecode": { + "tlb": "#D74E_ n:uint2", + "prefix": "D74E_", + "operands": [ + { + "name": "n", + "type": "uint", + "size": 2, + "min_value": 0, + "max_value": 3, + "display_hints": [] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [{ "type": "simple", "name": "c", "value_types": ["Cell"] }], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LDILE4", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Loads a little-endian signed 32-bit integer.", + "gas": "26", + "fift": "LDILE4", + "fift_examples": [], + "opcode": "D750", + "stack": "s - x s'" + }, + "bytecode": { "tlb": "#D750", "prefix": "D750", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "s2", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LDULE4", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Loads a little-endian unsigned 32-bit integer.", + "gas": "26", + "fift": "LDULE4", + "fift_examples": [], + "opcode": "D751", + "stack": "s - x s'" + }, + "bytecode": { "tlb": "#D751", "prefix": "D751", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "s2", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LDILE8", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Loads a little-endian signed 64-bit integer.", + "gas": "26", + "fift": "LDILE8", + "fift_examples": [], + "opcode": "D752", + "stack": "s - x s'" + }, + "bytecode": { "tlb": "#D752", "prefix": "D752", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "s2", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LDULE8", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Loads a little-endian unsigned 64-bit integer.", + "gas": "26", + "fift": "LDULE8", + "fift_examples": [], + "opcode": "D753", + "stack": "s - x s'" + }, + "bytecode": { "tlb": "#D753", "prefix": "D753", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "s2", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PLDILE4", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Preloads a little-endian signed 32-bit integer.", + "gas": "26", + "fift": "PLDILE4", + "fift_examples": [], + "opcode": "D754", + "stack": "s - x" + }, + "bytecode": { "tlb": "#D754", "prefix": "D754", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PLDULE4", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Preloads a little-endian unsigned 32-bit integer.", + "gas": "26", + "fift": "PLDULE4", + "fift_examples": [], + "opcode": "D755", + "stack": "s - x" + }, + "bytecode": { "tlb": "#D755", "prefix": "D755", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PLDILE8", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Preloads a little-endian signed 64-bit integer.", + "gas": "26", + "fift": "PLDILE8", + "fift_examples": [], + "opcode": "D756", + "stack": "s - x" + }, + "bytecode": { "tlb": "#D756", "prefix": "D756", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PLDULE8", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Preloads a little-endian unsigned 64-bit integer.", + "gas": "26", + "fift": "PLDULE8", + "fift_examples": [], + "opcode": "D757", + "stack": "s - x" + }, + "bytecode": { "tlb": "#D757", "prefix": "D757", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LDILE4Q", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Quietly loads a little-endian signed 32-bit integer.", + "gas": "26", + "fift": "LDILE4Q", + "fift_examples": [], + "opcode": "D758", + "stack": "s - x s' -1 or s 0" + }, + "bytecode": { "tlb": "#D758", "prefix": "D758", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "x", + "value_types": ["Integer"] + }, + { "type": "simple", "name": "s2", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LDULE4Q", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Quietly loads a little-endian unsigned 32-bit integer.", + "gas": "26", + "fift": "LDULE4Q", + "fift_examples": [], + "opcode": "D759", + "stack": "s - x s' -1 or s 0" + }, + "bytecode": { "tlb": "#D759", "prefix": "D759", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "x", + "value_types": ["Integer"] + }, + { "type": "simple", "name": "s2", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LDILE8Q", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Quietly loads a little-endian signed 64-bit integer.", + "gas": "26", + "fift": "LDILE8Q", + "fift_examples": [], + "opcode": "D75A", + "stack": "s - x s' -1 or s 0" + }, + "bytecode": { "tlb": "#D75A", "prefix": "D75A", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "x", + "value_types": ["Integer"] + }, + { "type": "simple", "name": "s2", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LDULE8Q", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Quietly loads a little-endian unsigned 64-bit integer.", + "gas": "26", + "fift": "LDULE8Q", + "fift_examples": [], + "opcode": "D75B", + "stack": "s - x s' -1 or s 0" + }, + "bytecode": { "tlb": "#D75B", "prefix": "D75B", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "x", + "value_types": ["Integer"] + }, + { "type": "simple", "name": "s2", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PLDILE4Q", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Quietly preloads a little-endian signed 32-bit integer.", + "gas": "26", + "fift": "PLDILE4Q", + "fift_examples": [], + "opcode": "D75C", + "stack": "s - x -1 or 0" + }, + "bytecode": { "tlb": "#D75C", "prefix": "D75C", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { "value": 0, "stack": [] }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "x", + "value_types": ["Integer"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PLDULE4Q", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Quietly preloads a little-endian unsigned 32-bit integer.", + "gas": "26", + "fift": "PLDULE4Q", + "fift_examples": [], + "opcode": "D75D", + "stack": "s - x -1 or 0" + }, + "bytecode": { "tlb": "#D75D", "prefix": "D75D", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { "value": 0, "stack": [] }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "x", + "value_types": ["Integer"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PLDILE8Q", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Quietly preloads a little-endian signed 64-bit integer.", + "gas": "26", + "fift": "PLDILE8Q", + "fift_examples": [], + "opcode": "D75E", + "stack": "s - x -1 or 0" + }, + "bytecode": { "tlb": "#D75E", "prefix": "D75E", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { "value": 0, "stack": [] }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "x", + "value_types": ["Integer"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PLDULE8Q", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Quietly preloads a little-endian unsigned 64-bit integer.", + "gas": "26", + "fift": "PLDULE8Q", + "fift_examples": [], + "opcode": "D75F", + "stack": "s - x -1 or 0" + }, + "bytecode": { "tlb": "#D75F", "prefix": "D75F", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { "value": 0, "stack": [] }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "x", + "value_types": ["Integer"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LDZEROES", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Returns the count `n` of leading zero bits in `s`, and removes these bits from `s`.", + "gas": "26", + "fift": "LDZEROES", + "fift_examples": [], + "opcode": "D760", + "stack": "s - n s'" + }, + "bytecode": { "tlb": "#D760", "prefix": "D760", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "n", "value_types": ["Integer"] }, + { "type": "simple", "name": "s2", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LDONES", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Returns the count `n` of leading one bits in `s`, and removes these bits from `s`.", + "gas": "26", + "fift": "LDONES", + "fift_examples": [], + "opcode": "D761", + "stack": "s - n s'" + }, + "bytecode": { "tlb": "#D761", "prefix": "D761", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "n", "value_types": ["Integer"] }, + { "type": "simple", "name": "s2", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LDSAME", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Returns the count `n` of leading bits equal to `0 <= x <= 1` in `s`, and removes these bits from `s`.", + "gas": "26", + "fift": "LDSAME", + "fift_examples": [], + "opcode": "D762", + "stack": "s x - n s'" + }, + "bytecode": { "tlb": "#D762", "prefix": "D762", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] }, + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "n", "value_types": ["Integer"] }, + { "type": "simple", "name": "s2", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SDEPTH", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Returns the depth of _Slice_ `s`. If `s` has no references, then `x=0`; otherwise `x` is one plus the maximum of depths of cells referred to from `s`.", + "gas": "26", + "fift": "SDEPTH", + "fift_examples": [], + "opcode": "D764", + "stack": "s - x" + }, + "bytecode": { "tlb": "#D764", "prefix": "D764", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "CDEPTH", + "since_version": 0, + "doc": { + "category": "cell_parse", + "description": "Returns the depth of _Cell_ `c`. If `c` has no references, then `x=0`; otherwise `x` is one plus the maximum of depths of cells referred to from `c`. If `c` is a _Null_ instead of a _Cell_, returns zero.", + "gas": "26", + "fift": "CDEPTH", + "fift_examples": [], + "opcode": "D765", + "stack": "c - x" + }, + "bytecode": { "tlb": "#D765", "prefix": "D765", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [{ "type": "simple", "name": "c", "value_types": ["Cell"] }], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "EXECUTE", + "since_version": 0, + "doc": { + "category": "cont_basic", + "description": "_Calls_, or _executes_, continuation `c`.", + "gas": "18", + "fift": "EXECUTE\nCALLX", + "fift_examples": [], + "opcode": "D8", + "stack": "c - " + }, + "bytecode": { "tlb": "#D8", "prefix": "D8", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Continuation"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { + "branches": [ + { + "type": "variable", + "var_name": "c", + "save": { + "c0": { + "type": "cc", + "save": { "c0": { "type": "register", "index": 0 } } + } + } + } + ], + "nobranch": false + } + }, + { + "mnemonic": "JMPX", + "since_version": 0, + "doc": { + "category": "cont_basic", + "description": "_Jumps_, or transfers control, to continuation `c`.\nThe remainder of the previous current continuation `cc` is discarded.", + "gas": "18", + "fift": "JMPX", + "fift_examples": [], + "opcode": "D9", + "stack": "c - " + }, + "bytecode": { "tlb": "#D9", "prefix": "D9", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Continuation"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { + "branches": [{ "type": "variable", "var_name": "c" }], + "nobranch": false + } + }, + { + "mnemonic": "CALLXARGS", + "since_version": 0, + "doc": { + "category": "cont_basic", + "description": "_Calls_ continuation `c` with `p` parameters and expecting `r` return values\n`0 <= p <= 15`, `0 <= r <= 15`", + "gas": "26", + "fift": "[p] [r] CALLXARGS", + "fift_examples": [], + "opcode": "DApr", + "stack": "c - " + }, + "bytecode": { + "tlb": "#DA p:uint4 r:uint4", + "prefix": "DA", + "operands": [ + { + "name": "p", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [] + }, + { + "name": "r", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { + "type": "array", + "name": "args", + "length_var": "p", + "array_entry": [{ "type": "simple", "name": "arg" }] + }, + { "type": "simple", "name": "c", "value_types": ["Continuation"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { + "branches": [ + { + "type": "variable", + "var_name": "c", + "save": { + "c0": { + "type": "cc", + "save": { "c0": { "type": "register", "index": 0 } } + } + } + } + ], + "nobranch": false + } + }, + { + "mnemonic": "CALLXARGS_VAR", + "since_version": 0, + "doc": { + "category": "cont_basic", + "description": "_Calls_ continuation `c` with `0 <= p <= 15` parameters, expecting an arbitrary number of return values.", + "gas": "26", + "fift": "[p] -1 CALLXARGS", + "fift_examples": [], + "opcode": "DB0p", + "stack": "c - " + }, + "bytecode": { + "tlb": "#DB0 p:uint4", + "prefix": "DB0", + "operands": [ + { + "name": "p", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { + "type": "array", + "name": "args", + "length_var": "p", + "array_entry": [{ "type": "simple", "name": "arg" }] + }, + { "type": "simple", "name": "c", "value_types": ["Continuation"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { + "branches": [ + { + "type": "variable", + "var_name": "c", + "save": { + "c0": { + "type": "cc", + "save": { "c0": { "type": "register", "index": 0 } } + } + } + } + ], + "nobranch": false + } + }, + { + "mnemonic": "JMPXARGS", + "since_version": 0, + "doc": { + "category": "cont_basic", + "description": "_Jumps_ to continuation `c`, passing only the top `0 <= p <= 15` values from the current stack to it (the remainder of the current stack is discarded).", + "gas": "26", + "fift": "[p] JMPXARGS", + "fift_examples": [], + "opcode": "DB1p", + "stack": "c - " + }, + "bytecode": { + "tlb": "#DB1 p:uint4", + "prefix": "DB1", + "operands": [ + { + "name": "p", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { + "type": "array", + "name": "args", + "length_var": "p", + "array_entry": [{ "type": "simple", "name": "arg" }] + }, + { "type": "simple", "name": "c", "value_types": ["Continuation"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { + "branches": [{ "type": "variable", "var_name": "c" }], + "nobranch": false + } + }, + { + "mnemonic": "RETARGS", + "since_version": 0, + "doc": { + "category": "cont_basic", + "description": "_Returns_ to `c0`, with `0 <= r <= 15` return values taken from the current stack.", + "gas": "26", + "fift": "[r] RETARGS", + "fift_examples": [], + "opcode": "DB2r", + "stack": "" + }, + "bytecode": { + "tlb": "#DB2 r:uint4", + "prefix": "DB2", + "operands": [ + { + "name": "r", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { + "type": "array", + "name": "args", + "length_var": "p", + "array_entry": [{ "type": "simple", "name": "arg" }] + } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { + "branches": [{ "type": "register", "index": 0 }], + "nobranch": false + } + }, + { + "mnemonic": "RET", + "since_version": 0, + "doc": { + "category": "cont_basic", + "description": "_Returns_ to the continuation at `c0`. The remainder of the current continuation `cc` is discarded.\nApproximately equivalent to `c0 PUSHCTR` `JMPX`.", + "gas": "26", + "fift": "RET\nRETTRUE", + "fift_examples": [], + "opcode": "DB30", + "stack": "" + }, + "bytecode": { "tlb": "#DB30", "prefix": "DB30", "operands": [] }, + "value_flow": { + "inputs": { "stack": [], "registers": [] }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { + "branches": [{ "type": "register", "index": 0 }], + "nobranch": false + } + }, + { + "mnemonic": "RETALT", + "since_version": 0, + "doc": { + "category": "cont_basic", + "description": "_Returns_ to the continuation at `c1`.\nApproximately equivalent to `c1 PUSHCTR` `JMPX`.", + "gas": "26", + "fift": "RETALT\nRETFALSE", + "fift_examples": [], + "opcode": "DB31", + "stack": "" + }, + "bytecode": { "tlb": "#DB31", "prefix": "DB31", "operands": [] }, + "value_flow": { + "inputs": { "stack": [], "registers": [] }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { + "branches": [{ "type": "register", "index": 1 }], + "nobranch": false + } + }, + { + "mnemonic": "BRANCH", + "since_version": 0, + "doc": { + "category": "cont_basic", + "description": "Performs `RETTRUE` if integer `f!=0`, or `RETFALSE` if `f=0`.", + "gas": "26", + "fift": "BRANCH\nRETBOOL", + "fift_examples": [], + "opcode": "DB32", + "stack": "f - " + }, + "bytecode": { "tlb": "#DB32", "prefix": "DB32", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "f", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { + "branches": [ + { "type": "register", "index": 0 }, + { "type": "register", "index": 1 } + ], + "nobranch": false + } + }, + { + "mnemonic": "CALLCC", + "since_version": 0, + "doc": { + "category": "cont_basic", + "description": "_Call with current continuation_, transfers control to `c`, pushing the old value of `cc` into `c`'s stack (instead of discarding it or writing it into new `c0`).", + "gas": "26", + "fift": "CALLCC", + "fift_examples": [], + "opcode": "DB34", + "stack": "c - " + }, + "bytecode": { "tlb": "#DB34", "prefix": "DB34", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Continuation"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { + "branches": [{ "type": "variable", "var_name": "c" }], + "nobranch": false + } + }, + { + "mnemonic": "JMPXDATA", + "since_version": 0, + "doc": { + "category": "cont_basic", + "description": "Similar to `CALLCC`, but the remainder of the current continuation (the old value of `cc`) is converted into a _Slice_ before pushing it into the stack of `c`.", + "gas": "26", + "fift": "JMPXDATA", + "fift_examples": [], + "opcode": "DB35", + "stack": "c - " + }, + "bytecode": { "tlb": "#DB35", "prefix": "DB35", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Continuation"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { + "branches": [{ "type": "variable", "var_name": "c" }], + "nobranch": false + } + }, + { + "mnemonic": "CALLCCARGS", + "since_version": 0, + "doc": { + "category": "cont_basic", + "description": "Similar to `CALLXARGS`, but pushes the old value of `cc` (along with the top `0 <= p <= 15` values from the original stack) into the stack of newly-invoked continuation `c`, setting `cc.nargs` to `-1 <= r <= 14`.", + "gas": "34", + "fift": "[p] [r] CALLCCARGS", + "fift_examples": [], + "opcode": "DB36pr", + "stack": "c - " + }, + "bytecode": { + "tlb": "#DB36 p:uint4 r:uint4", + "prefix": "DB36", + "operands": [ + { + "name": "p", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [] + }, + { + "name": "r", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [{ "type": "optional_nargs" }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { + "type": "array", + "name": "args", + "length_var": "p", + "array_entry": [{ "type": "simple", "name": "arg" }] + }, + { "type": "simple", "name": "c", "value_types": ["Continuation"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { + "branches": [{ "type": "variable", "var_name": "c" }], + "nobranch": false + } + }, + { + "mnemonic": "CALLXVARARGS", + "since_version": 0, + "doc": { + "category": "cont_basic", + "description": "Similar to `CALLXARGS`, but takes `-1 <= p,r <= 254` from the stack. The next three operations also take `p` and `r` from the stack, both in the range `-1...254`.", + "gas": "26", + "fift": "CALLXVARARGS", + "fift_examples": [], + "opcode": "DB38", + "stack": "c p r - " + }, + "bytecode": { "tlb": "#DB38", "prefix": "DB38", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { + "type": "array", + "name": "args", + "length_var": "p", + "array_entry": [{ "type": "simple", "name": "arg" }] + }, + { "type": "simple", "name": "c", "value_types": ["Continuation"] }, + { "type": "simple", "name": "p", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { + "branches": [ + { + "type": "variable", + "var_name": "c", + "save": { + "c0": { + "type": "cc", + "save": { "c0": { "type": "register", "index": 0 } } + } + } + } + ], + "nobranch": false + } + }, + { + "mnemonic": "RETVARARGS", + "since_version": 0, + "doc": { + "category": "cont_basic", + "description": "Similar to `RETARGS`.", + "gas": "26", + "fift": "RETVARARGS", + "fift_examples": [], + "opcode": "DB39", + "stack": "p r - " + }, + "bytecode": { "tlb": "#DB39", "prefix": "DB39", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { + "type": "array", + "name": "args", + "length_var": "p", + "array_entry": [{ "type": "simple", "name": "arg" }] + }, + { "type": "simple", "name": "p", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { + "branches": [ + { + "type": "variable", + "var_name": "c", + "save": { + "c0": { + "type": "cc", + "save": { "c0": { "type": "register", "index": 0 } } + } + } + } + ], + "nobranch": false + } + }, + { + "mnemonic": "JMPXVARARGS", + "since_version": 0, + "doc": { + "category": "cont_basic", + "description": "Similar to `JMPXARGS`.", + "gas": "26", + "fift": "JMPXVARARGS", + "fift_examples": [], + "opcode": "DB3A", + "stack": "c p r - " + }, + "bytecode": { "tlb": "#DB3A", "prefix": "DB3A", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { + "type": "array", + "name": "args", + "length_var": "p", + "array_entry": [{ "type": "simple", "name": "arg" }] + }, + { "type": "simple", "name": "c", "value_types": ["Continuation"] }, + { "type": "simple", "name": "p", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { + "branches": [{ "type": "variable", "var_name": "c" }], + "nobranch": false + } + }, + { + "mnemonic": "CALLCCVARARGS", + "since_version": 0, + "doc": { + "category": "cont_basic", + "description": "Similar to `CALLCCARGS`.", + "gas": "26", + "fift": "CALLCCVARARGS", + "fift_examples": [], + "opcode": "DB3B", + "stack": "c p r - " + }, + "bytecode": { "tlb": "#DB3B", "prefix": "DB3B", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { + "type": "array", + "name": "args", + "length_var": "p", + "array_entry": [{ "type": "simple", "name": "arg" }] + }, + { "type": "simple", "name": "c", "value_types": ["Continuation"] }, + { "type": "simple", "name": "p", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { + "branches": [{ "type": "variable", "var_name": "c" }], + "nobranch": false + } + }, + { + "mnemonic": "CALLREF", + "since_version": 0, + "doc": { + "category": "cont_basic", + "description": "Equivalent to `PUSHREFCONT` `CALLX`.", + "gas": "126/51", + "fift": "[ref] CALLREF", + "fift_examples": [], + "opcode": "DB3C", + "stack": "" + }, + "bytecode": { + "tlb": "#DB3C c:^Cell", + "prefix": "DB3C", + "operands": [ + { + "name": "c", + "type": "ref", + "display_hints": [{ "type": "continuation" }] + } + ] + }, + "value_flow": { + "inputs": { "stack": [], "registers": [] }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { + "branches": [ + { + "type": "variable", + "var_name": "c", + "save": { + "c0": { + "type": "cc", + "save": { "c0": { "type": "register", "index": 0 } } + } + } + } + ], + "nobranch": false + } + }, + { + "mnemonic": "JMPREF", + "since_version": 0, + "doc": { + "category": "cont_basic", + "description": "Equivalent to `PUSHREFCONT` `JMPX`.", + "gas": "126/51", + "fift": "[ref] JMPREF", + "fift_examples": [], + "opcode": "DB3D", + "stack": "" + }, + "bytecode": { + "tlb": "#DB3D c:^Cell", + "prefix": "DB3D", + "operands": [ + { + "name": "c", + "type": "ref", + "display_hints": [{ "type": "continuation" }] + } + ] + }, + "value_flow": { + "inputs": { "stack": [], "registers": [] }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { + "branches": [{ "type": "variable", "var_name": "c" }], + "nobranch": false + } + }, + { + "mnemonic": "JMPREFDATA", + "since_version": 0, + "doc": { + "category": "cont_basic", + "description": "Equivalent to `PUSHREFCONT` `JMPXDATA`.", + "gas": "126/51", + "fift": "[ref] JMPREFDATA", + "fift_examples": [], + "opcode": "DB3E", + "stack": "" + }, + "bytecode": { + "tlb": "#DB3E c:^Cell", + "prefix": "DB3E", + "operands": [ + { + "name": "c", + "type": "ref", + "display_hints": [{ "type": "continuation" }] + } + ] + }, + "value_flow": { + "inputs": { "stack": [], "registers": [] }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { + "branches": [{ "type": "variable", "var_name": "c" }], + "nobranch": false + } + }, + { + "mnemonic": "RETDATA", + "since_version": 0, + "doc": { + "category": "cont_basic", + "description": "Equivalent to `c0 PUSHCTR` `JMPXDATA`. In this way, the remainder of the current continuation is converted into a _Slice_ and returned to the caller.", + "gas": "26", + "fift": "RETDATA", + "fift_examples": [], + "opcode": "DB3F", + "stack": "" + }, + "bytecode": { "tlb": "#DB3F", "prefix": "DB3F", "operands": [] }, + "value_flow": { + "inputs": { "stack": [], "registers": [] }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { + "branches": [{ "type": "register", "index": 0 }], + "nobranch": false + } + }, + { + "mnemonic": "RUNVM", + "since_version": 4, + "doc": { + "category": "cont_basic", + "description": "Runs child VM with code `code` and stack `x_1...x_n`. Returns the resulting stack `x'_1...x'_m` and exitcode. Other arguments and return values are enabled by flags.", + "gas": "", + "fift": "flags RUNVM", + "fift_examples": [], + "opcode": "DB4fff", + "stack": "x_1 ... x_n n code [r] [c4] [c7] [g_l] [g_m] - x'_1 ... x'_m exitcode [data'] [c4'] [c5] [g_c]" + }, + "bytecode": { + "tlb": "#DB4 flags:(## 12)", + "prefix": "DB4", + "operands": [ + { + "name": "flags", + "type": "uint", + "size": 12, + "min_value": 0, + "max_value": 4095, + "display_hints": [] + } + ] + }, + "value_flow": { + "inputs": { "registers": [] }, + "outputs": { "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "RUNVMX", + "since_version": 4, + "doc": { + "category": "cont_basic", + "description": "Runs child VM with code `code` and stack `x_1...x_n`. Returns the resulting stack `x'_1...x'_m` and exitcode. Other arguments and return values are enabled by flags.", + "gas": "", + "fift": "RUNVMX", + "fift_examples": [], + "opcode": "DB50", + "stack": "x_1 ... x_n n code [r] [c4] [c7] [g_l] [g_m] flags - x'_1 ... x'_m exitcode [data'] [c4'] [c5] [g_c]" + }, + "bytecode": { "tlb": "#DB50", "prefix": "DB50", "operands": [] }, + "value_flow": { + "inputs": { "registers": [] }, + "outputs": { "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "IFRET", + "since_version": 0, + "doc": { + "category": "cont_conditional", + "description": "Performs a `RET`, but only if integer `f` is non-zero. If `f` is a `NaN`, throws an integer overflow exception.", + "gas": "18", + "fift": "IFRET\nIFNOT:", + "fift_examples": [], + "opcode": "DC", + "stack": "f - " + }, + "bytecode": { "tlb": "#DC", "prefix": "DC", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "f", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { + "branches": [{ "type": "register", "index": 0 }], + "nobranch": true + } + }, + { + "mnemonic": "IFNOTRET", + "since_version": 0, + "doc": { + "category": "cont_conditional", + "description": "Performs a `RET`, but only if integer `f` is zero.", + "gas": "18", + "fift": "IFNOTRET\nIF:", + "fift_examples": [], + "opcode": "DD", + "stack": "f - " + }, + "bytecode": { "tlb": "#DD", "prefix": "DD", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "f", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { + "branches": [{ "type": "register", "index": 0 }], + "nobranch": true + } + }, + { + "mnemonic": "IF", + "since_version": 0, + "doc": { + "category": "cont_conditional", + "description": "Performs `EXECUTE` for `c` (i.e., _executes_ `c`), but only if integer `f` is non-zero. Otherwise simply discards both values.", + "gas": "18", + "fift": "IF", + "fift_examples": [ + { + "fift": "IF:<{ code }> <{ code }>IF", + "description": "Equivalent to `<{ code }> CONT` `IF`." + } + ], + "opcode": "DE", + "stack": "f c - " + }, + "bytecode": { "tlb": "#DE", "prefix": "DE", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "f", "value_types": ["Integer"] }, + { "type": "simple", "name": "c", "value_types": ["Continuation"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { + "branches": [ + { + "type": "variable", + "var_name": "c", + "save": { + "c0": { + "type": "cc", + "save": { "c0": { "type": "register", "index": 0 } } + } + } + } + ], + "nobranch": true + } + }, + { + "mnemonic": "IFNOT", + "since_version": 0, + "doc": { + "category": "cont_conditional", + "description": "Executes continuation `c`, but only if integer `f` is zero. Otherwise simply discards both values.", + "gas": "18", + "fift": "IFNOT", + "fift_examples": [ + { + "fift": "IFNOT:<{ code }> <{ code }>IFNOT", + "description": "Equivalent to `<{ code }> CONT` `IFNOT`." + } + ], + "opcode": "DF", + "stack": "f c - " + }, + "bytecode": { "tlb": "#DF", "prefix": "DF", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "f", "value_types": ["Integer"] }, + { "type": "simple", "name": "c", "value_types": ["Continuation"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { + "branches": [ + { + "type": "variable", + "var_name": "c", + "save": { + "c0": { + "type": "cc", + "save": { "c0": { "type": "register", "index": 0 } } + } + } + } + ], + "nobranch": true + } + }, + { + "mnemonic": "IFJMP", + "since_version": 0, + "doc": { + "category": "cont_conditional", + "description": "Jumps to `c` (similarly to `JMPX`), but only if `f` is non-zero.", + "gas": "18", + "fift": "IFJMP", + "fift_examples": [ + { + "fift": "IFJMP:<{ code }>", + "description": "Equivalent to `<{ code }> CONT` `IFJMP`." + } + ], + "opcode": "E0", + "stack": "f c - " + }, + "bytecode": { "tlb": "#E0", "prefix": "E0", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "f", "value_types": ["Integer"] }, + { "type": "simple", "name": "c", "value_types": ["Continuation"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { + "branches": [{ "type": "variable", "var_name": "c" }], + "nobranch": true + } + }, + { + "mnemonic": "IFNOTJMP", + "since_version": 0, + "doc": { + "category": "cont_conditional", + "description": "Jumps to `c` (similarly to `JMPX`), but only if `f` is zero.", + "gas": "18", + "fift": "IFNOTJMP", + "fift_examples": [ + { + "fift": "IFNOTJMP:<{ code }>", + "description": "Equivalent to `<{ code }> CONT` `IFNOTJMP`." + } + ], + "opcode": "E1", + "stack": "f c - " + }, + "bytecode": { "tlb": "#E1", "prefix": "E1", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "f", "value_types": ["Integer"] }, + { "type": "simple", "name": "c", "value_types": ["Continuation"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { + "branches": [{ "type": "variable", "var_name": "c" }], + "nobranch": true + } + }, + { + "mnemonic": "IFELSE", + "since_version": 0, + "doc": { + "category": "cont_conditional", + "description": "If integer `f` is non-zero, executes `c`, otherwise executes `c'`. Equivalent to `CONDSELCHK` `EXECUTE`.", + "gas": "18", + "fift": "IFELSE", + "fift_examples": [ + { + "fift": "IF:<{ code1 }>ELSE<{ code2 }>", + "description": "Equivalent to `<{ code1 }> CONT` `<{ code2 }> CONT` `IFELSE`." + } + ], + "opcode": "E2", + "stack": "f c c' - " + }, + "bytecode": { "tlb": "#E2", "prefix": "E2", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "f", "value_types": ["Integer"] }, + { "type": "simple", "name": "c", "value_types": ["Continuation"] }, + { "type": "simple", "name": "c2", "value_types": ["Continuation"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { + "branches": [ + { + "type": "variable", + "var_name": "c", + "save": { + "c0": { + "type": "cc", + "save": { "c0": { "type": "register", "index": 0 } } + } + } + }, + { + "type": "variable", + "var_name": "c2", + "save": { + "c0": { + "type": "cc", + "save": { "c0": { "type": "register", "index": 0 } } + } + } + } + ], + "nobranch": false + } + }, + { + "mnemonic": "IFREF", + "since_version": 0, + "doc": { + "category": "cont_conditional", + "description": "Equivalent to `PUSHREFCONT` `IF`, with the optimization that the cell reference is not actually loaded into a _Slice_ and then converted into an ordinary _Continuation_ if `f=0`.\nGas consumption of this primitive depends on whether `f=0` and whether the reference was loaded before.\nSimilar remarks apply other primitives that accept a continuation as a reference.", + "gas": "26/126/51", + "fift": "[ref] IFREF", + "fift_examples": [], + "opcode": "E300", + "stack": "f - " + }, + "bytecode": { + "tlb": "#E300 c:^Cell", + "prefix": "E300", + "operands": [ + { + "name": "c", + "type": "ref", + "display_hints": [{ "type": "continuation" }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "f", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { + "branches": [ + { + "type": "variable", + "var_name": "c", + "save": { + "c0": { + "type": "cc", + "save": { "c0": { "type": "register", "index": 0 } } + } + } + } + ], + "nobranch": true + } + }, + { + "mnemonic": "IFNOTREF", + "since_version": 0, + "doc": { + "category": "cont_conditional", + "description": "Equivalent to `PUSHREFCONT` `IFNOT`.", + "gas": "26/126/51", + "fift": "[ref] IFNOTREF", + "fift_examples": [], + "opcode": "E301", + "stack": "f - " + }, + "bytecode": { + "tlb": "#E301 c:^Cell", + "prefix": "E301", + "operands": [ + { + "name": "c", + "type": "ref", + "display_hints": [{ "type": "continuation" }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "f", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { + "branches": [ + { + "type": "variable", + "var_name": "c", + "save": { + "c0": { + "type": "cc", + "save": { "c0": { "type": "register", "index": 0 } } + } + } + } + ], + "nobranch": true + } + }, + { + "mnemonic": "IFJMPREF", + "since_version": 0, + "doc": { + "category": "cont_conditional", + "description": "Equivalent to `PUSHREFCONT` `IFJMP`.", + "gas": "26/126/51", + "fift": "[ref] IFJMPREF", + "fift_examples": [], + "opcode": "E302", + "stack": "f - " + }, + "bytecode": { + "tlb": "#E302 c:^Cell", + "prefix": "E302", + "operands": [ + { + "name": "c", + "type": "ref", + "display_hints": [{ "type": "continuation" }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "f", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { + "branches": [{ "type": "variable", "var_name": "c" }], + "nobranch": true + } + }, + { + "mnemonic": "IFNOTJMPREF", + "since_version": 0, + "doc": { + "category": "cont_conditional", + "description": "Equivalent to `PUSHREFCONT` `IFNOTJMP`.", + "gas": "26/126/51", + "fift": "[ref] IFNOTJMPREF", + "fift_examples": [], + "opcode": "E303", + "stack": "f - " + }, + "bytecode": { + "tlb": "#E303 c:^Cell", + "prefix": "E303", + "operands": [ + { + "name": "c", + "type": "ref", + "display_hints": [{ "type": "continuation" }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "f", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { + "branches": [{ "type": "variable", "var_name": "c" }], + "nobranch": true + } + }, + { + "mnemonic": "CONDSEL", + "since_version": 0, + "doc": { + "category": "cont_conditional", + "description": "If integer `f` is non-zero, returns `x`, otherwise returns `y`. Notice that no type checks are performed on `x` and `y`; as such, it is more like a conditional stack operation. Roughly equivalent to `ROT` `ISZERO` `INC` `ROLLX` `NIP`.", + "gas": "26", + "fift": "CONDSEL", + "fift_examples": [], + "opcode": "E304", + "stack": "f x y - x or y" + }, + "bytecode": { "tlb": "#E304", "prefix": "E304", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "f", "value_types": ["Integer"] }, + { "type": "simple", "name": "x" }, + { "type": "simple", "name": "y" } + ], + "registers": [] + }, + "outputs": { + "stack": [{ "type": "simple", "name": "result" }], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "CONDSELCHK", + "since_version": 0, + "doc": { + "category": "cont_conditional", + "description": "Same as `CONDSEL`, but first checks whether `x` and `y` have the same type.", + "gas": "26", + "fift": "CONDSELCHK", + "fift_examples": [], + "opcode": "E305", + "stack": "f x y - x or y" + }, + "bytecode": { "tlb": "#E305", "prefix": "E305", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "f", "value_types": ["Integer"] }, + { "type": "simple", "name": "x" }, + { "type": "simple", "name": "y" } + ], + "registers": [] + }, + "outputs": { + "stack": [{ "type": "simple", "name": "result" }], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "IFRETALT", + "since_version": 0, + "doc": { + "category": "cont_conditional", + "description": "Performs `RETALT` if integer `f!=0`.", + "gas": "26", + "fift": "IFRETALT", + "fift_examples": [], + "opcode": "E308", + "stack": "f -" + }, + "bytecode": { "tlb": "#E308", "prefix": "E308", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "f", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { + "branches": [{ "type": "register", "index": 1 }], + "nobranch": true + } + }, + { + "mnemonic": "IFNOTRETALT", + "since_version": 0, + "doc": { + "category": "cont_conditional", + "description": "Performs `RETALT` if integer `f=0`.", + "gas": "26", + "fift": "IFNOTRETALT", + "fift_examples": [], + "opcode": "E309", + "stack": "f -" + }, + "bytecode": { "tlb": "#E309", "prefix": "E309", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "f", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { + "branches": [{ "type": "register", "index": 1 }], + "nobranch": true + } + }, + { + "mnemonic": "IFREFELSE", + "since_version": 0, + "doc": { + "category": "cont_conditional", + "description": "Equivalent to `PUSHREFCONT` `SWAP` `IFELSE`, with the optimization that the cell reference is not actually loaded into a _Slice_ and then converted into an ordinary _Continuation_ if `f=0`. Similar remarks apply to the next two primitives: cells are converted into continuations only when necessary.", + "gas": "26/126/51", + "fift": "[ref] IFREFELSE", + "fift_examples": [], + "opcode": "E30D", + "stack": "f c -" + }, + "bytecode": { + "tlb": "#E30D c:^Cell", + "prefix": "E30D", + "operands": [ + { + "name": "c", + "type": "ref", + "display_hints": [{ "type": "continuation" }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "f", "value_types": ["Integer"] }, + { "type": "simple", "name": "c2", "value_types": ["Continuation"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { + "branches": [ + { + "type": "variable", + "var_name": "c", + "save": { + "c0": { + "type": "cc", + "save": { "c0": { "type": "register", "index": 0 } } + } + } + }, + { + "type": "variable", + "var_name": "c2", + "save": { + "c0": { + "type": "cc", + "save": { "c0": { "type": "register", "index": 0 } } + } + } + } + ], + "nobranch": false + } + }, + { + "mnemonic": "IFELSEREF", + "since_version": 0, + "doc": { + "category": "cont_conditional", + "description": "Equivalent to `PUSHREFCONT` `IFELSE`.", + "gas": "26/126/51", + "fift": "[ref] IFELSEREF", + "fift_examples": [], + "opcode": "E30E", + "stack": "f c -" + }, + "bytecode": { + "tlb": "#E30E c:^Cell", + "prefix": "E30E", + "operands": [ + { + "name": "c", + "type": "ref", + "display_hints": [{ "type": "continuation" }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "f", "value_types": ["Integer"] }, + { "type": "simple", "name": "c2", "value_types": ["Continuation"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { + "branches": [ + { + "type": "variable", + "var_name": "c", + "save": { + "c0": { + "type": "cc", + "save": { "c0": { "type": "register", "index": 0 } } + } + } + }, + { + "type": "variable", + "var_name": "c2", + "save": { + "c0": { + "type": "cc", + "save": { "c0": { "type": "register", "index": 0 } } + } + } + } + ], + "nobranch": false + } + }, + { + "mnemonic": "IFREFELSEREF", + "since_version": 0, + "doc": { + "category": "cont_conditional", + "description": "Equivalent to `PUSHREFCONT` `PUSHREFCONT` `IFELSE`.", + "gas": "126/51", + "fift": "[ref] [ref] IFREFELSEREF", + "fift_examples": [], + "opcode": "E30F", + "stack": "f -" + }, + "bytecode": { + "tlb": "#E30F c1:^Cell c2:^Cell", + "prefix": "E30F", + "operands": [ + { + "name": "c1", + "type": "ref", + "display_hints": [{ "type": "continuation" }] + }, + { + "name": "c2", + "type": "ref", + "display_hints": [{ "type": "continuation" }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "f", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { + "branches": [ + { + "type": "variable", + "var_name": "c1", + "save": { + "c0": { + "type": "cc", + "save": { "c0": { "type": "register", "index": 0 } } + } + } + }, + { + "type": "variable", + "var_name": "c2", + "save": { + "c0": { + "type": "cc", + "save": { "c0": { "type": "register", "index": 0 } } + } + } + } + ], + "nobranch": false + } + }, + { + "mnemonic": "IFBITJMP", + "since_version": 0, + "doc": { + "category": "cont_conditional", + "description": "Checks whether bit `0 <= n <= 31` is set in integer `x`, and if so, performs `JMPX` to continuation `c`. Value `x` is left in the stack.", + "gas": "26", + "fift": "[n] IFBITJMP", + "fift_examples": [], + "opcode": "E39_n", + "stack": "x c - x" + }, + "bytecode": { + "tlb": "#E39_ n:uint5", + "prefix": "E39_", + "operands": [ + { + "name": "n", + "type": "uint", + "size": 5, + "min_value": 0, + "max_value": 31, + "display_hints": [] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "c", "value_types": ["Continuation"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { + "branches": [{ "type": "variable", "var_name": "c" }], + "nobranch": false + } + }, + { + "mnemonic": "IFNBITJMP", + "since_version": 0, + "doc": { + "category": "cont_conditional", + "description": "Jumps to `c` if bit `0 <= n <= 31` is not set in integer `x`.", + "gas": "26", + "fift": "[n] IFNBITJMP", + "fift_examples": [], + "opcode": "E3B_n", + "stack": "x c - x" + }, + "bytecode": { + "tlb": "#E3B_ n:uint5", + "prefix": "E3B_", + "operands": [ + { + "name": "n", + "type": "uint", + "size": 5, + "min_value": 0, + "max_value": 31, + "display_hints": [] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "c", "value_types": ["Continuation"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { + "branches": [{ "type": "variable", "var_name": "c" }], + "nobranch": false + } + }, + { + "mnemonic": "IFBITJMPREF", + "since_version": 0, + "doc": { + "category": "cont_conditional", + "description": "Performs a `JMPREF` if bit `0 <= n <= 31` is set in integer `x`.", + "gas": "126/51", + "fift": "[ref] [n] IFBITJMPREF", + "fift_examples": [], + "opcode": "E3D_n", + "stack": "x - x" + }, + "bytecode": { + "tlb": "#E3D_ n:uint5 c:^Cell", + "prefix": "E3D_", + "operands": [ + { + "name": "n", + "type": "uint", + "size": 5, + "min_value": 0, + "max_value": 31, + "display_hints": [] + }, + { + "name": "c", + "type": "ref", + "display_hints": [{ "type": "continuation" }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { + "branches": [{ "type": "variable", "var_name": "c" }], + "nobranch": false + } + }, + { + "mnemonic": "IFNBITJMPREF", + "since_version": 0, + "doc": { + "category": "cont_conditional", + "description": "Performs a `JMPREF` if bit `0 <= n <= 31` is not set in integer `x`.", + "gas": "126/51", + "fift": "[ref] [n] IFNBITJMPREF", + "fift_examples": [], + "opcode": "E3F_n", + "stack": "x - x" + }, + "bytecode": { + "tlb": "#E3F_ n:uint5 c:^Cell", + "prefix": "E3F_", + "operands": [ + { + "name": "n", + "type": "uint", + "size": 5, + "min_value": 0, + "max_value": 31, + "display_hints": [] + }, + { + "name": "c", + "type": "ref", + "display_hints": [{ "type": "continuation" }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { + "branches": [{ "type": "variable", "var_name": "c" }], + "nobranch": false + } + }, + { + "mnemonic": "REPEAT", + "since_version": 0, + "doc": { + "category": "cont_loops", + "description": "Executes continuation `c` `n` times, if integer `n` is non-negative. If `n>=2^31` or `n<-2^31`, generates a range check exception.\nNotice that a `RET` inside the code of `c` works as a `continue`, not as a `break`. One should use either alternative (experimental) loops or alternative `RETALT` (along with a `SETEXITALT` before the loop) to `break` out of a loop.", + "gas": "18", + "fift": "REPEAT", + "fift_examples": [ + { + "fift": "REPEAT:<{ code }> <{ code }>REPEAT", + "description": "Equivalent to `<{ code }> CONT` `REPEAT`." + } + ], + "opcode": "E4", + "stack": "n c - " + }, + "bytecode": { "tlb": "#E4", "prefix": "E4", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "n", "value_types": ["Integer"] }, + { "type": "simple", "name": "c", "value_types": ["Continuation"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { + "branches": [ + { + "type": "special", + "name": "repeat", + "args": { + "count": "n", + "body": { "type": "variable", "var_name": "c" }, + "after": { + "type": "cc", + "save": { "c0": { "type": "register", "index": 0 } } + } + } + } + ], + "nobranch": true + } + }, + { + "mnemonic": "REPEATEND", + "since_version": 0, + "doc": { + "category": "cont_loops", + "description": "Similar to `REPEAT`, but it is applied to the current continuation `cc`.", + "gas": "18", + "fift": "REPEATEND\nREPEAT:", + "fift_examples": [], + "opcode": "E5", + "stack": "n - " + }, + "bytecode": { "tlb": "#E5", "prefix": "E5", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { + "branches": [ + { + "type": "special", + "name": "repeat", + "args": { + "count": "n", + "body": { "type": "cc" }, + "after": { "type": "register", "index": 0 } + } + } + ], + "nobranch": true + } + }, + { + "mnemonic": "UNTIL", + "since_version": 0, + "doc": { + "category": "cont_loops", + "description": "Executes continuation `c`, then pops an integer `x` from the resulting stack. If `x` is zero, performs another iteration of this loop. The actual implementation of this primitive involves an extraordinary continuation `ec_until` with its arguments set to the body of the loop (continuation `c`) and the original current continuation `cc`. This extraordinary continuation is then saved into the savelist of `c` as `c.c0` and the modified `c` is then executed. The other loop primitives are implemented similarly with the aid of suitable extraordinary continuations.", + "gas": "18", + "fift": "UNTIL", + "fift_examples": [ + { + "fift": "UNTIL:<{ code }> <{ code }>UNTIL", + "description": "Equivalent to `<{ code }> CONT` `UNTIL`." + } + ], + "opcode": "E6", + "stack": "c - " + }, + "bytecode": { "tlb": "#E6", "prefix": "E6", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Continuation"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { + "branches": [ + { + "type": "variable", + "var_name": "c", + "save": { + "c0": { + "type": "special", + "name": "until", + "args": { + "body": { "type": "variable", "var_name": "c" }, + "after": { + "type": "cc", + "save": { "c0": { "type": "register", "index": 0 } } + } + } + } + } + } + ], + "nobranch": false + } + }, + { + "mnemonic": "UNTILEND", + "since_version": 0, + "doc": { + "category": "cont_loops", + "description": "Similar to `UNTIL`, but executes the current continuation `cc` in a loop. When the loop exit condition is satisfied, performs a `RET`.", + "gas": "18", + "fift": "UNTILEND\nUNTIL:", + "fift_examples": [], + "opcode": "E7", + "stack": "-" + }, + "bytecode": { "tlb": "#E7", "prefix": "E7", "operands": [] }, + "value_flow": { + "inputs": { "stack": [], "registers": [] }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { + "branches": [ + { + "type": "cc", + "save": { + "c0": { + "type": "special", + "name": "until", + "args": { + "body": { "type": "cc" }, + "after": { "type": "register", "index": 0 } + } + } + } + } + ], + "nobranch": false + } + }, + { + "mnemonic": "WHILE", + "since_version": 0, + "doc": { + "category": "cont_loops", + "description": "Executes `c'` and pops an integer `x` from the resulting stack. If `x` is zero, exists the loop and transfers control to the original `cc`. If `x` is non-zero, executes `c`, and then begins a new iteration.", + "gas": "18", + "fift": "WHILE", + "fift_examples": [ + { + "fift": "WHILE:<{ cond }>DO<{ code }>", + "description": "Equivalent to `<{ cond }> CONT` `<{ code }> CONT` `WHILE`." + } + ], + "opcode": "E8", + "stack": "c' c - " + }, + "bytecode": { "tlb": "#E8", "prefix": "E8", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "c2", "value_types": ["Continuation"] }, + { "type": "simple", "name": "c", "value_types": ["Continuation"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { + "branches": [ + { + "type": "variable", + "var_name": "c2", + "save": { + "c0": { + "type": "special", + "name": "while", + "args": { + "cond": { "type": "variable", "var_name": "c2" }, + "body": { "type": "variable", "var_name": "c" }, + "after": { + "type": "cc", + "save": { "c0": { "type": "register", "index": 0 } } + } + } + } + } + } + ], + "nobranch": false + } + }, + { + "mnemonic": "WHILEEND", + "since_version": 0, + "doc": { + "category": "cont_loops", + "description": "Similar to `WHILE`, but uses the current continuation `cc` as the loop body.", + "gas": "18", + "fift": "WHILEEND", + "fift_examples": [], + "opcode": "E9", + "stack": "c' - " + }, + "bytecode": { "tlb": "#E9", "prefix": "E9", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "c2", "value_types": ["Continuation"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { + "branches": [ + { + "type": "variable", + "var_name": "c2", + "save": { + "c0": { + "type": "special", + "name": "while", + "args": { + "cond": { "type": "variable", "var_name": "c2" }, + "body": { "type": "cc" }, + "after": { "type": "register", "index": 0 } + } + } + } + } + ], + "nobranch": false + } + }, + { + "mnemonic": "AGAIN", + "since_version": 0, + "doc": { + "category": "cont_loops", + "description": "Similar to `REPEAT`, but executes `c` infinitely many times. A `RET` only begins a new iteration of the infinite loop, which can be exited only by an exception, or a `RETALT` (or an explicit `JMPX`).", + "gas": "18", + "fift": "AGAIN", + "fift_examples": [ + { + "fift": "AGAIN:<{ code }> <{ code }>AGAIN", + "description": "Equivalent to `<{ code }> CONT` `AGAIN`." + } + ], + "opcode": "EA", + "stack": "c - " + }, + "bytecode": { "tlb": "#EA", "prefix": "EA", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Continuation"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { + "branches": [ + { + "type": "special", + "name": "again", + "args": { "body": { "type": "variable", "var_name": "c" } } + } + ], + "nobranch": false + } + }, + { + "mnemonic": "AGAINEND", + "since_version": 0, + "doc": { + "category": "cont_loops", + "description": "Similar to `AGAIN`, but performed with respect to the current continuation `cc`.", + "gas": "18", + "fift": "AGAINEND\nAGAIN:", + "fift_examples": [], + "opcode": "EB", + "stack": "-" + }, + "bytecode": { "tlb": "#EB", "prefix": "EB", "operands": [] }, + "value_flow": { + "inputs": { "stack": [], "registers": [] }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { + "branches": [ + { + "type": "special", + "name": "again", + "args": { "body": { "type": "cc" } } + } + ], + "nobranch": false + } + }, + { + "mnemonic": "REPEATBRK", + "since_version": 0, + "doc": { + "category": "cont_loops", + "description": "Similar to `REPEAT`, but also sets `c1` to the original `cc` after saving the old value of `c1` into the savelist of the original `cc`. In this way `RETALT` could be used to break out of the loop body.", + "gas": "26", + "fift": "REPEATBRK", + "fift_examples": [ + { + "fift": "REPEATBRK:<{ code }> <{ code }>REPEATBRK", + "description": "Equivalent to `<{ code }> CONT` `REPEATBRK`." + } + ], + "opcode": "E314", + "stack": "n c -" + }, + "bytecode": { "tlb": "#E314", "prefix": "E314", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "n", "value_types": ["Integer"] }, + { "type": "simple", "name": "c", "value_types": ["Continuation"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { + "branches": [ + { + "type": "special", + "name": "repeat", + "args": { + "count": "n", + "body": { + "type": "variable", + "var_name": "c", + "save": { + "c1": { + "type": "cc", + "save": { + "c0": { "type": "register", "index": 0 }, + "c1": { "type": "register", "index": 1 } + } + } + } + }, + "after": { + "type": "cc", + "save": { + "c0": { "type": "register", "index": 0 }, + "c1": { "type": "register", "index": 1 } + } + } + } + } + ], + "nobranch": true + } + }, + { + "mnemonic": "REPEATENDBRK", + "since_version": 0, + "doc": { + "category": "cont_loops", + "description": "Similar to `REPEATEND`, but also sets `c1` to the original `c0` after saving the old value of `c1` into the savelist of the original `c0`. Equivalent to `SAMEALTSAVE` `REPEATEND`.", + "gas": "26", + "fift": "REPEATENDBRK", + "fift_examples": [], + "opcode": "E315", + "stack": "n -" + }, + "bytecode": { "tlb": "#E315", "prefix": "E315", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { + "branches": [ + { + "type": "special", + "name": "repeat", + "args": { + "count": "n", + "body": { + "type": "cc", + "save": { "c1": { "type": "register", "index": 0 } } + }, + "after": { "type": "register", "index": 0 } + } + } + ], + "nobranch": true + } + }, + { + "mnemonic": "UNTILBRK", + "since_version": 0, + "doc": { + "category": "cont_loops", + "description": "Similar to `UNTIL`, but also modifies `c1` in the same way as `REPEATBRK`.", + "gas": "26", + "fift": "UNTILBRK", + "fift_examples": [ + { + "fift": "UNTILBRK:<{ code }>", + "description": "Equivalent to `<{ code }> CONT` `UNTILBRK`." + } + ], + "opcode": "E316", + "stack": "c -" + }, + "bytecode": { "tlb": "#E316", "prefix": "E316", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Continuation"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { + "branches": [ + { + "type": "variable", + "var_name": "c", + "save": { + "c0": { + "type": "special", + "name": "until", + "args": { + "body": { + "type": "variable", + "var_name": "c", + "save": { + "c1": { + "type": "cc", + "save": { + "c0": { "type": "register", "index": 0 }, + "c1": { "type": "register", "index": 1 } + } + } + } + }, + "after": { + "type": "cc", + "save": { + "c0": { "type": "register", "index": 0 }, + "c1": { "type": "register", "index": 1 } + } + } + } + }, + "c1": { + "type": "cc", + "save": { + "c0": { "type": "register", "index": 0 }, + "c1": { "type": "register", "index": 1 } + } + } + } + } + ], + "nobranch": false + } + }, + { + "mnemonic": "UNTILENDBRK", + "since_version": 0, + "doc": { + "category": "cont_loops", + "description": "Equivalent to `SAMEALTSAVE` `UNTILEND`.", + "gas": "26", + "fift": "UNTILENDBRK\nUNTILBRK:", + "fift_examples": [], + "opcode": "E317", + "stack": "-" + }, + "bytecode": { "tlb": "#E317", "prefix": "E317", "operands": [] }, + "value_flow": { + "inputs": { "stack": [], "registers": [] }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { + "branches": [ + { + "type": "cc", + "save": { + "c0": { + "type": "special", + "name": "until", + "args": { + "body": { + "type": "cc", + "save": { "c1": { "type": "register", "index": 0 } } + }, + "after": { "type": "register", "index": 0 } + } + }, + "c1": { "type": "register", "index": 0 } + } + } + ], + "nobranch": false + } + }, + { + "mnemonic": "WHILEBRK", + "since_version": 0, + "doc": { + "category": "cont_loops", + "description": "Similar to `WHILE`, but also modifies `c1` in the same way as `REPEATBRK`.", + "gas": "26", + "fift": "WHILEBRK", + "fift_examples": [ + { + "fift": "WHILEBRK:<{ cond }>DO<{ code }>", + "description": "Equivalent to `<{ cond }> CONT` `<{ code }> CONT` `WHILEBRK`." + } + ], + "opcode": "E318", + "stack": "c' c -" + }, + "bytecode": { "tlb": "#E318", "prefix": "E318", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "c2", "value_types": ["Continuation"] }, + { "type": "simple", "name": "c", "value_types": ["Continuation"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { + "branches": [ + { + "type": "variable", + "var_name": "c2", + "save": { + "c0": { + "type": "special", + "name": "while", + "args": { + "cond": { "type": "variable", "var_name": "c2" }, + "body": { "type": "variable", "var_name": "c" }, + "after": { + "type": "cc", + "save": { + "c0": { "type": "register", "index": 0 }, + "c1": { "type": "register", "index": 1 } + } + } + } + } + } + } + ], + "nobranch": false + } + }, + { + "mnemonic": "WHILEENDBRK", + "since_version": 0, + "doc": { + "category": "cont_loops", + "description": "Equivalent to `SAMEALTSAVE` `WHILEEND`.", + "gas": "26", + "fift": "WHILEENDBRK", + "fift_examples": [], + "opcode": "E319", + "stack": "c -" + }, + "bytecode": { "tlb": "#E319", "prefix": "E319", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Continuation"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "AGAINBRK", + "since_version": 0, + "doc": { + "category": "cont_loops", + "description": "Similar to `AGAIN`, but also modifies `c1` in the same way as `REPEATBRK`.", + "gas": "26", + "fift": "AGAINBRK", + "fift_examples": [ + { + "fift": "AGAINBRK:<{ code }>", + "description": "Equivalent to `<{ code }> CONT` `AGAINBRK`." + } + ], + "opcode": "E31A", + "stack": "c -" + }, + "bytecode": { "tlb": "#E31A", "prefix": "E31A", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Continuation"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "AGAINENDBRK", + "since_version": 0, + "doc": { + "category": "cont_loops", + "description": "Equivalent to `SAMEALTSAVE` `AGAINEND`.", + "gas": "26", + "fift": "AGAINENDBRK\nAGAINBRK:", + "fift_examples": [], + "opcode": "E31B", + "stack": "-" + }, + "bytecode": { "tlb": "#E31B", "prefix": "E31B", "operands": [] }, + "value_flow": { + "inputs": { "stack": [], "registers": [] }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SETCONTARGS_N", + "since_version": 0, + "doc": { + "category": "cont_stack", + "description": "Pushes `0 <= r <= 15` values `x_1...x_r` into the stack of (a copy of) the continuation `c`, starting with `x_1`. When `n` is 15 (-1 in Fift notation), does nothing with `c.nargs`. For `0 <= n <= 14`, sets `c.nargs` to the final size of the stack of `c'` plus `n`. In other words, transforms `c` into a _closure_ or a _partially applied function_, with `0 <= n <= 14` arguments missing.", + "gas": "26+s''", + "fift": "[r] [n] SETCONTARGS", + "fift_examples": [], + "opcode": "ECrn", + "stack": "x_1 x_2...x_r c - c'" + }, + "bytecode": { + "tlb": "#EC r:uint4 n:uint4", + "prefix": "EC", + "operands": [ + { + "name": "r", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [] + }, + { + "name": "n", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [{ "type": "optional_nargs" }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { + "type": "array", + "name": "args", + "length_var": "r", + "array_entry": [{ "type": "simple", "name": "x" }] + }, + { "type": "simple", "name": "c", "value_types": ["Continuation"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "c2", "value_types": ["Continuation"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "RETURNARGS", + "since_version": 0, + "doc": { + "category": "cont_stack", + "description": "Leaves only the top `0 <= p <= 15` values in the current stack (somewhat similarly to `ONLYTOPX`), with all the unused bottom values not discarded, but saved into continuation `c0` in the same way as `SETCONTARGS` does.", + "gas": "26+s''", + "fift": "[p] RETURNARGS", + "fift_examples": [], + "opcode": "ED0p", + "stack": "-" + }, + "bytecode": { + "tlb": "#ED0 p:uint4", + "prefix": "ED0", + "operands": [ + { + "name": "p", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [] + } + ] + }, + "value_flow": { + "inputs": { "registers": [] }, + "outputs": { "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "RETURNVARARGS", + "since_version": 0, + "doc": { + "category": "cont_stack", + "description": "Similar to `RETURNARGS`, but with Integer `0 <= p <= 255` taken from the stack.", + "gas": "26+s''", + "fift": "RETURNVARARGS", + "fift_examples": [], + "opcode": "ED10", + "stack": "p -" + }, + "bytecode": { "tlb": "#ED10", "prefix": "ED10", "operands": [] }, + "value_flow": { + "inputs": { "registers": [] }, + "outputs": { "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SETCONTVARARGS", + "since_version": 0, + "doc": { + "category": "cont_stack", + "description": "Similar to `SETCONTARGS`, but with `0 <= r <= 255` and `-1 <= n <= 255` taken from the stack.", + "gas": "26+s''", + "fift": "SETCONTVARARGS", + "fift_examples": [], + "opcode": "ED11", + "stack": "x_1 x_2...x_r c r n - c'" + }, + "bytecode": { "tlb": "#ED11", "prefix": "ED11", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { + "type": "array", + "name": "args", + "length_var": "r", + "array_entry": [{ "type": "simple", "name": "x" }] + }, + { "type": "simple", "name": "c", "value_types": ["Continuation"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "c2", "value_types": ["Continuation"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SETNUMVARARGS", + "since_version": 0, + "doc": { + "category": "cont_stack", + "description": "`-1 <= n <= 255`\nIf `n=-1`, this operation does nothing (`c'=c`).\nOtherwise its action is similar to `[n] SETNUMARGS`, but with `n` taken from the stack.", + "gas": "26", + "fift": "SETNUMVARARGS", + "fift_examples": [], + "opcode": "ED12", + "stack": "c n - c'" + }, + "bytecode": { "tlb": "#ED12", "prefix": "ED12", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Continuation"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "c2", "value_types": ["Continuation"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "BLESS", + "since_version": 0, + "doc": { + "category": "cont_create", + "description": "Transforms a _Slice_ `s` into a simple ordinary continuation `c`, with `c.code=s` and an empty stack and savelist.", + "gas": "26", + "fift": "BLESS", + "fift_examples": [], + "opcode": "ED1E", + "stack": "s - c" + }, + "bytecode": { "tlb": "#ED1E", "prefix": "ED1E", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Continuation"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "BLESSVARARGS", + "since_version": 0, + "doc": { + "category": "cont_create", + "description": "Equivalent to `ROT` `BLESS` `ROTREV` `SETCONTVARARGS`.", + "gas": "26+s''", + "fift": "BLESSVARARGS", + "fift_examples": [], + "opcode": "ED1F", + "stack": "x_1...x_r s r n - c" + }, + "bytecode": { "tlb": "#ED1F", "prefix": "ED1F", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { + "type": "array", + "name": "args", + "length_var": "r", + "array_entry": [{ "type": "simple", "name": "x" }] + }, + { "type": "simple", "name": "s", "value_types": ["Slice"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Continuation"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "BLESSARGS", + "since_version": 0, + "doc": { + "category": "cont_create", + "description": "`0 <= r <= 15`, `-1 <= n <= 14`\nEquivalent to `BLESS` `[r] [n] SETCONTARGS`.\nThe value of `n` is represented inside the instruction by the 4-bit integer `n mod 16`.", + "gas": "26", + "fift": "[r] [n] BLESSARGS", + "fift_examples": [], + "opcode": "EErn", + "stack": "x_1...x_r s - c" + }, + "bytecode": { + "tlb": "#EE r:uint4 n:uint4", + "prefix": "EE", + "operands": [ + { + "name": "r", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [] + }, + { + "name": "n", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [{ "type": "optional_nargs" }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { + "type": "array", + "name": "args", + "length_var": "r", + "array_entry": [{ "type": "simple", "name": "x" }] + }, + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Continuation"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PUSHCTR", + "since_version": 0, + "doc": { + "category": "cont_registers", + "description": "Pushes the current value of control register `c(i)`. If the control register is not supported in the current codepage, or if it does not have a value, an exception is triggered.", + "gas": "26", + "fift": "c[i] PUSHCTR\nc[i] PUSH", + "fift_examples": [], + "opcode": "ED4i", + "stack": "- x" + }, + "bytecode": { + "tlb": "#ED4 i:uint4", + "prefix": "ED4", + "operands": [ + { + "name": "i", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [{ "type": "register" }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [], + "registers": [{ "type": "variable", "var_name": "i" }] + }, + "outputs": { + "stack": [{ "type": "simple", "name": "x" }], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "POPCTR", + "since_version": 0, + "doc": { + "category": "cont_registers", + "description": "Pops a value `x` from the stack and stores it into control register `c(i)`, if supported in the current codepage. Notice that if a control register accepts only values of a specific type, a type-checking exception may occur.", + "gas": "26", + "fift": "c[i] POPCTR\nc[i] POP", + "fift_examples": [], + "opcode": "ED5i", + "stack": "x - " + }, + "bytecode": { + "tlb": "#ED5 i:uint4", + "prefix": "ED5", + "operands": [ + { + "name": "i", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [{ "type": "register" }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [{ "type": "simple", "name": "x" }], + "registers": [] + }, + "outputs": { + "stack": [], + "registers": [{ "type": "variable", "var_name": "i" }] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SETCONTCTR", + "since_version": 0, + "doc": { + "category": "cont_registers", + "description": "Stores `x` into the savelist of continuation `c` as `c(i)`, and returns the resulting continuation `c'`. Almost all operations with continuations may be expressed in terms of `SETCONTCTR`, `POPCTR`, and `PUSHCTR`.", + "gas": "26", + "fift": "c[i] SETCONT\nc[i] SETCONTCTR", + "fift_examples": [], + "opcode": "ED6i", + "stack": "x c - c'" + }, + "bytecode": { + "tlb": "#ED6 i:uint4", + "prefix": "ED6", + "operands": [ + { + "name": "i", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [{ "type": "register" }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x" }, + { "type": "simple", "name": "c", "value_types": ["Continuation"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "c2", "value_types": ["Continuation"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SETRETCTR", + "since_version": 0, + "doc": { + "category": "cont_registers", + "description": "Equivalent to `c0 PUSHCTR` `c[i] SETCONTCTR` `c0 POPCTR`.", + "gas": "26", + "fift": "c[i] SETRETCTR", + "fift_examples": [], + "opcode": "ED7i", + "stack": "x - " + }, + "bytecode": { + "tlb": "#ED7 i:uint4", + "prefix": "ED7", + "operands": [ + { + "name": "i", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [{ "type": "register" }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [{ "type": "simple", "name": "x" }], + "registers": [{ "type": "constant", "index": 0 }] + }, + "outputs": { + "stack": [], + "registers": [{ "type": "constant", "index": 0 }] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SETALTCTR", + "since_version": 0, + "doc": { + "category": "cont_registers", + "description": "Equivalent to `c1 PUSHCTR` `c[i] SETCONTCTR` `c1 POPCTR`.", + "gas": "26", + "fift": "c[i] SETALTCTR", + "fift_examples": [], + "opcode": "ED8i", + "stack": "x - " + }, + "bytecode": { + "tlb": "#ED8 i:uint4", + "prefix": "ED8", + "operands": [ + { + "name": "i", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [{ "type": "register" }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [{ "type": "simple", "name": "x" }], + "registers": [{ "type": "constant", "index": 1 }] + }, + "outputs": { + "stack": [], + "registers": [{ "type": "constant", "index": 1 }] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "POPSAVE", + "since_version": 0, + "doc": { + "category": "cont_registers", + "description": "Similar to `c[i] POPCTR`, but also saves the old value of `c[i]` into continuation `c0`.\nEquivalent (up to exceptions) to `c[i] SAVECTR` `c[i] POPCTR`.", + "gas": "26", + "fift": "c[i] POPSAVE\nc[i] POPCTRSAVE", + "fift_examples": [], + "opcode": "ED9i", + "stack": "x -" + }, + "bytecode": { + "tlb": "#ED9 i:uint4", + "prefix": "ED9", + "operands": [ + { + "name": "i", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [{ "type": "register" }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [{ "type": "simple", "name": "x" }], + "registers": [ + { "type": "variable", "var_name": "i" }, + { "type": "constant", "index": 0 } + ] + }, + "outputs": { + "stack": [], + "registers": [{ "type": "constant", "index": 0 }] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SAVE", + "since_version": 0, + "doc": { + "category": "cont_registers", + "description": "Saves the current value of `c(i)` into the savelist of continuation `c0`. If an entry for `c[i]` is already present in the savelist of `c0`, nothing is done. Equivalent to `c[i] PUSHCTR` `c[i] SETRETCTR`.", + "gas": "26", + "fift": "c[i] SAVE\nc[i] SAVECTR", + "fift_examples": [], + "opcode": "EDAi", + "stack": "" + }, + "bytecode": { + "tlb": "#EDA i:uint4", + "prefix": "EDA", + "operands": [ + { + "name": "i", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [{ "type": "register" }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [], + "registers": [ + { "type": "variable", "var_name": "i" }, + { "type": "constant", "index": 0 } + ] + }, + "outputs": { + "stack": [], + "registers": [{ "type": "constant", "index": 0 }] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SAVEALT", + "since_version": 0, + "doc": { + "category": "cont_registers", + "description": "Similar to `c[i] SAVE`, but saves the current value of `c[i]` into the savelist of `c1`, not `c0`.", + "gas": "26", + "fift": "c[i] SAVEALT\nc[i] SAVEALTCTR", + "fift_examples": [], + "opcode": "EDBi", + "stack": "" + }, + "bytecode": { + "tlb": "#EDB i:uint4", + "prefix": "EDB", + "operands": [ + { + "name": "i", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [{ "type": "register" }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [], + "registers": [ + { "type": "variable", "var_name": "i" }, + { "type": "constant", "index": 1 } + ] + }, + "outputs": { + "stack": [], + "registers": [{ "type": "constant", "index": 1 }] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SAVEBOTH", + "since_version": 0, + "doc": { + "category": "cont_registers", + "description": "Equivalent to `c[i] SAVE` `c[i] SAVEALT`.", + "gas": "26", + "fift": "c[i] SAVEBOTH\nc[i] SAVEBOTHCTR", + "fift_examples": [], + "opcode": "EDCi", + "stack": "" + }, + "bytecode": { + "tlb": "#EDC i:uint4", + "prefix": "EDC", + "operands": [ + { + "name": "i", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [{ "type": "register" }] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [], + "registers": [ + { "type": "variable", "var_name": "i" }, + { "type": "constant", "index": 0 }, + { "type": "constant", "index": 1 } + ] + }, + "outputs": { + "stack": [], + "registers": [ + { "type": "constant", "index": 0 }, + { "type": "constant", "index": 1 } + ] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PUSHCTRX", + "since_version": 0, + "doc": { + "category": "cont_registers", + "description": "Similar to `c[i] PUSHCTR`, but with `i`, `0 <= i <= 255`, taken from the stack.\nNotice that this primitive is one of the few ''exotic'' primitives, which are not polymorphic like stack manipulation primitives, and at the same time do not have well-defined types of parameters and return values, because the type of `x` depends on `i`.", + "gas": "26", + "fift": "PUSHCTRX", + "fift_examples": [], + "opcode": "EDE0", + "stack": "i - x" + }, + "bytecode": { "tlb": "#EDE0", "prefix": "EDE0", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "i", "value_types": ["Integer"] } + ], + "registers": [{ "type": "variable", "var_name": "i" }] + }, + "outputs": { + "stack": [{ "type": "simple", "name": "x" }], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "POPCTRX", + "since_version": 0, + "doc": { + "category": "cont_registers", + "description": "Similar to `c[i] POPCTR`, but with `0 <= i <= 255` from the stack.", + "gas": "26", + "fift": "POPCTRX", + "fift_examples": [], + "opcode": "EDE1", + "stack": "x i - " + }, + "bytecode": { "tlb": "#EDE1", "prefix": "EDE1", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x" }, + { "type": "simple", "name": "i", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [], + "registers": [{ "type": "variable", "var_name": "i" }] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SETCONTCTRX", + "since_version": 0, + "doc": { + "category": "cont_registers", + "description": "Similar to `c[i] SETCONTCTR`, but with `0 <= i <= 255` from the stack.", + "gas": "26", + "fift": "SETCONTCTRX", + "fift_examples": [], + "opcode": "EDE2", + "stack": "x c i - c'" + }, + "bytecode": { "tlb": "#EDE2", "prefix": "EDE2", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x" }, + { "type": "simple", "name": "c", "value_types": ["Continuation"] }, + { "type": "simple", "name": "i", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "c2", "value_types": ["Continuation"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "COMPOS", + "since_version": 0, + "doc": { + "category": "cont_registers", + "description": "Computes the composition `compose0(c, c')`, which has the meaning of ''perform `c`, and, if successful, perform `c'`'' (if `c` is a boolean circuit) or simply ''perform `c`, then `c'`''. Equivalent to `SWAP` `c0 SETCONT`.", + "gas": "26", + "fift": "COMPOS\nBOOLAND", + "fift_examples": [], + "opcode": "EDF0", + "stack": "c c' - c''" + }, + "bytecode": { "tlb": "#EDF0", "prefix": "EDF0", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Continuation"] }, + { "type": "simple", "name": "c2", "value_types": ["Continuation"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "c3", "value_types": ["Continuation"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "COMPOSALT", + "since_version": 0, + "doc": { + "category": "cont_registers", + "description": "Computes the alternative composition `compose1(c, c')`, which has the meaning of ''perform `c`, and, if not successful, perform `c'`'' (if `c` is a boolean circuit). Equivalent to `SWAP` `c1 SETCONT`.", + "gas": "26", + "fift": "COMPOSALT\nBOOLOR", + "fift_examples": [], + "opcode": "EDF1", + "stack": "c c' - c''" + }, + "bytecode": { "tlb": "#EDF1", "prefix": "EDF1", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Continuation"] }, + { "type": "simple", "name": "c2", "value_types": ["Continuation"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "c3", "value_types": ["Continuation"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "COMPOSBOTH", + "since_version": 0, + "doc": { + "category": "cont_registers", + "description": "Computes composition `compose1(compose0(c, c'), c')`, which has the meaning of ''compute boolean circuit `c`, then compute `c'`, regardless of the result of `c`''.", + "gas": "26", + "fift": "COMPOSBOTH", + "fift_examples": [], + "opcode": "EDF2", + "stack": "c c' - c''" + }, + "bytecode": { "tlb": "#EDF2", "prefix": "EDF2", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Continuation"] }, + { "type": "simple", "name": "c2", "value_types": ["Continuation"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "c3", "value_types": ["Continuation"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "ATEXIT", + "since_version": 0, + "doc": { + "category": "cont_registers", + "description": "Sets `c0` to `compose0(c, c0)`. In other words, `c` will be executed before exiting current subroutine.", + "gas": "26", + "fift": "ATEXIT", + "fift_examples": [ + { + "fift": "ATEXIT:<{ code }> <{ code }>ATEXIT", + "description": "Equivalent to `<{ code }> CONT` `ATEXIT`." + } + ], + "opcode": "EDF3", + "stack": "c - " + }, + "bytecode": { "tlb": "#EDF3", "prefix": "EDF3", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Continuation"] } + ], + "registers": [{ "type": "constant", "index": 0 }] + }, + "outputs": { + "stack": [], + "registers": [{ "type": "constant", "index": 0 }] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "ATEXITALT", + "since_version": 0, + "doc": { + "category": "cont_registers", + "description": "Sets `c1` to `compose1(c, c1)`. In other words, `c` will be executed before exiting current subroutine by its alternative return path.", + "gas": "26", + "fift": "ATEXITALT", + "fift_examples": [ + { + "fift": "ATEXITALT:<{ code }> <{ code }>ATEXITALT", + "description": "Equivalent to `<{ code }> CONT` `ATEXITALT`." + } + ], + "opcode": "EDF4", + "stack": "c - " + }, + "bytecode": { "tlb": "#EDF4", "prefix": "EDF4", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Continuation"] } + ], + "registers": [{ "type": "constant", "index": 1 }] + }, + "outputs": { + "stack": [], + "registers": [{ "type": "constant", "index": 1 }] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SETEXITALT", + "since_version": 0, + "doc": { + "category": "cont_registers", + "description": "Sets `c1` to `compose1(compose0(c, c0), c1)`,\nIn this way, a subsequent `RETALT` will first execute `c`, then transfer control to the original `c0`. This can be used, for instance, to exit from nested loops.", + "gas": "26", + "fift": "SETEXITALT", + "fift_examples": [], + "opcode": "EDF5", + "stack": "c - " + }, + "bytecode": { "tlb": "#EDF5", "prefix": "EDF5", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Continuation"] } + ], + "registers": [ + { "type": "constant", "index": 0 }, + { "type": "constant", "index": 1 } + ] + }, + "outputs": { + "stack": [], + "registers": [{ "type": "constant", "index": 1 }] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "THENRET", + "since_version": 0, + "doc": { + "category": "cont_registers", + "description": "Computes `compose0(c, c0)`.", + "gas": "26", + "fift": "THENRET", + "fift_examples": [], + "opcode": "EDF6", + "stack": "c - c'" + }, + "bytecode": { "tlb": "#EDF6", "prefix": "EDF6", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Continuation"] } + ], + "registers": [{ "type": "constant", "index": 0 }] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "c2", "value_types": ["Continuation"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "THENRETALT", + "since_version": 0, + "doc": { + "category": "cont_registers", + "description": "Computes `compose0(c, c1)`", + "gas": "26", + "fift": "THENRETALT", + "fift_examples": [], + "opcode": "EDF7", + "stack": "c - c'" + }, + "bytecode": { "tlb": "#EDF7", "prefix": "EDF7", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Continuation"] } + ], + "registers": [{ "type": "constant", "index": 1 }] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "c2", "value_types": ["Continuation"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "INVERT", + "since_version": 0, + "doc": { + "category": "cont_registers", + "description": "Interchanges `c0` and `c1`.", + "gas": "26", + "fift": "INVERT", + "fift_examples": [], + "opcode": "EDF8", + "stack": "-" + }, + "bytecode": { "tlb": "#EDF8", "prefix": "EDF8", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [], + "registers": [ + { "type": "constant", "index": 0 }, + { "type": "constant", "index": 1 } + ] + }, + "outputs": { + "stack": [], + "registers": [ + { "type": "constant", "index": 0 }, + { "type": "constant", "index": 1 } + ] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "BOOLEVAL", + "since_version": 0, + "doc": { + "category": "cont_registers", + "description": "Performs `cc:=compose1(compose0(c, compose0(-1 PUSHINT, cc)), compose0(0 PUSHINT, cc))`. If `c` represents a boolean circuit, the net effect is to evaluate it and push either `-1` or `0` into the stack before continuing.", + "gas": "26", + "fift": "BOOLEVAL", + "fift_examples": [], + "opcode": "EDF9", + "stack": "c - ?" + }, + "bytecode": { "tlb": "#EDF9", "prefix": "EDF9", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Continuation"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { + "branches": [ + { + "type": "variable", + "var_name": "c", + "save": { + "c0": { + "type": "special", + "name": "pushint", + "args": { + "next": { + "type": "cc", + "save": { + "c0": { "type": "register", "index": 0 }, + "c1": { "type": "register", "index": 1 } + } + }, + "value": -1 + } + }, + "c1": { + "type": "special", + "name": "pushint", + "args": { + "next": { + "type": "cc", + "save": { + "c0": { "type": "register", "index": 0 }, + "c1": { "type": "register", "index": 1 } + } + }, + "value": 0 + } + } + } + } + ], + "nobranch": false + } + }, + { + "mnemonic": "SAMEALT", + "since_version": 0, + "doc": { + "category": "cont_registers", + "description": "Sets `c1` to `c0`. Equivalent to `c0 PUSHCTR` `c1 POPCTR`.", + "gas": "26", + "fift": "SAMEALT", + "fift_examples": [], + "opcode": "EDFA", + "stack": "-" + }, + "bytecode": { "tlb": "#EDFA", "prefix": "EDFA", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [], + "registers": [{ "type": "constant", "index": 0 }] + }, + "outputs": { + "stack": [], + "registers": [{ "type": "constant", "index": 1 }] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SAMEALTSAVE", + "since_version": 0, + "doc": { + "category": "cont_registers", + "description": "Sets `c1` to `c0`, but first saves the old value of `c1` into the savelist of `c0`.\nEquivalent to `c1 SAVE` `SAMEALT`.", + "gas": "26", + "fift": "SAMEALTSAVE", + "fift_examples": [], + "opcode": "EDFB", + "stack": "-" + }, + "bytecode": { "tlb": "#EDFB", "prefix": "EDFB", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [], + "registers": [ + { "type": "constant", "index": 0 }, + { "type": "constant", "index": 1 } + ] + }, + "outputs": { + "stack": [], + "registers": [ + { "type": "constant", "index": 0 }, + { "type": "constant", "index": 1 } + ] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "CALLDICT", + "since_version": 0, + "doc": { + "category": "cont_dict", + "description": "Calls the continuation in `c3`, pushing integer `0 <= nn <= 255` into its stack as an argument.\nApproximately equivalent to `[nn] PUSHINT` `c3 PUSHCTR` `EXECUTE`.", + "gas": "", + "fift": "[nn] CALL\n[nn] CALLDICT", + "fift_examples": [], + "opcode": "F0nn", + "stack": "- nn" + }, + "bytecode": { + "tlb": "#F0 n:uint8", + "prefix": "F0", + "operands": [ + { + "name": "n", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 255, + "display_hints": [] + } + ] + }, + "value_flow": { + "inputs": { "stack": [], "registers": [] }, + "outputs": { + "stack": [ + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { + "branches": [ + { + "type": "register", + "index": 3, + "save": { + "c0": { + "type": "cc", + "save": { "c0": { "type": "register", "index": 0 } } + } + } + } + ], + "nobranch": false + } + }, + { + "mnemonic": "CALLDICT_LONG", + "since_version": 0, + "doc": { + "category": "cont_dict", + "description": "For `0 <= n < 2^14`, an encoding of `[n] CALL` for larger values of `n`.", + "gas": "", + "fift": "[n] CALL\n[n] CALLDICT", + "fift_examples": [], + "opcode": "F12_n", + "stack": "- n" + }, + "bytecode": { + "tlb": "#F12_ n:uint14", + "prefix": "F12_", + "operands": [ + { + "name": "n", + "type": "uint", + "size": 14, + "min_value": 0, + "max_value": 16383, + "display_hints": [] + } + ] + }, + "value_flow": { + "inputs": { "stack": [], "registers": [] }, + "outputs": { + "stack": [ + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { + "branches": [ + { + "type": "register", + "index": 3, + "save": { + "c0": { + "type": "cc", + "save": { "c0": { "type": "register", "index": 0 } } + } + } + } + ], + "nobranch": false + } + }, + { + "mnemonic": "JMPDICT", + "since_version": 0, + "doc": { + "category": "cont_dict", + "description": "Jumps to the continuation in `c3`, pushing integer `0 <= n < 2^14` as its argument.\nApproximately equivalent to `n PUSHINT` `c3 PUSHCTR` `JMPX`.", + "gas": "", + "fift": "[n] JMP", + "fift_examples": [], + "opcode": "F16_n", + "stack": " - n" + }, + "bytecode": { + "tlb": "#F16_ n:uint14", + "prefix": "F16_", + "operands": [ + { + "name": "n", + "type": "uint", + "size": 14, + "min_value": 0, + "max_value": 16383, + "display_hints": [] + } + ] + }, + "value_flow": { + "inputs": { "stack": [], "registers": [] }, + "outputs": { + "stack": [ + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { + "branches": [{ "type": "register", "index": 3 }], + "nobranch": false + } + }, + { + "mnemonic": "PREPAREDICT", + "since_version": 0, + "doc": { + "category": "cont_dict", + "description": "Equivalent to `n PUSHINT` `c3 PUSHCTR`, for `0 <= n < 2^14`.\nIn this way, `[n] CALL` is approximately equivalent to `[n] PREPARE` `EXECUTE`, and `[n] JMP` is approximately equivalent to `[n] PREPARE` `JMPX`.\nOne might use, for instance, `CALLXARGS` or `CALLCC` instead of `EXECUTE` here.", + "gas": "", + "fift": "[n] PREPARE\n[n] PREPAREDICT", + "fift_examples": [], + "opcode": "F1A_n", + "stack": " - n c" + }, + "bytecode": { + "tlb": "#F1A_ n:uint14", + "prefix": "F1A_", + "operands": [ + { + "name": "n", + "type": "uint", + "size": 14, + "min_value": 0, + "max_value": 16383, + "display_hints": [] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [], + "registers": [{ "type": "constant", "index": 3 }] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "n", "value_types": ["Integer"] }, + { "type": "simple", "name": "c", "value_types": ["Continuation"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "THROW_SHORT", + "since_version": 0, + "doc": { + "category": "exceptions", + "description": "Throws exception `0 <= n <= 63` with parameter zero.\nIn other words, it transfers control to the continuation in `c2`, pushing `0` and `n` into its stack, and discarding the old stack altogether.", + "gas": "76", + "fift": "[n] THROW", + "fift_examples": [], + "opcode": "F22_n", + "stack": " - 0 n" + }, + "bytecode": { + "tlb": "#F22_ n:uint6", + "prefix": "F22_", + "operands": [ + { + "name": "n", + "type": "uint", + "size": 6, + "min_value": 0, + "max_value": 63, + "display_hints": [] + } + ] + }, + "value_flow": { + "inputs": { "stack": [], "registers": [] }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": false } + }, + { + "mnemonic": "THROWIF_SHORT", + "since_version": 0, + "doc": { + "category": "exceptions", + "description": "Throws exception `0 <= n <= 63` with parameter zero only if integer `f!=0`.", + "gas": "26/76", + "fift": "[n] THROWIF", + "fift_examples": [], + "opcode": "F26_n", + "stack": "f - " + }, + "bytecode": { + "tlb": "#F26_ n:uint6", + "prefix": "F26_", + "operands": [ + { + "name": "n", + "type": "uint", + "size": 6, + "min_value": 0, + "max_value": 63, + "display_hints": [] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "f", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "THROWIFNOT_SHORT", + "since_version": 0, + "doc": { + "category": "exceptions", + "description": "Throws exception `0 <= n <= 63` with parameter zero only if integer `f=0`.", + "gas": "26/76", + "fift": "[n] THROWIFNOT", + "fift_examples": [], + "opcode": "F2A_n", + "stack": "f - " + }, + "bytecode": { + "tlb": "#F2A_ n:uint6", + "prefix": "F2A_", + "operands": [ + { + "name": "n", + "type": "uint", + "size": 6, + "min_value": 0, + "max_value": 63, + "display_hints": [] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "f", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "THROW", + "since_version": 0, + "doc": { + "category": "exceptions", + "description": "For `0 <= n < 2^11`, an encoding of `[n] THROW` for larger values of `n`.", + "gas": "84", + "fift": "[n] THROW", + "fift_examples": [], + "opcode": "F2C4_n", + "stack": "- 0 nn" + }, + "bytecode": { + "tlb": "#F2C4_ n:uint11", + "prefix": "F2C4_", + "operands": [ + { + "name": "n", + "type": "uint", + "size": 11, + "min_value": 0, + "max_value": 2047, + "display_hints": [] + } + ] + }, + "value_flow": { + "inputs": { "stack": [], "registers": [] }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": false } + }, + { + "mnemonic": "THROWARG", + "since_version": 0, + "doc": { + "category": "exceptions", + "description": "Throws exception `0 <= n < 2^11` with parameter `x`, by copying `x` and `n` into the stack of `c2` and transferring control to `c2`.", + "gas": "84", + "fift": "[n] THROWARG", + "fift_examples": [], + "opcode": "F2CC_n", + "stack": "x - x nn" + }, + "bytecode": { + "tlb": "#F2CC_ n:uint11", + "prefix": "F2CC_", + "operands": [ + { + "name": "n", + "type": "uint", + "size": 11, + "min_value": 0, + "max_value": 2047, + "display_hints": [] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [{ "type": "simple", "name": "x" }], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": false } + }, + { + "mnemonic": "THROWIF", + "since_version": 0, + "doc": { + "category": "exceptions", + "description": "For `0 <= n < 2^11`, an encoding of `[n] THROWIF` for larger values of `n`.", + "gas": "34/84", + "fift": "[n] THROWIF", + "fift_examples": [], + "opcode": "F2D4_n", + "stack": "f - " + }, + "bytecode": { + "tlb": "#F2D4_ n:uint11", + "prefix": "F2D4_", + "operands": [ + { + "name": "n", + "type": "uint", + "size": 11, + "min_value": 0, + "max_value": 2047, + "display_hints": [] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "f", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "THROWARGIF", + "since_version": 0, + "doc": { + "category": "exceptions", + "description": "Throws exception `0 <= nn < 2^11` with parameter `x` only if integer `f!=0`.", + "gas": "34/84", + "fift": "[n] THROWARGIF", + "fift_examples": [], + "opcode": "F2DC_n", + "stack": "x f - " + }, + "bytecode": { + "tlb": "#F2DC_ n:uint11", + "prefix": "F2DC_", + "operands": [ + { + "name": "n", + "type": "uint", + "size": 11, + "min_value": 0, + "max_value": 2047, + "display_hints": [] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x" }, + { "type": "simple", "name": "f", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "THROWIFNOT", + "since_version": 0, + "doc": { + "category": "exceptions", + "description": "For `0 <= n < 2^11`, an encoding of `[n] THROWIFNOT` for larger values of `n`.", + "gas": "34/84", + "fift": "[n] THROWIFNOT", + "fift_examples": [], + "opcode": "F2E4_n", + "stack": "f - " + }, + "bytecode": { + "tlb": "#F2E4_ n:uint11", + "prefix": "F2E4_", + "operands": [ + { + "name": "n", + "type": "uint", + "size": 11, + "min_value": 0, + "max_value": 2047, + "display_hints": [] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "f", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "THROWARGIFNOT", + "since_version": 0, + "doc": { + "category": "exceptions", + "description": "Throws exception `0 <= n < 2^11` with parameter `x` only if integer `f=0`.", + "gas": "34/84", + "fift": "[n] THROWARGIFNOT", + "fift_examples": [], + "opcode": "F2EC_n", + "stack": "x f - " + }, + "bytecode": { + "tlb": "#F2EC_ n:uint11", + "prefix": "F2EC_", + "operands": [ + { + "name": "n", + "type": "uint", + "size": 11, + "min_value": 0, + "max_value": 2047, + "display_hints": [] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x" }, + { "type": "simple", "name": "f", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "THROWANY", + "since_version": 0, + "doc": { + "category": "exceptions", + "description": "Throws exception `0 <= n < 2^16` with parameter zero.\nApproximately equivalent to `ZERO` `SWAP` `THROWARGANY`.", + "gas": "76", + "fift": "THROWANY", + "fift_examples": [], + "opcode": "F2F0", + "stack": "n - 0 n" + }, + "bytecode": { "tlb": "#F2F0", "prefix": "F2F0", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": false } + }, + { + "mnemonic": "THROWARGANY", + "since_version": 0, + "doc": { + "category": "exceptions", + "description": "Throws exception `0 <= n < 2^16` with parameter `x`, transferring control to the continuation in `c2`.\nApproximately equivalent to `c2 PUSHCTR` `2 JMPXARGS`.", + "gas": "76", + "fift": "THROWARGANY", + "fift_examples": [], + "opcode": "F2F1", + "stack": "x n - x n" + }, + "bytecode": { "tlb": "#F2F1", "prefix": "F2F1", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x" }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": false } + }, + { + "mnemonic": "THROWANYIF", + "since_version": 0, + "doc": { + "category": "exceptions", + "description": "Throws exception `0 <= n < 2^16` with parameter zero only if `f!=0`.", + "gas": "26/76", + "fift": "THROWANYIF", + "fift_examples": [], + "opcode": "F2F2", + "stack": "n f - " + }, + "bytecode": { "tlb": "#F2F2", "prefix": "F2F2", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "n", "value_types": ["Integer"] }, + { "type": "simple", "name": "f", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "THROWARGANYIF", + "since_version": 0, + "doc": { + "category": "exceptions", + "description": "Throws exception `0 <= n<2^16` with parameter `x` only if `f!=0`.", + "gas": "26/76", + "fift": "THROWARGANYIF", + "fift_examples": [], + "opcode": "F2F3", + "stack": "x n f - " + }, + "bytecode": { "tlb": "#F2F3", "prefix": "F2F3", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x" }, + { "type": "simple", "name": "n", "value_types": ["Integer"] }, + { "type": "simple", "name": "f", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "THROWANYIFNOT", + "since_version": 0, + "doc": { + "category": "exceptions", + "description": "Throws exception `0 <= n<2^16` with parameter zero only if `f=0`.", + "gas": "26/76", + "fift": "THROWANYIFNOT", + "fift_examples": [], + "opcode": "F2F4", + "stack": "n f - " + }, + "bytecode": { "tlb": "#F2F4", "prefix": "F2F4", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "n", "value_types": ["Integer"] }, + { "type": "simple", "name": "f", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "THROWARGANYIFNOT", + "since_version": 0, + "doc": { + "category": "exceptions", + "description": "Throws exception `0 <= n<2^16` with parameter `x` only if `f=0`.", + "gas": "26/76", + "fift": "THROWARGANYIFNOT", + "fift_examples": [], + "opcode": "F2F5", + "stack": "x n f - " + }, + "bytecode": { "tlb": "#F2F5", "prefix": "F2F5", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x" }, + { "type": "simple", "name": "n", "value_types": ["Integer"] }, + { "type": "simple", "name": "f", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "TRY", + "since_version": 0, + "doc": { + "category": "exceptions", + "description": "Sets `c2` to `c'`, first saving the old value of `c2` both into the savelist of `c'` and into the savelist of the current continuation, which is stored into `c.c0` and `c'.c0`. Then runs `c` similarly to `EXECUTE`. If `c` does not throw any exceptions, the original value of `c2` is automatically restored on return from `c`. If an exception occurs, the execution is transferred to `c'`, but the original value of `c2` is restored in the process, so that `c'` can re-throw the exception by `THROWANY` if it cannot handle it by itself.", + "gas": "26", + "fift": "TRY", + "fift_examples": [ + { + "fift": "TRY:<{ code1 }>CATCH<{ code2 }>", + "description": "Equivalent to `<{ code1 }> CONT` `<{ code2 }> CONT` `TRY`." + } + ], + "opcode": "F2FF", + "stack": "c c' - " + }, + "bytecode": { "tlb": "#F2FF", "prefix": "F2FF", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Continuation"] }, + { "type": "simple", "name": "c2", "value_types": ["Continuation"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { + "branches": [ + { + "type": "variable", + "var_name": "c", + "save": { + "c0": { + "type": "cc", + "save": { + "c0": { "type": "register", "index": 0 }, + "c1": { "type": "register", "index": 1 }, + "c2": { "type": "register", "index": 2 } + } + }, + "c2": { + "type": "variable", + "var_name": "c2", + "save": { + "c0": { + "type": "cc", + "save": { + "c0": { "type": "register", "index": 0 }, + "c1": { "type": "register", "index": 1 }, + "c2": { "type": "register", "index": 2 } + } + }, + "c2": { "type": "register", "index": 2 } + } + } + } + } + ], + "nobranch": false + } + }, + { + "mnemonic": "TRYARGS", + "since_version": 0, + "doc": { + "category": "exceptions", + "description": "Similar to `TRY`, but with `[p] [r] CALLXARGS` internally used instead of `EXECUTE`.\nIn this way, all but the top `0 <= p <= 15` stack elements will be saved into current continuation's stack, and then restored upon return from either `c` or `c'`, with the top `0 <= r <= 15` values of the resulting stack of `c` or `c'` copied as return values.", + "gas": "26", + "fift": "[p] [r] TRYARGS", + "fift_examples": [], + "opcode": "F3pr", + "stack": "c c' - " + }, + "bytecode": { + "tlb": "#F3 p:uint4 r:uint4", + "prefix": "F3", + "operands": [ + { + "name": "p", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [] + }, + { + "name": "r", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [ + { + "type": "array", + "name": "args", + "length_var": "r", + "array_entry": [{ "type": "simple", "name": "arg" }] + }, + { "type": "simple", "name": "c", "value_types": ["Continuation"] }, + { "type": "simple", "name": "c2", "value_types": ["Continuation"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { + "branches": [ + { + "type": "variable", + "var_name": "c", + "save": { + "c0": { + "type": "cc", + "save": { + "c0": { "type": "register", "index": 0 }, + "c1": { "type": "register", "index": 1 }, + "c2": { "type": "register", "index": 2 } + } + }, + "c2": { + "type": "variable", + "var_name": "c2", + "save": { + "c0": { + "type": "cc", + "save": { + "c0": { "type": "register", "index": 0 }, + "c1": { "type": "register", "index": 1 }, + "c2": { "type": "register", "index": 2 } + } + }, + "c2": { "type": "register", "index": 2 } + } + } + } + } + ], + "nobranch": false + } + }, + { + "mnemonic": "STDICT", + "since_version": 0, + "doc": { + "category": "dict_serial", + "description": "Stores dictionary `D` into _Builder_ `b`, returing the resulting _Builder_ `b'`.\nIn other words, if `D` is a cell, performs `STONE` and `STREF`; if `D` is _Null_, performs `NIP` and `STZERO`; otherwise throws a type checking exception.", + "gas": "26", + "fift": "STDICT\nSTOPTREF", + "fift_examples": [], + "opcode": "F400", + "stack": "D b - b'" + }, + "bytecode": { "tlb": "#F400", "prefix": "F400", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "b", "value_types": ["Builder"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "b2", "value_types": ["Builder"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SKIPDICT", + "since_version": 0, + "doc": { + "category": "dict_serial", + "description": "Equivalent to `LDDICT` `NIP`.", + "gas": "26", + "fift": "SKIPDICT\nSKIPOPTREF", + "fift_examples": [], + "opcode": "F401", + "stack": "s - s'" + }, + "bytecode": { "tlb": "#F401", "prefix": "F401", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "s2", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LDDICTS", + "since_version": 0, + "doc": { + "category": "dict_serial", + "description": "Loads (parses) a (_Slice_-represented) dictionary `s'` from _Slice_ `s`, and returns the remainder of `s` as `s''`.\nThis is a ''split function'' for all `HashmapE(n,X)` dictionary types.", + "gas": "26", + "fift": "LDDICTS", + "fift_examples": [], + "opcode": "F402", + "stack": "s - s' s''" + }, + "bytecode": { "tlb": "#F402", "prefix": "F402", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "s2", "value_types": ["Slice"] }, + { "type": "simple", "name": "s3", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PLDDICTS", + "since_version": 0, + "doc": { + "category": "dict_serial", + "description": "Preloads a (_Slice_-represented) dictionary `s'` from _Slice_ `s`.\nApproximately equivalent to `LDDICTS` `DROP`.", + "gas": "26", + "fift": "PLDDICTS", + "fift_examples": [], + "opcode": "F403", + "stack": "s - s'" + }, + "bytecode": { "tlb": "#F403", "prefix": "F403", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "s2", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LDDICT", + "since_version": 0, + "doc": { + "category": "dict_serial", + "description": "Loads (parses) a dictionary `D` from _Slice_ `s`, and returns the remainder of `s` as `s'`. May be applied to dictionaries or to values of arbitrary `(^Y)?` types.", + "gas": "26", + "fift": "LDDICT\nLDOPTREF", + "fift_examples": [], + "opcode": "F404", + "stack": "s - D s'" + }, + "bytecode": { "tlb": "#F404", "prefix": "F404", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "s2", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PLDDICT", + "since_version": 0, + "doc": { + "category": "dict_serial", + "description": "Preloads a dictionary `D` from _Slice_ `s`.\nApproximately equivalent to `LDDICT` `DROP`.", + "gas": "26", + "fift": "PLDDICT\nPLDOPTREF", + "fift_examples": [], + "opcode": "F405", + "stack": "s - D" + }, + "bytecode": { "tlb": "#F405", "prefix": "F405", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LDDICTQ", + "since_version": 0, + "doc": { + "category": "dict_serial", + "description": "A quiet version of `LDDICT`.", + "gas": "26", + "fift": "LDDICTQ", + "fift_examples": [], + "opcode": "F406", + "stack": "s - D s' -1 or s 0" + }, + "bytecode": { "tlb": "#F406", "prefix": "F406", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { + "type": "simple", + "name": "s", + "value_types": ["Integer"] + } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "D", + "value_types": ["Slice", "Null"] + }, + { "type": "simple", "name": "s2", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PLDDICTQ", + "since_version": 0, + "doc": { + "category": "dict_serial", + "description": "A quiet version of `PLDDICT`.", + "gas": "26", + "fift": "PLDDICTQ", + "fift_examples": [], + "opcode": "F407", + "stack": "s - D -1 or 0" + }, + "bytecode": { "tlb": "#F407", "prefix": "F407", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { "value": 0, "stack": [] }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "D", + "value_types": ["Slice", "Null"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTGET", + "since_version": 0, + "doc": { + "category": "dict_get", + "description": "Looks up key `k` (represented by a _Slice_, the first `0 <= n <= 1023` data bits of which are used as a key) in dictionary `D` of type `HashmapE(n,X)` with `n`-bit keys.\nOn success, returns the value found as a _Slice_ `x`.", + "gas": "", + "fift": "DICTGET", + "fift_examples": [], + "opcode": "F40A", + "stack": "k D n - x -1 or 0" + }, + "bytecode": { "tlb": "#F40A", "prefix": "F40A", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "k", "value_types": ["Slice"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { "value": 0, "stack": [] }, + { + "value": -1, + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTGETREF", + "since_version": 0, + "doc": { + "category": "dict_get", + "description": "Similar to `DICTGET`, but with a `LDREF` `ENDS` applied to `x` on success.\nThis operation is useful for dictionaries of type `HashmapE(n,^Y)`.", + "gas": "", + "fift": "DICTGETREF", + "fift_examples": [], + "opcode": "F40B", + "stack": "k D n - c -1 or 0" + }, + "bytecode": { "tlb": "#F40B", "prefix": "F40B", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "k", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { "value": 0, "stack": [] }, + { + "value": -1, + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Cell"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTIGET", + "since_version": 0, + "doc": { + "category": "dict_get", + "description": "Similar to `DICTGET`, but with a signed (big-endian) `n`-bit _Integer_ `i` as a key. If `i` does not fit into `n` bits, returns `0`. If `i` is a `NaN`, throws an integer overflow exception.", + "gas": "", + "fift": "DICTIGET", + "fift_examples": [], + "opcode": "F40C", + "stack": "i D n - x -1 or 0" + }, + "bytecode": { "tlb": "#F40C", "prefix": "F40C", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Cell", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { "value": 0, "stack": [] }, + { + "value": -1, + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTIGETREF", + "since_version": 0, + "doc": { + "category": "dict_get", + "description": "Combines `DICTIGET` with `DICTGETREF`: it uses signed `n`-bit _Integer_ `i` as a key and returns a _Cell_ instead of a _Slice_ on success.", + "gas": "", + "fift": "DICTIGETREF", + "fift_examples": [], + "opcode": "F40D", + "stack": "i D n - c -1 or 0" + }, + "bytecode": { "tlb": "#F40D", "prefix": "F40D", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Cell", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { "value": 0, "stack": [] }, + { + "value": -1, + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Cell"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTUGET", + "since_version": 0, + "doc": { + "category": "dict_get", + "description": "Similar to `DICTIGET`, but with _unsigned_ (big-endian) `n`-bit _Integer_ `i` used as a key.", + "gas": "", + "fift": "DICTUGET", + "fift_examples": [], + "opcode": "F40E", + "stack": "i D n - x -1 or 0" + }, + "bytecode": { "tlb": "#F40E", "prefix": "F40E", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Cell", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { "value": 0, "stack": [] }, + { + "value": -1, + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTUGETREF", + "since_version": 0, + "doc": { + "category": "dict_get", + "description": "Similar to `DICTIGETREF`, but with an unsigned `n`-bit _Integer_ key `i`.", + "gas": "", + "fift": "DICTUGETREF", + "fift_examples": [], + "opcode": "F40F", + "stack": "i D n - c -1 or 0" + }, + "bytecode": { "tlb": "#F40F", "prefix": "F40F", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Cell", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { "value": 0, "stack": [] }, + { + "value": -1, + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Cell"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTSET", + "since_version": 0, + "doc": { + "category": "dict_set", + "description": "Sets the value associated with `n`-bit key `k` (represented by a _Slice_ as in `DICTGET`) in dictionary `D` (also represented by a _Slice_) to value `x` (again a _Slice_), and returns the resulting dictionary as `D'`.", + "gas": "", + "fift": "DICTSET", + "fift_examples": [], + "opcode": "F412", + "stack": "x k D n - D'" + }, + "bytecode": { "tlb": "#F412", "prefix": "F412", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Slice"] }, + { "type": "simple", "name": "k", "value_types": ["Slice"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "D2", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTSETREF", + "since_version": 0, + "doc": { + "category": "dict_set", + "description": "Similar to `DICTSET`, but with the value set to a reference to _Cell_ `c`.", + "gas": "", + "fift": "DICTSETREF", + "fift_examples": [], + "opcode": "F413", + "stack": "c k D n - D'" + }, + "bytecode": { "tlb": "#F413", "prefix": "F413", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Cell"] }, + { "type": "simple", "name": "k", "value_types": ["Slice"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "D2", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTISET", + "since_version": 0, + "doc": { + "category": "dict_set", + "description": "Similar to `DICTSET`, but with the key represented by a (big-endian) signed `n`-bit integer `i`. If `i` does not fit into `n` bits, a range check exception is generated.", + "gas": "", + "fift": "DICTISET", + "fift_examples": [], + "opcode": "F414", + "stack": "x i D n - D'" + }, + "bytecode": { "tlb": "#F414", "prefix": "F414", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Slice"] }, + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "D2", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTISETREF", + "since_version": 0, + "doc": { + "category": "dict_set", + "description": "Similar to `DICTSETREF`, but with the key a signed `n`-bit integer as in `DICTISET`.", + "gas": "", + "fift": "DICTISETREF", + "fift_examples": [], + "opcode": "F415", + "stack": "c i D n - D'" + }, + "bytecode": { "tlb": "#F415", "prefix": "F415", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Cell"] }, + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "D2", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTUSET", + "since_version": 0, + "doc": { + "category": "dict_set", + "description": "Similar to `DICTISET`, but with `i` an _unsigned_ `n`-bit integer.", + "gas": "", + "fift": "DICTUSET", + "fift_examples": [], + "opcode": "F416", + "stack": "x i D n - D'" + }, + "bytecode": { "tlb": "#F416", "prefix": "F416", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Slice"] }, + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "D2", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTUSETREF", + "since_version": 0, + "doc": { + "category": "dict_set", + "description": "Similar to `DICTISETREF`, but with `i` unsigned.", + "gas": "", + "fift": "DICTUSETREF", + "fift_examples": [], + "opcode": "F417", + "stack": "c i D n - D'" + }, + "bytecode": { "tlb": "#F417", "prefix": "F417", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Cell"] }, + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "D2", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTSETGET", + "since_version": 0, + "doc": { + "category": "dict_set", + "description": "Combines `DICTSET` with `DICTGET`: it sets the value corresponding to key `k` to `x`, but also returns the old value `y` associated with the key in question, if present.", + "gas": "", + "fift": "DICTSETGET", + "fift_examples": [], + "opcode": "F41A", + "stack": "x k D n - D' y -1 or D' 0" + }, + "bytecode": { "tlb": "#F41A", "prefix": "F41A", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Slice"] }, + { "type": "simple", "name": "k", "value_types": ["Slice"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { "type": "simple", "name": "D2", "value_types": ["Slice"] } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "D2", + "value_types": ["Slice"] + }, + { "type": "simple", "name": "y", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTSETGETREF", + "since_version": 0, + "doc": { + "category": "dict_set", + "description": "Combines `DICTSETREF` with `DICTGETREF` similarly to `DICTSETGET`.", + "gas": "", + "fift": "DICTSETGETREF", + "fift_examples": [], + "opcode": "F41B", + "stack": "c k D n - D' c' -1 or D' 0" + }, + "bytecode": { "tlb": "#F41B", "prefix": "F41B", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Cell"] }, + { "type": "simple", "name": "k", "value_types": ["Slice"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { "type": "simple", "name": "D2", "value_types": ["Slice"] } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "D2", + "value_types": ["Slice"] + }, + { "type": "simple", "name": "c2", "value_types": ["Cell"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTISETGET", + "since_version": 0, + "doc": { + "category": "dict_set", + "description": "`DICTISETGET`, but with `i` a signed `n`-bit integer.", + "gas": "", + "fift": "DICTISETGET", + "fift_examples": [], + "opcode": "F41C", + "stack": "x i D n - D' y -1 or D' 0" + }, + "bytecode": { "tlb": "#F41C", "prefix": "F41C", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Slice"] }, + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { "type": "simple", "name": "D2", "value_types": ["Slice"] } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "D2", + "value_types": ["Slice"] + }, + { "type": "simple", "name": "y", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTISETGETREF", + "since_version": 0, + "doc": { + "category": "dict_set", + "description": "`DICTISETGETREF`, but with `i` a signed `n`-bit integer.", + "gas": "", + "fift": "DICTISETGETREF", + "fift_examples": [], + "opcode": "F41D", + "stack": "c i D n - D' c' -1 or D' 0" + }, + "bytecode": { "tlb": "#F41D", "prefix": "F41D", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Cell"] }, + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { "type": "simple", "name": "D2", "value_types": ["Slice"] } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "D2", + "value_types": ["Slice"] + }, + { "type": "simple", "name": "c2", "value_types": ["Cell"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTUSETGET", + "since_version": 0, + "doc": { + "category": "dict_set", + "description": "`DICTISETGET`, but with `i` an unsigned `n`-bit integer.", + "gas": "", + "fift": "DICTUSETGET", + "fift_examples": [], + "opcode": "F41E", + "stack": "x i D n - D' y -1 or D' 0" + }, + "bytecode": { "tlb": "#F41E", "prefix": "F41E", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Slice"] }, + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { "type": "simple", "name": "D2", "value_types": ["Slice"] } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "D2", + "value_types": ["Slice"] + }, + { "type": "simple", "name": "y", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTUSETGETREF", + "since_version": 0, + "doc": { + "category": "dict_set", + "description": "`DICTISETGETREF`, but with `i` an unsigned `n`-bit integer.", + "gas": "", + "fift": "DICTUSETGETREF", + "fift_examples": [], + "opcode": "F41F", + "stack": "c i D n - D' c' -1 or D' 0" + }, + "bytecode": { "tlb": "#F41F", "prefix": "F41F", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Cell"] }, + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { "type": "simple", "name": "D2", "value_types": ["Slice"] } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "D2", + "value_types": ["Slice"] + }, + { "type": "simple", "name": "c2", "value_types": ["Cell"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTREPLACE", + "since_version": 0, + "doc": { + "category": "dict_set", + "description": "A _Replace_ operation, which is similar to `DICTSET`, but sets the value of key `k` in dictionary `D` to `x` only if the key `k` was already present in `D`.", + "gas": "", + "fift": "DICTREPLACE", + "fift_examples": [], + "opcode": "F422", + "stack": "x k D n - D' -1 or D 0" + }, + "bytecode": { "tlb": "#F422", "prefix": "F422", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Slice"] }, + { "type": "simple", "name": "k", "value_types": ["Slice"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { + "type": "simple", + "name": "D", + "value_types": ["Slice", "Null"] + } + ] + }, + { + "value": -1, + "stack": [ + { "type": "simple", "name": "D2", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTREPLACEREF", + "since_version": 0, + "doc": { + "category": "dict_set", + "description": "A _Replace_ counterpart of `DICTSETREF`.", + "gas": "", + "fift": "DICTREPLACEREF", + "fift_examples": [], + "opcode": "F423", + "stack": "c k D n - D' -1 or D 0" + }, + "bytecode": { "tlb": "#F423", "prefix": "F423", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Cell"] }, + { "type": "simple", "name": "k", "value_types": ["Slice"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { + "type": "simple", + "name": "D", + "value_types": ["Slice", "Null"] + } + ] + }, + { + "value": -1, + "stack": [ + { "type": "simple", "name": "D2", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTIREPLACE", + "since_version": 0, + "doc": { + "category": "dict_set", + "description": "`DICTREPLACE`, but with `i` a signed `n`-bit integer.", + "gas": "", + "fift": "DICTIREPLACE", + "fift_examples": [], + "opcode": "F424", + "stack": "x i D n - D' -1 or D 0" + }, + "bytecode": { "tlb": "#F424", "prefix": "F424", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Slice"] }, + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { + "type": "simple", + "name": "D", + "value_types": ["Slice", "Null"] + } + ] + }, + { + "value": -1, + "stack": [ + { "type": "simple", "name": "D2", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTIREPLACEREF", + "since_version": 0, + "doc": { + "category": "dict_set", + "description": "`DICTREPLACEREF`, but with `i` a signed `n`-bit integer.", + "gas": "", + "fift": "DICTIREPLACEREF", + "fift_examples": [], + "opcode": "F425", + "stack": "c i D n - D' -1 or D 0" + }, + "bytecode": { "tlb": "#F425", "prefix": "F425", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Cell"] }, + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { + "type": "simple", + "name": "D", + "value_types": ["Slice", "Null"] + } + ] + }, + { + "value": -1, + "stack": [ + { "type": "simple", "name": "D2", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTUREPLACE", + "since_version": 0, + "doc": { + "category": "dict_set", + "description": "`DICTREPLACE`, but with `i` an unsigned `n`-bit integer.", + "gas": "", + "fift": "DICTUREPLACE", + "fift_examples": [], + "opcode": "F426", + "stack": "x i D n - D' -1 or D 0" + }, + "bytecode": { "tlb": "#F426", "prefix": "F426", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Slice"] }, + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { + "type": "simple", + "name": "D", + "value_types": ["Slice", "Null"] + } + ] + }, + { + "value": -1, + "stack": [ + { "type": "simple", "name": "D2", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTUREPLACEREF", + "since_version": 0, + "doc": { + "category": "dict_set", + "description": "`DICTREPLACEREF`, but with `i` an unsigned `n`-bit integer.", + "gas": "", + "fift": "DICTUREPLACEREF", + "fift_examples": [], + "opcode": "F427", + "stack": "c i D n - D' -1 or D 0" + }, + "bytecode": { "tlb": "#F427", "prefix": "F427", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Cell"] }, + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { + "type": "simple", + "name": "D", + "value_types": ["Slice", "Null"] + } + ] + }, + { + "value": -1, + "stack": [ + { "type": "simple", "name": "D2", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTREPLACEGET", + "since_version": 0, + "doc": { + "category": "dict_set", + "description": "A _Replace_ counterpart of `DICTSETGET`: on success, also returns the old value associated with the key in question.", + "gas": "", + "fift": "DICTREPLACEGET", + "fift_examples": [], + "opcode": "F42A", + "stack": "x k D n - D' y -1 or D 0" + }, + "bytecode": { "tlb": "#F42A", "prefix": "F42A", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Slice"] }, + { "type": "simple", "name": "k", "value_types": ["Slice"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { + "type": "simple", + "name": "D", + "value_types": ["Slice", "Null"] + } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "D2", + "value_types": ["Slice"] + }, + { "type": "simple", "name": "y", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTREPLACEGETREF", + "since_version": 0, + "doc": { + "category": "dict_set", + "description": "A _Replace_ counterpart of `DICTSETGETREF`.", + "gas": "", + "fift": "DICTREPLACEGETREF", + "fift_examples": [], + "opcode": "F42B", + "stack": "c k D n - D' c' -1 or D 0" + }, + "bytecode": { "tlb": "#F42B", "prefix": "F42B", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Cell"] }, + { "type": "simple", "name": "k", "value_types": ["Slice"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { + "type": "simple", + "name": "D", + "value_types": ["Slice", "Null"] + } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "D2", + "value_types": ["Slice"] + }, + { "type": "simple", "name": "c2", "value_types": ["Cell"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTIREPLACEGET", + "since_version": 0, + "doc": { + "category": "dict_set", + "description": "`DICTREPLACEGET`, but with `i` a signed `n`-bit integer.", + "gas": "", + "fift": "DICTIREPLACEGET", + "fift_examples": [], + "opcode": "F42C", + "stack": "x i D n - D' y -1 or D 0" + }, + "bytecode": { "tlb": "#F42C", "prefix": "F42C", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Slice"] }, + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { + "type": "simple", + "name": "D", + "value_types": ["Slice", "Null"] + } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "D2", + "value_types": ["Slice"] + }, + { "type": "simple", "name": "y", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTIREPLACEGETREF", + "since_version": 0, + "doc": { + "category": "dict_set", + "description": "`DICTREPLACEGETREF`, but with `i` a signed `n`-bit integer.", + "gas": "", + "fift": "DICTIREPLACEGETREF", + "fift_examples": [], + "opcode": "F42D", + "stack": "c i D n - D' c' -1 or D 0" + }, + "bytecode": { "tlb": "#F42D", "prefix": "F42D", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Cell"] }, + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { + "type": "simple", + "name": "D", + "value_types": ["Slice", "Null"] + } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "D2", + "value_types": ["Slice"] + }, + { "type": "simple", "name": "c2", "value_types": ["Cell"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTUREPLACEGET", + "since_version": 0, + "doc": { + "category": "dict_set", + "description": "`DICTREPLACEGET`, but with `i` an unsigned `n`-bit integer.", + "gas": "", + "fift": "DICTUREPLACEGET", + "fift_examples": [], + "opcode": "F42E", + "stack": "x i D n - D' y -1 or D 0" + }, + "bytecode": { "tlb": "#F42E", "prefix": "F42E", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Slice"] }, + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { + "type": "simple", + "name": "D", + "value_types": ["Slice", "Null"] + } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "D2", + "value_types": ["Slice"] + }, + { "type": "simple", "name": "y", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTUREPLACEGETREF", + "since_version": 0, + "doc": { + "category": "dict_set", + "description": "`DICTREPLACEGETREF`, but with `i` an unsigned `n`-bit integer.", + "gas": "", + "fift": "DICTUREPLACEGETREF", + "fift_examples": [], + "opcode": "F42F", + "stack": "c i D n - D' c' -1 or D 0" + }, + "bytecode": { "tlb": "#F42F", "prefix": "F42F", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Cell"] }, + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { + "type": "simple", + "name": "D", + "value_types": ["Slice", "Null"] + } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "D2", + "value_types": ["Slice"] + }, + { "type": "simple", "name": "c2", "value_types": ["Cell"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTADD", + "since_version": 0, + "doc": { + "category": "dict_set", + "description": "An _Add_ counterpart of `DICTSET`: sets the value associated with key `k` in dictionary `D` to `x`, but only if it is not already present in `D`.", + "gas": "", + "fift": "DICTADD", + "fift_examples": [], + "opcode": "F432", + "stack": "x k D n - D' -1 or D 0" + }, + "bytecode": { "tlb": "#F432", "prefix": "F432", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Slice"] }, + { "type": "simple", "name": "k", "value_types": ["Slice"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { "type": "simple", "name": "D", "value_types": ["Slice"] } + ] + }, + { + "value": -1, + "stack": [ + { "type": "simple", "name": "D2", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTADDREF", + "since_version": 0, + "doc": { + "category": "dict_set", + "description": "An _Add_ counterpart of `DICTSETREF`.", + "gas": "", + "fift": "DICTADDREF", + "fift_examples": [], + "opcode": "F433", + "stack": "c k D n - D' -1 or D 0" + }, + "bytecode": { "tlb": "#F433", "prefix": "F433", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Cell"] }, + { "type": "simple", "name": "k", "value_types": ["Slice"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { "type": "simple", "name": "D", "value_types": ["Slice"] } + ] + }, + { + "value": -1, + "stack": [ + { "type": "simple", "name": "D2", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTIADD", + "since_version": 0, + "doc": { + "category": "dict_set", + "description": "`DICTADD`, but with `i` a signed `n`-bit integer.", + "gas": "", + "fift": "DICTIADD", + "fift_examples": [], + "opcode": "F434", + "stack": "x i D n - D' -1 or D 0" + }, + "bytecode": { "tlb": "#F434", "prefix": "F434", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Slice"] }, + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { "type": "simple", "name": "D", "value_types": ["Slice"] } + ] + }, + { + "value": -1, + "stack": [ + { "type": "simple", "name": "D2", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTIADDREF", + "since_version": 0, + "doc": { + "category": "dict_set", + "description": "`DICTADDREF`, but with `i` a signed `n`-bit integer.", + "gas": "", + "fift": "DICTIADDREF", + "fift_examples": [], + "opcode": "F435", + "stack": "c i D n - D' -1 or D 0" + }, + "bytecode": { "tlb": "#F435", "prefix": "F435", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Cell"] }, + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { "type": "simple", "name": "D", "value_types": ["Slice"] } + ] + }, + { + "value": -1, + "stack": [ + { "type": "simple", "name": "D2", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTUADD", + "since_version": 0, + "doc": { + "category": "dict_set", + "description": "`DICTADD`, but with `i` an unsigned `n`-bit integer.", + "gas": "", + "fift": "DICTUADD", + "fift_examples": [], + "opcode": "F436", + "stack": "x i D n - D' -1 or D 0" + }, + "bytecode": { "tlb": "#F436", "prefix": "F436", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Slice"] }, + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { "type": "simple", "name": "D", "value_types": ["Slice"] } + ] + }, + { + "value": -1, + "stack": [ + { "type": "simple", "name": "D2", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTUADDREF", + "since_version": 0, + "doc": { + "category": "dict_set", + "description": "`DICTADDREF`, but with `i` an unsigned `n`-bit integer.", + "gas": "", + "fift": "DICTUADDREF", + "fift_examples": [], + "opcode": "F437", + "stack": "c i D n - D' -1 or D 0" + }, + "bytecode": { "tlb": "#F437", "prefix": "F437", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Cell"] }, + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { "type": "simple", "name": "D", "value_types": ["Slice"] } + ] + }, + { + "value": -1, + "stack": [ + { "type": "simple", "name": "D2", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTADDGET", + "since_version": 0, + "doc": { + "category": "dict_set", + "description": "An _Add_ counterpart of `DICTSETGET`: sets the value associated with key `k` in dictionary `D` to `x`, but only if key `k` is not already present in `D`. Otherwise, just returns the old value `y` without changing the dictionary.", + "gas": "", + "fift": "DICTADDGET", + "fift_examples": [], + "opcode": "F43A", + "stack": "x k D n - D' -1 or D y 0" + }, + "bytecode": { "tlb": "#F43A", "prefix": "F43A", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Slice"] }, + { "type": "simple", "name": "k", "value_types": ["Slice"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { "type": "simple", "name": "D", "value_types": ["Slice"] }, + { "type": "simple", "name": "y", "value_types": ["Slice"] } + ] + }, + { + "value": -1, + "stack": [ + { "type": "simple", "name": "D2", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTADDGETREF", + "since_version": 0, + "doc": { + "category": "dict_set", + "description": "An _Add_ counterpart of `DICTSETGETREF`.", + "gas": "", + "fift": "DICTADDGETREF", + "fift_examples": [], + "opcode": "F43B", + "stack": "c k D n - D' -1 or D c' 0" + }, + "bytecode": { "tlb": "#F43B", "prefix": "F43B", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Cell"] }, + { "type": "simple", "name": "k", "value_types": ["Slice"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { "type": "simple", "name": "D", "value_types": ["Slice"] }, + { "type": "simple", "name": "c2", "value_types": ["Cell"] } + ] + }, + { + "value": -1, + "stack": [ + { "type": "simple", "name": "D2", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTIADDGET", + "since_version": 0, + "doc": { + "category": "dict_set", + "description": "`DICTADDGET`, but with `i` a signed `n`-bit integer.", + "gas": "", + "fift": "DICTIADDGET", + "fift_examples": [], + "opcode": "F43C", + "stack": "x i D n - D' -1 or D y 0" + }, + "bytecode": { "tlb": "#F43C", "prefix": "F43C", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Slice"] }, + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { "type": "simple", "name": "D", "value_types": ["Slice"] }, + { "type": "simple", "name": "y", "value_types": ["Slice"] } + ] + }, + { + "value": -1, + "stack": [ + { "type": "simple", "name": "D2", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTIADDGETREF", + "since_version": 0, + "doc": { + "category": "dict_set", + "description": "`DICTADDGETREF`, but with `i` a signed `n`-bit integer.", + "gas": "", + "fift": "DICTIADDGETREF", + "fift_examples": [], + "opcode": "F43D", + "stack": "c i D n - D' -1 or D c' 0" + }, + "bytecode": { "tlb": "#F43D", "prefix": "F43D", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Cell"] }, + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { "type": "simple", "name": "D", "value_types": ["Slice"] }, + { "type": "simple", "name": "c2", "value_types": ["Cell"] } + ] + }, + { + "value": -1, + "stack": [ + { "type": "simple", "name": "D2", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTUADDGET", + "since_version": 0, + "doc": { + "category": "dict_set", + "description": "`DICTADDGET`, but with `i` an unsigned `n`-bit integer.", + "gas": "", + "fift": "DICTUADDGET", + "fift_examples": [], + "opcode": "F43E", + "stack": "x i D n - D' -1 or D y 0" + }, + "bytecode": { "tlb": "#F43E", "prefix": "F43E", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Slice"] }, + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { "type": "simple", "name": "D", "value_types": ["Slice"] }, + { "type": "simple", "name": "y", "value_types": ["Slice"] } + ] + }, + { + "value": -1, + "stack": [ + { "type": "simple", "name": "D2", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTUADDGETREF", + "since_version": 0, + "doc": { + "category": "dict_set", + "description": "`DICTADDGETREF`, but with `i` an unsigned `n`-bit integer.", + "gas": "", + "fift": "DICTUADDGETREF", + "fift_examples": [], + "opcode": "F43F", + "stack": "c i D n - D' -1 or D c' 0" + }, + "bytecode": { "tlb": "#F43F", "prefix": "F43F", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Cell"] }, + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { "type": "simple", "name": "D", "value_types": ["Slice"] }, + { "type": "simple", "name": "c2", "value_types": ["Cell"] } + ] + }, + { + "value": -1, + "stack": [ + { "type": "simple", "name": "D2", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTSETB", + "since_version": 0, + "doc": { + "category": "dict_set_builder", + "description": "", + "gas": "", + "fift": "DICTSETB", + "fift_examples": [], + "opcode": "F441", + "stack": "b k D n - D'" + }, + "bytecode": { "tlb": "#F441", "prefix": "F441", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { "type": "simple", "name": "k", "value_types": ["Slice"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "D2", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTISETB", + "since_version": 0, + "doc": { + "category": "dict_set_builder", + "description": "", + "gas": "", + "fift": "DICTISETB", + "fift_examples": [], + "opcode": "F442", + "stack": "b i D n - D'" + }, + "bytecode": { "tlb": "#F442", "prefix": "F442", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "D2", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTUSETB", + "since_version": 0, + "doc": { + "category": "dict_set_builder", + "description": "", + "gas": "", + "fift": "DICTUSETB", + "fift_examples": [], + "opcode": "F443", + "stack": "b i D n - D'" + }, + "bytecode": { "tlb": "#F443", "prefix": "F443", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "D2", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTSETGETB", + "since_version": 0, + "doc": { + "category": "dict_set_builder", + "description": "", + "gas": "", + "fift": "DICTSETGETB", + "fift_examples": [], + "opcode": "F445", + "stack": "b k D n - D' y -1 or D' 0" + }, + "bytecode": { "tlb": "#F445", "prefix": "F445", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { "type": "simple", "name": "k", "value_types": ["Slice"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { "type": "simple", "name": "D2", "value_types": ["Slice"] } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "D2", + "value_types": ["Slice"] + }, + { "type": "simple", "name": "y", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTISETGETB", + "since_version": 0, + "doc": { + "category": "dict_set_builder", + "description": "", + "gas": "", + "fift": "DICTISETGETB", + "fift_examples": [], + "opcode": "F446", + "stack": "b i D n - D' y -1 or D' 0" + }, + "bytecode": { "tlb": "#F446", "prefix": "F446", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { "type": "simple", "name": "D2", "value_types": ["Slice"] } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "D2", + "value_types": ["Slice"] + }, + { "type": "simple", "name": "y", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTUSETGETB", + "since_version": 0, + "doc": { + "category": "dict_set_builder", + "description": "", + "gas": "", + "fift": "DICTUSETGETB", + "fift_examples": [], + "opcode": "F447", + "stack": "b i D n - D' y -1 or D' 0" + }, + "bytecode": { "tlb": "#F447", "prefix": "F447", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { "type": "simple", "name": "D2", "value_types": ["Slice"] } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "D2", + "value_types": ["Slice"] + }, + { "type": "simple", "name": "y", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTREPLACEB", + "since_version": 0, + "doc": { + "category": "dict_set_builder", + "description": "", + "gas": "", + "fift": "DICTREPLACEB", + "fift_examples": [], + "opcode": "F449", + "stack": "b k D n - D' -1 or D 0" + }, + "bytecode": { "tlb": "#F449", "prefix": "F449", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { "type": "simple", "name": "k", "value_types": ["Slice"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { "type": "simple", "name": "D", "value_types": ["Slice"] } + ] + }, + { + "value": -1, + "stack": [ + { "type": "simple", "name": "D2", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTIREPLACEB", + "since_version": 0, + "doc": { + "category": "dict_set_builder", + "description": "", + "gas": "", + "fift": "DICTIREPLACEB", + "fift_examples": [], + "opcode": "F44A", + "stack": "b i D n - D' -1 or D 0" + }, + "bytecode": { "tlb": "#F44A", "prefix": "F44A", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { "type": "simple", "name": "D", "value_types": ["Slice"] } + ] + }, + { + "value": -1, + "stack": [ + { "type": "simple", "name": "D2", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTUREPLACEB", + "since_version": 0, + "doc": { + "category": "dict_set_builder", + "description": "", + "gas": "", + "fift": "DICTUREPLACEB", + "fift_examples": [], + "opcode": "F44B", + "stack": "b i D n - D' -1 or D 0" + }, + "bytecode": { "tlb": "#F44B", "prefix": "F44B", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { "type": "simple", "name": "D", "value_types": ["Slice"] } + ] + }, + { + "value": -1, + "stack": [ + { "type": "simple", "name": "D2", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTREPLACEGETB", + "since_version": 0, + "doc": { + "category": "dict_set_builder", + "description": "", + "gas": "", + "fift": "DICTREPLACEGETB", + "fift_examples": [], + "opcode": "F44D", + "stack": "b k D n - D' y -1 or D 0" + }, + "bytecode": { "tlb": "#F44D", "prefix": "F44D", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { "type": "simple", "name": "k", "value_types": ["Slice"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { "type": "simple", "name": "D", "value_types": ["Slice"] } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "D2", + "value_types": ["Slice"] + }, + { "type": "simple", "name": "y", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTIREPLACEGETB", + "since_version": 0, + "doc": { + "category": "dict_set_builder", + "description": "", + "gas": "", + "fift": "DICTIREPLACEGETB", + "fift_examples": [], + "opcode": "F44E", + "stack": "b i D n - D' y -1 or D 0" + }, + "bytecode": { "tlb": "#F44E", "prefix": "F44E", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { "type": "simple", "name": "D", "value_types": ["Slice"] } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "D2", + "value_types": ["Slice"] + }, + { "type": "simple", "name": "y", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTUREPLACEGETB", + "since_version": 0, + "doc": { + "category": "dict_set_builder", + "description": "", + "gas": "", + "fift": "DICTUREPLACEGETB", + "fift_examples": [], + "opcode": "F44F", + "stack": "b i D n - D' y -1 or D 0" + }, + "bytecode": { "tlb": "#F44F", "prefix": "F44F", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { "type": "simple", "name": "D", "value_types": ["Slice"] } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "D2", + "value_types": ["Slice"] + }, + { "type": "simple", "name": "y", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTADDB", + "since_version": 0, + "doc": { + "category": "dict_set_builder", + "description": "", + "gas": "", + "fift": "DICTADDB", + "fift_examples": [], + "opcode": "F451", + "stack": "b k D n - D' -1 or D 0" + }, + "bytecode": { "tlb": "#F451", "prefix": "F451", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { "type": "simple", "name": "k", "value_types": ["Slice"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { "type": "simple", "name": "D", "value_types": ["Slice"] } + ] + }, + { + "value": -1, + "stack": [ + { "type": "simple", "name": "D2", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTIADDB", + "since_version": 0, + "doc": { + "category": "dict_set_builder", + "description": "", + "gas": "", + "fift": "DICTIADDB", + "fift_examples": [], + "opcode": "F452", + "stack": "b i D n - D' -1 or D 0" + }, + "bytecode": { "tlb": "#F452", "prefix": "F452", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { "type": "simple", "name": "D", "value_types": ["Slice"] } + ] + }, + { + "value": -1, + "stack": [ + { "type": "simple", "name": "D2", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTUADDB", + "since_version": 0, + "doc": { + "category": "dict_set_builder", + "description": "", + "gas": "", + "fift": "DICTUADDB", + "fift_examples": [], + "opcode": "F453", + "stack": "b i D n - D' -1 or D 0" + }, + "bytecode": { "tlb": "#F453", "prefix": "F453", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { "type": "simple", "name": "D", "value_types": ["Slice"] } + ] + }, + { + "value": -1, + "stack": [ + { "type": "simple", "name": "D2", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTADDGETB", + "since_version": 0, + "doc": { + "category": "dict_set_builder", + "description": "", + "gas": "", + "fift": "DICTADDGETB", + "fift_examples": [], + "opcode": "F455", + "stack": "b k D n - D' -1 or D y 0" + }, + "bytecode": { "tlb": "#F455", "prefix": "F455", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { "type": "simple", "name": "k", "value_types": ["Slice"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { "type": "simple", "name": "D", "value_types": ["Slice"] }, + { "type": "simple", "name": "y", "value_types": ["Slice"] } + ] + }, + { + "value": -1, + "stack": [ + { "type": "simple", "name": "D2", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTIADDGETB", + "since_version": 0, + "doc": { + "category": "dict_set_builder", + "description": "", + "gas": "", + "fift": "DICTIADDGETB", + "fift_examples": [], + "opcode": "F456", + "stack": "b i D n - D' -1 or D y 0" + }, + "bytecode": { "tlb": "#F456", "prefix": "F456", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { "type": "simple", "name": "D", "value_types": ["Slice"] }, + { "type": "simple", "name": "y", "value_types": ["Slice"] } + ] + }, + { + "value": -1, + "stack": [ + { "type": "simple", "name": "D2", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTUADDGETB", + "since_version": 0, + "doc": { + "category": "dict_set_builder", + "description": "", + "gas": "", + "fift": "DICTUADDGETB", + "fift_examples": [], + "opcode": "F457", + "stack": "b i D n - D' -1 or D y 0" + }, + "bytecode": { "tlb": "#F457", "prefix": "F457", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { "type": "simple", "name": "D", "value_types": ["Slice"] }, + { "type": "simple", "name": "y", "value_types": ["Slice"] } + ] + }, + { + "value": -1, + "stack": [ + { "type": "simple", "name": "D2", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTDEL", + "since_version": 0, + "doc": { + "category": "dict_delete", + "description": "Deletes `n`-bit key, represented by a _Slice_ `k`, from dictionary `D`. If the key is present, returns the modified dictionary `D'` and the success flag `-1`. Otherwise, returns the original dictionary `D` and `0`.", + "gas": "", + "fift": "DICTDEL", + "fift_examples": [], + "opcode": "F459", + "stack": "k D n - D' -1 or D 0" + }, + "bytecode": { "tlb": "#F459", "prefix": "F459", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "k", "value_types": ["Slice"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { + "type": "simple", + "name": "D", + "value_types": ["Slice", "Null"] + } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "D2", + "value_types": ["Slice", "Null"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTIDEL", + "since_version": 0, + "doc": { + "category": "dict_delete", + "description": "A version of `DICTDEL` with the key represented by a signed `n`-bit _Integer_ `i`. If `i` does not fit into `n` bits, simply returns `D` `0` (''key not found, dictionary unmodified'').", + "gas": "", + "fift": "DICTIDEL", + "fift_examples": [], + "opcode": "F45A", + "stack": "i D n - D' ?" + }, + "bytecode": { "tlb": "#F45A", "prefix": "F45A", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { + "type": "simple", + "name": "D", + "value_types": ["Slice", "Null"] + } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "D2", + "value_types": ["Slice", "Null"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTUDEL", + "since_version": 0, + "doc": { + "category": "dict_delete", + "description": "Similar to `DICTIDEL`, but with `i` an unsigned `n`-bit integer.", + "gas": "", + "fift": "DICTUDEL", + "fift_examples": [], + "opcode": "F45B", + "stack": "i D n - D' ?" + }, + "bytecode": { "tlb": "#F45B", "prefix": "F45B", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { + "type": "simple", + "name": "D", + "value_types": ["Slice", "Null"] + } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "D2", + "value_types": ["Slice", "Null"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTDELGET", + "since_version": 0, + "doc": { + "category": "dict_delete", + "description": "Deletes `n`-bit key, represented by a _Slice_ `k`, from dictionary `D`. If the key is present, returns the modified dictionary `D'`, the original value `x` associated with the key `k` (represented by a _Slice_), and the success flag `-1`. Otherwise, returns the original dictionary `D` and `0`.", + "gas": "", + "fift": "DICTDELGET", + "fift_examples": [], + "opcode": "F462", + "stack": "k D n - D' x -1 or D 0" + }, + "bytecode": { "tlb": "#F462", "prefix": "F462", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "k", "value_types": ["Slice"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { + "type": "simple", + "name": "D", + "value_types": ["Slice", "Null"] + } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "D2", + "value_types": ["Slice", "Null"] + }, + { "type": "simple", "name": "x", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTDELGETREF", + "since_version": 0, + "doc": { + "category": "dict_delete", + "description": "Similar to `DICTDELGET`, but with `LDREF` `ENDS` applied to `x` on success, so that the value returned `c` is a _Cell_.", + "gas": "", + "fift": "DICTDELGETREF", + "fift_examples": [], + "opcode": "F463", + "stack": "k D n - D' c -1 or D 0" + }, + "bytecode": { "tlb": "#F463", "prefix": "F463", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "k", "value_types": ["Slice"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { + "type": "simple", + "name": "D", + "value_types": ["Slice", "Null"] + } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "D2", + "value_types": ["Slice", "Null"] + }, + { "type": "simple", "name": "c", "value_types": ["Cell"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTIDELGET", + "since_version": 0, + "doc": { + "category": "dict_delete", + "description": "`DICTDELGET`, but with `i` a signed `n`-bit integer.", + "gas": "", + "fift": "DICTIDELGET", + "fift_examples": [], + "opcode": "F464", + "stack": "i D n - D' x -1 or D 0" + }, + "bytecode": { "tlb": "#F464", "prefix": "F464", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { + "type": "simple", + "name": "D", + "value_types": ["Slice", "Null"] + } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "D2", + "value_types": ["Slice", "Null"] + }, + { "type": "simple", "name": "x", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTIDELGETREF", + "since_version": 0, + "doc": { + "category": "dict_delete", + "description": "`DICTDELGETREF`, but with `i` a signed `n`-bit integer.", + "gas": "", + "fift": "DICTIDELGETREF", + "fift_examples": [], + "opcode": "F465", + "stack": "i D n - D' c -1 or D 0" + }, + "bytecode": { "tlb": "#F465", "prefix": "F465", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { + "type": "simple", + "name": "D", + "value_types": ["Slice", "Null"] + } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "D2", + "value_types": ["Slice", "Null"] + }, + { "type": "simple", "name": "c", "value_types": ["Cell"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTUDELGET", + "since_version": 0, + "doc": { + "category": "dict_delete", + "description": "`DICTDELGET`, but with `i` an unsigned `n`-bit integer.", + "gas": "", + "fift": "DICTUDELGET", + "fift_examples": [], + "opcode": "F466", + "stack": "i D n - D' x -1 or D 0" + }, + "bytecode": { "tlb": "#F466", "prefix": "F466", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { + "type": "simple", + "name": "D", + "value_types": ["Slice", "Null"] + } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "D2", + "value_types": ["Slice", "Null"] + }, + { "type": "simple", "name": "x", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTUDELGETREF", + "since_version": 0, + "doc": { + "category": "dict_delete", + "description": "`DICTDELGETREF`, but with `i` an unsigned `n`-bit integer.", + "gas": "", + "fift": "DICTUDELGETREF", + "fift_examples": [], + "opcode": "F467", + "stack": "i D n - D' c -1 or D 0" + }, + "bytecode": { "tlb": "#F467", "prefix": "F467", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { + "type": "simple", + "name": "D", + "value_types": ["Slice", "Null"] + } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "D2", + "value_types": ["Slice", "Null"] + }, + { "type": "simple", "name": "c", "value_types": ["Cell"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTGETOPTREF", + "since_version": 0, + "doc": { + "category": "dict_mayberef", + "description": "A variant of `DICTGETREF` that returns _Null_ instead of the value `c^?` if the key `k` is absent from dictionary `D`.", + "gas": "", + "fift": "DICTGETOPTREF", + "fift_examples": [], + "opcode": "F469", + "stack": "k D n - c^?" + }, + "bytecode": { "tlb": "#F469", "prefix": "F469", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "k", "value_types": ["Slice"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Cell", "Null"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTIGETOPTREF", + "since_version": 0, + "doc": { + "category": "dict_mayberef", + "description": "`DICTGETOPTREF`, but with `i` a signed `n`-bit integer. If the key `i` is out of range, also returns _Null_.", + "gas": "", + "fift": "DICTIGETOPTREF", + "fift_examples": [], + "opcode": "F46A", + "stack": "i D n - c^?" + }, + "bytecode": { "tlb": "#F46A", "prefix": "F46A", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Cell", "Null"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTUGETOPTREF", + "since_version": 0, + "doc": { + "category": "dict_mayberef", + "description": "`DICTGETOPTREF`, but with `i` an unsigned `n`-bit integer. If the key `i` is out of range, also returns _Null_.", + "gas": "", + "fift": "DICTUGETOPTREF", + "fift_examples": [], + "opcode": "F46B", + "stack": "i D n - c^?" + }, + "bytecode": { "tlb": "#F46B", "prefix": "F46B", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Cell", "Null"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTSETGETOPTREF", + "since_version": 0, + "doc": { + "category": "dict_mayberef", + "description": "A variant of both `DICTGETOPTREF` and `DICTSETGETREF` that sets the value corresponding to key `k` in dictionary `D` to `c^?` (if `c^?` is _Null_, then the key is deleted instead), and returns the old value `~c^?` (if the key `k` was absent before, returns _Null_ instead).", + "gas": "", + "fift": "DICTSETGETOPTREF", + "fift_examples": [], + "opcode": "F46D", + "stack": "c^? k D n - D' ~c^?" + }, + "bytecode": { "tlb": "#F46D", "prefix": "F46D", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Cell", "Null"] }, + { "type": "simple", "name": "k", "value_types": ["Slice"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "simple", + "name": "D2", + "value_types": ["Slice", "Null"] + }, + { "type": "simple", "name": "c2", "value_types": ["Cell", "Null"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTISETGETOPTREF", + "since_version": 0, + "doc": { + "category": "dict_mayberef", + "description": "Similar to primitive `DICTSETGETOPTREF`, but using signed `n`-bit _Integer_ `i` as a key. If `i` does not fit into `n` bits, throws a range checking exception.", + "gas": "", + "fift": "DICTISETGETOPTREF", + "fift_examples": [], + "opcode": "F46E", + "stack": "c^? i D n - D' ~c^?" + }, + "bytecode": { "tlb": "#F46E", "prefix": "F46E", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Cell", "Null"] }, + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "simple", + "name": "D2", + "value_types": ["Slice", "Null"] + }, + { "type": "simple", "name": "c2", "value_types": ["Cell", "Null"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTUSETGETOPTREF", + "since_version": 0, + "doc": { + "category": "dict_mayberef", + "description": "Similar to primitive `DICTSETGETOPTREF`, but using unsigned `n`-bit _Integer_ `i` as a key.", + "gas": "", + "fift": "DICTUSETGETOPTREF", + "fift_examples": [], + "opcode": "F46F", + "stack": "c^? i D n - D' ~c^?" + }, + "bytecode": { "tlb": "#F46F", "prefix": "F46F", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Cell", "Null"] }, + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "simple", + "name": "D2", + "value_types": ["Slice", "Null"] + }, + { "type": "simple", "name": "c2", "value_types": ["Cell", "Null"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PFXDICTSET", + "since_version": 0, + "doc": { + "category": "dict_prefix", + "description": "", + "gas": "", + "fift": "PFXDICTSET", + "fift_examples": [], + "opcode": "F470", + "stack": "x k D n - D' -1 or D 0" + }, + "bytecode": { "tlb": "#F470", "prefix": "F470", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Slice"] }, + { "type": "simple", "name": "k", "value_types": ["Slice"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { + "type": "simple", + "name": "D", + "value_types": ["Slice", "Null"] + } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "D2", + "value_types": ["Slice", "Null"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PFXDICTREPLACE", + "since_version": 0, + "doc": { + "category": "dict_prefix", + "description": "", + "gas": "", + "fift": "PFXDICTREPLACE", + "fift_examples": [], + "opcode": "F471", + "stack": "x k D n - D' -1 or D 0" + }, + "bytecode": { "tlb": "#F471", "prefix": "F471", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Slice"] }, + { "type": "simple", "name": "k", "value_types": ["Slice"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { + "type": "simple", + "name": "D", + "value_types": ["Slice", "Null"] + } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "D2", + "value_types": ["Slice", "Null"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PFXDICTADD", + "since_version": 0, + "doc": { + "category": "dict_prefix", + "description": "", + "gas": "", + "fift": "PFXDICTADD", + "fift_examples": [], + "opcode": "F472", + "stack": "x k D n - D' -1 or D 0" + }, + "bytecode": { "tlb": "#F472", "prefix": "F472", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Slice"] }, + { "type": "simple", "name": "k", "value_types": ["Slice"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { + "type": "simple", + "name": "D", + "value_types": ["Slice", "Null"] + } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "D2", + "value_types": ["Slice", "Null"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PFXDICTDEL", + "since_version": 0, + "doc": { + "category": "dict_prefix", + "description": "", + "gas": "", + "fift": "PFXDICTDEL", + "fift_examples": [], + "opcode": "F473", + "stack": "k D n - D' -1 or D 0" + }, + "bytecode": { "tlb": "#F473", "prefix": "F473", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "k", "value_types": ["Slice"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { + "type": "simple", + "name": "D", + "value_types": ["Slice", "Null"] + } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "D2", + "value_types": ["Slice", "Null"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTGETNEXT", + "since_version": 0, + "doc": { + "category": "dict_next", + "description": "Computes the minimal key `k'` in dictionary `D` that is lexicographically greater than `k`, and returns `k'` (represented by a _Slice_) along with associated value `x'` (also represented by a _Slice_).", + "gas": "", + "fift": "DICTGETNEXT", + "fift_examples": [], + "opcode": "F474", + "stack": "k D n - x' k' -1 or 0" + }, + "bytecode": { "tlb": "#F474", "prefix": "F474", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "k", "value_types": ["Slice"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { "value": 0, "stack": [] }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "x2", + "value_types": ["Slice"] + }, + { "type": "simple", "name": "k2", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTGETNEXTEQ", + "since_version": 0, + "doc": { + "category": "dict_next", + "description": "Similar to `DICTGETNEXT`, but computes the minimal key `k'` that is lexicographically greater than or equal to `k`.", + "gas": "", + "fift": "DICTGETNEXTEQ", + "fift_examples": [], + "opcode": "F475", + "stack": "k D n - x' k' -1 or 0" + }, + "bytecode": { "tlb": "#F475", "prefix": "F475", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "k", "value_types": ["Slice"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { "value": 0, "stack": [] }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "x2", + "value_types": ["Slice"] + }, + { "type": "simple", "name": "k2", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTGETPREV", + "since_version": 0, + "doc": { + "category": "dict_next", + "description": "Similar to `DICTGETNEXT`, but computes the maximal key `k'` lexicographically smaller than `k`.", + "gas": "", + "fift": "DICTGETPREV", + "fift_examples": [], + "opcode": "F476", + "stack": "k D n - x' k' -1 or 0" + }, + "bytecode": { "tlb": "#F476", "prefix": "F476", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "k", "value_types": ["Slice"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { "value": 0, "stack": [] }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "x2", + "value_types": ["Slice"] + }, + { "type": "simple", "name": "k2", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTGETPREVEQ", + "since_version": 0, + "doc": { + "category": "dict_next", + "description": "Similar to `DICTGETPREV`, but computes the maximal key `k'` lexicographically smaller than or equal to `k`.", + "gas": "", + "fift": "DICTGETPREVEQ", + "fift_examples": [], + "opcode": "F477", + "stack": "k D n - x' k' -1 or 0" + }, + "bytecode": { "tlb": "#F477", "prefix": "F477", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "k", "value_types": ["Slice"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { "value": 0, "stack": [] }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "x2", + "value_types": ["Slice"] + }, + { "type": "simple", "name": "k2", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTIGETNEXT", + "since_version": 0, + "doc": { + "category": "dict_next", + "description": "Similar to `DICTGETNEXT`, but interprets all keys in dictionary `D` as big-endian signed `n`-bit integers, and computes the minimal key `i'` that is larger than _Integer_ `i` (which does not necessarily fit into `n` bits).", + "gas": "", + "fift": "DICTIGETNEXT", + "fift_examples": [], + "opcode": "F478", + "stack": "i D n - x' i' -1 or 0" + }, + "bytecode": { "tlb": "#F478", "prefix": "F478", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { "value": 0, "stack": [] }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "x2", + "value_types": ["Slice"] + }, + { + "type": "simple", + "name": "i2", + "value_types": ["Integer"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTIGETNEXTEQ", + "since_version": 0, + "doc": { + "category": "dict_next", + "description": "Similar to `DICTGETNEXTEQ`, but interprets keys as signed `n`-bit integers.", + "gas": "", + "fift": "DICTIGETNEXTEQ", + "fift_examples": [], + "opcode": "F479", + "stack": "i D n - x' i' -1 or 0" + }, + "bytecode": { "tlb": "#F479", "prefix": "F479", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { "value": 0, "stack": [] }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "x2", + "value_types": ["Slice"] + }, + { + "type": "simple", + "name": "i2", + "value_types": ["Integer"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTIGETPREV", + "since_version": 0, + "doc": { + "category": "dict_next", + "description": "Similar to `DICTGETPREV`, but interprets keys as signed `n`-bit integers.", + "gas": "", + "fift": "DICTIGETPREV", + "fift_examples": [], + "opcode": "F47A", + "stack": "i D n - x' i' -1 or 0" + }, + "bytecode": { "tlb": "#F47A", "prefix": "F47A", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { "value": 0, "stack": [] }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "x2", + "value_types": ["Slice"] + }, + { + "type": "simple", + "name": "i2", + "value_types": ["Integer"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTIGETPREVEQ", + "since_version": 0, + "doc": { + "category": "dict_next", + "description": "Similar to `DICTGETPREVEQ`, but interprets keys as signed `n`-bit integers.", + "gas": "", + "fift": "DICTIGETPREVEQ", + "fift_examples": [], + "opcode": "F47B", + "stack": "i D n - x' i' -1 or 0" + }, + "bytecode": { "tlb": "#F47B", "prefix": "F47B", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { "value": 0, "stack": [] }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "x2", + "value_types": ["Slice"] + }, + { + "type": "simple", + "name": "i2", + "value_types": ["Integer"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTUGETNEXT", + "since_version": 0, + "doc": { + "category": "dict_next", + "description": "Similar to `DICTGETNEXT`, but interprets all keys in dictionary `D` as big-endian unsigned `n`-bit integers, and computes the minimal key `i'` that is larger than _Integer_ `i` (which does not necessarily fit into `n` bits, and is not necessarily non-negative).", + "gas": "", + "fift": "DICTUGETNEXT", + "fift_examples": [], + "opcode": "F47C", + "stack": "i D n - x' i' -1 or 0" + }, + "bytecode": { "tlb": "#F47C", "prefix": "F47C", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { "value": 0, "stack": [] }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "x2", + "value_types": ["Slice"] + }, + { + "type": "simple", + "name": "i2", + "value_types": ["Integer"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTUGETNEXTEQ", + "since_version": 0, + "doc": { + "category": "dict_next", + "description": "Similar to `DICTGETNEXTEQ`, but interprets keys as unsigned `n`-bit integers.", + "gas": "", + "fift": "DICTUGETNEXTEQ", + "fift_examples": [], + "opcode": "F47D", + "stack": "i D n - x' i' -1 or 0" + }, + "bytecode": { "tlb": "#F47D", "prefix": "F47D", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { "value": 0, "stack": [] }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "x2", + "value_types": ["Slice"] + }, + { + "type": "simple", + "name": "i2", + "value_types": ["Integer"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTUGETPREV", + "since_version": 0, + "doc": { + "category": "dict_next", + "description": "Similar to `DICTGETPREV`, but interprets keys as unsigned `n`-bit integers.", + "gas": "", + "fift": "DICTUGETPREV", + "fift_examples": [], + "opcode": "F47E", + "stack": "i D n - x' i' -1 or 0" + }, + "bytecode": { "tlb": "#F47E", "prefix": "F47E", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { "value": 0, "stack": [] }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "x2", + "value_types": ["Slice"] + }, + { + "type": "simple", + "name": "i2", + "value_types": ["Integer"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTUGETPREVEQ", + "since_version": 0, + "doc": { + "category": "dict_next", + "description": "Similar to `DICTGETPREVEQ`, but interprets keys a unsigned `n`-bit integers.", + "gas": "", + "fift": "DICTUGETPREVEQ", + "fift_examples": [], + "opcode": "F47F", + "stack": "i D n - x' i' -1 or 0" + }, + "bytecode": { "tlb": "#F47F", "prefix": "F47F", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { "value": 0, "stack": [] }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "x2", + "value_types": ["Slice"] + }, + { + "type": "simple", + "name": "i2", + "value_types": ["Integer"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTMIN", + "since_version": 0, + "doc": { + "category": "dict_min", + "description": "Computes the minimal key `k` (represented by a _Slice_ with `n` data bits) in dictionary `D`, and returns `k` along with the associated value `x`.", + "gas": "", + "fift": "DICTMIN", + "fift_examples": [], + "opcode": "F482", + "stack": "D n - x k -1 or 0" + }, + "bytecode": { "tlb": "#F482", "prefix": "F482", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { "value": 0, "stack": [] }, + { + "value": -1, + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Slice"] }, + { "type": "simple", "name": "k", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTMINREF", + "since_version": 0, + "doc": { + "category": "dict_min", + "description": "Similar to `DICTMIN`, but returns the only reference in the value as a _Cell_ `c`.", + "gas": "", + "fift": "DICTMINREF", + "fift_examples": [], + "opcode": "F483", + "stack": "D n - c k -1 or 0" + }, + "bytecode": { "tlb": "#F483", "prefix": "F483", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { "value": 0, "stack": [] }, + { + "value": -1, + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Cell"] }, + { "type": "simple", "name": "k", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTIMIN", + "since_version": 0, + "doc": { + "category": "dict_min", + "description": "Similar to `DICTMIN`, but computes the minimal key `i` under the assumption that all keys are big-endian signed `n`-bit integers. Notice that the key and value returned may differ from those computed by `DICTMIN` and `DICTUMIN`.", + "gas": "", + "fift": "DICTIMIN", + "fift_examples": [], + "opcode": "F484", + "stack": "D n - x i -1 or 0" + }, + "bytecode": { "tlb": "#F484", "prefix": "F484", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { "value": 0, "stack": [] }, + { + "value": -1, + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Slice"] }, + { + "type": "simple", + "name": "i", + "value_types": ["Integer"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTIMINREF", + "since_version": 0, + "doc": { + "category": "dict_min", + "description": "Similar to `DICTIMIN`, but returns the only reference in the value.", + "gas": "", + "fift": "DICTIMINREF", + "fift_examples": [], + "opcode": "F485", + "stack": "D n - c i -1 or 0" + }, + "bytecode": { "tlb": "#F485", "prefix": "F485", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { "value": 0, "stack": [] }, + { + "value": -1, + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Cell"] }, + { + "type": "simple", + "name": "i", + "value_types": ["Integer"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTUMIN", + "since_version": 0, + "doc": { + "category": "dict_min", + "description": "Similar to `DICTMIN`, but returns the key as an unsigned `n`-bit _Integer_ `i`.", + "gas": "", + "fift": "DICTUMIN", + "fift_examples": [], + "opcode": "F486", + "stack": "D n - x i -1 or 0" + }, + "bytecode": { "tlb": "#F486", "prefix": "F486", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { "value": 0, "stack": [] }, + { + "value": -1, + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Slice"] }, + { + "type": "simple", + "name": "i", + "value_types": ["Integer"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTUMINREF", + "since_version": 0, + "doc": { + "category": "dict_min", + "description": "Similar to `DICTUMIN`, but returns the only reference in the value.", + "gas": "", + "fift": "DICTUMINREF", + "fift_examples": [], + "opcode": "F487", + "stack": "D n - c i -1 or 0" + }, + "bytecode": { "tlb": "#F487", "prefix": "F487", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { "value": 0, "stack": [] }, + { + "value": -1, + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Cell"] }, + { + "type": "simple", + "name": "i", + "value_types": ["Integer"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTMAX", + "since_version": 0, + "doc": { + "category": "dict_min", + "description": "Computes the maximal key `k` (represented by a _Slice_ with `n` data bits) in dictionary `D`, and returns `k` along with the associated value `x`.", + "gas": "", + "fift": "DICTMAX", + "fift_examples": [], + "opcode": "F48A", + "stack": "D n - x k -1 or 0" + }, + "bytecode": { "tlb": "#F48A", "prefix": "F48A", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { "value": 0, "stack": [] }, + { + "value": -1, + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Slice"] }, + { "type": "simple", "name": "k", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTMAXREF", + "since_version": 0, + "doc": { + "category": "dict_min", + "description": "Similar to `DICTMAX`, but returns the only reference in the value.", + "gas": "", + "fift": "DICTMAXREF", + "fift_examples": [], + "opcode": "F48B", + "stack": "D n - c k -1 or 0" + }, + "bytecode": { "tlb": "#F48B", "prefix": "F48B", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { "value": 0, "stack": [] }, + { + "value": -1, + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Cell"] }, + { "type": "simple", "name": "k", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTIMAX", + "since_version": 0, + "doc": { + "category": "dict_min", + "description": "Similar to `DICTMAX`, but computes the maximal key `i` under the assumption that all keys are big-endian signed `n`-bit integers. Notice that the key and value returned may differ from those computed by `DICTMAX` and `DICTUMAX`.", + "gas": "", + "fift": "DICTIMAX", + "fift_examples": [], + "opcode": "F48C", + "stack": "D n - x i -1 or 0" + }, + "bytecode": { "tlb": "#F48C", "prefix": "F48C", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { "value": 0, "stack": [] }, + { + "value": -1, + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Slice"] }, + { + "type": "simple", + "name": "i", + "value_types": ["Integer"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTIMAXREF", + "since_version": 0, + "doc": { + "category": "dict_min", + "description": "Similar to `DICTIMAX`, but returns the only reference in the value.", + "gas": "", + "fift": "DICTIMAXREF", + "fift_examples": [], + "opcode": "F48D", + "stack": "D n - c i -1 or 0" + }, + "bytecode": { "tlb": "#F48D", "prefix": "F48D", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { "value": 0, "stack": [] }, + { + "value": -1, + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Cell"] }, + { + "type": "simple", + "name": "i", + "value_types": ["Integer"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTUMAX", + "since_version": 0, + "doc": { + "category": "dict_min", + "description": "Similar to `DICTMAX`, but returns the key as an unsigned `n`-bit _Integer_ `i`.", + "gas": "", + "fift": "DICTUMAX", + "fift_examples": [], + "opcode": "F48E", + "stack": "D n - x i -1 or 0" + }, + "bytecode": { "tlb": "#F48E", "prefix": "F48E", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { "value": 0, "stack": [] }, + { + "value": -1, + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Slice"] }, + { + "type": "simple", + "name": "i", + "value_types": ["Integer"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTUMAXREF", + "since_version": 0, + "doc": { + "category": "dict_min", + "description": "Similar to `DICTUMAX`, but returns the only reference in the value.", + "gas": "", + "fift": "DICTUMAXREF", + "fift_examples": [], + "opcode": "F48F", + "stack": "D n - c i -1 or 0" + }, + "bytecode": { "tlb": "#F48F", "prefix": "F48F", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { "value": 0, "stack": [] }, + { + "value": -1, + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Cell"] }, + { + "type": "simple", + "name": "i", + "value_types": ["Integer"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTREMMIN", + "since_version": 0, + "doc": { + "category": "dict_min", + "description": "Computes the minimal key `k` (represented by a _Slice_ with `n` data bits) in dictionary `D`, removes `k` from the dictionary, and returns `k` along with the associated value `x` and the modified dictionary `D'`.", + "gas": "", + "fift": "DICTREMMIN", + "fift_examples": [], + "opcode": "F492", + "stack": "D n - D' x k -1 or D 0" + }, + "bytecode": { "tlb": "#F492", "prefix": "F492", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { + "type": "simple", + "name": "D", + "value_types": ["Slice", "Null"] + } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "D2", + "value_types": ["Slice", "Null"] + }, + { "type": "simple", "name": "x", "value_types": ["Slice"] }, + { "type": "simple", "name": "k", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTREMMINREF", + "since_version": 0, + "doc": { + "category": "dict_min", + "description": "Similar to `DICTREMMIN`, but returns the only reference in the value as a _Cell_ `c`.", + "gas": "", + "fift": "DICTREMMINREF", + "fift_examples": [], + "opcode": "F493", + "stack": "D n - D' c k -1 or D 0" + }, + "bytecode": { "tlb": "#F493", "prefix": "F493", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { + "type": "simple", + "name": "D", + "value_types": ["Slice", "Null"] + } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "D2", + "value_types": ["Slice", "Null"] + }, + { "type": "simple", "name": "c", "value_types": ["Cell"] }, + { "type": "simple", "name": "k", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTIREMMIN", + "since_version": 0, + "doc": { + "category": "dict_min", + "description": "Similar to `DICTREMMIN`, but computes the minimal key `i` under the assumption that all keys are big-endian signed `n`-bit integers. Notice that the key and value returned may differ from those computed by `DICTREMMIN` and `DICTUREMMIN`.", + "gas": "", + "fift": "DICTIREMMIN", + "fift_examples": [], + "opcode": "F494", + "stack": "D n - D' x i -1 or D 0" + }, + "bytecode": { "tlb": "#F494", "prefix": "F494", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { + "type": "simple", + "name": "D", + "value_types": ["Slice", "Null"] + } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "D2", + "value_types": ["Slice", "Null"] + }, + { "type": "simple", "name": "x", "value_types": ["Slice"] }, + { + "type": "simple", + "name": "i", + "value_types": ["Integer"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTIREMMINREF", + "since_version": 0, + "doc": { + "category": "dict_min", + "description": "Similar to `DICTIREMMIN`, but returns the only reference in the value.", + "gas": "", + "fift": "DICTIREMMINREF", + "fift_examples": [], + "opcode": "F495", + "stack": "D n - D' c i -1 or D 0" + }, + "bytecode": { "tlb": "#F495", "prefix": "F495", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { + "type": "simple", + "name": "D", + "value_types": ["Slice", "Null"] + } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "D2", + "value_types": ["Slice", "Null"] + }, + { "type": "simple", "name": "c", "value_types": ["Cell"] }, + { + "type": "simple", + "name": "i", + "value_types": ["Integer"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTUREMMIN", + "since_version": 0, + "doc": { + "category": "dict_min", + "description": "Similar to `DICTREMMIN`, but returns the key as an unsigned `n`-bit _Integer_ `i`.", + "gas": "", + "fift": "DICTUREMMIN", + "fift_examples": [], + "opcode": "F496", + "stack": "D n - D' x i -1 or D 0" + }, + "bytecode": { "tlb": "#F496", "prefix": "F496", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { + "type": "simple", + "name": "D", + "value_types": ["Slice", "Null"] + } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "D2", + "value_types": ["Slice", "Null"] + }, + { "type": "simple", "name": "x", "value_types": ["Slice"] }, + { + "type": "simple", + "name": "i", + "value_types": ["Integer"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTUREMMINREF", + "since_version": 0, + "doc": { + "category": "dict_min", + "description": "Similar to `DICTUREMMIN`, but returns the only reference in the value.", + "gas": "", + "fift": "DICTUREMMINREF", + "fift_examples": [], + "opcode": "F497", + "stack": "D n - D' c i -1 or D 0" + }, + "bytecode": { "tlb": "#F497", "prefix": "F497", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { + "type": "simple", + "name": "D", + "value_types": ["Slice", "Null"] + } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "D2", + "value_types": ["Slice", "Null"] + }, + { "type": "simple", "name": "c", "value_types": ["Cell"] }, + { + "type": "simple", + "name": "i", + "value_types": ["Integer"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTREMMAX", + "since_version": 0, + "doc": { + "category": "dict_min", + "description": "Computes the maximal key `k` (represented by a _Slice_ with `n` data bits) in dictionary `D`, removes `k` from the dictionary, and returns `k` along with the associated value `x` and the modified dictionary `D'`.", + "gas": "", + "fift": "DICTREMMAX", + "fift_examples": [], + "opcode": "F49A", + "stack": "D n - D' x k -1 or D 0" + }, + "bytecode": { "tlb": "#F49A", "prefix": "F49A", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { + "type": "simple", + "name": "D", + "value_types": ["Slice", "Null"] + } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "D2", + "value_types": ["Slice", "Null"] + }, + { "type": "simple", "name": "x", "value_types": ["Slice"] }, + { "type": "simple", "name": "k", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTREMMAXREF", + "since_version": 0, + "doc": { + "category": "dict_min", + "description": "Similar to `DICTREMMAX`, but returns the only reference in the value as a _Cell_ `c`.", + "gas": "", + "fift": "DICTREMMAXREF", + "fift_examples": [], + "opcode": "F49B", + "stack": "D n - D' c k -1 or D 0" + }, + "bytecode": { "tlb": "#F49B", "prefix": "F49B", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { + "type": "simple", + "name": "D", + "value_types": ["Slice", "Null"] + } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "D2", + "value_types": ["Slice", "Null"] + }, + { "type": "simple", "name": "c", "value_types": ["Cell"] }, + { "type": "simple", "name": "k", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTIREMMAX", + "since_version": 0, + "doc": { + "category": "dict_min", + "description": "Similar to `DICTREMMAX`, but computes the minimal key `i` under the assumption that all keys are big-endian signed `n`-bit integers. Notice that the key and value returned may differ from those computed by `DICTREMMAX` and `DICTUREMMAX`.", + "gas": "", + "fift": "DICTIREMMAX", + "fift_examples": [], + "opcode": "F49C", + "stack": "D n - D' x i -1 or D 0" + }, + "bytecode": { "tlb": "#F49C", "prefix": "F49C", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { + "type": "simple", + "name": "D", + "value_types": ["Slice", "Null"] + } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "D2", + "value_types": ["Slice", "Null"] + }, + { "type": "simple", "name": "x", "value_types": ["Slice"] }, + { + "type": "simple", + "name": "i", + "value_types": ["Integer"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTIREMMAXREF", + "since_version": 0, + "doc": { + "category": "dict_min", + "description": "Similar to `DICTIREMMAX`, but returns the only reference in the value.", + "gas": "", + "fift": "DICTIREMMAXREF", + "fift_examples": [], + "opcode": "F49D", + "stack": "D n - D' c i -1 or D 0" + }, + "bytecode": { "tlb": "#F49D", "prefix": "F49D", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { + "type": "simple", + "name": "D", + "value_types": ["Slice", "Null"] + } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "D2", + "value_types": ["Slice", "Null"] + }, + { "type": "simple", "name": "c", "value_types": ["Cell"] }, + { + "type": "simple", + "name": "i", + "value_types": ["Integer"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTUREMMAX", + "since_version": 0, + "doc": { + "category": "dict_min", + "description": "Similar to `DICTREMMAX`, but returns the key as an unsigned `n`-bit _Integer_ `i`.", + "gas": "", + "fift": "DICTUREMMAX", + "fift_examples": [], + "opcode": "F49E", + "stack": "D n - D' x i -1 or D 0" + }, + "bytecode": { "tlb": "#F49E", "prefix": "F49E", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { + "type": "simple", + "name": "D", + "value_types": ["Slice", "Null"] + } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "D2", + "value_types": ["Slice", "Null"] + }, + { "type": "simple", "name": "x", "value_types": ["Slice"] }, + { + "type": "simple", + "name": "i", + "value_types": ["Integer"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTUREMMAXREF", + "since_version": 0, + "doc": { + "category": "dict_min", + "description": "Similar to `DICTUREMMAX`, but returns the only reference in the value.", + "gas": "", + "fift": "DICTUREMMAXREF", + "fift_examples": [], + "opcode": "F49F", + "stack": "D n - D' c i -1 or D 0" + }, + "bytecode": { "tlb": "#F49F", "prefix": "F49F", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { + "type": "simple", + "name": "D", + "value_types": ["Slice", "Null"] + } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "D2", + "value_types": ["Slice", "Null"] + }, + { "type": "simple", "name": "c", "value_types": ["Cell"] }, + { + "type": "simple", + "name": "i", + "value_types": ["Integer"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DICTIGETJMP", + "since_version": 0, + "doc": { + "category": "dict_special", + "description": "Similar to `DICTIGET`, but with `x` `BLESS`ed into a continuation with a subsequent `JMPX` to it on success. On failure, does nothing. This is useful for implementing `switch`/`case` constructions.", + "gas": "", + "fift": "DICTIGETJMP", + "fift_examples": [], + "opcode": "F4A0", + "stack": "i D n - " + }, + "bytecode": { "tlb": "#F4A0", "prefix": "F4A0", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { + "branches": [{ "type": "variable", "var_name": "x" }], + "nobranch": false + } + }, + { + "mnemonic": "DICTUGETJMP", + "since_version": 0, + "doc": { + "category": "dict_special", + "description": "Similar to `DICTIGETJMP`, but performs `DICTUGET` instead of `DICTIGET`.", + "gas": "", + "fift": "DICTUGETJMP", + "fift_examples": [], + "opcode": "F4A1", + "stack": "i D n - " + }, + "bytecode": { "tlb": "#F4A1", "prefix": "F4A1", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { + "branches": [{ "type": "variable", "var_name": "x" }], + "nobranch": false + } + }, + { + "mnemonic": "DICTIGETEXEC", + "since_version": 0, + "doc": { + "category": "dict_special", + "description": "Similar to `DICTIGETJMP`, but with `EXECUTE` instead of `JMPX`.", + "gas": "", + "fift": "DICTIGETEXEC", + "fift_examples": [], + "opcode": "F4A2", + "stack": "i D n - " + }, + "bytecode": { "tlb": "#F4A2", "prefix": "F4A2", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { + "branches": [ + { + "type": "variable", + "var_name": "x", + "save": { + "c0": { + "type": "cc", + "save": { "c0": { "type": "register", "index": 0 } } + } + } + } + ], + "nobranch": false + } + }, + { + "mnemonic": "DICTUGETEXEC", + "since_version": 0, + "doc": { + "category": "dict_special", + "description": "Similar to `DICTUGETJMP`, but with `EXECUTE` instead of `JMPX`.", + "gas": "", + "fift": "DICTUGETEXEC", + "fift_examples": [], + "opcode": "F4A3", + "stack": "i D n - " + }, + "bytecode": { "tlb": "#F4A3", "prefix": "F4A3", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "i", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { + "branches": [ + { + "type": "variable", + "var_name": "x", + "save": { + "c0": { + "type": "cc", + "save": { "c0": { "type": "register", "index": 0 } } + } + } + } + ], + "nobranch": false + } + }, + { + "mnemonic": "DICTPUSHCONST", + "since_version": 0, + "doc": { + "category": "dict_special", + "description": "Pushes a non-empty constant dictionary `D` (as a `Cell^?`) along with its key length `0 <= n <= 1023`, stored as a part of the instruction. The dictionary itself is created from the first of remaining references of the current continuation. In this way, the complete `DICTPUSHCONST` instruction can be obtained by first serializing `xF4A4_`, then the non-empty dictionary itself (one `1` bit and a cell reference), and then the unsigned 10-bit integer `n` (as if by a `STU 10` instruction). An empty dictionary can be pushed by a `NEWDICT` primitive instead.", + "gas": "34", + "fift": "[ref] [n] DICTPUSHCONST", + "fift_examples": [], + "opcode": "F4A6_n", + "stack": " - D n" + }, + "bytecode": { + "tlb": "#F4A6_ d:^Cell n:uint10", + "prefix": "F4A6_", + "operands": [ + { + "name": "d", + "type": "ref", + "display_hints": [{ "type": "dictionary", "size_var": "n" }] + }, + { + "name": "n", + "type": "uint", + "size": 10, + "min_value": 0, + "max_value": 1023, + "display_hints": [] + } + ] + }, + "value_flow": { + "inputs": { "stack": [], "registers": [] }, + "outputs": { + "stack": [ + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PFXDICTGETQ", + "since_version": 0, + "doc": { + "category": "dict_special", + "description": "Looks up the unique prefix of _Slice_ `s` present in the prefix code dictionary represented by `Cell^?` `D` and `0 <= n <= 1023`. If found, the prefix of `s` is returned as `s'`, and the corresponding value (also a _Slice_) as `x`. The remainder of `s` is returned as a _Slice_ `s''`. If no prefix of `s` is a key in prefix code dictionary `D`, returns the unchanged `s` and a zero flag to indicate failure.", + "gas": "", + "fift": "PFXDICTGETQ", + "fift_examples": [], + "opcode": "F4A8", + "stack": "s D n - s' x s'' -1 or s 0" + }, + "bytecode": { "tlb": "#F4A8", "prefix": "F4A8", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "s2", + "value_types": ["Slice"] + }, + { "type": "simple", "name": "x", "value_types": ["Slice"] }, + { "type": "simple", "name": "s3", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PFXDICTGET", + "since_version": 0, + "doc": { + "category": "dict_special", + "description": "Similar to `PFXDICTGET`, but throws a cell deserialization failure exception on failure.", + "gas": "", + "fift": "PFXDICTGET", + "fift_examples": [], + "opcode": "F4A9", + "stack": "s D n - s' x s''" + }, + "bytecode": { "tlb": "#F4A9", "prefix": "F4A9", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "s2", "value_types": ["Slice"] }, + { "type": "simple", "name": "x", "value_types": ["Slice"] }, + { "type": "simple", "name": "s3", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PFXDICTGETJMP", + "since_version": 0, + "doc": { + "category": "dict_special", + "description": "Similar to `PFXDICTGETQ`, but on success `BLESS`es the value `x` into a _Continuation_ and transfers control to it as if by a `JMPX`. On failure, returns `s` unchanged and continues execution.", + "gas": "", + "fift": "PFXDICTGETJMP", + "fift_examples": [], + "opcode": "F4AA", + "stack": "s D n - s' s'' or s" + }, + "bytecode": { "tlb": "#F4AA", "prefix": "F4AA", "operands": [] }, + "value_flow": { + "inputs": { "registers": [] }, + "outputs": { "registers": [] } + }, + "control_flow": { + "branches": [{ "type": "variable", "var_name": "x" }], + "nobranch": false + } + }, + { + "mnemonic": "PFXDICTGETEXEC", + "since_version": 0, + "doc": { + "category": "dict_special", + "description": "Similar to `PFXDICTGETJMP`, but `EXEC`utes the continuation found instead of jumping to it. On failure, throws a cell deserialization exception.", + "gas": "", + "fift": "PFXDICTGETEXEC", + "fift_examples": [], + "opcode": "F4AB", + "stack": "s D n - s' s''" + }, + "bytecode": { "tlb": "#F4AB", "prefix": "F4AB", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "s2", "value_types": ["Slice"] }, + { "type": "simple", "name": "s3", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { + "branches": [ + { + "type": "variable", + "var_name": "x", + "save": { + "c0": { + "type": "cc", + "save": { "c0": { "type": "register", "index": 0 } } + } + } + } + ], + "nobranch": false + } + }, + { + "mnemonic": "PFXDICTCONSTGETJMP", + "since_version": 0, + "doc": { + "category": "dict_special", + "description": "Combines `[n] DICTPUSHCONST` for `0 <= n <= 1023` with `PFXDICTGETJMP`.", + "gas": "", + "fift": "[ref] [n] PFXDICTCONSTGETJMP\n[ref] [n] PFXDICTSWITCH", + "fift_examples": [], + "opcode": "F4AE_n", + "stack": "s - s' s'' or s" + }, + "bytecode": { + "tlb": "#F4AE_ d:^Cell n:uint10", + "prefix": "F4AE_", + "operands": [ + { + "name": "d", + "type": "ref", + "display_hints": [{ "type": "dictionary", "size_var": "n" }] + }, + { + "name": "n", + "type": "uint", + "size": 10, + "min_value": 0, + "max_value": 1023, + "display_hints": [] + } + ] + }, + "value_flow": { + "inputs": { "registers": [] }, + "outputs": { "registers": [] } + }, + "control_flow": { + "branches": [{ "type": "variable", "var_name": "x" }], + "nobranch": false + } + }, + { + "mnemonic": "DICTIGETJMPZ", + "since_version": 0, + "doc": { + "category": "dict_special", + "description": "A variant of `DICTIGETJMP` that returns index `i` on failure.", + "gas": "", + "fift": "DICTIGETJMPZ", + "fift_examples": [], + "opcode": "F4BC", + "stack": "i D n - i or nothing" + }, + "bytecode": { "tlb": "#F4BC", "prefix": "F4BC", "operands": [] }, + "value_flow": { + "inputs": { "registers": [] }, + "outputs": { "registers": [] } + }, + "control_flow": { + "branches": [{ "type": "variable", "var_name": "x" }], + "nobranch": false + } + }, + { + "mnemonic": "DICTUGETJMPZ", + "since_version": 0, + "doc": { + "category": "dict_special", + "description": "A variant of `DICTUGETJMP` that returns index `i` on failure.", + "gas": "", + "fift": "DICTUGETJMPZ", + "fift_examples": [], + "opcode": "F4BD", + "stack": "i D n - i or nothing" + }, + "bytecode": { "tlb": "#F4BD", "prefix": "F4BD", "operands": [] }, + "value_flow": { + "inputs": { "registers": [] }, + "outputs": { "registers": [] } + }, + "control_flow": { + "branches": [{ "type": "variable", "var_name": "x" }], + "nobranch": false + } + }, + { + "mnemonic": "DICTIGETEXECZ", + "since_version": 0, + "doc": { + "category": "dict_special", + "description": "A variant of `DICTIGETEXEC` that returns index `i` on failure.", + "gas": "", + "fift": "DICTIGETEXECZ", + "fift_examples": [], + "opcode": "F4BE", + "stack": "i D n - i or nothing" + }, + "bytecode": { "tlb": "#F4BE", "prefix": "F4BE", "operands": [] }, + "value_flow": { + "inputs": { "registers": [] }, + "outputs": { "registers": [] } + }, + "control_flow": { + "branches": [ + { + "type": "variable", + "var_name": "x", + "save": { + "c0": { + "type": "cc", + "save": { "c0": { "type": "register", "index": 0 } } + } + } + } + ], + "nobranch": false + } + }, + { + "mnemonic": "DICTUGETEXECZ", + "since_version": 0, + "doc": { + "category": "dict_special", + "description": "A variant of `DICTUGETEXEC` that returns index `i` on failure.", + "gas": "", + "fift": "DICTUGETEXECZ", + "fift_examples": [], + "opcode": "F4BF", + "stack": "i D n - i or nothing" + }, + "bytecode": { "tlb": "#F4BF", "prefix": "F4BF", "operands": [] }, + "value_flow": { + "inputs": { "registers": [] }, + "outputs": { "registers": [] } + }, + "control_flow": { + "branches": [ + { + "type": "variable", + "var_name": "x", + "save": { + "c0": { + "type": "cc", + "save": { "c0": { "type": "register", "index": 0 } } + } + } + } + ], + "nobranch": false + } + }, + { + "mnemonic": "SUBDICTGET", + "since_version": 0, + "doc": { + "category": "dict_sub", + "description": "Constructs a subdictionary consisting of all keys beginning with prefix `k` (represented by a _Slice_, the first `0 <= l <= n <= 1023` data bits of which are used as a key) of length `l` in dictionary `D` of type `HashmapE(n,X)` with `n`-bit keys. On success, returns the new subdictionary of the same type `HashmapE(n,X)` as a _Slice_ `D'`.", + "gas": "", + "fift": "SUBDICTGET", + "fift_examples": [], + "opcode": "F4B1", + "stack": "k l D n - D'" + }, + "bytecode": { "tlb": "#F4B1", "prefix": "F4B1", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "k", "value_types": ["Slice"] }, + { "type": "simple", "name": "l", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "D2", "value_types": ["Slice", "Null"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SUBDICTIGET", + "since_version": 0, + "doc": { + "category": "dict_sub", + "description": "Variant of `SUBDICTGET` with the prefix represented by a signed big-endian `l`-bit _Integer_ `x`, where necessarily `l <= 257`.", + "gas": "", + "fift": "SUBDICTIGET", + "fift_examples": [], + "opcode": "F4B2", + "stack": "x l D n - D'" + }, + "bytecode": { "tlb": "#F4B2", "prefix": "F4B2", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "l", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "D2", "value_types": ["Slice", "Null"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SUBDICTUGET", + "since_version": 0, + "doc": { + "category": "dict_sub", + "description": "Variant of `SUBDICTGET` with the prefix represented by an unsigned big-endian `l`-bit _Integer_ `x`, where necessarily `l <= 256`.", + "gas": "", + "fift": "SUBDICTUGET", + "fift_examples": [], + "opcode": "F4B3", + "stack": "x l D n - D'" + }, + "bytecode": { "tlb": "#F4B3", "prefix": "F4B3", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "l", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "D2", "value_types": ["Slice", "Null"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SUBDICTRPGET", + "since_version": 0, + "doc": { + "category": "dict_sub", + "description": "Similar to `SUBDICTGET`, but removes the common prefix `k` from all keys of the new dictionary `D'`, which becomes of type `HashmapE(n-l,X)`.", + "gas": "", + "fift": "SUBDICTRPGET", + "fift_examples": [], + "opcode": "F4B5", + "stack": "k l D n - D'" + }, + "bytecode": { "tlb": "#F4B5", "prefix": "F4B5", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "k", "value_types": ["Slice"] }, + { "type": "simple", "name": "l", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "D2", "value_types": ["Slice", "Null"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SUBDICTIRPGET", + "since_version": 0, + "doc": { + "category": "dict_sub", + "description": "Variant of `SUBDICTRPGET` with the prefix represented by a signed big-endian `l`-bit _Integer_ `x`, where necessarily `l <= 257`.", + "gas": "", + "fift": "SUBDICTIRPGET", + "fift_examples": [], + "opcode": "F4B6", + "stack": "x l D n - D'" + }, + "bytecode": { "tlb": "#F4B6", "prefix": "F4B6", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "l", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "D2", "value_types": ["Slice", "Null"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SUBDICTURPGET", + "since_version": 0, + "doc": { + "category": "dict_sub", + "description": "Variant of `SUBDICTRPGET` with the prefix represented by an unsigned big-endian `l`-bit _Integer_ `x`, where necessarily `l <= 256`.", + "gas": "", + "fift": "SUBDICTURPGET", + "fift_examples": [], + "opcode": "F4B7", + "stack": "x l D n - D'" + }, + "bytecode": { "tlb": "#F4B7", "prefix": "F4B7", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "l", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Slice", "Null"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "D2", "value_types": ["Slice", "Null"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "ACCEPT", + "since_version": 0, + "doc": { + "category": "app_gas", + "description": "Sets current gas limit `g_l` to its maximal allowed value `g_m`, and resets the gas credit `g_c` to zero, decreasing the value of `g_r` by `g_c` in the process.\nIn other words, the current smart contract agrees to buy some gas to finish the current transaction. This action is required to process external messages, which bring no value (hence no gas) with themselves.", + "gas": "26", + "fift": "ACCEPT", + "fift_examples": [], + "opcode": "F800", + "stack": "-" + }, + "bytecode": { "tlb": "#F800", "prefix": "F800", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [], + "registers": [{ "type": "special", "name": "gas" }] + }, + "outputs": { + "stack": [], + "registers": [{ "type": "special", "name": "gas" }] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SETGASLIMIT", + "since_version": 0, + "doc": { + "category": "app_gas", + "description": "Sets current gas limit `g_l` to the minimum of `g` and `g_m`, and resets the gas credit `g_c` to zero. If the gas consumed so far (including the present instruction) exceeds the resulting value of `g_l`, an (unhandled) out of gas exception is thrown before setting new gas limits. Notice that `SETGASLIMIT` with an argument `g >= 2^63-1` is equivalent to `ACCEPT`.", + "gas": "26", + "fift": "SETGASLIMIT", + "fift_examples": [], + "opcode": "F801", + "stack": "g - " + }, + "bytecode": { "tlb": "#F801", "prefix": "F801", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "g", "value_types": ["Integer"] } + ], + "registers": [{ "type": "special", "name": "gas" }] + }, + "outputs": { + "stack": [], + "registers": [{ "type": "special", "name": "gas" }] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "GASCONSUMED", + "since_version": 4, + "doc": { + "category": "app_gas", + "description": "Returns gas consumed by VM so far (including this instruction).", + "gas": "26", + "fift": "GASCONSUMED", + "fift_examples": [], + "opcode": "F807", + "stack": "- g_c" + }, + "bytecode": { "tlb": "#F807", "prefix": "F807", "operands": [] }, + "value_flow": { + "inputs": { "stack": [], "registers": [] }, + "outputs": { + "stack": [ + { "type": "simple", "name": "g_c", "value_types": ["Integer"] } + ], + "registers": [{ "type": "special", "name": "gas" }] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "COMMIT", + "since_version": 0, + "doc": { + "category": "app_gas", + "description": "Commits the current state of registers `c4` (''persistent data'') and `c5` (''actions'') so that the current execution is considered ''successful'' with the saved values even if an exception is thrown later.", + "gas": "26", + "fift": "COMMIT", + "fift_examples": [], + "opcode": "F80F", + "stack": "-" + }, + "bytecode": { "tlb": "#F80F", "prefix": "F80F", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [], + "registers": [ + { "type": "constant", "index": 4 }, + { "type": "constant", "index": 5 } + ] + }, + "outputs": { + "stack": [], + "registers": [{ "type": "special", "name": "cstate" }] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "RANDU256", + "since_version": 0, + "doc": { + "category": "app_rnd", + "description": "Generates a new pseudo-random unsigned 256-bit _Integer_ `x`. The algorithm is as follows: if `r` is the old value of the random seed, considered as a 32-byte array (by constructing the big-endian representation of an unsigned 256-bit integer), then its `sha512(r)` is computed; the first 32 bytes of this hash are stored as the new value `r'` of the random seed, and the remaining 32 bytes are returned as the next random value `x`.", + "gas": "26+|c7|+|c1_1|", + "fift": "RANDU256", + "fift_examples": [], + "opcode": "F810", + "stack": "- x" + }, + "bytecode": { "tlb": "#F810", "prefix": "F810", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [], + "registers": [{ "type": "constant", "index": 7 }] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [{ "type": "constant", "index": 7 }] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "RAND", + "since_version": 0, + "doc": { + "category": "app_rnd", + "description": "Generates a new pseudo-random integer `z` in the range `0...y-1` (or `y...-1`, if `y<0`). More precisely, an unsigned random value `x` is generated as in `RAND256U`; then `z:=floor(x*y/2^256)` is computed.\nEquivalent to `RANDU256` `256 MULRSHIFT`.", + "gas": "26+|c7|+|c1_1|", + "fift": "RAND", + "fift_examples": [], + "opcode": "F811", + "stack": "y - z" + }, + "bytecode": { "tlb": "#F811", "prefix": "F811", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [{ "type": "constant", "index": 7 }] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [{ "type": "constant", "index": 7 }] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SETRAND", + "since_version": 0, + "doc": { + "category": "app_rnd", + "description": "Sets the random seed to unsigned 256-bit _Integer_ `x`.", + "gas": "26+|c7|+|c1_1|", + "fift": "SETRAND", + "fift_examples": [], + "opcode": "F814", + "stack": "x - " + }, + "bytecode": { "tlb": "#F814", "prefix": "F814", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [{ "type": "constant", "index": 7 }] + }, + "outputs": { + "stack": [], + "registers": [{ "type": "constant", "index": 7 }] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "ADDRAND", + "since_version": 0, + "doc": { + "category": "app_rnd", + "description": "Mixes unsigned 256-bit _Integer_ `x` into the random seed `r` by setting the random seed to `Sha` of the concatenation of two 32-byte strings: the first with the big-endian representation of the old seed `r`, and the second with the big-endian representation of `x`.", + "gas": "26", + "fift": "ADDRAND\nRANDOMIZE", + "fift_examples": [], + "opcode": "F815", + "stack": "x - " + }, + "bytecode": { "tlb": "#F815", "prefix": "F815", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [{ "type": "constant", "index": 7 }] + }, + "outputs": { + "stack": [], + "registers": [{ "type": "constant", "index": 7 }] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "GETPARAM", + "since_version": 0, + "doc": { + "category": "app_config", + "description": "Returns the `i`-th parameter from the _Tuple_ provided at `c7` for `0 <= i <= 15`. Equivalent to `c7 PUSHCTR` `FIRST` `[i] INDEX`.\nIf one of these internal operations fails, throws an appropriate type checking or range checking exception.", + "gas": "26", + "fift": "[i] GETPARAM", + "fift_examples": [], + "opcode": "F82i", + "stack": " - x" + }, + "bytecode": { + "tlb": "#F82 i:uint4", + "prefix": "F82", + "operands": [ + { + "name": "i", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [], + "registers": [{ "type": "constant", "index": 7 }] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "CONFIGDICT", + "since_version": 0, + "doc": { + "category": "app_config", + "description": "Returns the global configuration dictionary along with its key length (32).\nEquivalent to `CONFIGROOT` `32 PUSHINT`.", + "gas": "26", + "fift": "CONFIGDICT", + "fift_examples": [], + "opcode": "F830", + "stack": " - D 32" + }, + "bytecode": { "tlb": "#F830", "prefix": "F830", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [], + "registers": [{ "type": "constant", "index": 7 }] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Slice", "Null"] }, + { "type": "const", "value": 32, "value_type": "Integer" } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "CONFIGPARAM", + "since_version": 0, + "doc": { + "category": "app_config", + "description": "Returns the value of the global configuration parameter with integer index `i` as a _Cell_ `c`, and a flag to indicate success.\nEquivalent to `CONFIGDICT` `DICTIGETREF`.", + "gas": "", + "fift": "CONFIGPARAM", + "fift_examples": [], + "opcode": "F832", + "stack": "i - c -1 or 0" + }, + "bytecode": { "tlb": "#F832", "prefix": "F832", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "i", "value_types": ["Integer"] } + ], + "registers": [{ "type": "constant", "index": 7 }] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { "value": 0, "stack": [] }, + { + "value": -1, + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Cell"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "CONFIGOPTPARAM", + "since_version": 0, + "doc": { + "category": "app_config", + "description": "Returns the value of the global configuration parameter with integer index `i` as a _Maybe Cell_ `c^?`.\nEquivalent to `CONFIGDICT` `DICTIGETOPTREF`.", + "gas": "", + "fift": "CONFIGOPTPARAM", + "fift_examples": [], + "opcode": "F833", + "stack": "i - c^?" + }, + "bytecode": { "tlb": "#F833", "prefix": "F833", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "i", "value_types": ["Integer"] } + ], + "registers": [{ "type": "constant", "index": 7 }] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Cell", "Null"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PREVMCBLOCKS", + "since_version": 4, + "doc": { + "category": "app_config", + "description": "Retrives `last_mc_blocks` part of PrevBlocksInfo from c7 (parameter 13).", + "gas": "", + "fift": "PREVMCBLOCKS", + "fift_examples": [], + "opcode": "F83400", + "stack": "- t" + }, + "bytecode": { "tlb": "#F83400", "prefix": "F83400", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [], + "registers": [{ "type": "constant", "index": 7 }] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "t", "value_types": ["Tuple"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PREVKEYBLOCK", + "since_version": 4, + "doc": { + "category": "app_config", + "description": "Retrives `prev_key_block` part of PrevBlocksInfo from c7 (parameter 13).", + "gas": "", + "fift": "PREVKEYBLOCK", + "fift_examples": [], + "opcode": "F83401", + "stack": "- t" + }, + "bytecode": { "tlb": "#F83401", "prefix": "F83401", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [], + "registers": [{ "type": "constant", "index": 7 }] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "t", "value_types": ["Tuple"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "GLOBALID", + "since_version": 4, + "doc": { + "category": "app_config", + "description": "Retrieves `global_id` from 19 network config.", + "gas": "", + "fift": "GLOBALID", + "fift_examples": [], + "opcode": "F835", + "stack": "- i" + }, + "bytecode": { "tlb": "#F835", "prefix": "F835", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [], + "registers": [{ "type": "constant", "index": 7 }] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "i", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "GETGLOBVAR", + "since_version": 0, + "doc": { + "category": "app_global", + "description": "Returns the `k`-th global variable for `0 <= k < 255`.\nEquivalent to `c7 PUSHCTR` `SWAP` `INDEXVARQ`.", + "gas": "26", + "fift": "GETGLOBVAR", + "fift_examples": [], + "opcode": "F840", + "stack": "k - x" + }, + "bytecode": { "tlb": "#F840", "prefix": "F840", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "k", "value_types": ["Integer"] } + ], + "registers": [{ "type": "constant", "index": 7 }] + }, + "outputs": { + "stack": [{ "type": "simple", "name": "x" }], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "GETGLOB", + "since_version": 0, + "doc": { + "category": "app_global", + "description": "Returns the `k`-th global variable for `1 <= k <= 31`.\nEquivalent to `c7 PUSHCTR` `[k] INDEXQ`.", + "gas": "26", + "fift": "[k] GETGLOB", + "fift_examples": [], + "opcode": "F85_k", + "stack": " - x" + }, + "bytecode": { + "tlb": "#F85_ k:(## 5) {1 <= k}", + "prefix": "F85_", + "operands_range_check": { "length": 5, "from": 1, "to": 31 }, + "operands": [ + { + "name": "k", + "type": "uint", + "size": 5, + "min_value": 1, + "max_value": 31, + "display_hints": [] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [], + "registers": [{ "type": "constant", "index": 7 }] + }, + "outputs": { + "stack": [{ "type": "simple", "name": "x" }], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SETGLOBVAR", + "since_version": 0, + "doc": { + "category": "app_global", + "description": "Assigns `x` to the `k`-th global variable for `0 <= k < 255`.\nEquivalent to `c7 PUSHCTR` `ROTREV` `SETINDEXVARQ` `c7 POPCTR`.", + "gas": "26+|c7'|", + "fift": "SETGLOBVAR", + "fift_examples": [], + "opcode": "F860", + "stack": "x k - " + }, + "bytecode": { "tlb": "#F860", "prefix": "F860", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x" }, + { "type": "simple", "name": "k", "value_types": ["Integer"] } + ], + "registers": [{ "type": "constant", "index": 7 }] + }, + "outputs": { + "stack": [], + "registers": [{ "type": "constant", "index": 7 }] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SETGLOB", + "since_version": 0, + "doc": { + "category": "app_global", + "description": "Assigns `x` to the `k`-th global variable for `1 <= k <= 31`.\nEquivalent to `c7 PUSHCTR` `SWAP` `k SETINDEXQ` `c7 POPCTR`.", + "gas": "26+|c7'|", + "fift": "[k] SETGLOB", + "fift_examples": [], + "opcode": "F87_k", + "stack": "x - " + }, + "bytecode": { + "tlb": "#F87_ k:(## 5) {1 <= k}", + "prefix": "F87_", + "operands_range_check": { "length": 5, "from": 1, "to": 31 }, + "operands": [ + { + "name": "k", + "type": "uint", + "size": 5, + "min_value": 1, + "max_value": 31, + "display_hints": [] + } + ] + }, + "value_flow": { + "inputs": { + "stack": [{ "type": "simple", "name": "x" }], + "registers": [{ "type": "constant", "index": 7 }] + }, + "outputs": { + "stack": [], + "registers": [{ "type": "constant", "index": 7 }] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "HASHCU", + "since_version": 0, + "doc": { + "category": "app_crypto", + "description": "Computes the representation hash of a _Cell_ `c` and returns it as a 256-bit unsigned integer `x`. Useful for signing and checking signatures of arbitrary entities represented by a tree of cells.", + "gas": "26", + "fift": "HASHCU", + "fift_examples": [], + "opcode": "F900", + "stack": "c - x" + }, + "bytecode": { "tlb": "#F900", "prefix": "F900", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [{ "type": "simple", "name": "c", "value_types": ["Cell"] }], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "HASHSU", + "since_version": 0, + "doc": { + "category": "app_crypto", + "description": "Computes the hash of a _Slice_ `s` and returns it as a 256-bit unsigned integer `x`. The result is the same as if an ordinary cell containing only data and references from `s` had been created and its hash computed by `HASHCU`.", + "gas": "526", + "fift": "HASHSU", + "fift_examples": [], + "opcode": "F901", + "stack": "s - x" + }, + "bytecode": { "tlb": "#F901", "prefix": "F901", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SHA256U", + "since_version": 0, + "doc": { + "category": "app_crypto", + "description": "Computes `Sha` of the data bits of _Slice_ `s`. If the bit length of `s` is not divisible by eight, throws a cell underflow exception. The hash value is returned as a 256-bit unsigned integer `x`.", + "gas": "26", + "fift": "SHA256U", + "fift_examples": [], + "opcode": "F902", + "stack": "s - x" + }, + "bytecode": { "tlb": "#F902", "prefix": "F902", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "HASHEXT_SHA256", + "since_version": 4, + "doc": { + "category": "app_crypto", + "description": "Calculates and returns hash of the concatenation of slices (or builders) `s_1...s_n`.", + "gas": "1/33 gas per byte", + "fift": "HASHEXT_SHA256", + "fift_examples": [], + "opcode": "F90400", + "stack": "s_1 ... s_n n - h" + }, + "bytecode": { "tlb": "#F90400", "prefix": "F90400", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { + "type": "array", + "name": "input_parts", + "length_var": "n", + "array_entry": [ + { + "type": "simple", + "name": "s", + "value_types": ["Slice", "Builder"] + } + ] + }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "h", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "HASHEXT_SHA512", + "since_version": 4, + "doc": { + "category": "app_crypto", + "description": "Calculates and returns hash of the concatenation of slices (or builders) `s_1...s_n`.", + "gas": "1/16 gas per byte", + "fift": "HASHEXT_SHA512", + "fift_examples": [], + "opcode": "F90401", + "stack": "s_1 ... s_n n - h1 h2" + }, + "bytecode": { "tlb": "#F90401", "prefix": "F90401", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { + "type": "array", + "name": "input_parts", + "length_var": "n", + "array_entry": [ + { + "type": "simple", + "name": "s", + "value_types": ["Slice", "Builder"] + } + ] + }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "h1", "value_types": ["Integer"] }, + { "type": "simple", "name": "h2", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "HASHEXT_BLAKE2B", + "since_version": 4, + "doc": { + "category": "app_crypto", + "description": "Calculates and returns hash of the concatenation of slices (or builders) `s_1...s_n`.", + "gas": "1/19 gas per byte", + "fift": "HASHEXT_BLAKE2B", + "fift_examples": [], + "opcode": "F90402", + "stack": "s_1 ... s_n n - h1 h2" + }, + "bytecode": { "tlb": "#F90402", "prefix": "F90402", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { + "type": "array", + "name": "input_parts", + "length_var": "n", + "array_entry": [ + { + "type": "simple", + "name": "s", + "value_types": ["Slice", "Builder"] + } + ] + }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "h1", "value_types": ["Integer"] }, + { "type": "simple", "name": "h2", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "HASHEXT_KECCAK256", + "since_version": 4, + "doc": { + "category": "app_crypto", + "description": "Calculates and returns hash of the concatenation of slices (or builders) `s_1...s_n`.", + "gas": "1/11 gas per byte", + "fift": "HASHEXT_KECCAK256", + "fift_examples": [], + "opcode": "F90403", + "stack": "s_1 ... s_n n - h" + }, + "bytecode": { "tlb": "#F90403", "prefix": "F90403", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { + "type": "array", + "name": "input_parts", + "length_var": "n", + "array_entry": [ + { + "type": "simple", + "name": "s", + "value_types": ["Slice", "Builder"] + } + ] + }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "h", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "HASHEXT_KECCAK512", + "since_version": 4, + "doc": { + "category": "app_crypto", + "description": "Calculates and returns hash of the concatenation of slices (or builders) `s_1...s_n`.", + "gas": "1/19 gas per byte", + "fift": "HASHEXT_KECCAK512", + "fift_examples": [], + "opcode": "F90404", + "stack": "s_1 ... s_n n - h1 h2" + }, + "bytecode": { "tlb": "#F90404", "prefix": "F90404", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { + "type": "array", + "name": "input_parts", + "length_var": "n", + "array_entry": [ + { + "type": "simple", + "name": "s", + "value_types": ["Slice", "Builder"] + } + ] + }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "h1", "value_types": ["Integer"] }, + { "type": "simple", "name": "h2", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "HASHEXTR_SHA256", + "since_version": 4, + "doc": { + "category": "app_crypto", + "description": "Calculates and returns hash of the concatenation of slices (or builders) `s_1...s_n`.", + "gas": "1/33 gas per byte", + "fift": "HASHEXTR_SHA256", + "fift_examples": [], + "opcode": "F90500", + "stack": "s_n ... s_1 n - h" + }, + "bytecode": { "tlb": "#F90500", "prefix": "F90500", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { + "type": "array", + "name": "input_parts", + "length_var": "n", + "array_entry": [ + { + "type": "simple", + "name": "s", + "value_types": ["Slice", "Builder"] + } + ] + }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "h", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "HASHEXTR_SHA512", + "since_version": 4, + "doc": { + "category": "app_crypto", + "description": "Calculates and returns hash of the concatenation of slices (or builders) `s_1...s_n`.", + "gas": "1/16 gas per byte", + "fift": "HASHEXTR_SHA512", + "fift_examples": [], + "opcode": "F90501", + "stack": "s_n ... s_1 n - h1 h2" + }, + "bytecode": { "tlb": "#F90501", "prefix": "F90501", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { + "type": "array", + "name": "input_parts", + "length_var": "n", + "array_entry": [ + { + "type": "simple", + "name": "s", + "value_types": ["Slice", "Builder"] + } + ] + }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "h1", "value_types": ["Integer"] }, + { "type": "simple", "name": "h2", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "HASHEXTR_BLAKE2B", + "since_version": 4, + "doc": { + "category": "app_crypto", + "description": "Calculates and returns hash of the concatenation of slices (or builders) `s_1...s_n`.", + "gas": "1/19 gas per byte", + "fift": "HASHEXTR_BLAKE2B", + "fift_examples": [], + "opcode": "F90502", + "stack": "s_n ... s_1 n - h1 h2" + }, + "bytecode": { "tlb": "#F90502", "prefix": "F90502", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { + "type": "array", + "name": "input_parts", + "length_var": "n", + "array_entry": [ + { + "type": "simple", + "name": "s", + "value_types": ["Slice", "Builder"] + } + ] + }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "h1", "value_types": ["Integer"] }, + { "type": "simple", "name": "h2", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "HASHEXTR_KECCAK256", + "since_version": 4, + "doc": { + "category": "app_crypto", + "description": "Calculates and returns hash of the concatenation of slices (or builders) `s_1...s_n`.", + "gas": "1/11 gas per byte", + "fift": "HASHEXTR_KECCAK256", + "fift_examples": [], + "opcode": "F90503", + "stack": "s_n ... s_1 n - h" + }, + "bytecode": { "tlb": "#F90503", "prefix": "F90503", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { + "type": "array", + "name": "input_parts", + "length_var": "n", + "array_entry": [ + { + "type": "simple", + "name": "s", + "value_types": ["Slice", "Builder"] + } + ] + }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "h", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "HASHEXTR_KECCAK512", + "since_version": 4, + "doc": { + "category": "app_crypto", + "description": "Calculates and returns hash of the concatenation of slices (or builders) `s_1...s_n`.", + "gas": "1/19 gas per byte", + "fift": "HASHEXTR_KECCAK512", + "fift_examples": [], + "opcode": "F90504", + "stack": "s_n ... s_1 n - h1 h2" + }, + "bytecode": { "tlb": "#F90504", "prefix": "F90504", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { + "type": "array", + "name": "input_parts", + "length_var": "n", + "array_entry": [ + { + "type": "simple", + "name": "s", + "value_types": ["Slice", "Builder"] + } + ] + }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "h1", "value_types": ["Integer"] }, + { "type": "simple", "name": "h2", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "HASHEXTA_SHA256", + "since_version": 4, + "doc": { + "category": "app_crypto", + "description": "Calculates hash of the concatenation of slices (or builders) `s_1...s_n`. Appends the resulting hash to a builder `b`.", + "gas": "1/33 gas per byte", + "fift": "HASHEXTA_SHA256", + "fift_examples": [], + "opcode": "F90600", + "stack": "b s_1 ... s_n n - b'" + }, + "bytecode": { "tlb": "#F90600", "prefix": "F90600", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { + "type": "array", + "name": "input_parts", + "length_var": "n", + "array_entry": [ + { + "type": "simple", + "name": "s", + "value_types": ["Slice", "Builder"] + } + ] + }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "b2", "value_types": ["Builder"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "HASHEXTA_SHA512", + "since_version": 4, + "doc": { + "category": "app_crypto", + "description": "Calculates hash of the concatenation of slices (or builders) `s_1...s_n`. Appends the resulting hash to a builder `b`.", + "gas": "1/16 gas per byte", + "fift": "HASHEXTA_SHA512", + "fift_examples": [], + "opcode": "F90601", + "stack": "b s_1 ... s_n n - b'" + }, + "bytecode": { "tlb": "#F90601", "prefix": "F90601", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { + "type": "array", + "name": "input_parts", + "length_var": "n", + "array_entry": [ + { + "type": "simple", + "name": "s", + "value_types": ["Slice", "Builder"] + } + ] + }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "b2", "value_types": ["Builder"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "HASHEXTA_BLAKE2B", + "since_version": 4, + "doc": { + "category": "app_crypto", + "description": "Calculates hash of the concatenation of slices (or builders) `s_1...s_n`. Appends the resulting hash to a builder `b`.", + "gas": "1/19 gas per byte", + "fift": "HASHEXTA_BLAKE2B", + "fift_examples": [], + "opcode": "F90602", + "stack": "b s_1 ... s_n n - b'" + }, + "bytecode": { "tlb": "#F90602", "prefix": "F90602", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { + "type": "array", + "name": "input_parts", + "length_var": "n", + "array_entry": [ + { + "type": "simple", + "name": "s", + "value_types": ["Slice", "Builder"] + } + ] + }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "b2", "value_types": ["Builder"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "HASHEXTA_KECCAK256", + "since_version": 4, + "doc": { + "category": "app_crypto", + "description": "Calculates hash of the concatenation of slices (or builders) `s_1...s_n`. Appends the resulting hash to a builder `b`.", + "gas": "1/11 gas per byte", + "fift": "HASHEXTA_KECCAK256", + "fift_examples": [], + "opcode": "F90603", + "stack": "b s_1 ... s_n n - b'" + }, + "bytecode": { "tlb": "#F90603", "prefix": "F90603", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { + "type": "array", + "name": "input_parts", + "length_var": "n", + "array_entry": [ + { + "type": "simple", + "name": "s", + "value_types": ["Slice", "Builder"] + } + ] + }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "b2", "value_types": ["Builder"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "HASHEXTA_KECCAK512", + "since_version": 4, + "doc": { + "category": "app_crypto", + "description": "Calculates hash of the concatenation of slices (or builders) `s_1...s_n`. Appends the resulting hash to a builder `b`.", + "gas": "1/6 gas per byte", + "fift": "HASHEXTA_KECCAK512", + "fift_examples": [], + "opcode": "F90604", + "stack": "b s_1 ... s_n n - b'" + }, + "bytecode": { "tlb": "#F90604", "prefix": "F90604", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { + "type": "array", + "name": "input_parts", + "length_var": "n", + "array_entry": [ + { + "type": "simple", + "name": "s", + "value_types": ["Slice", "Builder"] + } + ] + }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "b2", "value_types": ["Builder"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "HASHEXTAR_SHA256", + "since_version": 4, + "doc": { + "category": "app_crypto", + "description": "Calculates hash of the concatenation of slices (or builders) `s_1...s_n`. Appends the resulting hash to a builder `b`.", + "gas": "1/33 gas per byte", + "fift": "HASHEXTAR_SHA256", + "fift_examples": [], + "opcode": "F90700", + "stack": "b s_1 ... s_n n - b'" + }, + "bytecode": { "tlb": "#F90700", "prefix": "F90700", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { + "type": "array", + "name": "input_parts", + "length_var": "n", + "array_entry": [ + { + "type": "simple", + "name": "s", + "value_types": ["Slice", "Builder"] + } + ] + }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "b2", "value_types": ["Builder"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "HASHEXTAR_SHA512", + "since_version": 4, + "doc": { + "category": "app_crypto", + "description": "Calculates hash of the concatenation of slices (or builders) `s_1...s_n`. Appends the resulting hash to a builder `b`.", + "gas": "1/16 gas per byte", + "fift": "HASHEXTAR_SHA512", + "fift_examples": [], + "opcode": "F90701", + "stack": "b s_n ... s_1 n - b'" + }, + "bytecode": { "tlb": "#F90701", "prefix": "F90701", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { + "type": "array", + "name": "input_parts", + "length_var": "n", + "array_entry": [ + { + "type": "simple", + "name": "s", + "value_types": ["Slice", "Builder"] + } + ] + }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "b2", "value_types": ["Builder"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "HASHEXTAR_BLAKE2B", + "since_version": 4, + "doc": { + "category": "app_crypto", + "description": "Calculates hash of the concatenation of slices (or builders) `s_1...s_n`. Appends the resulting hash to a builder `b`.", + "gas": "1/19 gas per byte", + "fift": "HASHEXTAR_BLAKE2B", + "fift_examples": [], + "opcode": "F90702", + "stack": "b s_n ... s_1 n - b'" + }, + "bytecode": { "tlb": "#F90702", "prefix": "F90702", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { + "type": "array", + "name": "input_parts", + "length_var": "n", + "array_entry": [ + { + "type": "simple", + "name": "s", + "value_types": ["Slice", "Builder"] + } + ] + }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "b2", "value_types": ["Builder"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "HASHEXTAR_KECCAK256", + "since_version": 4, + "doc": { + "category": "app_crypto", + "description": "Calculates hash of the concatenation of slices (or builders) `s_1...s_n`. Appends the resulting hash to a builder `b`.", + "gas": "1/11 gas per byte", + "fift": "HASHEXTAR_KECCAK256", + "fift_examples": [], + "opcode": "F90703", + "stack": "b s_n ... s_1 n - b'" + }, + "bytecode": { "tlb": "#F90703", "prefix": "F90703", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { + "type": "array", + "name": "input_parts", + "length_var": "n", + "array_entry": [ + { + "type": "simple", + "name": "s", + "value_types": ["Slice", "Builder"] + } + ] + }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "b2", "value_types": ["Builder"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "HASHEXTAR_KECCAK512", + "since_version": 4, + "doc": { + "category": "app_crypto", + "description": "Calculates hash of the concatenation of slices (or builders) `s_1...s_n`. Appends the resulting hash to a builder `b`.", + "gas": "1/6 gas per byte", + "fift": "HASHEXTAR_KECCAK512", + "fift_examples": [], + "opcode": "F90704", + "stack": "b s_n ... s_1 n - b'" + }, + "bytecode": { "tlb": "#F90704", "prefix": "F90704", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { + "type": "array", + "name": "input_parts", + "length_var": "n", + "array_entry": [ + { + "type": "simple", + "name": "s", + "value_types": ["Slice", "Builder"] + } + ] + }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "b2", "value_types": ["Builder"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "CHKSIGNU", + "since_version": 0, + "doc": { + "category": "app_crypto", + "description": "Checks the Ed25519-signature `s` of a hash `h` (a 256-bit unsigned integer, usually computed as the hash of some data) using public key `k` (also represented by a 256-bit unsigned integer).\nThe signature `s` must be a _Slice_ containing at least 512 data bits; only the first 512 bits are used. The result is `-1` if the signature is valid, `0` otherwise.\nNotice that `CHKSIGNU` is equivalent to `ROT` `NEWC` `256 STU` `ENDC` `ROTREV` `CHKSIGNS`, i.e., to `CHKSIGNS` with the first argument `d` set to 256-bit _Slice_ containing `h`. Therefore, if `h` is computed as the hash of some data, these data are hashed _twice_, the second hashing occurring inside `CHKSIGNS`.", + "gas": "26", + "fift": "CHKSIGNU", + "fift_examples": [], + "opcode": "F910", + "stack": "h s k - ?" + }, + "bytecode": { "tlb": "#F910", "prefix": "F910", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "h", "value_types": ["Integer"] }, + { "type": "simple", "name": "s", "value_types": ["Slice"] }, + { "type": "simple", "name": "k", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "CHKSIGNS", + "since_version": 0, + "doc": { + "category": "app_crypto", + "description": "Checks whether `s` is a valid Ed25519-signature of the data portion of _Slice_ `d` using public key `k`, similarly to `CHKSIGNU`. If the bit length of _Slice_ `d` is not divisible by eight, throws a cell underflow exception. The verification of Ed25519 signatures is the standard one, with `Sha` used to reduce `d` to the 256-bit number that is actually signed.", + "gas": "26", + "fift": "CHKSIGNS", + "fift_examples": [], + "opcode": "F911", + "stack": "d s k - ?" + }, + "bytecode": { "tlb": "#F911", "prefix": "F911", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "d", "value_types": ["Slice"] }, + { "type": "simple", "name": "s", "value_types": ["Slice"] }, + { "type": "simple", "name": "k", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "ECRECOVER", + "since_version": 4, + "doc": { + "category": "app_crypto", + "description": "Recovers public key from signature, identical to Bitcoin/Ethereum operations. Takes 32-byte hash as uint256 `hash`; 65-byte signature as uint8 `v` and uint256 `r`, `s`. Returns `0` on failure, public key and `-1` on success. 65-byte public key is returned as uint8 `h`, uint256 `x1`, `x2`.", + "gas": "1526", + "fift": "ECRECOVER", + "fift_examples": [], + "opcode": "F912", + "stack": "hash v r s - 0 or h x1 x2 -1" + }, + "bytecode": { "tlb": "#F912", "prefix": "F912", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "hash", "value_types": ["Integer"] }, + { "type": "simple", "name": "v", "value_types": ["Integer"] }, + { "type": "simple", "name": "r", "value_types": ["Integer"] }, + { "type": "simple", "name": "s", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { "value": 0, "stack": [] }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "h", + "value_types": ["Integer"] + }, + { + "type": "simple", + "name": "x1", + "value_types": ["Integer"] + }, + { + "type": "simple", + "name": "x2", + "value_types": ["Integer"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "P256_CHKSIGNU", + "since_version": 4, + "doc": { + "category": "app_crypto", + "description": "Checks seck256r1-signature `sig` of a number `h` (a 256-bit unsigned integer, usually computed as the hash of some data) and public key `k`. Returns -1 on success, 0 on failure. Public key is a 33-byte slice (encoded according to Sec. 2.3.4 point 2 of [SECG SEC 1](https://www.secg.org/sec1-v2.pdf)). Signature `sig` is a 64-byte slice (two 256-bit unsigned integers `r` and `s`).", + "gas": "3526", + "fift": "P256_CHKSIGNU", + "fift_examples": [], + "opcode": "F914", + "stack": "h sig k - ?" + }, + "bytecode": { "tlb": "#F914", "prefix": "F914", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "d", "value_types": ["Slice"] }, + { "type": "simple", "name": "sig", "value_types": ["Slice"] }, + { "type": "simple", "name": "k", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "P256_CHKSIGNS", + "since_version": 4, + "doc": { + "category": "app_crypto", + "description": "Checks seck256r1-signature `sig` of data portion of slice `d` and public key `k`. Returns -1 on success, 0 on failure. Public key is a 33-byte slice (encoded according to Sec. 2.3.4 point 2 of [SECG SEC 1](https://www.secg.org/sec1-v2.pdf)). Signature `sig` is a 64-byte slice (two 256-bit unsigned integers `r` and `s`).", + "gas": "3526", + "fift": "P256_CHKSIGNS", + "fift_examples": [], + "opcode": "F915", + "stack": "d sig k - ?" + }, + "bytecode": { "tlb": "#F915", "prefix": "F915", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "d", "value_types": ["Slice"] }, + { "type": "simple", "name": "sig", "value_types": ["Slice"] }, + { "type": "simple", "name": "k", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "RIST255_FROMHASH", + "since_version": 4, + "doc": { + "category": "app_crypto", + "description": "Deterministically generates a valid point `x` from a 512-bit hash (given as two 256-bit integers).", + "gas": "626", + "fift": "RIST255_FROMHASH", + "fift_examples": [], + "opcode": "F920", + "stack": "h1 h2 - x" + }, + "bytecode": { "tlb": "#F920", "prefix": "F920", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "h1", "value_types": ["Integer"] }, + { "type": "simple", "name": "h2", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "RIST255_VALIDATE", + "since_version": 4, + "doc": { + "category": "app_crypto", + "description": "Checks that integer `x` is a valid representation of some curve point. Throws range_chk on error.", + "gas": "226", + "fift": "RIST255_VALIDATE", + "fift_examples": [], + "opcode": "F921", + "stack": "x -" + }, + "bytecode": { "tlb": "#F921", "prefix": "F921", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "RIST255_ADD", + "since_version": 4, + "doc": { + "category": "app_crypto", + "description": "Addition of two points on a curve.", + "gas": "626", + "fift": "RIST255_ADD", + "fift_examples": [], + "opcode": "F922", + "stack": "x y - x+y" + }, + "bytecode": { "tlb": "#F922", "prefix": "F922", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "RIST255_SUB", + "since_version": 4, + "doc": { + "category": "app_crypto", + "description": "Subtraction of two points on curve.", + "gas": "626", + "fift": "RIST255_SUB", + "fift_examples": [], + "opcode": "F923", + "stack": "x y - x-y" + }, + "bytecode": { "tlb": "#F923", "prefix": "F923", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "RIST255_MUL", + "since_version": 4, + "doc": { + "category": "app_crypto", + "description": "Multiplies point `x` by a scalar `n`. Any `n` is valid, including negative.", + "gas": "2026", + "fift": "RIST255_MUL", + "fift_examples": [], + "opcode": "F924", + "stack": "x n - x*n" + }, + "bytecode": { "tlb": "#F924", "prefix": "F924", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "RIST255_MULBASE", + "since_version": 4, + "doc": { + "category": "app_crypto", + "description": "Multiplies the generator point `g` by a scalar `n`. Any `n` is valid, including negative.", + "gas": "776", + "fift": "RIST255_MULBASE", + "fift_examples": [], + "opcode": "F925", + "stack": "n - g*n" + }, + "bytecode": { "tlb": "#F925", "prefix": "F925", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "RIST255_PUSHL", + "since_version": 4, + "doc": { + "category": "app_crypto", + "description": "Pushes integer l=2^252+27742317777372353535851937790883648493, which is the order of the group.", + "gas": "26", + "fift": "RIST255_PUSHL", + "fift_examples": [], + "opcode": "F926", + "stack": "- l" + }, + "bytecode": { "tlb": "#F926", "prefix": "F926", "operands": [] }, + "value_flow": { + "inputs": { "stack": [], "registers": [] }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "RIST255_QVALIDATE", + "since_version": 4, + "doc": { + "category": "app_crypto", + "description": "Checks that integer `x` is a valid representation of some curve point. Returns -1 on success and 0 on failure.", + "gas": "234", + "fift": "RIST255_QVALIDATE", + "fift_examples": [], + "opcode": "B7F921", + "stack": "x - 0 or -1" + }, + "bytecode": { "tlb": "#B7F921", "prefix": "B7F921", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "RIST255_QADD", + "since_version": 4, + "doc": { + "category": "app_crypto", + "description": "Addition of two points on a curve. Returns -1 on success and 0 on failure.", + "gas": "634", + "fift": "RIST255_QADD", + "fift_examples": [], + "opcode": "B7F922", + "stack": "x y - 0 or x+y -1" + }, + "bytecode": { "tlb": "#B7F922", "prefix": "B7F922", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { "value": 0, "stack": [] }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "result", + "value_types": ["Integer"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "RIST255_QSUB", + "since_version": 4, + "doc": { + "category": "app_crypto", + "description": "Subtraction of two points on curve. Returns -1 on success and 0 on failure.", + "gas": "634", + "fift": "RIST255_QSUB", + "fift_examples": [], + "opcode": "B7F923", + "stack": "x y - 0 or x-y -1" + }, + "bytecode": { "tlb": "#B7F923", "prefix": "B7F923", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { "value": 0, "stack": [] }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "result", + "value_types": ["Integer"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "RIST255_QMUL", + "since_version": 4, + "doc": { + "category": "app_crypto", + "description": "Multiplies point `x` by a scalar `n`. Any `n` is valid, including negative. Returns -1 on success and 0 on failure.", + "gas": "2034", + "fift": "RIST255_QMUL", + "fift_examples": [], + "opcode": "B7F924", + "stack": "x n - 0 or x*n -1" + }, + "bytecode": { "tlb": "#B7F924", "prefix": "B7F924", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { "value": 0, "stack": [] }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "result", + "value_types": ["Integer"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "RIST255_QMULBASE", + "since_version": 4, + "doc": { + "category": "app_crypto", + "description": "Multiplies the generator point `g` by a scalar `n`. Any `n` is valid, including negative.", + "gas": "784", + "fift": "RIST255_QMULBASE", + "fift_examples": [], + "opcode": "B7F925", + "stack": "n - 0 or g*n -1" + }, + "bytecode": { "tlb": "#B7F925", "prefix": "B7F925", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { "value": 0, "stack": [] }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "result", + "value_types": ["Integer"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "BLS_VERIFY", + "since_version": 4, + "doc": { + "category": "app_crypto", + "description": "Checks BLS signature, return true on success, false otherwise.", + "gas": "61034", + "fift": "BLS_VERIFY", + "fift_examples": [], + "opcode": "F93000", + "stack": "pk msg sgn - bool" + }, + "bytecode": { "tlb": "#F93000", "prefix": "F93000", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "pk", "value_types": ["Slice"] }, + { "type": "simple", "name": "msg", "value_types": ["Slice"] }, + { "type": "simple", "name": "sgn", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "BLS_AGGREGATE", + "since_version": 4, + "doc": { + "category": "app_crypto", + "description": "Aggregates signatures. `n>0`. Throw exception if `n=0` or if some `sig_i` is not a valid signature.", + "gas": "n*4350-2616", + "fift": "BLS_AGGREGATE", + "fift_examples": [], + "opcode": "F93001", + "stack": "sig_1 ... sig_n n - sig" + }, + "bytecode": { "tlb": "#F93001", "prefix": "F93001", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { + "type": "array", + "name": "signatures", + "length_var": "n", + "array_entry": [ + { "type": "simple", "name": "sig", "value_types": ["Slice"] } + ] + }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "BLS_FASTAGGREGATEVERIFY", + "since_version": 4, + "doc": { + "category": "app_crypto", + "description": "Checks aggregated BLS signature for keys `pk_1...pk_n` and message `msg`. Return true on success, false otherwise. Return false if `n=0`.", + "gas": "58034+n*3000", + "fift": "BLS_FASTAGGREGATEVERIFY", + "fift_examples": [], + "opcode": "F93002", + "stack": "pk_1 ... pk_n n msg sig - bool" + }, + "bytecode": { "tlb": "#F93002", "prefix": "F93002", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { + "type": "array", + "name": "public_keys", + "length_var": "n", + "array_entry": [ + { "type": "simple", "name": "pk", "value_types": ["Slice"] } + ] + }, + { "type": "simple", "name": "n", "value_types": ["Integer"] }, + { "type": "simple", "name": "msg", "value_types": ["Slice"] }, + { "type": "simple", "name": "sig", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "BLS_AGGREGATEVERIFY", + "since_version": 4, + "doc": { + "category": "app_crypto", + "description": "Checks aggregated BLS signature for key-message pairs `pk_1 msg_1...pk_n msg_n`. Return true on success, false otherwise. Return false if `n=0`.", + "gas": "38534+n*22500", + "fift": "BLS_AGGREGATEVERIFY", + "fift_examples": [], + "opcode": "F93003", + "stack": "pk_1 msg_1 ... pk_n msg_n n sgn - bool" + }, + "bytecode": { "tlb": "#F93003", "prefix": "F93003", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { + "type": "array", + "name": "key_message_pairs", + "length_var": "n", + "array_entry": [ + { "type": "simple", "name": "pk", "value_types": ["Slice"] }, + { "type": "simple", "name": "msg", "value_types": ["Slice"] } + ] + }, + { "type": "simple", "name": "n", "value_types": ["Integer"] }, + { "type": "simple", "name": "sgn", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "BLS_G1_ADD", + "since_version": 4, + "doc": { + "category": "app_crypto", + "description": "Addition on G1.", + "gas": "3934", + "fift": "BLS_G1_ADD", + "fift_examples": [], + "opcode": "F93010", + "stack": "x y - x+y" + }, + "bytecode": { "tlb": "#F93010", "prefix": "F93010", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Slice"] }, + { "type": "simple", "name": "y", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "BLS_G1_SUB", + "since_version": 4, + "doc": { + "category": "app_crypto", + "description": "Subtraction on G1.", + "gas": "3934", + "fift": "BLS_G1_SUB", + "fift_examples": [], + "opcode": "F93011", + "stack": "x y - x-y" + }, + "bytecode": { "tlb": "#F93011", "prefix": "F93011", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Slice"] }, + { "type": "simple", "name": "y", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "BLS_G1_NEG", + "since_version": 4, + "doc": { + "category": "app_crypto", + "description": "Negation on G1.", + "gas": "784", + "fift": "BLS_G1_NEG", + "fift_examples": [], + "opcode": "F93012", + "stack": "x - -x" + }, + "bytecode": { "tlb": "#F93012", "prefix": "F93012", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "BLS_G1_MUL", + "since_version": 4, + "doc": { + "category": "app_crypto", + "description": "Multiplies G1 point `x` by scalar `s`. Any `s` is valid, including negative.", + "gas": "5234", + "fift": "BLS_G1_MUL", + "fift_examples": [], + "opcode": "F93013", + "stack": "x s - x*s" + }, + "bytecode": { "tlb": "#F93013", "prefix": "F93013", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Slice"] }, + { "type": "simple", "name": "s", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "BLS_G1_MULTIEXP", + "since_version": 4, + "doc": { + "category": "app_crypto", + "description": "Calculates `x_1*s_1+...+x_n*s_n` for G1 points `x_i` and scalars `s_i`. Returns zero point if `n=0`. Any `s_i` is valid, including negative.", + "gas": "11409+n*630+n/floor(max(log2(n),4))*8820", + "fift": "BLS_G1_MULTIEXP", + "fift_examples": [], + "opcode": "F93014", + "stack": "x_1 s_1 ... x_n s_n n - x_1*s_1+...+x_n*s_n" + }, + "bytecode": { "tlb": "#F93014", "prefix": "F93014", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { + "type": "array", + "name": "components", + "length_var": "n", + "array_entry": [ + { "type": "simple", "name": "x", "value_types": ["Slice"] }, + { "type": "simple", "name": "s", "value_types": ["Integer"] } + ] + }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "BLS_G1_ZERO", + "since_version": 4, + "doc": { + "category": "app_crypto", + "description": "Pushes zero point in G1.", + "gas": "34", + "fift": "BLS_G1_ZERO", + "fift_examples": [], + "opcode": "F93015", + "stack": "- zero" + }, + "bytecode": { "tlb": "#F93015", "prefix": "F93015", "operands": [] }, + "value_flow": { + "inputs": { "stack": [], "registers": [] }, + "outputs": { + "stack": [ + { "type": "simple", "name": "zero", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "BLS_MAP_TO_G1", + "since_version": 4, + "doc": { + "category": "app_crypto", + "description": "Converts FP element `f` to a G1 point.", + "gas": "2384", + "fift": "BLS_MAP_TO_G1", + "fift_examples": [], + "opcode": "F93016", + "stack": "f - x" + }, + "bytecode": { "tlb": "#F93016", "prefix": "F93016", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "f", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "BLS_G1_INGROUP", + "since_version": 4, + "doc": { + "category": "app_crypto", + "description": "Checks that slice `x` represents a valid element of G1.", + "gas": "2984", + "fift": "BLS_G1_INGROUP", + "fift_examples": [], + "opcode": "F93017", + "stack": "x - bool" + }, + "bytecode": { "tlb": "#F93017", "prefix": "F93017", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "BLS_G1_ISZERO", + "since_version": 4, + "doc": { + "category": "app_crypto", + "description": "Checks that G1 point `x` is equal to zero.", + "gas": "34", + "fift": "BLS_G1_ISZERO", + "fift_examples": [], + "opcode": "F93018", + "stack": "x - bool" + }, + "bytecode": { "tlb": "#F93018", "prefix": "F93018", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "BLS_G2_ADD", + "since_version": 4, + "doc": { + "category": "app_crypto", + "description": "Addition on G2.", + "gas": "6134", + "fift": "BLS_G2_ADD", + "fift_examples": [], + "opcode": "F93020", + "stack": "x y - x+y" + }, + "bytecode": { "tlb": "#F93020", "prefix": "F93020", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Slice"] }, + { "type": "simple", "name": "y", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "BLS_G2_SUB", + "since_version": 4, + "doc": { + "category": "app_crypto", + "description": "Subtraction on G2.", + "gas": "6134", + "fift": "BLS_G2_SUB", + "fift_examples": [], + "opcode": "F93021", + "stack": "x y - x-y" + }, + "bytecode": { "tlb": "#F93021", "prefix": "F93021", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Slice"] }, + { "type": "simple", "name": "y", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "BLS_G2_NEG", + "since_version": 4, + "doc": { + "category": "app_crypto", + "description": "Negation on G2.", + "gas": "1584", + "fift": "BLS_G2_NEG", + "fift_examples": [], + "opcode": "F93022", + "stack": "x - -x" + }, + "bytecode": { "tlb": "#F93022", "prefix": "F93022", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "BLS_G2_MUL", + "since_version": 4, + "doc": { + "category": "app_crypto", + "description": "Multiplies G2 point `x` by scalar `s`. Any `s` is valid, including negative.", + "gas": "10584", + "fift": "BLS_G2_MUL", + "fift_examples": [], + "opcode": "F93023", + "stack": "x s - x*s" + }, + "bytecode": { "tlb": "#F93023", "prefix": "F93023", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Slice"] }, + { "type": "simple", "name": "s", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "BLS_G2_MULTIEXP", + "since_version": 4, + "doc": { + "category": "app_crypto", + "description": "Calculates `x_1*s_1+...+x_n*s_n` for G2 points `x_i` and scalars `s_i`. Returns zero point if `n=0`. Any `s_i` is valid, including negative.", + "gas": "30422+n*1280+n/floor(max(log2(n),4))*22840", + "fift": "BLS_G2_MULTIEXP", + "fift_examples": [], + "opcode": "F93024", + "stack": "x_1 s_1 ... x_n s_n n - x_1*s_1+...+x_n*s_n" + }, + "bytecode": { "tlb": "#F93024", "prefix": "F93024", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { + "type": "array", + "name": "components", + "length_var": "n", + "array_entry": [ + { "type": "simple", "name": "x", "value_types": ["Slice"] }, + { "type": "simple", "name": "s", "value_types": ["Integer"] } + ] + }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "BLS_G2_ZERO", + "since_version": 4, + "doc": { + "category": "app_crypto", + "description": "Pushes zero point in G2.", + "gas": "34", + "fift": "BLS_G2_ZERO", + "fift_examples": [], + "opcode": "F93025", + "stack": "- zero" + }, + "bytecode": { "tlb": "#F93025", "prefix": "F93025", "operands": [] }, + "value_flow": { + "inputs": { "stack": [], "registers": [] }, + "outputs": { + "stack": [ + { "type": "simple", "name": "zero", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "BLS_MAP_TO_G2", + "since_version": 4, + "doc": { + "category": "app_crypto", + "description": "Converts FP2 element `f` to a G2 point.", + "gas": "7984", + "fift": "BLS_MAP_TO_G2", + "fift_examples": [], + "opcode": "F93026", + "stack": "f - x" + }, + "bytecode": { "tlb": "#F93026", "prefix": "F93026", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "f", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "BLS_G2_INGROUP", + "since_version": 4, + "doc": { + "category": "app_crypto", + "description": "Checks that slice `x` represents a valid element of G2.", + "gas": "4284", + "fift": "BLS_G2_INGROUP", + "fift_examples": [], + "opcode": "F93027", + "stack": "x - bool" + }, + "bytecode": { "tlb": "#F93027", "prefix": "F93027", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "BLS_G2_ISZERO", + "since_version": 4, + "doc": { + "category": "app_crypto", + "description": "Checks that G2 point `x` is equal to zero.", + "gas": "34", + "fift": "BLS_G2_ISZERO", + "fift_examples": [], + "opcode": "F93028", + "stack": "x - bool" + }, + "bytecode": { "tlb": "#F93028", "prefix": "F93028", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "BLS_PAIRING", + "since_version": 4, + "doc": { + "category": "app_crypto", + "description": "Given G1 points `x_i` and G2 points `y_i`, calculates and multiply pairings of `x_i,y_i`. Returns true if the result is the multiplicative identity in FP12, false otherwise. Returns false if `n=0`.", + "gas": "20034+n*11800", + "fift": "BLS_PAIRING", + "fift_examples": [], + "opcode": "F93030", + "stack": "x_1 y_1 ... x_n y_n n - bool" + }, + "bytecode": { "tlb": "#F93030", "prefix": "F93030", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { + "type": "array", + "name": "components", + "length_var": "n", + "array_entry": [ + { "type": "simple", "name": "x", "value_types": ["Slice"] }, + { "type": "simple", "name": "y", "value_types": ["Slice"] } + ] + }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "BLS_PUSHR", + "since_version": 4, + "doc": { + "category": "app_crypto", + "description": "Pushes the order of G1 and G2 (approx. `2^255`).", + "gas": "34", + "fift": "BLS_PUSHR", + "fift_examples": [], + "opcode": "F93031", + "stack": "- r" + }, + "bytecode": { "tlb": "#F93031", "prefix": "F93031", "operands": [] }, + "value_flow": { + "inputs": { "stack": [], "registers": [] }, + "outputs": { + "stack": [ + { "type": "simple", "name": "result", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "CDATASIZEQ", + "since_version": 0, + "doc": { + "category": "app_misc", + "description": "Recursively computes the count of distinct cells `x`, data bits `y`, and cell references `z` in the dag rooted at _Cell_ `c`, effectively returning the total storage used by this dag taking into account the identification of equal cells. The values of `x`, `y`, and `z` are computed by a depth-first traversal of this dag, with a hash table of visited cell hashes used to prevent visits of already-visited cells. The total count of visited cells `x` cannot exceed non-negative _Integer_ `n`; otherwise the computation is aborted before visiting the `(n+1)`-st cell and a zero is returned to indicate failure. If `c` is _Null_, returns `x=y=z=0`.", + "gas": "", + "fift": "CDATASIZEQ", + "fift_examples": [], + "opcode": "F940", + "stack": "c n - x y z -1 or 0" + }, + "bytecode": { "tlb": "#F940", "prefix": "F940", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Cell"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { "value": 0, "stack": [] }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "x", + "value_types": ["Integer"] + }, + { + "type": "simple", + "name": "y", + "value_types": ["Integer"] + }, + { + "type": "simple", + "name": "z", + "value_types": ["Integer"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "CDATASIZE", + "since_version": 0, + "doc": { + "category": "app_misc", + "description": "A non-quiet version of `CDATASIZEQ` that throws a cell overflow exception (8) on failure.", + "gas": "", + "fift": "CDATASIZE", + "fift_examples": [], + "opcode": "F941", + "stack": "c n - x y z" + }, + "bytecode": { "tlb": "#F941", "prefix": "F941", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Cell"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SDATASIZEQ", + "since_version": 0, + "doc": { + "category": "app_misc", + "description": "Similar to `CDATASIZEQ`, but accepting a _Slice_ `s` instead of a _Cell_. The returned value of `x` does not take into account the cell that contains the slice `s` itself; however, the data bits and the cell references of `s` are accounted for in `y` and `z`.", + "gas": "", + "fift": "SDATASIZEQ", + "fift_examples": [], + "opcode": "F942", + "stack": "s n - x y z -1 or 0" + }, + "bytecode": { "tlb": "#F942", "prefix": "F942", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { "value": 0, "stack": [] }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "x", + "value_types": ["Integer"] + }, + { + "type": "simple", + "name": "y", + "value_types": ["Integer"] + }, + { + "type": "simple", + "name": "z", + "value_types": ["Integer"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SDATASIZE", + "since_version": 0, + "doc": { + "category": "app_misc", + "description": "A non-quiet version of `SDATASIZEQ` that throws a cell overflow exception (8) on failure.", + "gas": "", + "fift": "SDATASIZE", + "fift_examples": [], + "opcode": "F943", + "stack": "s n - x y z" + }, + "bytecode": { "tlb": "#F943", "prefix": "F943", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] }, + { "type": "simple", "name": "n", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] }, + { "type": "simple", "name": "z", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LDGRAMS", + "since_version": 0, + "doc": { + "category": "app_currency", + "description": "Loads (deserializes) a `Gram` or `VarUInteger 16` amount from _Slice_ `s`, and returns the amount as _Integer_ `x` along with the remainder `s'` of `s`. The expected serialization of `x` consists of a 4-bit unsigned big-endian integer `l`, followed by an `8l`-bit unsigned big-endian representation of `x`.\nThe net effect is approximately equivalent to `4 LDU` `SWAP` `3 LSHIFT#` `LDUX`.", + "gas": "26", + "fift": "LDGRAMS\nLDVARUINT16", + "fift_examples": [], + "opcode": "FA00", + "stack": "s - x s'" + }, + "bytecode": { "tlb": "#FA00", "prefix": "FA00", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "s2", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LDVARINT16", + "since_version": 0, + "doc": { + "category": "app_currency", + "description": "Similar to `LDVARUINT16`, but loads a _signed_ _Integer_ `x`.\nApproximately equivalent to `4 LDU` `SWAP` `3 LSHIFT#` `LDIX`.", + "gas": "26", + "fift": "LDVARINT16", + "fift_examples": [], + "opcode": "FA01", + "stack": "s - x s'" + }, + "bytecode": { "tlb": "#FA01", "prefix": "FA01", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "s2", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "STGRAMS", + "since_version": 0, + "doc": { + "category": "app_currency", + "description": "Stores (serializes) an _Integer_ `x` in the range `0...2^120-1` into _Builder_ `b`, and returns the resulting _Builder_ `b'`. The serialization of `x` consists of a 4-bit unsigned big-endian integer `l`, which is the smallest integer `l>=0`, such that `x<2^(8l)`, followed by an `8l`-bit unsigned big-endian representation of `x`. If `x` does not belong to the supported range, a range check exception is thrown.", + "gas": "26", + "fift": "STGRAMS\nSTVARUINT16", + "fift_examples": [], + "opcode": "FA02", + "stack": "b x - b'" + }, + "bytecode": { "tlb": "#FA02", "prefix": "FA02", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "b2", "value_types": ["Builder"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "STVARINT16", + "since_version": 0, + "doc": { + "category": "app_currency", + "description": "Similar to `STVARUINT16`, but serializes a _signed_ _Integer_ `x` in the range `-2^119...2^119-1`.", + "gas": "26", + "fift": "STVARINT16", + "fift_examples": [], + "opcode": "FA03", + "stack": "b x - b'" + }, + "bytecode": { "tlb": "#FA03", "prefix": "FA03", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "b2", "value_types": ["Builder"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LDVARUINT32", + "since_version": 0, + "doc": { + "category": "app_currency", + "description": "Loads (deserializes) a `VarUInteger 32` amount from _Slice_ `s`, and returns the amount as _Integer_ `x` along with the remainder `s'` of `s`. The expected serialization of `x` consists of a 5-bit unsigned big-endian integer `l`, followed by an `8l`-bit unsigned big-endian representation of `x`.\nThe net effect is approximately equivalent to `4 LDU` `SWAP` `3 LSHIFT#` `LDUX`.", + "gas": "26", + "fift": "LDVARUINT32", + "fift_examples": [], + "opcode": "FA04", + "stack": "s - x s'" + }, + "bytecode": { "tlb": "#FA04", "prefix": "FA04", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "s2", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LDVARINT32", + "since_version": 0, + "doc": { + "category": "app_currency", + "description": "Similar to `LDVARUINT32`, but loads a _signed_ _Integer_ `x`.\nApproximately equivalent to `5 LDU` `SWAP` `3 LSHIFT#` `LDIX`.", + "gas": "26", + "fift": "LDVARINT32", + "fift_examples": [], + "opcode": "FA05", + "stack": "s - x s'" + }, + "bytecode": { "tlb": "#FA05", "prefix": "FA05", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "s2", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "STVARUINT32", + "since_version": 0, + "doc": { + "category": "app_currency", + "description": "Stores (serializes) an _Integer_ `x` in the range `0...2^248-1` into _Builder_ `b`, and returns the resulting _Builder_ `b'`. The serialization of `x` consists of a 5-bit unsigned big-endian integer `l`, which is the smallest integer `l>=0`, such that `x<2^(8l)`, followed by an `8l`-bit unsigned big-endian representation of `x`. If `x` does not belong to the supported range, a range check exception is thrown.", + "gas": "26", + "fift": "STVARUINT32", + "fift_examples": [], + "opcode": "FA06", + "stack": "b x - b'" + }, + "bytecode": { "tlb": "#FA06", "prefix": "FA06", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "b2", "value_types": ["Builder"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "STVARINT32", + "since_version": 0, + "doc": { + "category": "app_currency", + "description": "Similar to `STVARUINT32`, but serializes a _signed_ _Integer_ `x` in the range `-2^247...2^247-1`.", + "gas": "26", + "fift": "STVARINT32", + "fift_examples": [], + "opcode": "FA07", + "stack": "b x - b'" + }, + "bytecode": { "tlb": "#FA07", "prefix": "FA07", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "b", "value_types": ["Builder"] }, + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "b2", "value_types": ["Builder"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LDMSGADDR", + "since_version": 0, + "doc": { + "category": "app_addr", + "description": "Loads from _Slice_ `s` the only prefix that is a valid `MsgAddress`, and returns both this prefix `s'` and the remainder `s''` of `s` as slices.", + "gas": "26", + "fift": "LDMSGADDR", + "fift_examples": [], + "opcode": "FA40", + "stack": "s - s' s''" + }, + "bytecode": { "tlb": "#FA40", "prefix": "FA40", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "s2", "value_types": ["Slice"] }, + { "type": "simple", "name": "s3", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "LDMSGADDRQ", + "since_version": 0, + "doc": { + "category": "app_addr", + "description": "A quiet version of `LDMSGADDR`: on success, pushes an extra `-1`; on failure, pushes the original `s` and a zero.", + "gas": "26", + "fift": "LDMSGADDRQ", + "fift_examples": [], + "opcode": "FA41", + "stack": "s - s' s'' -1 or s 0" + }, + "bytecode": { "tlb": "#FA41", "prefix": "FA41", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { + "value": 0, + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ] + }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "s2", + "value_types": ["Slice"] + }, + { "type": "simple", "name": "s3", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PARSEMSGADDR", + "since_version": 0, + "doc": { + "category": "app_addr", + "description": "Decomposes _Slice_ `s` containing a valid `MsgAddress` into a _Tuple_ `t` with separate fields of this `MsgAddress`. If `s` is not a valid `MsgAddress`, a cell deserialization exception is thrown.", + "gas": "26", + "fift": "PARSEMSGADDR", + "fift_examples": [], + "opcode": "FA42", + "stack": "s - t" + }, + "bytecode": { "tlb": "#FA42", "prefix": "FA42", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "t", "value_types": ["Tuple"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "PARSEMSGADDRQ", + "since_version": 0, + "doc": { + "category": "app_addr", + "description": "A quiet version of `PARSEMSGADDR`: returns a zero on error instead of throwing an exception.", + "gas": "26", + "fift": "PARSEMSGADDRQ", + "fift_examples": [], + "opcode": "FA43", + "stack": "s - t -1 or 0" + }, + "bytecode": { "tlb": "#FA43", "prefix": "FA43", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { "value": 0, "stack": [] }, + { + "value": -1, + "stack": [ + { "type": "simple", "name": "t", "value_types": ["Tuple"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "REWRITESTDADDR", + "since_version": 0, + "doc": { + "category": "app_addr", + "description": "Parses _Slice_ `s` containing a valid `MsgAddressInt` (usually a `msg_addr_std`), applies rewriting from the `anycast` (if present) to the same-length prefix of the address, and returns both the workchain `x` and the 256-bit address `y` as integers. If the address is not 256-bit, or if `s` is not a valid serialization of `MsgAddressInt`, throws a cell deserialization exception.", + "gas": "26", + "fift": "REWRITESTDADDR", + "fift_examples": [], + "opcode": "FA44", + "stack": "s - x y" + }, + "bytecode": { "tlb": "#FA44", "prefix": "FA44", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "REWRITESTDADDRQ", + "since_version": 0, + "doc": { + "category": "app_addr", + "description": "A quiet version of primitive `REWRITESTDADDR`.", + "gas": "26", + "fift": "REWRITESTDADDRQ", + "fift_examples": [], + "opcode": "FA45", + "stack": "s - x y -1 or 0" + }, + "bytecode": { "tlb": "#FA45", "prefix": "FA45", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { "value": 0, "stack": [] }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "x", + "value_types": ["Integer"] + }, + { + "type": "simple", + "name": "y", + "value_types": ["Integer"] + } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "REWRITEVARADDR", + "since_version": 0, + "doc": { + "category": "app_addr", + "description": "A variant of `REWRITESTDADDR` that returns the (rewritten) address as a _Slice_ `s`, even if it is not exactly 256 bit long (represented by a `msg_addr_var`).", + "gas": "26", + "fift": "REWRITEVARADDR", + "fift_examples": [], + "opcode": "FA46", + "stack": "s - x s'" + }, + "bytecode": { "tlb": "#FA46", "prefix": "FA46", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "s2", "value_types": ["Slice"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "REWRITEVARADDRQ", + "since_version": 0, + "doc": { + "category": "app_addr", + "description": "A quiet version of primitive `REWRITEVARADDR`.", + "gas": "26", + "fift": "REWRITEVARADDRQ", + "fift_examples": [], + "opcode": "FA47", + "stack": "s - x s' -1 or 0" + }, + "bytecode": { "tlb": "#FA47", "prefix": "FA47", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "s", "value_types": ["Slice"] } + ], + "registers": [] + }, + "outputs": { + "stack": [ + { + "type": "conditional", + "name": "status", + "match": [ + { "value": 0, "stack": [] }, + { + "value": -1, + "stack": [ + { + "type": "simple", + "name": "x", + "value_types": ["Integer"] + }, + { "type": "simple", "name": "s'", "value_types": ["Slice"] } + ] + } + ] + }, + { "type": "simple", "name": "status", "value_types": ["Integer"] } + ], + "registers": [] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SENDRAWMSG", + "since_version": 0, + "doc": { + "category": "app_actions", + "description": "Sends a raw message contained in _Cell `c`_, which should contain a correctly serialized object `Message X`, with the only exception that the source address is allowed to have dummy value `addr_none` (to be automatically replaced with the current smart-contract address), and `ihr_fee`, `fwd_fee`, `created_lt` and `created_at` fields can have arbitrary values (to be rewritten with correct values during the action phase of the current transaction). Integer parameter `x` contains the flags. Currently `x=0` is used for ordinary messages; `x=128` is used for messages that are to carry all the remaining balance of the current smart contract (instead of the value originally indicated in the message); `x=64` is used for messages that carry all the remaining value of the inbound message in addition to the value initially indicated in the new message (if bit 0 is not set, the gas fees are deducted from this amount); `x'=x+1` means that the sender wants to pay transfer fees separately; `x'=x+2` means that any errors arising while processing this message during the action phase should be ignored. Finally, `x'=x+32` means that the current account must be destroyed if its resulting balance is zero. This flag is usually employed together with `+128`.", + "gas": "526", + "fift": "SENDRAWMSG", + "fift_examples": [], + "opcode": "FB00", + "stack": "c x - " + }, + "bytecode": { "tlb": "#FB00", "prefix": "FB00", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Cell"] }, + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [{ "type": "constant", "index": 5 }] + }, + "outputs": { + "stack": [], + "registers": [{ "type": "constant", "index": 5 }] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "RAWRESERVE", + "since_version": 0, + "doc": { + "category": "app_actions", + "description": "Creates an output action which would reserve exactly `x` nanograms (if `y=0`), at most `x` nanograms (if `y=2`), or all but `x` nanograms (if `y=1` or `y=3`), from the remaining balance of the account. It is roughly equivalent to creating an outbound message carrying `x` nanograms (or `b-x` nanograms, where `b` is the remaining balance) to oneself, so that the subsequent output actions would not be able to spend more money than the remainder. Bit `+2` in `y` means that the external action does not fail if the specified amount cannot be reserved; instead, all remaining balance is reserved. Bit `+8` in `y` means `x:=-x` before performing any further actions. Bit `+4` in `y` means that `x` is increased by the original balance of the current account (before the compute phase), including all extra currencies, before performing any other checks and actions. Currently `x` must be a non-negative integer, and `y` must be in the range `0...15`.", + "gas": "526", + "fift": "RAWRESERVE", + "fift_examples": [], + "opcode": "FB02", + "stack": "x y - " + }, + "bytecode": { "tlb": "#FB02", "prefix": "FB02", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [{ "type": "constant", "index": 5 }] + }, + "outputs": { + "stack": [], + "registers": [{ "type": "constant", "index": 5 }] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "RAWRESERVEX", + "since_version": 0, + "doc": { + "category": "app_actions", + "description": "Similar to `RAWRESERVE`, but also accepts a dictionary `D` (represented by a _Cell_ or _Null_) with extra currencies. In this way currencies other than Grams can be reserved.", + "gas": "526", + "fift": "RAWRESERVEX", + "fift_examples": [], + "opcode": "FB03", + "stack": "x D y - " + }, + "bytecode": { "tlb": "#FB03", "prefix": "FB03", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "x", "value_types": ["Integer"] }, + { "type": "simple", "name": "D", "value_types": ["Cell", "Null"] }, + { "type": "simple", "name": "y", "value_types": ["Integer"] } + ], + "registers": [{ "type": "constant", "index": 5 }] + }, + "outputs": { + "stack": [], + "registers": [{ "type": "constant", "index": 5 }] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SETCODE", + "since_version": 0, + "doc": { + "category": "app_actions", + "description": "Creates an output action that would change this smart contract code to that given by _Cell_ `c`. Notice that this change will take effect only after the successful termination of the current run of the smart contract.", + "gas": "526", + "fift": "SETCODE", + "fift_examples": [], + "opcode": "FB04", + "stack": "c - " + }, + "bytecode": { "tlb": "#FB04", "prefix": "FB04", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [{ "type": "simple", "name": "c", "value_types": ["Cell"] }], + "registers": [{ "type": "constant", "index": 5 }] + }, + "outputs": { + "stack": [], + "registers": [{ "type": "constant", "index": 5 }] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SETLIBCODE", + "since_version": 0, + "doc": { + "category": "app_actions", + "description": "Creates an output action that would modify the collection of this smart contract libraries by adding or removing library with code given in _Cell_ `c`. If `x=0`, the library is actually removed if it was previously present in the collection (if not, this action does nothing). If `x=1`, the library is added as a private library, and if `x=2`, the library is added as a public library (and becomes available to all smart contracts if the current smart contract resides in the masterchain); if the library was present in the collection before, its public/private status is changed according to `x`. Values of `x` other than `0...2` are invalid.", + "gas": "526", + "fift": "SETLIBCODE", + "fift_examples": [], + "opcode": "FB06", + "stack": "c x - " + }, + "bytecode": { "tlb": "#FB06", "prefix": "FB06", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Cell"] }, + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [{ "type": "constant", "index": 5 }] + }, + "outputs": { + "stack": [], + "registers": [{ "type": "constant", "index": 5 }] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "CHANGELIB", + "since_version": 0, + "doc": { + "category": "app_actions", + "description": "Creates an output action similarly to `SETLIBCODE`, but instead of the library code accepts its hash as an unsigned 256-bit integer `h`. If `x!=0` and the library with hash `h` is absent from the library collection of this smart contract, this output action will fail.", + "gas": "526", + "fift": "CHANGELIB", + "fift_examples": [], + "opcode": "FB07", + "stack": "h x - " + }, + "bytecode": { "tlb": "#FB07", "prefix": "FB07", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "h", "value_types": ["Integer"] }, + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [{ "type": "constant", "index": 5 }] + }, + "outputs": { + "stack": [], + "registers": [{ "type": "constant", "index": 5 }] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SENDMSG", + "since_version": 4, + "doc": { + "category": "app_actions", + "description": "Creates an output action and returns a fee for creating a message. Mode has the same effect as in the case of `SENDRAWMSG`. Additionally `+1024` means - do not create an action, only estimate fee. Other modes affect the fee calculation as follows: `+64` substitutes the entire balance of the incoming message as an outcoming value (slightly inaccurate, gas expenses that cannot be estimated before the computation is completed are not taken into account), `+128` substitutes the value of the entire balance of the contract before the start of the computation phase (slightly inaccurate, since gas expenses that cannot be estimated before the completion of the computation phase are not taken into account).", + "gas": "526", + "fift": "SENDMSG", + "fift_examples": [], + "opcode": "FB08", + "stack": "c x - fee" + }, + "bytecode": { "tlb": "#FB08", "prefix": "FB08", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Cell"] }, + { "type": "simple", "name": "x", "value_types": ["Integer"] } + ], + "registers": [{ "type": "constant", "index": 5 }] + }, + "outputs": { + "stack": [ + { "type": "simple", "name": "fee", "value_types": ["Integer"] } + ], + "registers": [{ "type": "constant", "index": 5 }] + } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DEBUG", + "since_version": 0, + "doc": { + "category": "debug", + "description": "", + "gas": "26", + "fift": "{i*16+j} DEBUG", + "fift_examples": [], + "opcode": "FEij", + "stack": "-" + }, + "bytecode": { + "tlb": "#FE i:(#<= 14) j:(## 4)", + "prefix": "FE", + "operands_range_check": { "length": 4, "from": 0, "to": 14 }, + "operands": [ + { + "name": "i", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 14, + "display_hints": [] + }, + { + "name": "j", + "type": "uint", + "size": 4, + "min_value": 0, + "max_value": 15, + "display_hints": [] + } + ] + }, + "value_flow": { + "inputs": { "stack": [], "registers": [] }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "DEBUGSTR", + "since_version": 0, + "doc": { + "category": "debug", + "description": "`0 <= n < 16`. Length of `ssss` is `n+1` bytes.\n`{string}` is a [string literal](https://github.com/Piterden/TON-docs/blob/master/Fift.%20A%20Brief%20Introduction.md#user-content-29-string-literals).\n`DEBUGSTR`: `ssss` is the given string.\n`DEBUGSTRI`: `ssss` is one-byte integer `0 <= x <= 255` followed by the given string.", + "gas": "26", + "fift": "{string} DEBUGSTR\n{string} {x} DEBUGSTRI", + "fift_examples": [], + "opcode": "FEFnssss", + "stack": "-" + }, + "bytecode": { + "tlb": "#FEF n:(## 4) ssss:((n * 8 + 8) * Bit)", + "prefix": "FEF", + "operands": [ + { + "name": "s", + "type": "subslice", + "bits_length_var_size": 4, + "bits_padding": 8, + "completion_tag": false, + "max_bits": 128, + "min_bits": 8, + "max_refs": 0, + "min_refs": 0, + "display_hints": [] + } + ] + }, + "value_flow": { + "inputs": { "stack": [], "registers": [] }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SETCP", + "since_version": 0, + "doc": { + "category": "codepage", + "description": "Selects TVM codepage `0 <= nn < 240`. If the codepage is not supported, throws an invalid opcode exception.", + "gas": "26", + "fift": "[nn] SETCP", + "fift_examples": [], + "opcode": "FFnn", + "stack": "-" + }, + "bytecode": { + "tlb": "#FF nn:(#<= 239)", + "prefix": "FF", + "operands_range_check": { "length": 8, "from": 0, "to": 239 }, + "operands": [ + { + "name": "n", + "type": "uint", + "size": 8, + "min_value": 0, + "max_value": 239, + "display_hints": [] + } + ] + }, + "value_flow": { + "inputs": { "stack": [], "registers": [] }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SETCP_SPECIAL", + "since_version": 0, + "doc": { + "category": "codepage", + "description": "Selects TVM codepage `z-16` for `1 <= z <= 15`. Negative codepages `-13...-1` are reserved for restricted versions of TVM needed to validate runs of TVM in other codepages. Negative codepage `-14` is reserved for experimental codepages, not necessarily compatible between different TVM implementations, and should be disabled in the production versions of TVM.", + "gas": "26", + "fift": "[z-16] SETCP", + "fift_examples": [], + "opcode": "FFFz", + "stack": "-" + }, + "bytecode": { + "tlb": "#FFF z:(## 4) {1 <= z}", + "prefix": "FFF", + "operands_range_check": { "length": 4, "from": 1, "to": 15 }, + "operands": [ + { + "name": "z", + "type": "uint", + "size": 4, + "min_value": 1, + "max_value": 15, + "display_hints": [{ "type": "add", "value": -16 }] + } + ] + }, + "value_flow": { + "inputs": { "stack": [], "registers": [] }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + }, + { + "mnemonic": "SETCPX", + "since_version": 0, + "doc": { + "category": "codepage", + "description": "Selects codepage `c` with `-2^15 <= c < 2^15` passed in the top of the stack.", + "gas": "26", + "fift": "SETCPX", + "fift_examples": [], + "opcode": "FFF0", + "stack": "c - " + }, + "bytecode": { "tlb": "#FFF0", "prefix": "FFF0", "operands": [] }, + "value_flow": { + "inputs": { + "stack": [ + { "type": "simple", "name": "c", "value_types": ["Integer"] } + ], + "registers": [] + }, + "outputs": { "stack": [], "registers": [] } + }, + "control_flow": { "branches": [], "nobranch": true } + } + ], + "aliases": [ + { + "mnemonic": "SWAP", + "alias_of": "XCHG_0I", + "doc_fift": "SWAP", + "doc_stack": "x y - y x", + "description": "Same as `s1 XCHG0`.", + "operands": { "i": 1 } + }, + { + "mnemonic": "DUP", + "alias_of": "PUSH", + "doc_fift": "DUP", + "doc_stack": "x - x x", + "description": "Same as `s0 PUSH`.", + "operands": { "i": 0 } + }, + { + "mnemonic": "OVER", + "alias_of": "PUSH", + "doc_fift": "OVER", + "doc_stack": "x y - x y x", + "description": "Same as `s1 PUSH`.", + "operands": { "i": 1 } + }, + { + "mnemonic": "DROP", + "alias_of": "POP", + "doc_fift": "DROP", + "doc_stack": "x -", + "description": "Same as `s0 POP`, discards the top-of-stack value.", + "operands": { "i": 0 } + }, + { + "mnemonic": "NIP", + "alias_of": "POP", + "doc_fift": "NIP", + "doc_stack": "x y - y", + "description": "Same as `s1 POP`.", + "operands": { "i": 1 } + }, + { + "mnemonic": "ROT2", + "alias_of": "BLKSWAP", + "doc_fift": "ROT2\n2ROT", + "doc_stack": "a b c d e f - c d e f a b", + "description": "Rotates the three topmost pairs of stack entries.", + "operands": { "i": 1, "j": 3 } + }, + { + "mnemonic": "ROLL", + "alias_of": "BLKSWAP", + "doc_fift": "[i+1] ROLL", + "doc_stack": "", + "description": "Rotates the top `i+1` stack entries.\nEquivalent to `1 [i+1] BLKSWAP`.", + "operands": { "i": 0 } + }, + { + "mnemonic": "ROLLREV", + "alias_of": "BLKSWAP", + "doc_fift": "[i+1] -ROLL\n[i+1] ROLLREV", + "doc_stack": "", + "description": "Rotates the top `i+1` stack entries in the other direction.\nEquivalent to `[i+1] 1 BLKSWAP`.", + "operands": { "j": 0 } + }, + { + "mnemonic": "NIL", + "alias_of": "TUPLE", + "doc_fift": "NIL", + "doc_stack": "- t", + "description": "Pushes the only _Tuple_ `t=()` of length zero.", + "operands": { "n": 0 } + }, + { + "mnemonic": "SINGLE", + "alias_of": "TUPLE", + "doc_fift": "SINGLE", + "doc_stack": "x - t", + "description": "Creates a singleton `t:=(x)`, i.e., a _Tuple_ of length one.", + "operands": { "n": 1 } + }, + { + "mnemonic": "PAIR", + "alias_of": "TUPLE", + "doc_fift": "PAIR\nCONS", + "doc_stack": "x y - t", + "description": "Creates pair `t:=(x,y)`.", + "operands": { "n": 2 } + }, + { + "mnemonic": "TRIPLE", + "alias_of": "TUPLE", + "doc_fift": "TRIPLE", + "doc_stack": "x y z - t", + "description": "Creates triple `t:=(x,y,z)`.", + "operands": { "n": 3 } + }, + { + "mnemonic": "FIRST", + "alias_of": "INDEX", + "doc_fift": "FIRST\nCAR", + "doc_stack": "t - x", + "description": "Returns the first element of a _Tuple_.", + "operands": { "k": 0 } + }, + { + "mnemonic": "SECOND", + "alias_of": "INDEX", + "doc_fift": "SECOND\nCDR", + "doc_stack": "t - y", + "description": "Returns the second element of a _Tuple_.", + "operands": { "k": 1 } + }, + { + "mnemonic": "THIRD", + "alias_of": "INDEX", + "doc_fift": "THIRD", + "doc_stack": "t - z", + "description": "Returns the third element of a _Tuple_.", + "operands": { "k": 2 } + }, + { + "mnemonic": "UNSINGLE", + "alias_of": "UNTUPLE", + "doc_fift": "UNSINGLE", + "doc_stack": "t - x", + "description": "Unpacks a singleton `t=(x)`.", + "operands": { "n": 1 } + }, + { + "mnemonic": "UNPAIR", + "alias_of": "UNTUPLE", + "doc_fift": "UNPAIR\nUNCONS", + "doc_stack": "t - x y", + "description": "Unpacks a pair `t=(x,y)`.", + "operands": { "n": 2 } + }, + { + "mnemonic": "UNTRIPLE", + "alias_of": "UNTUPLE", + "doc_fift": "UNTRIPLE", + "doc_stack": "t - x y z", + "description": "Unpacks a triple `t=(x,y,z)`.", + "operands": { "n": 3 } + }, + { + "mnemonic": "CHKTUPLE", + "alias_of": "UNPACKFIRST", + "doc_fift": "CHKTUPLE", + "doc_stack": "t -", + "description": "Checks whether `t` is a _Tuple_. If not, throws a type check exception.", + "operands": { "k": 0 } + }, + { + "mnemonic": "SETFIRST", + "alias_of": "SETINDEX", + "doc_fift": "SETFIRST", + "doc_stack": "t x - t'", + "description": "Sets the first component of _Tuple_ `t` to `x` and returns the resulting _Tuple_ `t'`.", + "operands": { "k": 0 } + }, + { + "mnemonic": "SETSECOND", + "alias_of": "SETINDEX", + "doc_fift": "SETSECOND", + "doc_stack": "t x - t'", + "description": "Sets the second component of _Tuple_ `t` to `x` and returns the resulting _Tuple_ `t'`.", + "operands": { "k": 1 } + }, + { + "mnemonic": "SETTHIRD", + "alias_of": "SETINDEX", + "doc_fift": "SETTHIRD", + "doc_stack": "t x - t'", + "description": "Sets the third component of _Tuple_ `t` to `x` and returns the resulting _Tuple_ `t'`.", + "operands": { "k": 2 } + }, + { + "mnemonic": "FIRSTQ", + "alias_of": "INDEXQ", + "doc_fift": "FIRSTQ\nCARQ", + "doc_stack": "t - x", + "description": "Returns the first element of a _Tuple_.", + "operands": { "k": 0 } + }, + { + "mnemonic": "SECONDQ", + "alias_of": "INDEXQ", + "doc_fift": "SECONDQ\nCDRQ", + "doc_stack": "t - y", + "description": "Returns the second element of a _Tuple_.", + "operands": { "k": 1 } + }, + { + "mnemonic": "THIRDQ", + "alias_of": "INDEXQ", + "doc_fift": "THIRDQ", + "doc_stack": "t - z", + "description": "Returns the third element of a _Tuple_.", + "operands": { "k": 2 } + }, + { + "mnemonic": "SETFIRSTQ", + "alias_of": "SETINDEXQ", + "doc_fift": "SETFIRSTQ", + "doc_stack": "t x - t'", + "description": "Sets the first component of _Tuple_ `t` to `x` and returns the resulting _Tuple_ `t'`.", + "operands": { "k": 0 } + }, + { + "mnemonic": "SETSECONDQ", + "alias_of": "SETINDEXQ", + "doc_fift": "SETSECONDQ", + "doc_stack": "t x - t'", + "description": "Sets the second component of _Tuple_ `t` to `x` and returns the resulting _Tuple_ `t'`.", + "operands": { "k": 1 } + }, + { + "mnemonic": "SETTHIRDQ", + "alias_of": "SETINDEXQ", + "doc_fift": "SETTHIRDQ", + "doc_stack": "t x - t'", + "description": "Sets the third component of _Tuple_ `t` to `x` and returns the resulting _Tuple_ `t'`.", + "operands": { "k": 2 } + }, + { + "mnemonic": "CADR", + "alias_of": "INDEX2", + "doc_fift": "CADR", + "doc_stack": "t - x", + "description": "Recovers `x=(t_2)_1`.", + "operands": { "i": 1, "j": 0 } + }, + { + "mnemonic": "CDDR", + "alias_of": "INDEX2", + "doc_fift": "CDDR", + "doc_stack": "t - x", + "description": "Recovers `x=(t_2)_2`.", + "operands": { "i": 1, "j": 1 } + }, + { + "mnemonic": "CADDR", + "alias_of": "INDEX3", + "doc_fift": "CADDR", + "doc_stack": "t - x", + "description": "Recovers `x=t_2_2_1`.", + "operands": { "i": 1, "j": 1, "k": 0 } + }, + { + "mnemonic": "CDDDR", + "alias_of": "INDEX3", + "doc_fift": "CDDDR", + "doc_stack": "t - x", + "description": "Recovers `x=t_2_2_2`.", + "operands": { "i": 1, "j": 1, "k": 1 } + }, + { + "mnemonic": "ZERO", + "alias_of": "PUSHINT_4", + "doc_fift": "ZERO\nFALSE", + "doc_stack": "- 0", + "description": "", + "operands": { "i": 0 } + }, + { + "mnemonic": "ONE", + "alias_of": "PUSHINT_4", + "doc_fift": "ONE", + "doc_stack": "- 1", + "description": "", + "operands": { "i": 1 } + }, + { + "mnemonic": "TWO", + "alias_of": "PUSHINT_4", + "doc_fift": "TWO", + "doc_stack": "- 2", + "description": "", + "operands": { "i": 2 } + }, + { + "mnemonic": "TEN", + "alias_of": "PUSHINT_4", + "doc_fift": "TEN", + "doc_stack": "- 10", + "description": "", + "operands": { "i": 10 } + }, + { + "mnemonic": "TRUE", + "alias_of": "PUSHINT_4", + "doc_fift": "TRUE", + "doc_stack": "- -1", + "description": "", + "operands": { "i": 15 } + }, + { + "mnemonic": "CHKBOOL", + "alias_of": "FITS", + "doc_fift": "CHKBOOL", + "doc_stack": "x - x", + "description": "Checks whether `x` is a ''boolean value'' (i.e., either 0 or -1).", + "operands": { "c": 0 } + }, + { + "mnemonic": "CHKBIT", + "alias_of": "UFITS", + "doc_fift": "CHKBIT", + "doc_stack": "x - x", + "description": "Checks whether `x` is a binary digit (i.e., zero or one).", + "operands": { "c": 0 } + }, + { + "mnemonic": "ISZERO", + "alias_of": "EQINT", + "doc_fift": "ISZERO", + "doc_stack": "x - x=0", + "description": "Checks whether an integer is zero. Corresponds to Forth's `0=`.", + "operands": { "y": 0 } + }, + { + "mnemonic": "ISNEG", + "alias_of": "LESSINT", + "doc_fift": "ISNEG", + "doc_stack": "x - x<0", + "description": "Checks whether an integer is negative. Corresponds to Forth's `0<`.", + "operands": { "y": 0 } + }, + { + "mnemonic": "ISNPOS", + "alias_of": "LESSINT", + "doc_fift": "ISNPOS", + "doc_stack": "x - x<=0", + "description": "Checks whether an integer is non-positive.", + "operands": { "y": 1 } + }, + { + "mnemonic": "ISPOS", + "alias_of": "GTINT", + "doc_fift": "ISPOS", + "doc_stack": "x - x>0", + "description": "Checks whether an integer is positive. Corresponds to Forth's `0>`.", + "operands": { "y": 0 } + }, + { + "mnemonic": "ISNNEG", + "alias_of": "GTINT", + "doc_fift": "ISNNEG", + "doc_stack": "x - x >=0", + "description": "Checks whether an integer is non-negative.", + "operands": { "y": -1 } + }, + { + "mnemonic": "STZERO", + "alias_of": "STSLICECONST", + "doc_fift": "STZERO", + "doc_stack": "b - b'", + "description": "Stores one binary zero.", + "operands": { "x": 0, "y": 0, "sss": "0" } + }, + { + "mnemonic": "STONE", + "alias_of": "STSLICECONST", + "doc_fift": "STONE", + "doc_stack": "b - b'", + "description": "Stores one binary one.", + "operands": { "x": 0, "y": 0, "sss": "1" } + }, + { + "mnemonic": "PLDREF", + "alias_of": "PLDREFIDX", + "doc_fift": "PLDREF", + "doc_stack": "s - c", + "description": "Preloads the first cell reference of a _Slice_.", + "operands": { "n": 0 } + }, + { + "mnemonic": "SETNUMARGS", + "alias_of": "SETCONTARGS_N", + "doc_fift": "[n] SETNUMARGS", + "doc_stack": "c - c'", + "description": "Sets `c.nargs` to `n` plus the current depth of `c`'s stack, where `0 <= n <= 14`. If `c.nargs` is already set to a non-negative value, does nothing.", + "operands": { "r": 0 } + }, + { + "mnemonic": "SETCONTARGS", + "alias_of": "SETCONTARGS_N", + "doc_fift": "[r] -1 SETCONTARGS", + "doc_stack": "x_1 x_2...x_r c - c'", + "description": "Pushes `0 <= r <= 15` values `x_1...x_r` into the stack of (a copy of) the continuation `c`, starting with `x_1`. If the final depth of `c`'s stack turns out to be greater than `c.nargs`, a stack overflow exception is generated.", + "operands": { "n": -1 } + }, + { + "mnemonic": "BLESSNUMARGS", + "alias_of": "BLESSARGS", + "doc_fift": "[n] BLESSNUMARGS", + "doc_stack": "s - c", + "description": "Also transforms a _Slice_ `s` into a _Continuation_ `c`, but sets `c.nargs` to `0 <= n <= 14`.", + "operands": { "r": 0 } + }, + { + "mnemonic": "PUSHROOT", + "alias_of": "PUSHCTR", + "doc_fift": "c4 PUSHCTR\nc4 PUSH", + "doc_stack": "- x", + "description": "Pushes the ''global data root'' cell reference, thus enabling access to persistent smart-contract data.", + "operands": { "i": 4 } + }, + { + "mnemonic": "POPROOT", + "alias_of": "POPCTR", + "doc_fift": "c4 POPCTR\nc4 POP", + "doc_stack": "x -", + "description": "Sets the ''global data root'' cell reference, thus allowing modification of persistent smart-contract data.", + "operands": { "i": 4 } + }, + { + "mnemonic": "NEWDICT", + "alias_of": "NULL", + "doc_fift": "NEWDICT", + "doc_stack": " - D", + "description": "Returns a new empty dictionary.\nIt is an alternative mnemonics for `PUSHNULL`.", + "operands": {} + }, + { + "mnemonic": "DICTEMPTY", + "alias_of": "ISNULL", + "doc_fift": "DICTEMPTY", + "doc_stack": "D - ?", + "description": "Checks whether dictionary `D` is empty, and returns `-1` or `0` accordingly.\nIt is an alternative mnemonics for `ISNULL`.", + "operands": {} + }, + { + "mnemonic": "STDICTS", + "alias_of": "STSLICE", + "doc_fift": "STDICTS\n", + "doc_stack": "s b - b'", + "description": "Stores a _Slice_-represented dictionary `s` into _Builder_ `b`.\nIt is actually a synonym for `STSLICE`.", + "operands": {} + }, + { + "mnemonic": "NOW", + "alias_of": "GETPARAM", + "doc_fift": "NOW", + "doc_stack": " - x", + "description": "Returns the current Unix time as an _Integer_. If it is impossible to recover the requested value starting from `c7`, throws a type checking or range checking exception as appropriate.\nEquivalent to `3 GETPARAM`.", + "operands": { "i": 3 } + }, + { + "mnemonic": "BLOCKLT", + "alias_of": "GETPARAM", + "doc_fift": "BLOCKLT", + "doc_stack": " - x", + "description": "Returns the starting logical time of the current block.\nEquivalent to `4 GETPARAM`.", + "operands": { "i": 4 } + }, + { + "mnemonic": "LTIME", + "alias_of": "GETPARAM", + "doc_fift": "LTIME", + "doc_stack": " - x", + "description": "Returns the logical time of the current transaction.\nEquivalent to `5 GETPARAM`.", + "operands": { "i": 5 } + }, + { + "mnemonic": "RANDSEED", + "alias_of": "GETPARAM", + "doc_fift": "RANDSEED", + "doc_stack": " - x", + "description": "Returns the current random seed as an unsigned 256-bit _Integer_.\nEquivalent to `6 GETPARAM`.", + "operands": { "i": 6 } + }, + { + "mnemonic": "BALANCE", + "alias_of": "GETPARAM", + "doc_fift": "BALANCE", + "doc_stack": " - t", + "description": "Returns the remaining balance of the smart contract as a _Tuple_ consisting of an _Integer_ (the remaining Gram balance in nanograms) and a _Maybe Cell_ (a dictionary with 32-bit keys representing the balance of ''extra currencies'').\nEquivalent to `7 GETPARAM`.\nNote that `RAW` primitives such as `SENDRAWMSG` do not update this field.", + "operands": { "i": 7 } + }, + { + "mnemonic": "MYADDR", + "alias_of": "GETPARAM", + "doc_fift": "MYADDR", + "doc_stack": " - s", + "description": "Returns the internal address of the current smart contract as a _Slice_ with a `MsgAddressInt`. If necessary, it can be parsed further using primitives such as `PARSEMSGADDR` or `REWRITESTDADDR`.\nEquivalent to `8 GETPARAM`.", + "operands": { "i": 8 } + }, + { + "mnemonic": "CONFIGROOT", + "alias_of": "GETPARAM", + "doc_fift": "CONFIGROOT", + "doc_stack": " - D", + "description": "Returns the _Maybe Cell_ `D` with the current global configuration dictionary. Equivalent to `9 GETPARAM `.", + "operands": { "i": 9 } + }, + { + "mnemonic": "MYCODE", + "alias_of": "GETPARAM", + "doc_fift": "MYCODE", + "doc_stack": " - c", + "description": "Retrieves code of smart-contract from c7. Equivalent to `10 GETPARAM `.", + "operands": { "i": 10 } + }, + { + "mnemonic": "INCOMINGVALUE", + "alias_of": "GETPARAM", + "doc_fift": "INCOMINGVALUE", + "doc_stack": " - t", + "description": "Retrieves value of incoming message from c7. Equivalent to `11 GETPARAM `.", + "operands": { "i": 11 } + }, + { + "mnemonic": "STORAGEFEES", + "alias_of": "GETPARAM", + "doc_fift": "STORAGEFEES", + "doc_stack": " - i", + "description": "Retrieves value of storage phase fees from c7. Equivalent to `12 GETPARAM `.", + "operands": { "i": 12 } + }, + { + "mnemonic": "PREVBLOCKSINFOTUPLE", + "alias_of": "GETPARAM", + "doc_fift": "PREVBLOCKSINFOTUPLE", + "doc_stack": " - t", + "description": "Retrives PrevBlocksInfo: `[last_mc_blocks, prev_key_block]` from c7. Equivalent to `13 GETPARAM `.", + "operands": { "i": 13 } + }, + { + "mnemonic": "DUMPSTK", + "alias_of": "DEBUG", + "doc_fift": "DUMPSTK", + "doc_stack": "-", + "description": "Dumps the stack (at most the top 255 values) and shows the total stack depth. Does nothing on production versions of TVM.", + "operands": { "i": 0, "j": 0 } + }, + { + "mnemonic": "STRDUMP", + "alias_of": "DEBUG", + "doc_fift": "STRDUMP", + "doc_stack": "-", + "description": "Dumps slice with length divisible by 8 from top of stack as a string. Does nothing on production versions of TVM.", + "operands": { "i": 0, "j": 0 } + }, + { + "mnemonic": "DUMP", + "alias_of": "DEBUG", + "doc_fift": "s[j] DUMP", + "doc_stack": "-", + "description": "Dumps slice with length divisible by 8 from top of stack as a string. Does nothing on production versions of TVM.", + "operands": { "i": 2 } + }, + { + "mnemonic": "SETCP0", + "alias_of": "SETCP", + "doc_fift": "SETCP0", + "doc_stack": "-", + "description": "Selects TVM (test) codepage zero as described in this document.", + "operands": { "n": 0 } + } + ] +} diff --git a/schema.json b/schema.json index b3f73a8..0c896d4 100644 --- a/schema.json +++ b/schema.json @@ -61,13 +61,52 @@ "values": { "type": "object", "additionalProperties": false, + "required": ["registers"], "properties": { "stack": { "$ref": "#/definitions/stack" + }, + "registers": { + "type": "array", + "title": "Register values", + "items": { + "$ref": "#/definitions/register_flow" + }, + "additionalItems": false + } + } + }, + "register_flow": { + "title": "Register", + "description": "Represents read/write access to a register", + "oneOf": [ + { + "type": "object", + "additionalProperties": false, + "required": ["type", "index"], + "properties": { + "type": { "const": "constant" }, + "index": { "type": "number" } + } + }, + { + "type": "object", + "additionalProperties": false, + "required": ["type", "var_name"], + "properties": { + "type": { "const": "variable" }, + "var_name": { "$ref": "#/definitions/var_name" } + } + }, + { + "type": "object", + "additionalProperties": false, + "required": ["type", "name"], + "properties": { + "type": { "const": "special" }, + "name": { "enum": ["gas", "cstate"] } + } } - }, - "required": [ - "stack" ] }, "stack": { @@ -147,10 +186,7 @@ "type": { "const": "simple" }, - "name": { - "type": "string", - "title": "Variable to pass" - }, + "name": { "$ref": "#/definitions/var_name" }, "value_types": { "title": "Possible value types", "type": "array", @@ -210,10 +246,7 @@ "type": { "const": "conditional" }, - "name": { - "type": "string", - "title": "Variable to match" - }, + "name": { "$ref": "#/definitions/var_name", "title": "Variable to match" }, "match": { "type": "array", "additionalItems": false, @@ -256,13 +289,10 @@ "type": { "const": "array" }, - "name": { - "title": "Variable name", - "type": "string" - }, + "name": { "$ref": "#/definitions/var_name" }, "length_var": { "title": "Variable which contains array length", - "type": "string" + "$ref": "#/definitions/var_name" }, "array_entry": { "allOf": [{ "$ref": "#/definitions/stack" }], @@ -273,6 +303,214 @@ } ] }, + "var_name": { + "type": "string", + "title": "Variable name", + "description": "Allowed chars are `a-zA-Z0-9_`, must not begin with digit or underscore and must not end with underscore.", + "markdownDescription": "Allowed chars are `a-zA-Z0-9_`, must not begin with digit or underscore and must not end with underscore." + }, + "display_hint": { + "title": "Display Hint", + "description": "Hint for converting operands between raw values and Asm.fif display format", + "oneOf": [ + { + "type": "object", + "additionalProperties": false, + "required": ["type"], + "properties": { + "type": { "const": "continuation" } + } + }, + { + "type": "object", + "additionalProperties": false, + "required": ["type", "size_var"], + "properties": { + "type": { "const": "dictionary" }, + "size_var": { "$ref": "#/definitions/var_name" } + } + }, + { + "type": "object", + "additionalProperties": false, + "required": ["type", "value"], + "properties": { + "type": { "const": "add" }, + "value": { "type": "number" } + } + }, + { + "type": "object", + "additionalProperties": false, + "required": ["type"], + "properties": { + "type": { "const": "stack" } + } + }, + { + "type": "object", + "additionalProperties": false, + "required": ["type"], + "properties": { + "type": { "const": "register" } + } + }, + { + "type": "object", + "additionalProperties": false, + "required": ["type"], + "properties": { + "type": { "const": "pushint4" } + } + }, + { + "type": "object", + "additionalProperties": false, + "required": ["type"], + "properties": { + "type": { "const": "optional_nargs" } + } + }, + { + "type": "object", + "additionalProperties": false, + "required": ["type"], + "properties": { + "type": { "const": "plduz" } + } + } + ] + }, + "display_hints": { + "type": "array", + "additionalItems": false, + "title": "Display Hints", + "description": "Set of hints to convert between Asm.fif representation and raw bytecode", + "items": { "$ref": "#/definitions/display_hint" } + }, + "operand": { + "title": "Operand", + "description": "Static instruction parameter serialized to bytecode.", + "oneOf": [ + { + "type": "object", + "additionalProperties": false, + "required": ["name", "type", "display_hints", "size", "max_value", "min_value"], + "properties": { + "name": { "$ref": "#/definitions/var_name" }, + "type": { "const": "uint" }, + "display_hints": { "$ref": "#/definitions/display_hints" }, + "size": { + "type": "number", + "title": "Integer size, bits" + }, + "max_value": { + "type": "number", + "title": "Maximum integer value" + }, + "min_value": { + "type": "number", + "title": "Minimum integer value" + } + } + }, + { + "type": "object", + "additionalProperties": false, + "required": ["name", "type", "display_hints", "size", "max_value", "min_value"], + "properties": { + "name": { "$ref": "#/definitions/var_name" }, + "type": { "const": "int" }, + "display_hints": { "$ref": "#/definitions/display_hints" }, + "size": { + "type": "number", + "title": "Integer size, bits" + }, + "max_value": { + "type": "number", + "title": "Maximum integer value" + }, + "min_value": { + "type": "number", + "title": "Minimum integer value" + } + } + }, + { + "type": "object", + "additionalProperties": false, + "required": ["name", "type"], + "properties": { + "name": { "$ref": "#/definitions/var_name" }, + "type": { "const": "pushint_long" } + } + }, + { + "type": "object", + "additionalProperties": false, + "required": ["name", "type", "display_hints"], + "properties": { + "name": { "$ref": "#/definitions/var_name" }, + "type": { "const": "ref" }, + "display_hints": { "$ref": "#/definitions/display_hints" } + } + }, + { + "type": "object", + "additionalProperties": false, + "required": ["name", "type", "display_hints", "bits_length_var_size", "bits_padding", "completion_tag", "max_bits", "min_bits", "max_refs", "min_refs"], + "properties": { + "name": { "$ref": "#/definitions/var_name" }, + "type": { "const": "subslice" }, + "display_hints": { "$ref": "#/definitions/display_hints" }, + "bits_length_var_size": { + "type": "number", + "title": "Size of bit length operand" + }, + "bits_padding": { + "type": "number", + "title": "Constant integer value to add to length of bitstring to load." + }, + "refs_length_var_size": { + "type": "number", + "title": "Size of ref count operand", + "description": "Optional, no refs in this operand in case of absence." + }, + "refs_add": { + "type": "number", + "title": "Constant integer value to add to ref count", + "default": 0 + }, + "completion_tag": { + "type": "boolean", + "title": "Completion tag flag", + "description": "Determines completion tag presense: trailing `'1' + '0' * x` in bitstring", + "markdownDescription": "Determines completion tag presense: trailing `'1' + '0' * x` in bitstring" + }, + "max_bits": { + "type": "number", + "title": "Max bit size", + "description": "Hint for maximum bits available to store for this operand" + }, + "min_bits": { + "type": "number", + "title": "Min bit size", + "description": "Hint for minimum bits available to store for this operand" + }, + "max_refs": { + "type": "number", + "title": "Max ref size", + "description": "Hint for maximum refs available to store for this operand" + }, + "min_refs": { + "type": "number", + "title": "Min ref size", + "description": "Hint for minimum refs available to store for this operand" + } + } + } + ] + }, "continuation": { "title": "Continuation", "description": "Description of a continuation with static savelist", @@ -297,7 +535,7 @@ ], "properties": { "type": { "const": "variable" }, - "var_name": { "type": "string", "title": "Continuation variable name" }, + "var_name": { "$ref": "#/definitions/var_name", "title": "Continuation variable name" }, "save": { "$ref": "#/definitions/savelist" } } }, @@ -396,7 +634,7 @@ "required": ["count", "body", "after"], "additionalProperties": false, "properties": { - "count": { "type": "string", "title": "Variable name" }, + "count": { "$ref": "#/definitions/var_name", "title": "Variable name" }, "body": { "$ref": "#/definitions/continuation" }, "after": { "$ref": "#/definitions/continuation" } } @@ -453,12 +691,33 @@ "PLDULE4" ] }, + "since_version": { + "type": "number", + "title": "Since global version", + "description": "Global version (ConfigParam 8) which enables this instruction. Version 9999 means that instruction has no global version and currently unavailable in mainnet." + }, "doc": { "type": "object", "title": "Documentation", "description": "Free-form human-friendly information which should be used for documentation purposes only.", "additionalProperties": false, "properties": { + "opcode": { + "type": "string", + "title": "Opcode format documentation", + "description": "Free-form bytecode format description.", + "examples": [ + "F2FF", + "F3pr", + "FEFnssss" + ] + }, + "stack": { + "type": "string", + "title": "Stack usage description", + "description": "Free-form description of stack inputs and outputs. Usually the form is `[inputs] - [outputs]` where `[inputs]` are consumed stack values and `outputs` are produced stack values (top of stack is the last value).", + "markdownDescription": "Free-form description of stack inputs and outputs. Usually the form is `[inputs] - [outputs]` where `[inputs]` are consumed stack values and `outputs` are produced stack values (top of stack is the last value)." + }, "category": { "type": "string", "title": "Category of instruction", @@ -500,6 +759,7 @@ "items": { "type": "object", "additionalProperties": false, + "required": ["fift", "description"], "properties": { "fift": { "type": "string", @@ -520,7 +780,11 @@ } }, "required": [ - "category" + "category", + "description", + "gas", + "fift", + "fift_examples" ] }, "bytecode": { @@ -530,16 +794,6 @@ "markdownDescription": "Information related to bytecode format of an instruction. Assuming that each instruction has format `prefix || operand_1 || operand_2 || ...` (also some operands may be refs, not bitstring part).", "additionalProperties": false, "properties": { - "doc_opcode": { - "type": "string", - "title": "Opcode format documentation", - "description": "Free-form bytecode format description.", - "examples": [ - "F2FF", - "F3pr", - "FEFnssss" - ] - }, "tlb": { "type": "string", "title": "TL-b schema", @@ -597,82 +851,16 @@ "operands": { "type": "array", "title": "Instruction operands", - "description": "Describes how to parse operands. Order of objects in this array represents the actual order of operands in instruction. Optional, no operands in case of absence.", + "description": "Describes how to parse operands. Order of objects in this array represents the actual order of operands in instruction.", "default": [], - "items": { - "type": "object", - "additionalProperties": false, - "properties": { - "name": { - "type": "string", - "title": "Operand variable name", - "description": "Allowed chars are `a-zA-Z0-9_`, must not begin with digit or underscore and must not end with underscore.", - "markdownDescription": "Allowed chars are `a-zA-Z0-9_`, must not begin with digit or underscore and must not end with underscore." - }, - "loader": { - "enum": [ - "int", - "uint", - "ref", - "pushint_long", - "subslice" - ], - "title": "Loader function for operand" - }, - "loader_args": { - "type": "object", - "title": "Arguments for loader function. Optional, no arguments in case of absence.", - "default": {} - }, - "internal": { - "type": "boolean", - "title": "Internal flag", - "description": "If true, this operand is used as a subslice length variable, should be used only for serialization/deserialization, humans and implementations do not need them.", - "default": false - } - }, - "required": [ - "name", - "loader" - ], - "examples": [ - { - "name": "x", - "loader": "pushint_long", - "loader_args": {} - }, - { - "name": "r", - "loader": "uint", - "loader_args": { - "size": 2 - } - }, - { - "name": "x", - "loader": "uint", - "loader_args": { - "size": 5 - } - }, - { - "name": "slice", - "loader": "subslice", - "loader_args": { - "bits_length_var": "x", - "bits_padding": 1, - "refs_length_var": "r", - "refs_add": 1, - "completion_tag": true - } - } - ] - } + "additionalItems": false, + "items": { "$ref": "#/definitions/operand" } } }, "required": [ "prefix", - "tlb" + "tlb", + "operands" ] }, "value_flow": { @@ -680,22 +868,17 @@ "title": "Value flow of instruction", "description": "Information related to usage of stack and registers by instruction.", "additionalProperties": false, + "required": ["inputs", "outputs"], "properties": { - "doc_stack": { - "type": "string", - "title": "Stack usage description", - "description": "Free-form description of stack inputs and outputs. Usually the form is `[inputs] - [outputs]` where `[inputs]` are consumed stack values and `outputs` are produced stack values (top of stack is the last value).", - "markdownDescription": "Free-form description of stack inputs and outputs. Usually the form is `[inputs] - [outputs]` where `[inputs]` are consumed stack values and `outputs` are produced stack values (top of stack is the last value)." - }, "inputs": { "$ref": "#/definitions/values", "title": "Instruction inputs", - "description": "Incoming values constraints. Input is unconstrained if absent." + "description": "Incoming values constraints." }, "outputs": { "$ref": "#/definitions/values", "title": "Instruction outputs", - "description": "Outgoing values constraints. Output is unconstrained if absent." + "description": "Outgoing values constraints." } } }, @@ -704,18 +887,17 @@ "title": "Control flow of instruction", "description": "Information related to current cc modification by instruction", "additionalProperties": false, + "required": ["branches", "nobranch"], "properties": { "branches": { "type": "array", "title": "Possible branches of an instruction", "description": "Array of current continuation possible values after current instruction execution", - "default": [], "items": { "$ref": "#/definitions/continuation" }, "additionalItems": false }, "nobranch": { "type": "boolean", - "default": false, "title": "No branch possibility", "description": "Can this instruction not perform any of specified branches in certain cases (do not modify cc)?" } @@ -725,7 +907,10 @@ "required": [ "mnemonic", "doc", - "bytecode" + "bytecode", + "value_flow", + "control_flow", + "since_version" ] } },