{
  "status": "passed",
  "checked_at_utc": "2026-10-10T17:38:08.476090+00:00",
  "tool_versions": {
    "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",
    "llvm-as": "LLVM (http://llvm.org/):\n  LLVM version 24.0.0git\n  Optimized build with assertions.",
    "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."
  },
  "native_compiler_version": "Apple clang version 21.0.0 (clang-2100.3.34.2)\nTarget: arm64-apple-darwin27.0.0\nThread model: posix\nInstalledDir: system compiler directory",
  "llvm_project_revision": "766b661d2cf85c67ab5795ab87253bab9433499a",
  "positive_example": "pair-sum",
  "actual_pass_outputs": true,
  "examples": [
    {
      "example": "pair-sum",
      "llvm_pass": "sroa",
      "mlir_pass_pipeline": "builtin.module(func.func(sroa))",
      "llvm_command": [
        "opt",
        "-S",
        "-verify-each",
        "-passes=sroa",
        "pair-sum.before.ll",
        "-o",
        "pair-sum.after.ll"
      ],
      "mlir_command": [
        "mlir-opt",
        "pair-sum.before.mlir",
        "--pass-pipeline=builtin.module(func.func(sroa))",
        "-o",
        "pair-sum.after.mlir"
      ],
      "llvm_verified": true,
      "mlir_verified": true,
      "files": {
        "pair-sum.before.ll": "a300401f95380b4897e04acd3265a4e189cb22c72a25e11e9d6c4d1f4c01accc",
        "pair-sum.after.ll": "05b8ad99c8df96d721fd41c60fc988803be87b397c9948801256c3bfddf2f1fa",
        "pair-sum.before.mlir": "93dbeda1a3fa422c184710a70eb545a14c4166b627c00979c1cf88a637f21923",
        "pair-sum.after.mlir": "61b274330a87be74705bbbe215f4abca6d63f4b245e2c554efc4f318e1f37855"
      }
    },
    {
      "example": "opaque-escape",
      "llvm_pass": "sroa",
      "mlir_pass_pipeline": "builtin.module(func.func(sroa))",
      "llvm_command": [
        "opt",
        "-S",
        "-verify-each",
        "-passes=sroa",
        "opaque-escape.before.ll",
        "-o",
        "opaque-escape.after.ll"
      ],
      "mlir_command": [
        "mlir-opt",
        "opaque-escape.before.mlir",
        "--pass-pipeline=builtin.module(func.func(sroa))",
        "-o",
        "opaque-escape.after.mlir"
      ],
      "llvm_verified": true,
      "mlir_verified": true,
      "files": {
        "opaque-escape.before.ll": "6d3fe56e1c69cf35f1d840a0567ce2d0fd81576a745af7473abc7ebf5a5994a0",
        "opaque-escape.after.ll": "6ba4d2b6a3585296b824167dfe0d91da3ef2e5d191e52b772ccee357f954d259",
        "opaque-escape.before.mlir": "0f166bab423b07925a4b8d1c229598d813d445fb7ce02ee8175fa35b6ba13a9c",
        "opaque-escape.after.mlir": "bb3353508672e62189cfb0c3aec11f27529fe4c5e587407f2fa897160f754982"
      }
    },
    {
      "example": "dynamic-index",
      "llvm_pass": "sroa",
      "mlir_pass_pipeline": "builtin.module(func.func(sroa))",
      "llvm_command": [
        "opt",
        "-S",
        "-verify-each",
        "-passes=sroa",
        "dynamic-index.before.ll",
        "-o",
        "dynamic-index.after.ll"
      ],
      "mlir_command": [
        "mlir-opt",
        "dynamic-index.before.mlir",
        "--pass-pipeline=builtin.module(func.func(sroa))",
        "-o",
        "dynamic-index.after.mlir"
      ],
      "llvm_verified": true,
      "mlir_verified": true,
      "files": {
        "dynamic-index.before.ll": "6cd3c0252fe420907b5f9b0c4ee138f6aa155f54e035272e9ce8990ec1f7af36",
        "dynamic-index.after.ll": "c96b23cf873ef9edeb5dc9f3a55fddf224455c3b6eaafdf2a0a455d853d21639",
        "dynamic-index.before.mlir": "80d0f97ebb500bbda5c9327c5717ea288217ad465013a358d3c16b851883fb07",
        "dynamic-index.after.mlir": "475c08b5f4bf4b198ebd7ceb3ec7aa1ea04323887b6d14ebf04eec5ba14d95ea"
      }
    }
  ],
  "lowering": [
    {
      "file": "pair-sum.before.mlir",
      "command": [
        "mlir-opt",
        "pair-sum.before.mlir",
        "--convert-arith-to-llvm",
        "--convert-cf-to-llvm",
        "--finalize-memref-to-llvm",
        "--convert-func-to-llvm",
        "--reconcile-unrealized-casts",
        "-o",
        "pair-sum.before.llvm-dialect.mlir"
      ],
      "llvm_output": "pair-sum.before.lowered.ll",
      "llvm_verified": true
    },
    {
      "file": "pair-sum.after.mlir",
      "command": [
        "mlir-opt",
        "pair-sum.after.mlir",
        "--convert-arith-to-llvm",
        "--convert-cf-to-llvm",
        "--finalize-memref-to-llvm",
        "--convert-func-to-llvm",
        "--reconcile-unrealized-casts",
        "-o",
        "pair-sum.after.llvm-dialect.mlir"
      ],
      "llvm_output": "pair-sum.after.lowered.ll",
      "llvm_verified": true
    },
    {
      "file": "pair-sum.sroa-mem2reg.after.mlir",
      "command": [
        "mlir-opt",
        "pair-sum.sroa-mem2reg.after.mlir",
        "--convert-arith-to-llvm",
        "--convert-cf-to-llvm",
        "--finalize-memref-to-llvm",
        "--convert-func-to-llvm",
        "--reconcile-unrealized-casts",
        "-o",
        "pair-sum.sroa-mem2reg.after.llvm-dialect.mlir"
      ],
      "llvm_output": "pair-sum.sroa-mem2reg.after.lowered.ll",
      "llvm_verified": true
    }
  ],
  "main_execution": [
    {
      "file": "pair-sum.before.ll",
      "sha256": "a300401f95380b4897e04acd3265a4e189cb22c72a25e11e9d6c4d1f4c01accc",
      "execution": "36 cases passed",
      "compiler": "/usr/bin/clang -O0 -Wno-override-module",
      "status": "passed"
    },
    {
      "file": "pair-sum.before.lowered.ll",
      "sha256": "252ddc54355c7f2ee4808612f6d69d3f7afa386b16ec91d1729e66f697771146",
      "execution": "36 cases passed",
      "compiler": "/usr/bin/clang -O0 -Wno-override-module",
      "status": "passed"
    },
    {
      "file": "pair-sum.after.ll",
      "sha256": "05b8ad99c8df96d721fd41c60fc988803be87b397c9948801256c3bfddf2f1fa",
      "execution": "36 cases passed",
      "compiler": "/usr/bin/clang -O0 -Wno-override-module",
      "status": "passed"
    },
    {
      "file": "pair-sum.after.lowered.ll",
      "sha256": "a5c08bceabc48d2fe220b016861573d60a0909ca72c49b9dfc0053022ba62440",
      "execution": "36 cases passed",
      "compiler": "/usr/bin/clang -O0 -Wno-override-module",
      "status": "passed"
    },
    {
      "file": "pair-sum.sroa-mem2reg.after.lowered.ll",
      "sha256": "4423972e6f58d5e10a32299c39e594e406db88384f5dbfd8cb58587df20bcd74",
      "execution": "36 cases passed",
      "compiler": "/usr/bin/clang -O0 -Wno-override-module",
      "status": "passed"
    }
  ],
  "counterexample_llvm_execution": [
    {
      "file": "opaque-escape.before.ll",
      "sha256": "6d3fe56e1c69cf35f1d840a0567ce2d0fd81576a745af7473abc7ebf5a5994a0",
      "execution": "16 cases passed",
      "compiler": "/usr/bin/clang -O0 -Wno-override-module",
      "status": "passed"
    },
    {
      "file": "opaque-escape.after.ll",
      "sha256": "6ba4d2b6a3585296b824167dfe0d91da3ef2e5d191e52b772ccee357f954d259",
      "execution": "16 cases passed",
      "compiler": "/usr/bin/clang -O0 -Wno-override-module",
      "status": "passed"
    },
    {
      "file": "dynamic-index.before.ll",
      "sha256": "6cd3c0252fe420907b5f9b0c4ee138f6aa155f54e035272e9ce8990ec1f7af36",
      "execution": "32 cases passed",
      "compiler": "/usr/bin/clang -O0 -Wno-override-module",
      "status": "passed"
    },
    {
      "file": "dynamic-index.after.ll",
      "sha256": "c96b23cf873ef9edeb5dc9f3a55fddf224455c3b6eaafdf2a0a455d853d21639",
      "execution": "32 cases passed",
      "compiler": "/usr/bin/clang -O0 -Wno-override-module",
      "status": "passed"
    }
  ],
  "counterexample_mlir_scope": "parse/verify and structural pass-refusal checks only; not executed",
  "conditions": [
    "Addition inputs are in [-1024, 1024]; these execution tests do not cover signed overflow.",
    "Dynamic-index counterexample is executed only for index 0 and 1.",
    "MLIR sroa alone destructures the array; MLIR mem2reg is separate.",
    "LLVM sroa also performs SSA promotion for this example."
  ],
  "limitations": [
    "Finite executions are examples, not a proof of equivalence for every input.",
    "No target speedup or register-allocation benchmark was measured.",
    "Counterexample refusal is specific to the listed pass and current build; other pipelines can change it.",
    "Hand-authored input IR represents the C behavior; it is not clang output from the C file."
  ],
  "files_sha256": {
    "opaque-escape.after.mlir": "bb3353508672e62189cfb0c3aec11f27529fe4c5e587407f2fa897160f754982",
    "pair-sum.before.ll": "a300401f95380b4897e04acd3265a4e189cb22c72a25e11e9d6c4d1f4c01accc",
    "pair-sum.mem2reg-only.after.mlir": "db530f27044970930968764197856676d7e8f6484494e6fd160822b2f1d05275",
    "dynamic-index.after.ll": "c96b23cf873ef9edeb5dc9f3a55fddf224455c3b6eaafdf2a0a455d853d21639",
    "pair-sum.after.llvm-dialect.mlir": "2bc073ceed7e36cc5848ab98d78fa6a95d431fd781b0a9fbd8d6a47c8cc247e9",
    "pair-sum.after.ll": "05b8ad99c8df96d721fd41c60fc988803be87b397c9948801256c3bfddf2f1fa",
    "pair-sum.before.llvm-dialect.mlir": "a748c1fbf88419a885f9b012518e9823af91b9dc2267c8646f3fddc3ba4b740d",
    "main-harness.c": "07724f7a381c0719b473386913218a49d19617ca8a0b972bdc72c4332be896a6",
    "dynamic-index.before.ll": "6cd3c0252fe420907b5f9b0c4ee138f6aa155f54e035272e9ce8990ec1f7af36",
    "opaque-escape.after.ll": "6ba4d2b6a3585296b824167dfe0d91da3ef2e5d191e52b772ccee357f954d259",
    "pair-sum.before.mlir": "93dbeda1a3fa422c184710a70eb545a14c4166b627c00979c1cf88a637f21923",
    "pair-sum.sroa-mem2reg.after.llvm-dialect.mlir": "cf0c3089906c2d77484e02970cf8c1e54e9b8e01020b8cf386c130d0df00a46d",
    "opaque-escape.before.mlir": "0f166bab423b07925a4b8d1c229598d813d445fb7ce02ee8175fa35b6ba13a9c",
    "pair-sum.c": "5face21aa12d344ec52ccea64ab5e39fda2740ce82863ef2cc2f193230962b4d",
    "opaque-escape-harness.c": "9e8c5030202044617424e3b701d170a1da80f460c740d3af7b0294aa239df7ae",
    "pair-sum.after.mlir": "61b274330a87be74705bbbe215f4abca6d63f4b245e2c554efc4f318e1f37855",
    "pair-sum.after.lowered.ll": "a5c08bceabc48d2fe220b016861573d60a0909ca72c49b9dfc0053022ba62440",
    "pair-sum.sroa-mem2reg.after.lowered.ll": "4423972e6f58d5e10a32299c39e594e406db88384f5dbfd8cb58587df20bcd74",
    "opaque-escape.before.ll": "6d3fe56e1c69cf35f1d840a0567ce2d0fd81576a745af7473abc7ebf5a5994a0",
    "dynamic-index.after.mlir": "475c08b5f4bf4b198ebd7ceb3ec7aa1ea04323887b6d14ebf04eec5ba14d95ea",
    "dynamic-index.before.mlir": "80d0f97ebb500bbda5c9327c5717ea288217ad465013a358d3c16b851883fb07",
    "pair-sum.mem2reg-only.after.ll": "89bcd90384b67894918e53428f170640d5eb4ce37618ec48838cc2bc29b1b3f8",
    "pair-sum.before.lowered.ll": "252ddc54355c7f2ee4808612f6d69d3f7afa386b16ec91d1729e66f697771146",
    "dynamic-index-harness.c": "052b54420f50e221ce8a06699a7c67294e3a122633ff41cec3604a6d6ad45583",
    "pair-sum.sroa-mem2reg.after.mlir": "4f71a858946bcc5fb5b915e11f41b10327cf86e9cef5ec6b20d076861adf3484"
  },
  "extra_pipelines": {
    "mlir_sroa_mem2reg": "builtin.module(func.func(sroa,mem2reg{region-simplify=false}))",
    "mem2reg_only_llvm": "mem2reg",
    "mem2reg_only_mlir": "builtin.module(func.func(mem2reg{region-simplify=false}))"
  },
  "publication": {
    "date": "2026-10-11",
    "input_ir": "Hand-authored teaching input, not C compiler output",
    "after_ir": "Actual recorded tool output; published IR bytes match checked research files",
    "examples": {
      "dynamic-index.after.ll": "c96b23cf873ef9edeb5dc9f3a55fddf224455c3b6eaafdf2a0a455d853d21639",
      "dynamic-index.after.mlir": "475c08b5f4bf4b198ebd7ceb3ec7aa1ea04323887b6d14ebf04eec5ba14d95ea",
      "dynamic-index.before.ll": "6cd3c0252fe420907b5f9b0c4ee138f6aa155f54e035272e9ce8990ec1f7af36",
      "dynamic-index.before.mlir": "80d0f97ebb500bbda5c9327c5717ea288217ad465013a358d3c16b851883fb07",
      "opaque-escape.after.ll": "6ba4d2b6a3585296b824167dfe0d91da3ef2e5d191e52b772ccee357f954d259",
      "opaque-escape.after.mlir": "bb3353508672e62189cfb0c3aec11f27529fe4c5e587407f2fa897160f754982",
      "opaque-escape.before.ll": "6d3fe56e1c69cf35f1d840a0567ce2d0fd81576a745af7473abc7ebf5a5994a0",
      "opaque-escape.before.mlir": "0f166bab423b07925a4b8d1c229598d813d445fb7ce02ee8175fa35b6ba13a9c",
      "pair-sum.after.ll": "05b8ad99c8df96d721fd41c60fc988803be87b397c9948801256c3bfddf2f1fa",
      "pair-sum.after.llvm-dialect.mlir": "2bc073ceed7e36cc5848ab98d78fa6a95d431fd781b0a9fbd8d6a47c8cc247e9",
      "pair-sum.after.lowered.ll": "a5c08bceabc48d2fe220b016861573d60a0909ca72c49b9dfc0053022ba62440",
      "pair-sum.after.mlir": "61b274330a87be74705bbbe215f4abca6d63f4b245e2c554efc4f318e1f37855",
      "pair-sum.before.ll": "a300401f95380b4897e04acd3265a4e189cb22c72a25e11e9d6c4d1f4c01accc",
      "pair-sum.before.llvm-dialect.mlir": "a748c1fbf88419a885f9b012518e9823af91b9dc2267c8646f3fddc3ba4b740d",
      "pair-sum.before.lowered.ll": "252ddc54355c7f2ee4808612f6d69d3f7afa386b16ec91d1729e66f697771146",
      "pair-sum.before.mlir": "93dbeda1a3fa422c184710a70eb545a14c4166b627c00979c1cf88a637f21923",
      "pair-sum.mem2reg-only.after.ll": "89bcd90384b67894918e53428f170640d5eb4ce37618ec48838cc2bc29b1b3f8",
      "pair-sum.mem2reg-only.after.mlir": "db530f27044970930968764197856676d7e8f6484494e6fd160822b2f1d05275",
      "pair-sum.sroa-mem2reg.after.llvm-dialect.mlir": "cf0c3089906c2d77484e02970cf8c1e54e9b8e01020b8cf386c130d0df00a46d",
      "pair-sum.sroa-mem2reg.after.lowered.ll": "4423972e6f58d5e10a32299c39e594e406db88384f5dbfd8cb58587df20bcd74",
      "pair-sum.sroa-mem2reg.after.mlir": "4f71a858946bcc5fb5b915e11f41b10327cf86e9cef5ec6b20d076861adf3484",
      "pair-sum.c": "5face21aa12d344ec52ccea64ab5e39fda2740ce82863ef2cc2f193230962b4d"
    },
    "runtime_scope": "주 예제는 36개 입력을 다섯 실행 형태에서 확인했습니다. LLVM 전후, 실제 MLIR→LLVM 전후, MLIR sroa→mem2reg의 낮추기 결과입니다. 주 예제 180개 결과와 LLVM 반례 96개 결과를 확인했습니다. MLIR 반례는 파싱·검증과 구조 확인을 수행했으며 실행하지 않았습니다.",
    "performance_measured": false
  }
}
