Variable-to-variable rule comparisons

Input

{
  "compare_rules": null,
  "default_action": null,
  "max_witnesses": null,
  "rules": [
    {
      "action": "allow",
      "id": "own_within_limit",
      "when": {
        "args": [
          {
            "op": "eq",
            "value": {
              "var": "owner"
            },
            "var": "caller"
          },
          {
            "op": "le",
            "value": {
              "var": "limit"
            },
            "var": "requested"
          }
        ],
        "op": "and"
      }
    },
    {
      "action": "deny",
      "id": "over_limit",
      "when": {
        "op": "gt",
        "value": {
          "var": "limit"
        },
        "var": "requested"
      }
    }
  ],
  "timeout_ms": null,
  "variables": [
    {
      "max": 5,
      "min": 0,
      "name": "requested",
      "type": "int"
    },
    {
      "max": 5,
      "min": 0,
      "name": "limit",
      "type": "int"
    },
    {
      "name": "owner",
      "type": "enum",
      "values": [
        "ana",
        "bo",
        "cy"
      ]
    },
    {
      "name": "caller",
      "type": "enum",
      "values": [
        "ana",
        "bo",
        "cy"
      ]
    }
  ]
}

Output

Build-time verified. stats.elapsed_ms normalized to 0.

{
  "diff": null,
  "overlaps": [],
  "stats": {
    "elapsed_ms": 0,
    "timed_out": false
  },
  "uncovered_gap": {
    "has_gap": true,
    "witness": {
      "caller": "bo",
      "limit": 0,
      "owner": "ana",
      "requested": 0
    }
  },
  "unreachable_rules": [],
  "verdict": "complete",
  "verified": true
}

Request

curl --fail-with-body --silent --show-error https://oracles.burgeonads.com/v1/analyze/rules -H 'Content-Type: application/json' --data-raw '{"variables":[{"name":"requested","type":"int","min":0,"max":5},{"name":"limit","type":"int","min":0,"max":5},{"name":"owner","type":"enum","values":["ana","bo","cy"]},{"name":"caller","type":"enum","values":["ana","bo","cy"]}],"rules":[{"id":"own_within_limit","action":"allow","when":{"op":"and","args":[{"op":"eq","var":"caller","value":{"var":"owner"}},{"op":"le","var":"requested","value":{"var":"limit"}}]}},{"id":"over_limit","action":"deny","when":{"op":"gt","var":"requested","value":{"var":"limit"}}}],"default_action":null,"compare_rules":null,"max_witnesses":null,"timeout_ms":null}'