# builtinReferenceCount
function builtinReferenceCount(program)Return builtin reference count derived from the active module state.
| Parameter | Type | Default | Description |
|---|---|---|---|
program | dynamic | — | The program input consumed by `builtinReferenceCount`. |
src/miniquake/quakec/contract.mlminiquake/constants.ml as c → src/miniquake/constants.mlminiquake/quakec/builtins.ml as builtins → src/miniquake/quakec/builtins.mlminiquake/quakec/opcodes.ml as op → src/miniquake/quakec/opcodes.mlminiquake/quakec/vm.ml as vm → src/miniquake/quakec/vm.mlfunction builtinReferenceCount(program)Return builtin reference count derived from the active module state.
| Parameter | Type | Default | Description |
|---|---|---|---|
program | dynamic | — | The program input consumed by `builtinReferenceCount`. |
function contractFingerprint()Implements the `contractFingerprint` operation for `miniquake.quakec.contract` (contract fingerprint).
const EXPECTED_BUILTIN_COUNT = 79Defines the expected builtin count value used by `miniquake.quakec.contract`.
const EXPECTED_FIXME_COUNT = 14Defines the expected fixme count value used by `miniquake.quakec.contract`.
const EXPECTED_HEADER_CRC = 5927Defines the expected header crc value used by `miniquake.quakec.contract`.
const EXPECTED_LOCALSTACK_SIZE = 2048Defines the expected localstack size value used by `miniquake.quakec.contract`.
const EXPECTED_OPCODE_COUNT = 66Defines the expected opcode count value used by `miniquake.quakec.contract`.
const EXPECTED_STACK_DEPTH = 32Defines the expected stack depth value used by `miniquake.quakec.contract`.
const EXPECTED_VERSION = 6Defines the expected version value used by `miniquake.quakec.contract`.
const FNV_OFFSET = 2166136261Defines the fnv offset value used by `miniquake.quakec.contract`.
const FNV_PRIME = 16777619Defines the fnv prime value used by `miniquake.quakec.contract`.
function hasDefinition(definitions, name)Report whether definition.
| Parameter | Type | Default | Description |
|---|---|---|---|
definitions | dynamic | — | The definitions input consumed by `hasDefinition`. |
name | dynamic | — | Stable name that identifies the requested object or option. |
function hasFunction(program, name)Report whether function.
| Parameter | Type | Default | Description |
|---|---|---|---|
program | dynamic | — | The program input consumed by `hasFunction`. |
name | dynamic | — | Stable name that identifies the requested object or option. |
inline function hashByte(hash, value)Returns whether `miniquake.quakec.contract` has h byte.
| Parameter | Type | Default | Description |
|---|---|---|---|
hash | dynamic | — | The hash input consumed by `hashByte`. |
value | dynamic | — | Value consumed by `hashByte`. |
function hashText(hash, text)Fold text into the deterministic rolling hash.
| Parameter | Type | Default | Description |
|---|---|---|---|
hash | dynamic | — | The hash input consumed by `hashText`. |
text | dynamic | — | Text to parse or process. |
function hashWord(hash, value)Fold word into the deterministic rolling hash.
| Parameter | Type | Default | Description |
|---|---|---|---|
hash | dynamic | — | The hash input consumed by `hashWord`. |
value | dynamic | — | Value consumed by `hashWord`. |
function maximumBuiltinReference(program)Implements the `maximumBuiltinReference` operation for `miniquake.quakec.contract` (maximum builtin reference).
| Parameter | Type | Default | Description |
|---|---|---|---|
program | dynamic | — | The program input consumed by `maximumBuiltinReference`. |
function programFingerprint(program)Implements the `programFingerprint` operation for `miniquake.quakec.contract` (program fingerprint).
| Parameter | Type | Default | Description |
|---|---|---|---|
program | dynamic | — | The program input consumed by `programFingerprint`. |
function requiredFields()Validates d fields for `miniquake.quakec.contract`.
function requiredFunctions()Validates d functions for `miniquake.quakec.contract`.
function requiredGlobals()Validates d globals for `miniquake.quakec.contract`.
const STATUS = "quakec_109_frozen_v1"Defines the status value used by `miniquake.quakec.contract`.
function summary(program)Return summary derived from the active module state.
| Parameter | Type | Default | Description |
|---|---|---|---|
program | dynamic | — | The program input consumed by `summary`. |
function validate(program)Implements the `validate` operation for `miniquake.quakec.contract` (validate).
| Parameter | Type | Default | Description |
|---|---|---|---|
program | dynamic | — | The program input consumed by `validate`. |