{
  "schemaVersion": 1,
  "exampleDate": "2026-10-31",
  "evidenceType": "constructed deterministic transition example",
  "license": "CC0-1.0 (original example code and constructed results only)",
  "source": "https://jasony.me/publication/sosp23-s3fifo.pdf",
  "sourceLocator": "Section 4.1 and Algorithm 1, printed pages 134-135",
  "codePath": "/research/s3fifo-transitions.mjs",
  "testPath": "/research/s3fifo-transitions.test.mjs",
  "unit": "one candidate inspection, not elapsed time or a NAND operation",
  "assumptions": [
    "Equal-sized entries",
    "Input order is oldest to newest",
    "Counters begin between zero and three",
    "One main-queue eviction",
    "No concurrent hits, insertions, expiration or queue resizing"
  ],
  "limits": [
    "Not a complete S3-FIFO simulator",
    "Does not reproduce published trace experiments",
    "No latency, throughput, miss-ratio or device-write comparison",
    "The bound does not apply with concurrent hits replenishing counters"
  ],
  "small": [
    {
      "hitsSinceInsertion": 0,
      "destination": "ghost",
      "frequencyAfter": 0
    },
    {
      "hitsSinceInsertion": 1,
      "destination": "ghost",
      "frequencyAfter": 0
    },
    {
      "hitsSinceInsertion": 2,
      "destination": "main",
      "frequencyAfter": 0
    },
    {
      "hitsSinceInsertion": 3,
      "destination": "main",
      "frequencyAfter": 0
    },
    {
      "hitsSinceInsertion": 4,
      "destination": "main",
      "frequencyAfter": 0
    }
  ],
  "main": [
    {
      "initial": [
        0
      ],
      "victim": 0,
      "visits": 1,
      "reinsertions": 0,
      "remaining": [],
      "events": [
        {
          "id": 0,
          "before": 0,
          "after": null,
          "action": "evict"
        }
      ]
    },
    {
      "initial": [
        1
      ],
      "victim": 0,
      "visits": 2,
      "reinsertions": 1,
      "remaining": [],
      "events": [
        {
          "id": 0,
          "before": 1,
          "after": 0,
          "action": "reinsert"
        },
        {
          "id": 0,
          "before": 0,
          "after": null,
          "action": "evict"
        }
      ]
    },
    {
      "initial": [
        3
      ],
      "victim": 0,
      "visits": 4,
      "reinsertions": 3,
      "remaining": [],
      "events": [
        {
          "id": 0,
          "before": 3,
          "after": 2,
          "action": "reinsert"
        },
        {
          "id": 0,
          "before": 2,
          "after": 1,
          "action": "reinsert"
        },
        {
          "id": 0,
          "before": 1,
          "after": 0,
          "action": "reinsert"
        },
        {
          "id": 0,
          "before": 0,
          "after": null,
          "action": "evict"
        }
      ]
    },
    {
      "initial": [
        3,
        3
      ],
      "victim": 0,
      "visits": 7,
      "reinsertions": 6,
      "remaining": [
        {
          "id": 1,
          "frequency": 0
        }
      ],
      "events": [
        {
          "id": 0,
          "before": 3,
          "after": 2,
          "action": "reinsert"
        },
        {
          "id": 1,
          "before": 3,
          "after": 2,
          "action": "reinsert"
        },
        {
          "id": 0,
          "before": 2,
          "after": 1,
          "action": "reinsert"
        },
        {
          "id": 1,
          "before": 2,
          "after": 1,
          "action": "reinsert"
        },
        {
          "id": 0,
          "before": 1,
          "after": 0,
          "action": "reinsert"
        },
        {
          "id": 1,
          "before": 1,
          "after": 0,
          "action": "reinsert"
        },
        {
          "id": 0,
          "before": 0,
          "after": null,
          "action": "evict"
        }
      ]
    },
    {
      "initial": [
        1,
        0
      ],
      "victim": 1,
      "visits": 2,
      "reinsertions": 1,
      "remaining": [
        {
          "id": 0,
          "frequency": 0
        }
      ],
      "events": [
        {
          "id": 0,
          "before": 1,
          "after": 0,
          "action": "reinsert"
        },
        {
          "id": 1,
          "before": 0,
          "after": null,
          "action": "evict"
        }
      ]
    },
    {
      "initial": [
        3,
        1,
        0
      ],
      "victim": 2,
      "visits": 3,
      "reinsertions": 2,
      "remaining": [
        {
          "id": 0,
          "frequency": 2
        },
        {
          "id": 1,
          "frequency": 0
        }
      ],
      "events": [
        {
          "id": 0,
          "before": 3,
          "after": 2,
          "action": "reinsert"
        },
        {
          "id": 1,
          "before": 1,
          "after": 0,
          "action": "reinsert"
        },
        {
          "id": 2,
          "before": 0,
          "after": null,
          "action": "evict"
        }
      ]
    }
  ]
}
