All files

src/compiler/capture_explanations.panack

Green: covered; red: known zero; amber: unavailable. Blank lines are outside the executable-start-line denominator.

    1 pub import project/src/compiler/module_bodies::{BoundFunctionBody}
    2 import project/src/compiler/module_bodies::{BoundBody, BodyLocalIdentity, body_evidence_children, BodyNode.BodyBinding, BodyNode.BodyFor, BodyNode.BodyMatch, BodyNode.BodyLocalUse, BodyNode.BodyAnonymousFunction, BodyNode.BodyLiteral, BodyNode.BodyInterpolation, BodyNode.BodyFunction, BodyNode.BodyCall, BodyNode.BodyArray, BodyNode.BodyUnary, BodyNode.BodyBinary, BodyNode.BodyField, BodyNode.BodyIndex, BodyNode.BodyIf, BodyNode.BodyBlock, BodyNode.BodyAssignment, BodyNode.BodyWhile, BodyNode.BodyEmpty}
    3 pub import project/src/compiler/types::{SourceSpan}
    4 
    5 // Follow retained lexical identities, including shadowing; never guess an origin
    6 // from a variable name or parse a diagnostic. Parameter origins show the function.
    7 pure captured_identity(body: BoundBody, site: SourceSpan): Option[BodyLocalIdentity] {
    8   mut result: Option[BodyLocalIdentity] = None()
    9   match body.node {
   10     BodyBinding(local, type, mutable, inferred, evidence) => {},
   11     BodyFor(local) => {},
   12     BodyMatch(targets, bindings, spans) => {},
   13     BodyLocalUse(local, domain) => { if body.span == site { result = Some(local) } },
   14     BodyAnonymousFunction(function) => {},
   15     BodyLiteral(value) => {},
   16     BodyInterpolation(parts) => {},
   17     BodyFunction(binding) => {},
   18     BodyCall(target, types, arguments) => {},
   19     BodyArray() => {},
   20     BodyUnary(operator) => {},
   21     BodyBinary(operator) => {},
   22     BodyField(name) => {},
   23     BodyIndex() => {},
   24     BodyIf(has_else) => {},
   25     BodyBlock(tail, span, spans) => {},
   26     BodyAssignment(local, evidence) => {},
   27     BodyWhile() => {},
   28     BodyEmpty() => {},
   29   }
   30   for child in body_evidence_children(body) {
   31     if result == None() { result = captured_identity(child, site) }
   32   }
   33   result
   34 }
   35 
   36 pure binding_origin(body: BoundBody, identity: BodyLocalIdentity): Option[SourceSpan] {
   37   mut result: Option[SourceSpan] = None()
   38   match body.node {
   39     BodyBinding(local, type, mutable, inferred, evidence) => { if local == identity { result = Some(body.span) } },
   40     BodyFor(local) => { if local == identity { result = Some(body.span) } },
   41     BodyMatch(targets, bindings, spans) => { for arm in bindings { for local in arm { if local == identity { result = Some(body.span) } } } },
   42     BodyLocalUse(local, domain) => {},
   43     BodyAnonymousFunction(function) => { if function.signature.binding.identity == identity.owner { for parameter in function.parameters { if parameter.identity == identity { result = Some(function.signature.binding.span) } } } },
   44     BodyLiteral(value) => {},
   45     BodyInterpolation(parts) => {},
   46     BodyFunction(binding) => {},
   47     BodyCall(target, types, arguments) => {},
   48     BodyArray() => {},
   49     BodyUnary(operator) => {},
   50     BodyBinary(operator) => {},
   51     BodyField(name) => {},
   52     BodyIndex() => {},
   53     BodyIf(has_else) => {},
   54     BodyBlock(tail, span, spans) => {
   55       for index in 0..body.children.len() {
   56         match body.children[index].node {
   57           BodyBinding(local, type, mutable, inferred, evidence) => { if local == identity && index < spans.len() { result = Some(spans[index]) } },
   58           BodyFor(local) => {},
   59           BodyMatch(child_targets, child_bindings, child_spans) => {},
   60           BodyLocalUse(local, domain) => {  },
   61           BodyAnonymousFunction(function) => {},
   62           BodyLiteral(value) => {},
   63           BodyInterpolation(parts) => {},
   64           BodyFunction(binding) => {},
   65           BodyCall(target, types, arguments) => {},
   66           BodyArray() => {},
   67           BodyUnary(operator) => {},
   68           BodyBinary(operator) => {},
   69           BodyField(name) => {},
   70           BodyIndex() => {},
   71           BodyIf(has_else) => {},
   72           BodyBlock(child_tail, child_span, child_spans) => {},
   73           BodyAssignment(local, evidence) => {},
   74           BodyWhile() => {},
   75           BodyEmpty() => {},
   76         }
   77       }
   78     },
   79     BodyAssignment(local, evidence) => {},
   80     BodyWhile() => {},
   81     BodyEmpty() => {},
   82   }
   83   for child in body_evidence_children(body) {
   84     if result == None() { result = binding_origin(child, identity) }
   85   }
   86   result
   87 }
   88 
   89 pub pure capture_explanation_origin(functions: [BoundFunctionBody], site: SourceSpan): Option[SourceSpan] {
   90   mut identity: Option[BodyLocalIdentity] = None()
   91   for function in functions {
   92     if identity == None() { identity = captured_identity(function.body, site) }
   93   }
   94   mut result: Option[SourceSpan] = None()
   95   match identity {
   96     None() => {},
   97     Some(local) => {
   98       for function in functions {
   99         if result == None() { result = binding_origin(function.body, local) }
  100         if result == None() && function.signature.binding.identity == local.owner {
  101           for parameter in function.parameters {
  102             if parameter.identity == local { result = Some(function.signature.binding.span) }
  103           }
  104         }
  105       }
  106     }
  107   }
  108   result
  109 }
  110 

Functions

[
  {
    "id": "declaration/3",
    "name": "captured_identity",
    "line": 7,
    "state": "covered",
    "entries": "72"
  },
  {
    "id": "declaration/4",
    "name": "binding_origin",
    "line": 36,
    "state": "covered",
    "entries": "57"
  },
  {
    "id": "declaration/5",
    "name": "capture_explanation_origin",
    "line": 89,
    "state": "covered",
    "entries": "18"
  }
]

Source branch outcomes

[
  {
    "id": "declaration/3/statement/1/value/arm/0",
    "outcome": "BodyBinding",
    "line": 10,
    "state": "covered",
    "hits": "6"
  },
  {
    "id": "declaration/3/statement/1/value/arm/1",
    "outcome": "BodyFor",
    "line": 11,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/3/statement/1/value/arm/2",
    "outcome": "BodyMatch",
    "line": 12,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/3/statement/1/value/arm/3",
    "outcome": "BodyLocalUse",
    "line": 13,
    "state": "covered",
    "hits": "18"
  },
  {
    "id": "declaration/3/statement/1/value/arm/3/body/block/tail/decision/true",
    "outcome": "true",
    "line": 13,
    "state": "covered",
    "hits": "18"
  },
  {
    "id": "declaration/3/statement/1/value/arm/3/body/block/tail/decision/false",
    "outcome": "false",
    "line": 13,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/3/statement/1/value/arm/4",
    "outcome": "BodyAnonymousFunction",
    "line": 14,
    "state": "covered",
    "hits": "21"
  },
  {
    "id": "declaration/3/statement/1/value/arm/5",
    "outcome": "BodyLiteral",
    "line": 15,
    "state": "covered",
    "hits": "6"
  },
  {
    "id": "declaration/3/statement/1/value/arm/6",
    "outcome": "BodyInterpolation",
    "line": 16,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/3/statement/1/value/arm/7",
    "outcome": "BodyFunction",
    "line": 17,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/3/statement/1/value/arm/8",
    "outcome": "BodyCall",
    "line": 18,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/3/statement/1/value/arm/9",
    "outcome": "BodyArray",
    "line": 19,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/3/statement/1/value/arm/10",
    "outcome": "BodyUnary",
    "line": 20,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/3/statement/1/value/arm/11",
    "outcome": "BodyBinary",
    "line": 21,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/3/statement/1/value/arm/12",
    "outcome": "BodyField",
    "line": 22,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/3/statement/1/value/arm/13",
    "outcome": "BodyIndex",
    "line": 23,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/3/statement/1/value/arm/14",
    "outcome": "BodyIf",
    "line": 24,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/3/statement/1/value/arm/15",
    "outcome": "BodyBlock",
    "line": 25,
    "state": "covered",
    "hits": "21"
  },
  {
    "id": "declaration/3/statement/1/value/arm/16",
    "outcome": "BodyAssignment",
    "line": 26,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/3/statement/1/value/arm/17",
    "outcome": "BodyWhile",
    "line": 27,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/3/statement/1/value/arm/18",
    "outcome": "BodyEmpty",
    "line": 28,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/3/statement/2/decision/body",
    "outcome": "body",
    "line": 30,
    "state": "covered",
    "hits": "72"
  },
  {
    "id": "declaration/3/statement/2/decision/exit",
    "outcome": "exit",
    "line": 30,
    "state": "covered",
    "hits": "72"
  },
  {
    "id": "declaration/3/statement/2/body/tail/decision/true",
    "outcome": "true",
    "line": 31,
    "state": "covered",
    "hits": "54"
  },
  {
    "id": "declaration/3/statement/2/body/tail/decision/false",
    "outcome": "false",
    "line": 31,
    "state": "covered",
    "hits": "18"
  },
  {
    "id": "declaration/4/statement/1/value/arm/0",
    "outcome": "BodyBinding",
    "line": 39,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/4/statement/1/value/arm/0/body/block/tail/decision/true",
    "outcome": "true",
    "line": 39,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/4/statement/1/value/arm/0/body/block/tail/decision/false",
    "outcome": "false",
    "line": 39,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/4/statement/1/value/arm/1",
    "outcome": "BodyFor",
    "line": 40,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/4/statement/1/value/arm/1/body/block/tail/decision/true",
    "outcome": "true",
    "line": 40,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/4/statement/1/value/arm/1/body/block/tail/decision/false",
    "outcome": "false",
    "line": 40,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/4/statement/1/value/arm/2",
    "outcome": "BodyMatch",
    "line": 41,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/4/statement/1/value/arm/2/body/block/statement/0/decision/body",
    "outcome": "body",
    "line": 41,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/4/statement/1/value/arm/2/body/block/statement/0/decision/exit",
    "outcome": "exit",
    "line": 41,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/4/statement/1/value/arm/2/body/block/statement/0/body/statement/0/decision/body",
    "outcome": "body",
    "line": 41,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/4/statement/1/value/arm/2/body/block/statement/0/body/statement/0/decision/exit",
    "outcome": "exit",
    "line": 41,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/4/statement/1/value/arm/2/body/block/statement/0/body/statement/0/body/tail/decision/true",
    "outcome": "true",
    "line": 41,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/4/statement/1/value/arm/2/body/block/statement/0/body/statement/0/body/tail/decision/false",
    "outcome": "false",
    "line": 41,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/4/statement/1/value/arm/3",
    "outcome": "BodyLocalUse",
    "line": 42,
    "state": "covered",
    "hits": "18"
  },
  {
    "id": "declaration/4/statement/1/value/arm/4",
    "outcome": "BodyAnonymousFunction",
    "line": 43,
    "state": "covered",
    "hits": "12"
  },
  {
    "id": "declaration/4/statement/1/value/arm/4/body/block/tail/decision/true",
    "outcome": "true",
    "line": 43,
    "state": "covered",
    "hits": "3"
  },
  {
    "id": "declaration/4/statement/1/value/arm/4/body/block/tail/decision/false",
    "outcome": "false",
    "line": 43,
    "state": "covered",
    "hits": "9"
  },
  {
    "id": "declaration/4/statement/1/value/arm/4/body/block/tail/true/statement/0/decision/body",
    "outcome": "body",
    "line": 43,
    "state": "covered",
    "hits": "3"
  },
  {
    "id": "declaration/4/statement/1/value/arm/4/body/block/tail/true/statement/0/decision/exit",
    "outcome": "exit",
    "line": 43,
    "state": "covered",
    "hits": "3"
  },
  {
    "id": "declaration/4/statement/1/value/arm/4/body/block/tail/true/statement/0/body/tail/decision/true",
    "outcome": "true",
    "line": 43,
    "state": "covered",
    "hits": "3"
  },
  {
    "id": "declaration/4/statement/1/value/arm/4/body/block/tail/true/statement/0/body/tail/decision/false",
    "outcome": "false",
    "line": 43,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/4/statement/1/value/arm/5",
    "outcome": "BodyLiteral",
    "line": 44,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/4/statement/1/value/arm/6",
    "outcome": "BodyInterpolation",
    "line": 45,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/4/statement/1/value/arm/7",
    "outcome": "BodyFunction",
    "line": 46,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/4/statement/1/value/arm/8",
    "outcome": "BodyCall",
    "line": 47,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/4/statement/1/value/arm/9",
    "outcome": "BodyArray",
    "line": 48,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/4/statement/1/value/arm/10",
    "outcome": "BodyUnary",
    "line": 49,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/4/statement/1/value/arm/11",
    "outcome": "BodyBinary",
    "line": 50,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/4/statement/1/value/arm/12",
    "outcome": "BodyField",
    "line": 51,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/4/statement/1/value/arm/13",
    "outcome": "BodyIndex",
    "line": 52,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/4/statement/1/value/arm/14",
    "outcome": "BodyIf",
    "line": 53,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/4/statement/1/value/arm/15",
    "outcome": "BodyBlock",
    "line": 54,
    "state": "covered",
    "hits": "27"
  },
  {
    "id": "declaration/4/statement/1/value/arm/15/body/block/statement/0/decision/body",
    "outcome": "body",
    "line": 55,
    "state": "covered",
    "hits": "33"
  },
  {
    "id": "declaration/4/statement/1/value/arm/15/body/block/statement/0/decision/exit",
    "outcome": "exit",
    "line": 55,
    "state": "covered",
    "hits": "27"
  },
  {
    "id": "declaration/4/statement/1/value/arm/15/body/block/statement/0/body/tail/arm/0",
    "outcome": "BodyBinding",
    "line": 57,
    "state": "covered",
    "hits": "6"
  },
  {
    "id": "declaration/4/statement/1/value/arm/15/body/block/statement/0/body/tail/arm/0/body/block/tail/decision/true",
    "outcome": "true",
    "line": 57,
    "state": "covered",
    "hits": "6"
  },
  {
    "id": "declaration/4/statement/1/value/arm/15/body/block/statement/0/body/tail/arm/0/body/block/tail/decision/false",
    "outcome": "false",
    "line": 57,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/4/statement/1/value/arm/15/body/block/statement/0/body/tail/arm/0/body/block/tail/condition/decision/evaluate-right",
    "outcome": "evaluate-right",
    "line": 57,
    "state": "covered",
    "hits": "6"
  },
  {
    "id": "declaration/4/statement/1/value/arm/15/body/block/statement/0/body/tail/arm/0/body/block/tail/condition/decision/skip-right",
    "outcome": "skip-right",
    "line": 57,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/4/statement/1/value/arm/15/body/block/statement/0/body/tail/arm/1",
    "outcome": "BodyFor",
    "line": 58,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/4/statement/1/value/arm/15/body/block/statement/0/body/tail/arm/2",
    "outcome": "BodyMatch",
    "line": 59,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/4/statement/1/value/arm/15/body/block/statement/0/body/tail/arm/3",
    "outcome": "BodyLocalUse",
    "line": 60,
    "state": "covered",
    "hits": "9"
  },
  {
    "id": "declaration/4/statement/1/value/arm/15/body/block/statement/0/body/tail/arm/4",
    "outcome": "BodyAnonymousFunction",
    "line": 61,
    "state": "covered",
    "hits": "18"
  },
  {
    "id": "declaration/4/statement/1/value/arm/15/body/block/statement/0/body/tail/arm/5",
    "outcome": "BodyLiteral",
    "line": 62,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/4/statement/1/value/arm/15/body/block/statement/0/body/tail/arm/6",
    "outcome": "BodyInterpolation",
    "line": 63,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/4/statement/1/value/arm/15/body/block/statement/0/body/tail/arm/7",
    "outcome": "BodyFunction",
    "line": 64,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/4/statement/1/value/arm/15/body/block/statement/0/body/tail/arm/8",
    "outcome": "BodyCall",
    "line": 65,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/4/statement/1/value/arm/15/body/block/statement/0/body/tail/arm/9",
    "outcome": "BodyArray",
    "line": 66,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/4/statement/1/value/arm/15/body/block/statement/0/body/tail/arm/10",
    "outcome": "BodyUnary",
    "line": 67,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/4/statement/1/value/arm/15/body/block/statement/0/body/tail/arm/11",
    "outcome": "BodyBinary",
    "line": 68,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/4/statement/1/value/arm/15/body/block/statement/0/body/tail/arm/12",
    "outcome": "BodyField",
    "line": 69,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/4/statement/1/value/arm/15/body/block/statement/0/body/tail/arm/13",
    "outcome": "BodyIndex",
    "line": 70,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/4/statement/1/value/arm/15/body/block/statement/0/body/tail/arm/14",
    "outcome": "BodyIf",
    "line": 71,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/4/statement/1/value/arm/15/body/block/statement/0/body/tail/arm/15",
    "outcome": "BodyBlock",
    "line": 72,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/4/statement/1/value/arm/15/body/block/statement/0/body/tail/arm/16",
    "outcome": "BodyAssignment",
    "line": 73,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/4/statement/1/value/arm/15/body/block/statement/0/body/tail/arm/17",
    "outcome": "BodyWhile",
    "line": 74,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/4/statement/1/value/arm/15/body/block/statement/0/body/tail/arm/18",
    "outcome": "BodyEmpty",
    "line": 75,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/4/statement/1/value/arm/16",
    "outcome": "BodyAssignment",
    "line": 79,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/4/statement/1/value/arm/17",
    "outcome": "BodyWhile",
    "line": 80,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/4/statement/1/value/arm/18",
    "outcome": "BodyEmpty",
    "line": 81,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/4/statement/2/decision/body",
    "outcome": "body",
    "line": 83,
    "state": "covered",
    "hits": "54"
  },
  {
    "id": "declaration/4/statement/2/decision/exit",
    "outcome": "exit",
    "line": 83,
    "state": "covered",
    "hits": "57"
  },
  {
    "id": "declaration/4/statement/2/body/tail/decision/true",
    "outcome": "true",
    "line": 84,
    "state": "covered",
    "hits": "39"
  },
  {
    "id": "declaration/4/statement/2/body/tail/decision/false",
    "outcome": "false",
    "line": 84,
    "state": "covered",
    "hits": "15"
  },
  {
    "id": "declaration/5/statement/1/decision/body",
    "outcome": "body",
    "line": 91,
    "state": "covered",
    "hits": "18"
  },
  {
    "id": "declaration/5/statement/1/decision/exit",
    "outcome": "exit",
    "line": 91,
    "state": "covered",
    "hits": "18"
  },
  {
    "id": "declaration/5/statement/1/body/tail/decision/true",
    "outcome": "true",
    "line": 92,
    "state": "covered",
    "hits": "18"
  },
  {
    "id": "declaration/5/statement/1/body/tail/decision/false",
    "outcome": "false",
    "line": 92,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/5/statement/3/value/arm/0",
    "outcome": "None",
    "line": 96,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/5/statement/3/value/arm/1",
    "outcome": "Some",
    "line": 97,
    "state": "covered",
    "hits": "18"
  },
  {
    "id": "declaration/5/statement/3/value/arm/1/body/block/statement/0/decision/body",
    "outcome": "body",
    "line": 98,
    "state": "covered",
    "hits": "18"
  },
  {
    "id": "declaration/5/statement/3/value/arm/1/body/block/statement/0/decision/exit",
    "outcome": "exit",
    "line": 98,
    "state": "covered",
    "hits": "18"
  },
  {
    "id": "declaration/5/statement/3/value/arm/1/body/block/statement/0/body/statement/0/value/decision/true",
    "outcome": "true",
    "line": 99,
    "state": "covered",
    "hits": "18"
  },
  {
    "id": "declaration/5/statement/3/value/arm/1/body/block/statement/0/body/statement/0/value/decision/false",
    "outcome": "false",
    "line": 99,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/5/statement/3/value/arm/1/body/block/statement/0/body/tail/decision/true",
    "outcome": "true",
    "line": 100,
    "state": "covered",
    "hits": "9"
  },
  {
    "id": "declaration/5/statement/3/value/arm/1/body/block/statement/0/body/tail/decision/false",
    "outcome": "false",
    "line": 100,
    "state": "covered",
    "hits": "9"
  },
  {
    "id": "declaration/5/statement/3/value/arm/1/body/block/statement/0/body/tail/condition/decision/evaluate-right",
    "outcome": "evaluate-right",
    "line": 100,
    "state": "covered",
    "hits": "9"
  },
  {
    "id": "declaration/5/statement/3/value/arm/1/body/block/statement/0/body/tail/condition/decision/skip-right",
    "outcome": "skip-right",
    "line": 100,
    "state": "covered",
    "hits": "9"
  },
  {
    "id": "declaration/5/statement/3/value/arm/1/body/block/statement/0/body/tail/true/statement/0/decision/body",
    "outcome": "body",
    "line": 101,
    "state": "covered",
    "hits": "9"
  },
  {
    "id": "declaration/5/statement/3/value/arm/1/body/block/statement/0/body/tail/true/statement/0/decision/exit",
    "outcome": "exit",
    "line": 101,
    "state": "covered",
    "hits": "9"
  },
  {
    "id": "declaration/5/statement/3/value/arm/1/body/block/statement/0/body/tail/true/statement/0/body/tail/decision/true",
    "outcome": "true",
    "line": 102,
    "state": "covered",
    "hits": "9"
  },
  {
    "id": "declaration/5/statement/3/value/arm/1/body/block/statement/0/body/tail/true/statement/0/body/tail/decision/false",
    "outcome": "false",
    "line": 102,
    "state": "zero",
    "hits": "0"
  }
]

Reviewed declaration exclusions

[
  {
    "id": "declaration/0",
    "reason": "import",
    "line": 1
  },
  {
    "id": "declaration/1",
    "reason": "import",
    "line": 2
  },
  {
    "id": "declaration/2",
    "reason": "import",
    "line": 3
  }
]