Jump to content

The Principia Machina/TPC-PY/diff cluster.php

From The Invariance Itself
Revision as of 04:32, 28 September 2026 by BFP Rauch (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
<?php
declare(strict_types=1);
require __DIR__ . '/../tpc_php/tpc_cluster.php';
$cases = json_decode(file_get_contents($argv[1] ?? __DIR__ . '/diff_cases.json'), true, 512, JSON_THROW_ON_ERROR);
$out = [];
foreach ($cases as $c) { $out[] = tpc_cluster_run_case($c); }
echo json_encode($out, JSON_THROW_ON_ERROR);