{
  "schemaVersion": "site.evidence-summary/1",
  "kind": "cpu-differential-other-core",
  "recorded": "2026-11-21",
  "sourceRevision": "287d49a4a6b9254b66f5a8f12637a53945bee637",
  "cleanTree": true,
  "dirtyTree": false,
  "treeStateBasis": "The source record carries the provenance block of the clean re-record: dirtyTree false at this revision.",
  "note": "The suite recorder refuses this core, so the record is written from the log of the clean-tree runs by a helper script (the record says so).",
  "provenance": {
    "sourceRevision": "287d49a4a6b9254b66f5a8f12637a53945bee637",
    "dirtyTree": false,
    "cleanTree": true,
    "checks": "provenance check \"clean tree at 287d49a4a6b9254b66f5a8f12637a53945bee637\" passed before and after each of the 2 recording runs"
  },
  "source": {
    "repoPath": "eval-results/pic24-differential.json",
    "sha256": "d1342a12815ea2f1bbd3d013a0a76e19dced267da2c39854d0f0254434ece36e",
    "commit": "d02ef5052b25be3d0848eefe5b86031e9a3e5c19"
  },
  "core": "PIC24F/H",
  "reference": {
    "name": "specification model written by the project (not an executing reference, not independent of the core author)",
    "version": null
  },
  "runs": [
    {
      "test": "pic24_streams_agree_with_the_specification_model",
      "profile": "pic24",
      "basis": "cited",
      "cases": 400,
      "streamCases": 200,
      "interruptCases": 200,
      "disagree": 0,
      "instructionsRetired": 8173,
      "formsExecuted": 169,
      "formsListed": 169,
      "encodingSweepWords": 262144
    },
    {
      "test": "pic24_streams_agree_with_the_specification_model",
      "profile": "pic24",
      "basis": "default",
      "cases": 2704,
      "casesRequested": 6000,
      "streamCases": 1351,
      "interruptCases": 1353,
      "disagree": 8,
      "stoppedAtDisagreementCap": 8
    }
  ],
  "defaultCountFailure": {
    "casesRequested": 3000,
    "seed": 20261025,
    "streamCasesRun": 1351,
    "interruptCasesRun": 1353,
    "disagreements": 8,
    "what": "All eight cases are one class. The core leaves W15 at 0x0022 where the specification model has 0x0644: the stack-limit register SPLIM is nonzero in the core and zero in the model, and the byte at data address 0x0642 is 0x00 in the core and 0x80 in the model.",
    "firstCaseAt200": 382,
    "note": "The 200-case run passes only because the first disagreeing case is number 382. The test stops collecting at 8 disagreements, so it compared 2,704 of the 6,000 requested cases and 8 is a ceiling, not a total.",
    "fix": "A change to the core is on a development branch and is not part of this record."
  },
  "referenceDeviations": 0,
  "notCovered": [
    "a third-party executing reference (none can be run here; the vendor simulator is proprietary): the specification model is written by the author of the core",
    "the DSP engine of the dsPIC30F/33F and the PIC24E/dsPIC33E/dsPIC33C additions: refused by name by the core, not modeled",
    "undefined words inside the opcode ranges of the refused instruction classes (the core refuses the whole range, the model lists the defined encodings)",
    "the carry flag after a divide (the manual says it must not be used), the iterative division over 18 executions (the core divides on the last execution of the REPEAT loop)",
    "DC after a subtraction (the manual's SUB examples show it clear where the register description gives it set), the C flag after DAW.B and the word count of operand ranges the assembler restricts",
    "the PCL and PCH reads (the core and the model return the address of the next instruction)",
    "trap vector numbers and priority levels, the CPU register addresses, interrupt entry cycles and the program space window stall: device data sheet values not stated in DS70000157G",
    "RETLW restoring SR from the stacked word (listed in the manual's Operation field; both implementations treat RETLW as RETURN)",
    "uninitialized W register access resets, the program flash wait states, the alternate vector table, the extended data space, peripheral behavior of special function registers (plain storage)",
    "table writes (counted, not stored) and fetches from addresses with no program memory (the model has 8192 words)"
  ],
  "negativeControls": [
    {
      "id": "pic24-xor-or",
      "change": "XOR is computed as OR",
      "casesPerProfile": 400,
      "profiles": 1,
      "casesRejecting": 8
    }
  ]
}
