{
  "date": "2026-10-13",
  "requested_examples": 4,
  "optional_linalg_example": 1,
  "finite_cases_per_example": 18,
  "runtime_forms": 9,
  "total_runtime_case_executions": 162,
  "total_runtime_assertions": 1350,
  "index_width": 64,
  "records": [
    {
      "example": "dot",
      "mlir": "dot.mlir",
      "mlir_sha256": "5169af362e433273cf02a9666a2a79fc55105e307655f60c75957a7d5e7ca0af",
      "llvm_dialect": "dot.llvm-dialect.mlir",
      "llvm_dialect_sha256": "1391920a258d85c99577dcc0e689ea13b18836894e172239a6b6bac1b1d958da",
      "generated_llvm": "dot.lowered.ll",
      "generated_llvm_sha256": "05d2336afc5b272787097dadfc41e03331edd2d1a9a2af5f9009713bdedd6bd2",
      "authored_llvm": "dot.ll",
      "authored_llvm_sha256": "0988f7e242f75a713845c3ca079ec85f73f0cc274d27dc4cfd956a475234b3a7",
      "mlir_parse_verification_and_generic_roundtrip": "passed",
      "lowering_and_llvm_verification": "passed",
      "runtime": [
        {
          "file": "dot.ll",
          "sha256": "0988f7e242f75a713845c3ca079ec85f73f0cc274d27dc4cfd956a475234b3a7",
          "cases": 18,
          "assertions": 126,
          "passed": true,
          "interface": "hand-authored pointer interface",
          "commands": [
            [
              "llvm-as",
              "<temporary harness.ll>",
              "-o",
              "/dev/null"
            ],
            [
              "clang",
              "-O0",
              "-Wno-override-module",
              "<temporary harness.ll>",
              "-o",
              "<temporary executable>"
            ],
            [
              "<temporary executable>"
            ]
          ]
        },
        {
          "file": "dot.lowered.ll",
          "sha256": "05d2336afc5b272787097dadfc41e03331edd2d1a9a2af5f9009713bdedd6bd2",
          "cases": 18,
          "assertions": 126,
          "passed": true,
          "interface": "default flattened memref descriptors",
          "commands": [
            [
              "llvm-as",
              "<temporary harness.ll>",
              "-o",
              "/dev/null"
            ],
            [
              "clang",
              "-O0",
              "-Wno-override-module",
              "<temporary harness.ll>",
              "-o",
              "<temporary executable>"
            ],
            [
              "<temporary executable>"
            ]
          ]
        }
      ]
    },
    {
      "example": "relu",
      "mlir": "relu.mlir",
      "mlir_sha256": "f2cbb4ff1f6d3da78df2c784501806e1693a8fc5964ce93ee8f080e71f4f57e4",
      "llvm_dialect": "relu.llvm-dialect.mlir",
      "llvm_dialect_sha256": "09a589e1e6b956472586aafbc7a0ceb43920b2a0bcfa67efef549ff23ce7bd56",
      "generated_llvm": "relu.lowered.ll",
      "generated_llvm_sha256": "5822fee19558734d935b2b2a68bff2d39b4fb7904d08cfd4fc2890227c98e9e1",
      "authored_llvm": "relu.ll",
      "authored_llvm_sha256": "d5f92d1544f7c9ae62c67cea83c770c82162375a15aa33ab821d4a475320d62f",
      "mlir_parse_verification_and_generic_roundtrip": "passed",
      "lowering_and_llvm_verification": "passed",
      "runtime": [
        {
          "file": "relu.ll",
          "sha256": "d5f92d1544f7c9ae62c67cea83c770c82162375a15aa33ab821d4a475320d62f",
          "cases": 18,
          "assertions": 126,
          "passed": true,
          "interface": "hand-authored pointer interface",
          "commands": [
            [
              "llvm-as",
              "<temporary harness.ll>",
              "-o",
              "/dev/null"
            ],
            [
              "clang",
              "-O0",
              "-Wno-override-module",
              "<temporary harness.ll>",
              "-o",
              "<temporary executable>"
            ],
            [
              "<temporary executable>"
            ]
          ]
        },
        {
          "file": "relu.lowered.ll",
          "sha256": "5822fee19558734d935b2b2a68bff2d39b4fb7904d08cfd4fc2890227c98e9e1",
          "cases": 18,
          "assertions": 126,
          "passed": true,
          "interface": "default flattened memref descriptors",
          "commands": [
            [
              "llvm-as",
              "<temporary harness.ll>",
              "-o",
              "/dev/null"
            ],
            [
              "clang",
              "-O0",
              "-Wno-override-module",
              "<temporary harness.ll>",
              "-o",
              "<temporary executable>"
            ],
            [
              "<temporary executable>"
            ]
          ]
        }
      ]
    },
    {
      "example": "sum",
      "mlir": "sum.mlir",
      "mlir_sha256": "8340b90f4345c15ea8bfdc6591e21f385b90eb98d1122e7c3ee7790f2e8fde67",
      "llvm_dialect": "sum.llvm-dialect.mlir",
      "llvm_dialect_sha256": "ebef0b2e96398c3d8c7984f3784dfa913d19eb542ff09d4e75a1c76493727361",
      "generated_llvm": "sum.lowered.ll",
      "generated_llvm_sha256": "e715e113e720b462f242e6d4137a628b5467914e9d54fc50e3b9c641ca8831bb",
      "authored_llvm": "sum.ll",
      "authored_llvm_sha256": "d626bc24950f86024d5d576b0421bea6401a5d3828a3a70b1fdc5f7702faa3fd",
      "mlir_parse_verification_and_generic_roundtrip": "passed",
      "lowering_and_llvm_verification": "passed",
      "runtime": [
        {
          "file": "sum.ll",
          "sha256": "d626bc24950f86024d5d576b0421bea6401a5d3828a3a70b1fdc5f7702faa3fd",
          "cases": 18,
          "assertions": 72,
          "passed": true,
          "interface": "hand-authored pointer interface",
          "commands": [
            [
              "llvm-as",
              "<temporary harness.ll>",
              "-o",
              "/dev/null"
            ],
            [
              "clang",
              "-O0",
              "-Wno-override-module",
              "<temporary harness.ll>",
              "-o",
              "<temporary executable>"
            ],
            [
              "<temporary executable>"
            ]
          ]
        },
        {
          "file": "sum.lowered.ll",
          "sha256": "e715e113e720b462f242e6d4137a628b5467914e9d54fc50e3b9c641ca8831bb",
          "cases": 18,
          "assertions": 72,
          "passed": true,
          "interface": "default flattened memref descriptors",
          "commands": [
            [
              "llvm-as",
              "<temporary harness.ll>",
              "-o",
              "/dev/null"
            ],
            [
              "clang",
              "-O0",
              "-Wno-override-module",
              "<temporary harness.ll>",
              "-o",
              "<temporary executable>"
            ],
            [
              "<temporary executable>"
            ]
          ]
        }
      ]
    },
    {
      "example": "matmul",
      "mlir": "matmul.mlir",
      "mlir_sha256": "cabcad29f7746d648ab729584737cf3d2bf921b9eef033bb1a44a72af4b78359",
      "llvm_dialect": "matmul.llvm-dialect.mlir",
      "llvm_dialect_sha256": "304a552a6f5f96c67869febe59fd659acfd10862f91df4b542f8238b8d140539",
      "generated_llvm": "matmul.lowered.ll",
      "generated_llvm_sha256": "bcc4e70ecf110d90865b550a74fa1d0a13920dc33fab5324657fdf65719c9ec8",
      "authored_llvm": "matmul.ll",
      "authored_llvm_sha256": "3009a098ee18ea5d7d86b62e2712f231752991a1580df821b25ea02a095efb16",
      "mlir_parse_verification_and_generic_roundtrip": "passed",
      "lowering_and_llvm_verification": "passed",
      "runtime": [
        {
          "file": "matmul.ll",
          "sha256": "3009a098ee18ea5d7d86b62e2712f231752991a1580df821b25ea02a095efb16",
          "cases": 18,
          "assertions": 234,
          "passed": true,
          "interface": "hand-authored pointer interface",
          "commands": [
            [
              "llvm-as",
              "<temporary harness.ll>",
              "-o",
              "/dev/null"
            ],
            [
              "clang",
              "-O0",
              "-Wno-override-module",
              "<temporary harness.ll>",
              "-o",
              "<temporary executable>"
            ],
            [
              "<temporary executable>"
            ]
          ]
        },
        {
          "file": "matmul.lowered.ll",
          "sha256": "bcc4e70ecf110d90865b550a74fa1d0a13920dc33fab5324657fdf65719c9ec8",
          "cases": 18,
          "assertions": 234,
          "passed": true,
          "interface": "default flattened memref descriptors",
          "commands": [
            [
              "llvm-as",
              "<temporary harness.ll>",
              "-o",
              "/dev/null"
            ],
            [
              "clang",
              "-O0",
              "-Wno-override-module",
              "<temporary harness.ll>",
              "-o",
              "<temporary executable>"
            ],
            [
              "<temporary executable>"
            ]
          ]
        }
      ]
    },
    {
      "example": "matmul-linalg",
      "mlir": "matmul-linalg.mlir",
      "mlir_sha256": "73cae58276bca6841fc6cd29ab18effef9b7fe09c1034dd8d9af27f2e2896ad4",
      "llvm_dialect": "matmul-linalg.llvm-dialect.mlir",
      "llvm_dialect_sha256": "299d00292b6bb0c2594db1c764d2c99f4b029dcf464fd1ea15366808a450280b",
      "generated_llvm": "matmul-linalg.lowered.ll",
      "generated_llvm_sha256": "a2c87fcb3ed6504a921690a0cfb6c0a4d0a585354b3bb88cbbabacec5ad95592",
      "authored_llvm": null,
      "authored_llvm_sha256": null,
      "mlir_parse_verification_and_generic_roundtrip": "passed",
      "lowering_and_llvm_verification": "passed",
      "runtime": [
        {
          "file": "matmul-linalg.lowered.ll",
          "sha256": "a2c87fcb3ed6504a921690a0cfb6c0a4d0a585354b3bb88cbbabacec5ad95592",
          "cases": 18,
          "assertions": 234,
          "passed": true,
          "interface": "default flattened memref descriptors",
          "commands": [
            [
              "llvm-as",
              "<temporary harness.ll>",
              "-o",
              "/dev/null"
            ],
            [
              "clang",
              "-O0",
              "-Wno-override-module",
              "<temporary harness.ll>",
              "-o",
              "<temporary executable>"
            ],
            [
              "<temporary executable>"
            ]
          ]
        }
      ]
    }
  ],
  "commands": [
    [
      "mlir-opt",
      "--verify-each",
      "dot.mlir"
    ],
    [
      "mlir-opt",
      "--mlir-print-op-generic",
      "dot.mlir"
    ],
    [
      "mlir-opt",
      "--verify-each"
    ],
    [
      "mlir-opt",
      "--verify-each",
      "dot.mlir",
      "--convert-scf-to-cf",
      "--convert-arith-to-llvm",
      "--finalize-memref-to-llvm",
      "--convert-func-to-llvm",
      "--convert-cf-to-llvm",
      "--reconcile-unrealized-casts"
    ],
    [
      "mlir-translate",
      "--mlir-to-llvmir",
      "dot.llvm-dialect.mlir"
    ],
    [
      "llvm-as",
      "dot.ll",
      "-o",
      "/dev/null"
    ],
    [
      "opt",
      "-passes=verify",
      "-disable-output",
      "dot.ll"
    ],
    [
      "llvm-as",
      "dot.lowered.ll",
      "-o",
      "/dev/null"
    ],
    [
      "opt",
      "-passes=verify",
      "-disable-output",
      "dot.lowered.ll"
    ],
    [
      "mlir-opt",
      "--verify-each",
      "relu.mlir"
    ],
    [
      "mlir-opt",
      "--mlir-print-op-generic",
      "relu.mlir"
    ],
    [
      "mlir-opt",
      "--verify-each"
    ],
    [
      "mlir-opt",
      "--verify-each",
      "relu.mlir",
      "--convert-scf-to-cf",
      "--convert-arith-to-llvm",
      "--finalize-memref-to-llvm",
      "--convert-func-to-llvm",
      "--convert-cf-to-llvm",
      "--reconcile-unrealized-casts"
    ],
    [
      "mlir-translate",
      "--mlir-to-llvmir",
      "relu.llvm-dialect.mlir"
    ],
    [
      "llvm-as",
      "relu.ll",
      "-o",
      "/dev/null"
    ],
    [
      "opt",
      "-passes=verify",
      "-disable-output",
      "relu.ll"
    ],
    [
      "llvm-as",
      "relu.lowered.ll",
      "-o",
      "/dev/null"
    ],
    [
      "opt",
      "-passes=verify",
      "-disable-output",
      "relu.lowered.ll"
    ],
    [
      "mlir-opt",
      "--verify-each",
      "sum.mlir"
    ],
    [
      "mlir-opt",
      "--mlir-print-op-generic",
      "sum.mlir"
    ],
    [
      "mlir-opt",
      "--verify-each"
    ],
    [
      "mlir-opt",
      "--verify-each",
      "sum.mlir",
      "--convert-scf-to-cf",
      "--convert-arith-to-llvm",
      "--finalize-memref-to-llvm",
      "--convert-func-to-llvm",
      "--convert-cf-to-llvm",
      "--reconcile-unrealized-casts"
    ],
    [
      "mlir-translate",
      "--mlir-to-llvmir",
      "sum.llvm-dialect.mlir"
    ],
    [
      "llvm-as",
      "sum.ll",
      "-o",
      "/dev/null"
    ],
    [
      "opt",
      "-passes=verify",
      "-disable-output",
      "sum.ll"
    ],
    [
      "llvm-as",
      "sum.lowered.ll",
      "-o",
      "/dev/null"
    ],
    [
      "opt",
      "-passes=verify",
      "-disable-output",
      "sum.lowered.ll"
    ],
    [
      "mlir-opt",
      "--verify-each",
      "matmul.mlir"
    ],
    [
      "mlir-opt",
      "--mlir-print-op-generic",
      "matmul.mlir"
    ],
    [
      "mlir-opt",
      "--verify-each"
    ],
    [
      "mlir-opt",
      "--verify-each",
      "matmul.mlir",
      "--convert-scf-to-cf",
      "--convert-arith-to-llvm",
      "--finalize-memref-to-llvm",
      "--convert-func-to-llvm",
      "--convert-cf-to-llvm",
      "--reconcile-unrealized-casts"
    ],
    [
      "mlir-translate",
      "--mlir-to-llvmir",
      "matmul.llvm-dialect.mlir"
    ],
    [
      "llvm-as",
      "matmul.ll",
      "-o",
      "/dev/null"
    ],
    [
      "opt",
      "-passes=verify",
      "-disable-output",
      "matmul.ll"
    ],
    [
      "llvm-as",
      "matmul.lowered.ll",
      "-o",
      "/dev/null"
    ],
    [
      "opt",
      "-passes=verify",
      "-disable-output",
      "matmul.lowered.ll"
    ],
    [
      "mlir-opt",
      "--verify-each",
      "matmul-linalg.mlir"
    ],
    [
      "mlir-opt",
      "--mlir-print-op-generic",
      "matmul-linalg.mlir"
    ],
    [
      "mlir-opt",
      "--verify-each"
    ],
    [
      "mlir-opt",
      "matmul-linalg.mlir",
      "--convert-linalg-to-loops"
    ],
    [
      "mlir-opt",
      "--verify-each",
      "matmul-linalg.mlir",
      "--convert-linalg-to-loops",
      "--convert-scf-to-cf",
      "--convert-arith-to-llvm",
      "--finalize-memref-to-llvm",
      "--convert-func-to-llvm",
      "--convert-cf-to-llvm",
      "--reconcile-unrealized-casts"
    ],
    [
      "mlir-translate",
      "--mlir-to-llvmir",
      "matmul-linalg.llvm-dialect.mlir"
    ],
    [
      "llvm-as",
      "matmul-linalg.lowered.ll",
      "-o",
      "/dev/null"
    ],
    [
      "opt",
      "-passes=verify",
      "-disable-output",
      "matmul-linalg.lowered.ll"
    ]
  ],
  "versions": {
    "mlir-opt": "LLVM (http://llvm.org/):\n  LLVM version 24.0.0git\n  Optimized build with assertions.",
    "mlir-translate": "LLVM (http://llvm.org/):\n  LLVM version 24.0.0git\n  Optimized build with assertions.",
    "llvm-as": "LLVM (http://llvm.org/):\n  LLVM version 24.0.0git\n  Optimized build with assertions.",
    "opt": "LLVM (http://llvm.org/):\n  LLVM version 24.0.0git\n  Optimized build with assertions.\n  Default target: arm64-apple-darwin27.0.0\n  Host CPU: apple-m1",
    "clang": "Apple clang version 21.0.0 (clang-2100.3.34.2)\nTarget: arm64-apple-darwin27.0.0\nThread model: posix"
  },
  "diagram_cases": {
    "dot": {
      "a": [
        1,
        2,
        3
      ],
      "b": [
        4,
        5,
        6
      ],
      "result": 32
    },
    "relu": {
      "input": [
        -2,
        0,
        3
      ],
      "result": [
        0,
        0,
        3
      ]
    },
    "sum": {
      "input": [
        2,
        4,
        6
      ],
      "result": 12
    },
    "matmul": {
      "a": [
        [
          1,
          2
        ],
        [
          3,
          4
        ]
      ],
      "b": [
        [
          5,
          6
        ],
        [
          7,
          8
        ]
      ],
      "result": [
        [
          19,
          22
        ],
        [
          43,
          50
        ]
      ]
    }
  },
  "assumptions": [
    "Fixed length 3 for dot, sum, and ReLU. Fixed shape 2x2 for matmul.",
    "Contiguous, aligned row-major buffers. Output buffers are distinct from inputs.",
    "No volatile or atomic accesses, external side effects, or data races.",
    "i32 addition and multiplication use modulo-2^32 arithmetic, without overflow flags.",
    "ReLU compares i32 values as signed integers.",
    "Generated LLVM retains default memref descriptors; hand-authored LLVM uses pointers.",
    "linalg.fill initializes C to zero before linalg.matmul accumulates into C."
  ],
  "limits": [
    "Finite examples only; not a general equivalence proof.",
    "No floating-point, dynamic-shape, overlapping-output, quantized, or GPU execution checks.",
    "No timing, hardware memory-traffic, physical-register, or performance-improvement claims.",
    "i32 is chosen to make beginner examples exact. Typical model implementations often use floating-point or quantized types."
  ]
}
