Skip to content
HALOWERK

Codewerk

cfg constant lattice propagation

Propagate literal constants through supplied block assignments and merge conflicting path values as unknown.

POST https://code.halowerk.com/v1/cfg-constant-lattice-propagation

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
entrystringYes
initialobjectYes
blocksarrayYes
Show full input schema
{
  "type": "object",
  "properties": {
    "entry": {
      "type": "string",
      "maxLength": 32,
      "minLength": 1
    },
    "initial": {
      "type": "object",
      "additionalProperties": {
        "type": "number",
        "minimum": -1000000000000,
        "maximum": 1000000000000
      },
      "maxProperties": 32
    },
    "blocks": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 32,
            "minLength": 1
          },
          "assignments": {
            "type": "object",
            "maxProperties": 32,
            "additionalProperties": {
              "type": [
                "number",
                "null"
              ],
              "minimum": -1000000000000,
              "maximum": 1000000000000
            }
          },
          "next": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 32,
              "minLength": 1
            },
            "maxItems": 32,
            "minItems": 0
          }
        },
        "required": [
          "id",
          "assignments",
          "next"
        ],
        "additionalProperties": false
      },
      "maxItems": 16,
      "minItems": 1
    }
  },
  "required": [
    "entry",
    "initial",
    "blocks"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "entry": "A",
  "initial": {
    "x": 0
  },
  "blocks": [
    {
      "id": "A",
      "assignments": {
        "x": 2
      },
      "next": []
    }
  ]
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-18 UTC.

More endpoints in this hub

All endpoints in this hub โ†’