Download Game! Currently 96 players. Last logged in:JosimSarmangothFonkensembleUrsa

Blitzer's Blog >> 72850

Back to blogs index
Posted: 30 Sep 2026 19:04 [ permalink ]
[IR GENERATOR] Flattened AST-MD written to tests/ast_ir.txt

FUNC step_grid(grid, size)
  VAR i: int
  VAR max: int
  ASSIGN max = size * size
  ASSIGN i = 0
  WHILE (i < max)
    VAR cell: int
    ASSIGN cell = CALL sys_array_get(grid, i)
    IF (cell == 1)
      CALL sys_array_set(grid, i, 0)
    ELSE
      CALL sys_array_set(grid, i, 1)
    END_IF
    ASSIGN i = i + 1
  END_WHILE
END_FUNC

elli:~/GD$

This is great, I think.

We could first have a go using our Gemma cluster