Skip to content
HALOWERK

Codewerk

cfg register interference coloring

Build register interference from supplied live-variable sets and return a deterministic greedy allocation with spills.

POST https://code.halowerk.com/v1/cfg-register-interference-coloring

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
variablesarrayYes
live_setsarrayYes
register_countintegerYes
Show full input schema
{
  "type": "object",
  "properties": {
    "variables": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 32,
        "minLength": 1
      },
      "maxItems": 32,
      "minItems": 0
    },
    "live_sets": {
      "type": "array",
      "items": {
        "type": "array",
        "items": {
          "type": "string",
          "maxLength": 32,
          "minLength": 1
        },
        "maxItems": 32,
        "minItems": 0
      },
      "maxItems": 128,
      "minItems": 0
    },
    "register_count": {
      "type": "integer",
      "minimum": 1,
      "maximum": 16
    }
  },
  "required": [
    "variables",
    "live_sets",
    "register_count"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "variables": [
    "a",
    "b",
    "c"
  ],
  "live_sets": [
    [
      "a",
      "b"
    ],
    [
      "b",
      "c"
    ]
  ],
  "register_count": 2
}

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 โ†’