All files

src/compiler/source_inventory.panack

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

    1 import stdlib/host as std_host
    2 import project/src/compiler/path_support as path_support
    3 import stdlib/bytes as byte_buffer
    4 import stdlib/environment as std_environment
    5 pub import project/src/compiler/loader::{LoadedProject}
    6 import project/src/compiler/loader::{load_project_for_inventory, loaded_binding_graph, loaded_package_binding_graph}
    7 import project/src/compiler/project_frontend::{prepare_project_program}
    8 import project/src/compiler/module_bindings::{ModuleIdentity, source_module_identity}
    9 pub import project/src/compiler/module_bindings::{LoadedModule}
   10 pub import project/src/compiler/module_resolution::{ModuleBindingGraph}
   11 import project/src/compiler/module_resolution::{module_head_is_namespace}
   12 import project/src/compiler/parser::{expression_reference_path, reference_head}
   13 import project/src/compiler/parser::{
   14   Expr, Expr.LocatedExpr, Expr.NatExpr, Expr.DecimalExpr, Expr.StringExpr, Expr.BoolExpr,
   15   Expr.NameExpr, Expr.FunctionExpr, Expr.AnonymousExpr, Expr.ArrayExpr, Expr.UnaryExpr, Expr.BinaryExpr,
   16   Expr.CallExpr, Expr.DotCallExpr, Expr.OwnedCallExpr, Expr.FieldExpr, Expr.IndexExpr, Expr.IfExpr,
   17   Expr.BlockExpr, Expr.MatchExpr,
   18   Statement, Statement.BindingStatement, Statement.AssignmentStatement,
   19   Statement.ExpressionStatement, Statement.WhileStatement, Statement.ForStatement,
   20   Block, BlockValue, BlockValue.NoBlockValue, BlockValue.TailBlockValue,
   21   Program, TopLevel, TopLevel.FunctionDeclaration, TopLevel.ImportDeclaration,
   22   TopLevel.TypeDeclaration, TopLevel.RecordDeclaration, TopLevel.EnumDeclaration,
   23   expression_span, unlocated_expression
   24 }
   25 pub import project/src/compiler/types::{SourceSpan}
   26 import project/src/compiler/source_maps::{
   27   SourceSnapshot, source_snapshots, source_identifier, source_map_blob,
   28   source_map_destination_available, source_map_join, source_map_matches,
   29   source_map_position, source_map_read, source_map_write, source_snapshots_unchanged
   30 }
   31 import project/src/bytecode/codec::{encode_u32, encode_text, serialize_bytecode}
   32 import project/src/compiler/emitter::{compile_program}
   33 
   34 // Describe executable source constructs with structural IDs independent of emitted
   35 // PCs. Exact snapshots and artifacts bind each observation to its source.
   36 
   37 // IDs are structural paths within a source snapshot, never emitted PCs. The
   38 // exact snapshot/artifact/compiler envelope is part of every ID's identity.
   39 pub record InventoryItem {
   40   id: Str,
   41   kind: Str,
   42   detail: Str,
   43   span: SourceSpan
   44 }
   45 
   46 pure inventory_item(id: Str, kind: Str, detail: Str, expression: Expr): [InventoryItem] {
   47   match expression_span(expression) {
   48     Some(span) => [InventoryItem(id, kind, detail, span)],
   49     None() => []
   50   }
   51 }
   52 
   53 pure inventory_decision(id: Str, kind: Str, expression: Expr, outcomes: [Str]): [InventoryItem] {
   54   mut items: [InventoryItem] = inventory_item(id, "decision", kind, expression)
   55 
   56   for outcome in outcomes {
   57     items = items.concat(inventory_item(id + "/" + outcome, "outcome", outcome, expression))
   58   }
   59 
   60   items
   61 }
   62 
   63 record InventoryContext {
   64   graph: ModuleBindingGraph,
   65   identity: ModuleIdentity,
   66   locals: Set[Str]
   67 }
   68 
   69 pure inventory_local(context: InventoryContext, name: Str): InventoryContext {
   70   InventoryContext(context.graph, context.identity, context.locals.add(name))
   71 }
   72 
   73 // Namespace qualification selects a declaration at compile time. It has no
   74 // runtime receiver to observe. Lexical values can shadow namespace names.
   75 pure inventory_receiver(expression: Expr, id: Str, context: InventoryContext): [InventoryItem] {
   76   path: Str = expression_reference_path(expression)
   77   if path != "" && !context.locals.has(reference_head(path)) &&
   78     module_head_is_namespace(context.graph, context.identity, path) {
   79     inventory_item(id, "excluded", "namespace-qualifier", expression)
   80   } else {
   81     inventory_expression(expression, id, context)
   82   }
   83 }
   84 
   85 pure inventory_expressions(values: [Expr], id: Str, context: InventoryContext): [InventoryItem] {
   86   mut items: [InventoryItem] = []
   87   mut index: Nat = 0
   88 
   89   for value in values {
   90     items = items.concat(inventory_expression(value, id + "/${index}", context))
   91     index = index + 1
   92   }
   93 
   94   items
   95 }
   96 
   97 pure inventory_expression(expression: Expr, id: Str, context: InventoryContext): [InventoryItem] {
   98   mut items: [InventoryItem] = inventory_item(id, "expression", "attempt", expression)
   99 
  100   match unlocated_expression(expression) {
  101     LocatedExpr(span, value, located_type_argument_spans) => {},
  102     NatExpr(value) => {},
  103     DecimalExpr(value) => {},
  104     StringExpr(value) => {},
  105     BoolExpr(value) => {},
  106     NameExpr(value) => {},
  107     FunctionExpr(value) => {},
  108     AnonymousExpr(effect, parameters, result_type, body) => {
  109       mut nested: InventoryContext = context
  110       for parameter in parameters { nested = inventory_local(nested, parameter.name); }
  111       items = items.concat(inventory_expression(body, id + "/body", nested))
  112     },
  113     ArrayExpr(values) => {
  114       items = items.concat(inventory_expressions(values, id, context))
  115     },
  116     UnaryExpr(operator, value) => {
  117       items = items.concat(inventory_expression(value, id + "/operand", context))
  118     },
  119     BinaryExpr(operator, left, right) => {
  120       if operator == "&&" || operator == "||" {
  121         items = items.concat(
  122           inventory_decision(id + "/decision", operator, left, ["evaluate-right", "skip-right"])
  123         )
  124       }
  125       items = items.concat(inventory_expression(left, id + "/left", context))
  126       items = items.concat(inventory_expression(right, id + "/right", context))
  127     },
  128     CallExpr(name, arguments, types) => {
  129       items = items.concat(inventory_expressions(arguments, id + "/args", context))
  130     },
  131     OwnedCallExpr(target, name, arguments, types) => {
  132       items = items.concat(inventory_expression(target, id + "/receiver", context))
  133       items = items.concat(inventory_expressions(arguments, id + "/args", context))
  134     },
  135     DotCallExpr(target, name, arguments, types) => {
  136       items = items.concat(inventory_receiver(target, id + "/receiver", context))
  137       items = items.concat(inventory_expressions(arguments, id + "/args", context))
  138     },
  139     FieldExpr(target, name) => {
  140       items = items.concat(inventory_receiver(target, id + "/receiver", context))
  141     },
  142     IndexExpr(target, index) => {
  143       items = items.concat(inventory_expression(target, id + "/receiver", context))
  144       items = items.concat(inventory_expression(index, id + "/index", context))
  145     },
  146     IfExpr(condition, yes, no, has_else) => {
  147       items = items.concat(
  148         inventory_decision(id + "/decision", "if", condition, ["true", "false"])
  149       )
  150       items = items.concat(inventory_expression(condition, id + "/condition", context))
  151       items = items.concat(inventory_block(yes, id + "/true", context))
  152       items = items.concat(inventory_block(no, id + "/false", context))
  153     },
  154     BlockExpr(block) => {
  155       items = items.concat(inventory_block(block, id + "/block", context))
  156     },
  157     MatchExpr(subject, arms) => {
  158       items = items.concat(inventory_item(id + "/decision", "decision", "match", subject))
  159       items = items.concat(inventory_expression(subject, id + "/subject", context))
  160       mut index: Nat = 0
  161       for arm in arms {
  162         arm_id: Str = id + "/arm/${index}"
  163         items = items.concat(inventory_item(arm_id, "outcome", arm.pattern.variant, arm.body))
  164         mut nested: InventoryContext = context
  165         for binding in arm.pattern.bindings { nested = inventory_local(nested, binding); }
  166         items = items.concat(inventory_expression(arm.body, arm_id + "/body", nested))
  167         index = index + 1
  168       }
  169     }
  170   }
  171 
  172   items
  173 }
  174 
  175 // Statement anchors are their first evaluated expression, not the declaration
  176 // name/type or punctuation. They have separate identities from that expression.
  177 pure inventory_block(block: Block, id: Str, context: InventoryContext): [InventoryItem] {
  178   mut items: [InventoryItem] = []
  179   mut index: Nat = 0
  180   mut visible: InventoryContext = context
  181 
  182   for statement in block.statements {
  183     key: Str = id + "/statement/${index}"
  184     match statement {
  185       BindingStatement(name, annotation, annotation_span, mutable, value) => {
  186         items = items.concat(inventory_item(key, "statement", "binding", value))
  187         items = items.concat(inventory_expression(value, key + "/value", visible))
  188         visible = inventory_local(visible, name)
  189       },
  190       AssignmentStatement(name, value) => {
  191         items = items.concat(
  192           inventory_item(key, "statement", "assignment-or-inferred-binding", value)
  193         )
  194         items = items.concat(inventory_expression(value, key + "/value", visible))
  195         visible = inventory_local(visible, name)
  196       },
  197       ExpressionStatement(value) => {
  198         items = items.concat(inventory_item(key, "statement", "expression", value))
  199         items = items.concat(inventory_expression(value, key + "/value", visible))
  200       },
  201       WhileStatement(condition, body) => {
  202         items = items.concat(inventory_item(key, "statement", "while", condition))
  203         items = items.concat(
  204           inventory_decision(key + "/decision", "while", condition, ["body", "exit"])
  205         )
  206         items = items.concat(inventory_expression(condition, key + "/condition", visible))
  207         items = items.concat(inventory_block(body, key + "/body", visible))
  208       },
  209       ForStatement(name, values, body) => {
  210         items = items.concat(inventory_item(key, "statement", "for", values))
  211         items = items.concat(
  212           inventory_decision(key + "/decision", "for", values, ["body", "exit"])
  213         )
  214         items = items.concat(inventory_expression(values, key + "/iterable", visible))
  215         items = items.concat(inventory_block(body, key + "/body", inventory_local(visible, name)))
  216       }
  217     }
  218     index = index + 1
  219   }
  220   match block.value {
  221     NoBlockValue() => {},
  222     TailBlockValue(value) => {
  223       items = items.concat(inventory_expression(value, id + "/tail", visible))
  224     }
  225   }
  226 
  227   items
  228 }
  229 
  230 pub pure inventory_module(module: LoadedModule, graph: ModuleBindingGraph): [InventoryItem] {
  231   mut items: [InventoryItem] = []
  232   mut index: Nat = 0
  233 
  234   for declaration in module.parsed.program.declarations {
  235     id: Str = "declaration/${index}"
  236     span: SourceSpan = module.parsed.syntax[index].span
  237     match declaration {
  238       FunctionDeclaration(name, parameters, result, pure_effect, async_effect, body, types) => {
  239         items = items.append(InventoryItem(id, "function", name, span))
  240         mut context: InventoryContext = InventoryContext(graph, module.bindings.identity, set())
  241         for parameter in parameters { context = inventory_local(context, parameter.name); }
  242         items = items.concat(inventory_block(body, id, context))
  243       },
  244       ImportDeclaration(path) => {
  245         items = items.append(InventoryItem(id, "excluded", "import", span))
  246       },
  247       TypeDeclaration(name, base, guard_name, guard) => {
  248         items = items.append(InventoryItem(id, "excluded", "compile-time-refinement", span))
  249       },
  250       RecordDeclaration(name, types, fields) => {
  251         items = items.append(InventoryItem(id, "excluded", "record-declaration", span))
  252       },
  253       EnumDeclaration(name, types, variants) => {
  254         items = items.append(InventoryItem(id, "excluded", "enum-declaration", span))
  255       }
  256     }
  257     index = index + 1
  258   }
  259 
  260   items
  261 }
  262 
  263 // Foreign inventories are never decoded. The caller reproduces this envelope
  264 // using explicit local roots and the installed compiler, then compares bytes.
  265 pub pure source_inventory_limit_error(compiler_size: Nat, artifact_size: Nat, sources: Nat, items: Nat, inventory_size: Nat): Str {
  266   if compiler_size == 0 { "source inventory requires a compiler identity, but the supplied identity is empty" }
  267   else { if compiler_size > 16777216 { "source inventory compiler identity exceeds the 16 MiB limit" }
  268   else { if artifact_size > 16777216 { "source inventory bytecode artifact exceeds the 16 MiB limit" }
  269   else { if sources > 256 { "source inventory exceeds the limit of 256 source files" }
  270   else { if items > 100000 { "source inventory exceeds the limit of 100000 items in one source file" }
  271   else { if inventory_size > 67108864 { "source inventory exceeds the 64 MiB serialized-size limit" }
  272   else { "" } } } } } }
  273 }
  274 
  275 pub pure serialize_source_inventory(project: LoadedProject, artifact: Bytes, compiler: Bytes, entry: Str, root: Str, stdlib: Str): Bytes {
  276   serialize_source_inventory_checked(project, artifact, compiler, entry, root, stdlib).value_or(byte_buffer.empty())
  277 }
  278 
  279 pub pure serialize_source_inventory_checked(
  280   project: LoadedProject,
  281   artifact: Bytes,
  282   compiler: Bytes,
  283   entry: Str,
  284   root: Str,
  285   stdlib: Str
  286 ): Result[Bytes,Str] {
  287   snapshots: [SourceSnapshot] = source_snapshots(project, root, stdlib)
  288   // Snapshot paths may be relative to the entry directory while imports were
  289   // resolved against a configured project/package root. Retain that context.
  290   graph: ModuleBindingGraph = match project.preparation {
  291     None() => loaded_binding_graph(project.modules, root, stdlib),
  292     Some(context) => loaded_package_binding_graph(project.modules, context.project_root,
  293       context.stdlib_root, context.package_confined, context.package_root_identity, context.dependencies)
  294   }
  295   mut chunks: [Bytes] = ["PANACKINV1\nlocal-replay-v9\n".encode_utf8(), source_map_blob(compiler),
  296     encode_text(source_identifier(
  297     entry,
  298     root,
  299     stdlib
  300   )), source_map_blob(artifact), encode_u32(snapshots.len())]
  301   mut size: Nat = 0
  302   mut maximum_items: Nat = 0
  303   mut valid: Bool = compiler.length() > 0 && compiler.length() <= 16777216 &&
  304     artifact.length() <= 16777216 && snapshots.len() <= 256
  305 
  306   for chunk in chunks {
  307     size = size + chunk.length()
  308   }
  309   for snapshot in snapshots {
  310     mut items: [InventoryItem] = []
  311     for module in project.modules {
  312       if module.source_path == snapshot.path {
  313         items = inventory_module(module, graph)
  314       }
  315     }
  316     chunks = chunks.append(encode_text(snapshot.name)).append(encode_text(snapshot.text)).append(encode_u32(items.len()))
  317     size = size + 12 + snapshot.name.encode_utf8().length() + snapshot.text.encode_utf8().length()
  318     if items.len() > maximum_items { maximum_items = items.len(); }
  319     valid = valid && items.len() <= 100000
  320     for item in items {
  321       if valid && size <= 67108864 {
  322         chunk: Bytes = source_map_join([encode_text(item.id), encode_text(item.kind), encode_text(item.detail),
  323           source_map_position(item.span.start), source_map_position(item.span.end)], 0, 5)
  324         chunks = chunks.append(chunk)
  325         size = size + chunk.length()
  326       } else {
  327         valid = false
  328       }
  329     }
  330   }
  331   if valid && size <= 67108864 {
  332     Ok(source_map_join(chunks, 0, chunks.len()))
  333   } else {
  334     Error(source_inventory_limit_error(compiler.length(), artifact.length(), snapshots.len(), maximum_items, size))
  335   }
  336 }
  337 
  338 pub record InventoryArguments {
  339   valid: Bool,
  340   roots: [Str],
  341   output: Str
  342 }
  343 
  344 pub pure inventory_arguments(values: [Str], checking: Bool): InventoryArguments {
  345   mut roots: [Str] = []
  346   mut output: Str = ""
  347   mut valid: Bool = values.len() >= 4
  348 
  349   if valid {
  350     roots = roots.append(values[1])
  351   }
  352   mut index: Nat = 2
  353   while index + 1 < values.len() {
  354     flag: Str = values[index]
  355     value: Str = values[index + 1]
  356     if flag == (if checking {
  357         "--inventory"
  358       } else {
  359         "-o"
  360       }) && output == "" {
  361         output = value
  362       } else {
  363         if flag == "--include" {
  364           roots = roots.append(value)
  365         } else {
  366           valid = false
  367         }
  368       }
  369     index = index + 2
  370   }
  371   for root in roots {
  372     valid = valid && path_support.suffix(root) == ".panack"
  373   }
  374   InventoryArguments(
  375     valid && index == values.len() && output != "" && roots.len() <= 16,
  376     roots,
  377     output
  378   )
  379 }
  380 
  381 // Repeating roots deliberately creates distinct compilation contexts. Shared
  382 // source identities must be deduplicated by a future suite aggregator, never by
  383 // adding these counts. Sources are rechecked after *all* roots have been loaded.
  384 pub run_inventory_command(values: [Str], checking: Bool): Nat {
  385   args: InventoryArguments = inventory_arguments(values, checking)
  386 
  387   if !args.valid {
  388     std_host.stderr("error: inventory usage: inventory SOURCE.panack -o FILE [--include SOURCE.panack] | inventory-check SOURCE.panack --inventory FILE [--include SOURCE.panack]")
  389     1
  390   } else {
  391     compiler_path: Str = std_environment.get("PANACKELTY_COMPILER_PATH").value_or("")
  392     match source_map_read(compiler_path, 16777216) {
  393       Error(error) => {
  394         std_host.stderr("error: inventory compiler identity unavailable")
  395         1
  396       },
  397       Ok(compiler) => {
  398         // The running compiler was verified by the VM. This trusted identity
  399         // input is compared exactly, not decoded again in the hosted compiler.
  400         mut valid: Bool = compiler.length() > 0
  401         mut projects: [LoadedProject] = []
  402         mut paths: Set[Str] = set()
  403         mut chunks: [Bytes] = ["PANACKINVENTORY1\n".encode_utf8(), encode_u32(args.roots.len())]
  404         mut size: Nat = chunks[0].length() + 4
  405         root: Str = path_support.parent(path_support.resolve(args.roots[0]))
  406         stdlib: Str = path_support.resolve(std_environment.get("PANACKELTY_STDLIB_PATH").value_or(""))
  407         output: Str = path_support.resolve(args.output)
  408         if !checking && !source_map_destination_available(output) {
  409           valid = false
  410         }
  411         for source in args.roots {
  412           entry: Str = path_support.resolve(source)
  413           if paths.has(entry) {
  414             valid = false
  415           }
  416           paths = paths.add(entry)
  417           if valid {
  418             project: LoadedProject = load_project_for_inventory(entry)
  419             projects = projects.append(project)
  420             project_root: Str = path_support.parent(entry)
  421             identity: ModuleIdentity = source_module_identity(entry, project_root, stdlib)
  422             match prepare_project_program(project, project_root, stdlib, identity) {
  423               Error(errors) => {
  424                 valid = false
  425               },
  426               Ok(program) => {
  427                 artifact: Bytes = serialize_bytecode(compile_program(program))
  428                 inventory: Bytes = serialize_source_inventory(
  429                   project,
  430                   artifact,
  431                   compiler,
  432                   entry,
  433                   root,
  434                   stdlib
  435                 )
  436                 size = size + 4 + inventory.length()
  437                 valid = valid && inventory.length() > 0 && size <= 67108864
  438                 if valid {
  439                   chunks = chunks.append(source_map_blob(inventory))
  440                 }
  441               }
  442             }
  443           }
  444         }
  445         for project in projects {
  446           valid = valid && source_snapshots_unchanged(project)
  447         }
  448         valid = valid && source_map_matches(compiler_path, compiler)
  449         if !valid {
  450           std_host.stderr("error: inventory unavailable: invalid, changed, duplicate or excessive inputs, or existing output")
  451           1
  452         } else {
  453           expected: Bytes = source_map_join(chunks, 0, chunks.len())
  454           if checking {
  455             if source_map_matches(output, expected) {
  456               print("inventory: valid")
  457               0
  458             } else {
  459               std_host.stderr("error: inventory unavailable: missing, malformed, stale or incompatible inventory")
  460               1
  461             }
  462           } else {
  463             if source_map_destination_available(output) && source_map_write(
  464               output,
  465               expected
  466             ) && source_map_matches(output, expected) {
  467               print("wrote inventory " + args.output)
  468               0
  469             } else {
  470               std_host.stderr("error: could not write inventory; discard any partial output")
  471               1
  472             }
  473           }
  474         }
  475       }
  476     }
  477   }
  478 }
  479 

Functions

[
  {
    "id": "declaration/18",
    "name": "inventory_item",
    "line": 46,
    "state": "covered",
    "entries": "5505"
  },
  {
    "id": "declaration/19",
    "name": "inventory_decision",
    "line": 53,
    "state": "covered",
    "entries": "365"
  },
  {
    "id": "declaration/21",
    "name": "inventory_local",
    "line": 69,
    "state": "covered",
    "entries": "809"
  },
  {
    "id": "declaration/22",
    "name": "inventory_receiver",
    "line": 75,
    "state": "covered",
    "entries": "412"
  },
  {
    "id": "declaration/23",
    "name": "inventory_expressions",
    "line": 85,
    "state": "covered",
    "entries": "758"
  },
  {
    "id": "declaration/24",
    "name": "inventory_expression",
    "line": 97,
    "state": "covered",
    "entries": "3766"
  },
  {
    "id": "declaration/25",
    "name": "inventory_block",
    "line": 177,
    "state": "covered",
    "entries": "625"
  },
  {
    "id": "declaration/26",
    "name": "inventory_module",
    "line": 230,
    "state": "covered",
    "entries": "31"
  },
  {
    "id": "declaration/27",
    "name": "source_inventory_limit_error",
    "line": 265,
    "state": "covered",
    "entries": "5"
  },
  {
    "id": "declaration/28",
    "name": "serialize_source_inventory",
    "line": 275,
    "state": "covered",
    "entries": "5"
  },
  {
    "id": "declaration/29",
    "name": "serialize_source_inventory_checked",
    "line": 279,
    "state": "covered",
    "entries": "6"
  },
  {
    "id": "declaration/31",
    "name": "inventory_arguments",
    "line": 344,
    "state": "covered",
    "entries": "5"
  },
  {
    "id": "declaration/32",
    "name": "run_inventory_command",
    "line": 384,
    "state": "zero",
    "entries": "0"
  }
]

Source branch outcomes

[
  {
    "id": "declaration/18/tail/arm/0",
    "outcome": "Some",
    "line": 48,
    "state": "covered",
    "hits": "5505"
  },
  {
    "id": "declaration/18/tail/arm/1",
    "outcome": "None",
    "line": 49,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/19/statement/1/decision/body",
    "outcome": "body",
    "line": 56,
    "state": "covered",
    "hits": "730"
  },
  {
    "id": "declaration/19/statement/1/decision/exit",
    "outcome": "exit",
    "line": 56,
    "state": "covered",
    "hits": "365"
  },
  {
    "id": "declaration/22/tail/decision/true",
    "outcome": "true",
    "line": 77,
    "state": "covered",
    "hits": "8"
  },
  {
    "id": "declaration/22/tail/decision/false",
    "outcome": "false",
    "line": 77,
    "state": "covered",
    "hits": "404"
  },
  {
    "id": "declaration/22/tail/condition/decision/evaluate-right",
    "outcome": "evaluate-right",
    "line": 77,
    "state": "covered",
    "hits": "8"
  },
  {
    "id": "declaration/22/tail/condition/decision/skip-right",
    "outcome": "skip-right",
    "line": 77,
    "state": "covered",
    "hits": "404"
  },
  {
    "id": "declaration/22/tail/condition/left/decision/evaluate-right",
    "outcome": "evaluate-right",
    "line": 77,
    "state": "covered",
    "hits": "393"
  },
  {
    "id": "declaration/22/tail/condition/left/decision/skip-right",
    "outcome": "skip-right",
    "line": 77,
    "state": "covered",
    "hits": "19"
  },
  {
    "id": "declaration/23/statement/2/decision/body",
    "outcome": "body",
    "line": 89,
    "state": "covered",
    "hits": "493"
  },
  {
    "id": "declaration/23/statement/2/decision/exit",
    "outcome": "exit",
    "line": 89,
    "state": "covered",
    "hits": "758"
  },
  {
    "id": "declaration/24/statement/1/value/arm/0",
    "outcome": "LocatedExpr",
    "line": 101,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/24/statement/1/value/arm/1",
    "outcome": "NatExpr",
    "line": 102,
    "state": "covered",
    "hits": "618"
  },
  {
    "id": "declaration/24/statement/1/value/arm/2",
    "outcome": "DecimalExpr",
    "line": 103,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/24/statement/1/value/arm/3",
    "outcome": "StringExpr",
    "line": 104,
    "state": "covered",
    "hits": "12"
  },
  {
    "id": "declaration/24/statement/1/value/arm/4",
    "outcome": "BoolExpr",
    "line": 105,
    "state": "covered",
    "hits": "62"
  },
  {
    "id": "declaration/24/statement/1/value/arm/5",
    "outcome": "NameExpr",
    "line": 106,
    "state": "covered",
    "hits": "1295"
  },
  {
    "id": "declaration/24/statement/1/value/arm/6",
    "outcome": "FunctionExpr",
    "line": 107,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/24/statement/1/value/arm/7",
    "outcome": "AnonymousExpr",
    "line": 108,
    "state": "covered",
    "hits": "2"
  },
  {
    "id": "declaration/24/statement/1/value/arm/7/body/block/statement/1/decision/body",
    "outcome": "body",
    "line": 110,
    "state": "covered",
    "hits": "2"
  },
  {
    "id": "declaration/24/statement/1/value/arm/7/body/block/statement/1/decision/exit",
    "outcome": "exit",
    "line": 110,
    "state": "covered",
    "hits": "2"
  },
  {
    "id": "declaration/24/statement/1/value/arm/8",
    "outcome": "ArrayExpr",
    "line": 113,
    "state": "covered",
    "hits": "34"
  },
  {
    "id": "declaration/24/statement/1/value/arm/9",
    "outcome": "UnaryExpr",
    "line": 116,
    "state": "covered",
    "hits": "16"
  },
  {
    "id": "declaration/24/statement/1/value/arm/10",
    "outcome": "BinaryExpr",
    "line": 119,
    "state": "covered",
    "hits": "758"
  },
  {
    "id": "declaration/24/statement/1/value/arm/10/body/block/statement/0/value/decision/true",
    "outcome": "true",
    "line": 120,
    "state": "covered",
    "hits": "162"
  },
  {
    "id": "declaration/24/statement/1/value/arm/10/body/block/statement/0/value/decision/false",
    "outcome": "false",
    "line": 120,
    "state": "covered",
    "hits": "596"
  },
  {
    "id": "declaration/24/statement/1/value/arm/10/body/block/statement/0/value/condition/decision/evaluate-right",
    "outcome": "evaluate-right",
    "line": 120,
    "state": "covered",
    "hits": "701"
  },
  {
    "id": "declaration/24/statement/1/value/arm/10/body/block/statement/0/value/condition/decision/skip-right",
    "outcome": "skip-right",
    "line": 120,
    "state": "covered",
    "hits": "57"
  },
  {
    "id": "declaration/24/statement/1/value/arm/11",
    "outcome": "CallExpr",
    "line": 128,
    "state": "covered",
    "hits": "313"
  },
  {
    "id": "declaration/24/statement/1/value/arm/12",
    "outcome": "OwnedCallExpr",
    "line": 131,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/24/statement/1/value/arm/13",
    "outcome": "DotCallExpr",
    "line": 135,
    "state": "covered",
    "hits": "411"
  },
  {
    "id": "declaration/24/statement/1/value/arm/14",
    "outcome": "FieldExpr",
    "line": 139,
    "state": "covered",
    "hits": "1"
  },
  {
    "id": "declaration/24/statement/1/value/arm/15",
    "outcome": "IndexExpr",
    "line": 142,
    "state": "covered",
    "hits": "72"
  },
  {
    "id": "declaration/24/statement/1/value/arm/16",
    "outcome": "IfExpr",
    "line": 146,
    "state": "covered",
    "hits": "128"
  },
  {
    "id": "declaration/24/statement/1/value/arm/17",
    "outcome": "BlockExpr",
    "line": 154,
    "state": "covered",
    "hits": "18"
  },
  {
    "id": "declaration/24/statement/1/value/arm/18",
    "outcome": "MatchExpr",
    "line": 157,
    "state": "covered",
    "hits": "26"
  },
  {
    "id": "declaration/24/statement/1/value/arm/18/body/block/statement/3/decision/body",
    "outcome": "body",
    "line": 161,
    "state": "covered",
    "hits": "52"
  },
  {
    "id": "declaration/24/statement/1/value/arm/18/body/block/statement/3/decision/exit",
    "outcome": "exit",
    "line": 161,
    "state": "covered",
    "hits": "26"
  },
  {
    "id": "declaration/24/statement/1/value/arm/18/body/block/statement/3/body/statement/3/decision/body",
    "outcome": "body",
    "line": 165,
    "state": "covered",
    "hits": "34"
  },
  {
    "id": "declaration/24/statement/1/value/arm/18/body/block/statement/3/body/statement/3/decision/exit",
    "outcome": "exit",
    "line": 165,
    "state": "covered",
    "hits": "52"
  },
  {
    "id": "declaration/25/statement/3/decision/body",
    "outcome": "body",
    "line": 182,
    "state": "covered",
    "hits": "558"
  },
  {
    "id": "declaration/25/statement/3/decision/exit",
    "outcome": "exit",
    "line": 182,
    "state": "covered",
    "hits": "625"
  },
  {
    "id": "declaration/25/statement/3/body/statement/1/value/arm/0",
    "outcome": "BindingStatement",
    "line": 185,
    "state": "covered",
    "hits": "134"
  },
  {
    "id": "declaration/25/statement/3/body/statement/1/value/arm/1",
    "outcome": "AssignmentStatement",
    "line": 190,
    "state": "covered",
    "hits": "259"
  },
  {
    "id": "declaration/25/statement/3/body/statement/1/value/arm/2",
    "outcome": "ExpressionStatement",
    "line": 197,
    "state": "covered",
    "hits": "90"
  },
  {
    "id": "declaration/25/statement/3/body/statement/1/value/arm/3",
    "outcome": "WhileStatement",
    "line": 201,
    "state": "covered",
    "hits": "49"
  },
  {
    "id": "declaration/25/statement/3/body/statement/1/value/arm/4",
    "outcome": "ForStatement",
    "line": 209,
    "state": "covered",
    "hits": "26"
  },
  {
    "id": "declaration/25/statement/4/value/arm/0",
    "outcome": "NoBlockValue",
    "line": 221,
    "state": "covered",
    "hits": "198"
  },
  {
    "id": "declaration/25/statement/4/value/arm/1",
    "outcome": "TailBlockValue",
    "line": 222,
    "state": "covered",
    "hits": "427"
  },
  {
    "id": "declaration/26/statement/2/decision/body",
    "outcome": "body",
    "line": 234,
    "state": "covered",
    "hits": "353"
  },
  {
    "id": "declaration/26/statement/2/decision/exit",
    "outcome": "exit",
    "line": 234,
    "state": "covered",
    "hits": "31"
  },
  {
    "id": "declaration/26/statement/2/body/statement/2/value/arm/0",
    "outcome": "FunctionDeclaration",
    "line": 238,
    "state": "covered",
    "hits": "276"
  },
  {
    "id": "declaration/26/statement/2/body/statement/2/value/arm/0/body/block/statement/2/decision/body",
    "outcome": "body",
    "line": 241,
    "state": "covered",
    "hits": "354"
  },
  {
    "id": "declaration/26/statement/2/body/statement/2/value/arm/0/body/block/statement/2/decision/exit",
    "outcome": "exit",
    "line": 241,
    "state": "covered",
    "hits": "276"
  },
  {
    "id": "declaration/26/statement/2/body/statement/2/value/arm/1",
    "outcome": "ImportDeclaration",
    "line": 244,
    "state": "covered",
    "hits": "11"
  },
  {
    "id": "declaration/26/statement/2/body/statement/2/value/arm/2",
    "outcome": "TypeDeclaration",
    "line": 247,
    "state": "covered",
    "hits": "8"
  },
  {
    "id": "declaration/26/statement/2/body/statement/2/value/arm/3",
    "outcome": "RecordDeclaration",
    "line": 250,
    "state": "covered",
    "hits": "17"
  },
  {
    "id": "declaration/26/statement/2/body/statement/2/value/arm/4",
    "outcome": "EnumDeclaration",
    "line": 253,
    "state": "covered",
    "hits": "41"
  },
  {
    "id": "declaration/27/tail/decision/true",
    "outcome": "true",
    "line": 266,
    "state": "covered",
    "hits": "2"
  },
  {
    "id": "declaration/27/tail/decision/false",
    "outcome": "false",
    "line": 266,
    "state": "covered",
    "hits": "3"
  },
  {
    "id": "declaration/27/tail/false/tail/decision/true",
    "outcome": "true",
    "line": 267,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/27/tail/false/tail/decision/false",
    "outcome": "false",
    "line": 267,
    "state": "covered",
    "hits": "3"
  },
  {
    "id": "declaration/27/tail/false/tail/false/tail/decision/true",
    "outcome": "true",
    "line": 268,
    "state": "covered",
    "hits": "1"
  },
  {
    "id": "declaration/27/tail/false/tail/false/tail/decision/false",
    "outcome": "false",
    "line": 268,
    "state": "covered",
    "hits": "2"
  },
  {
    "id": "declaration/27/tail/false/tail/false/tail/false/tail/decision/true",
    "outcome": "true",
    "line": 269,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/27/tail/false/tail/false/tail/false/tail/decision/false",
    "outcome": "false",
    "line": 269,
    "state": "covered",
    "hits": "2"
  },
  {
    "id": "declaration/27/tail/false/tail/false/tail/false/tail/false/tail/decision/true",
    "outcome": "true",
    "line": 270,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/27/tail/false/tail/false/tail/false/tail/false/tail/decision/false",
    "outcome": "false",
    "line": 270,
    "state": "covered",
    "hits": "2"
  },
  {
    "id": "declaration/27/tail/false/tail/false/tail/false/tail/false/tail/false/tail/decision/true",
    "outcome": "true",
    "line": 271,
    "state": "covered",
    "hits": "1"
  },
  {
    "id": "declaration/27/tail/false/tail/false/tail/false/tail/false/tail/false/tail/decision/false",
    "outcome": "false",
    "line": 271,
    "state": "covered",
    "hits": "1"
  },
  {
    "id": "declaration/29/statement/1/value/arm/0",
    "outcome": "None",
    "line": 291,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/29/statement/1/value/arm/1",
    "outcome": "Some",
    "line": 292,
    "state": "covered",
    "hits": "6"
  },
  {
    "id": "declaration/29/statement/5/value/decision/evaluate-right",
    "outcome": "evaluate-right",
    "line": 303,
    "state": "covered",
    "hits": "4"
  },
  {
    "id": "declaration/29/statement/5/value/decision/skip-right",
    "outcome": "skip-right",
    "line": 303,
    "state": "covered",
    "hits": "2"
  },
  {
    "id": "declaration/29/statement/5/value/left/decision/evaluate-right",
    "outcome": "evaluate-right",
    "line": 303,
    "state": "covered",
    "hits": "4"
  },
  {
    "id": "declaration/29/statement/5/value/left/decision/skip-right",
    "outcome": "skip-right",
    "line": 303,
    "state": "covered",
    "hits": "2"
  },
  {
    "id": "declaration/29/statement/5/value/left/left/decision/evaluate-right",
    "outcome": "evaluate-right",
    "line": 303,
    "state": "covered",
    "hits": "4"
  },
  {
    "id": "declaration/29/statement/5/value/left/left/decision/skip-right",
    "outcome": "skip-right",
    "line": 303,
    "state": "covered",
    "hits": "2"
  },
  {
    "id": "declaration/29/statement/6/decision/body",
    "outcome": "body",
    "line": 306,
    "state": "covered",
    "hits": "30"
  },
  {
    "id": "declaration/29/statement/6/decision/exit",
    "outcome": "exit",
    "line": 306,
    "state": "covered",
    "hits": "6"
  },
  {
    "id": "declaration/29/statement/7/decision/body",
    "outcome": "body",
    "line": 309,
    "state": "covered",
    "hits": "18"
  },
  {
    "id": "declaration/29/statement/7/decision/exit",
    "outcome": "exit",
    "line": 309,
    "state": "covered",
    "hits": "6"
  },
  {
    "id": "declaration/29/statement/7/body/statement/1/decision/body",
    "outcome": "body",
    "line": 311,
    "state": "covered",
    "hits": "54"
  },
  {
    "id": "declaration/29/statement/7/body/statement/1/decision/exit",
    "outcome": "exit",
    "line": 311,
    "state": "covered",
    "hits": "18"
  },
  {
    "id": "declaration/29/statement/7/body/statement/1/body/tail/decision/true",
    "outcome": "true",
    "line": 312,
    "state": "covered",
    "hits": "18"
  },
  {
    "id": "declaration/29/statement/7/body/statement/1/body/tail/decision/false",
    "outcome": "false",
    "line": 312,
    "state": "covered",
    "hits": "36"
  },
  {
    "id": "declaration/29/statement/7/body/statement/4/value/decision/true",
    "outcome": "true",
    "line": 318,
    "state": "covered",
    "hits": "12"
  },
  {
    "id": "declaration/29/statement/7/body/statement/4/value/decision/false",
    "outcome": "false",
    "line": 318,
    "state": "covered",
    "hits": "6"
  },
  {
    "id": "declaration/29/statement/7/body/statement/5/value/decision/evaluate-right",
    "outcome": "evaluate-right",
    "line": 319,
    "state": "covered",
    "hits": "12"
  },
  {
    "id": "declaration/29/statement/7/body/statement/5/value/decision/skip-right",
    "outcome": "skip-right",
    "line": 319,
    "state": "covered",
    "hits": "6"
  },
  {
    "id": "declaration/29/statement/7/body/statement/6/decision/body",
    "outcome": "body",
    "line": 320,
    "state": "covered",
    "hits": "4242"
  },
  {
    "id": "declaration/29/statement/7/body/statement/6/decision/exit",
    "outcome": "exit",
    "line": 320,
    "state": "covered",
    "hits": "18"
  },
  {
    "id": "declaration/29/statement/7/body/statement/6/body/tail/decision/true",
    "outcome": "true",
    "line": 321,
    "state": "covered",
    "hits": "2828"
  },
  {
    "id": "declaration/29/statement/7/body/statement/6/body/tail/decision/false",
    "outcome": "false",
    "line": 321,
    "state": "covered",
    "hits": "1414"
  },
  {
    "id": "declaration/29/statement/7/body/statement/6/body/tail/condition/decision/evaluate-right",
    "outcome": "evaluate-right",
    "line": 321,
    "state": "covered",
    "hits": "2828"
  },
  {
    "id": "declaration/29/statement/7/body/statement/6/body/tail/condition/decision/skip-right",
    "outcome": "skip-right",
    "line": 321,
    "state": "covered",
    "hits": "1414"
  },
  {
    "id": "declaration/29/tail/decision/true",
    "outcome": "true",
    "line": 331,
    "state": "covered",
    "hits": "4"
  },
  {
    "id": "declaration/29/tail/decision/false",
    "outcome": "false",
    "line": 331,
    "state": "covered",
    "hits": "2"
  },
  {
    "id": "declaration/29/tail/condition/decision/evaluate-right",
    "outcome": "evaluate-right",
    "line": 331,
    "state": "covered",
    "hits": "4"
  },
  {
    "id": "declaration/29/tail/condition/decision/skip-right",
    "outcome": "skip-right",
    "line": 331,
    "state": "covered",
    "hits": "2"
  },
  {
    "id": "declaration/31/statement/3/value/decision/true",
    "outcome": "true",
    "line": 349,
    "state": "covered",
    "hits": "4"
  },
  {
    "id": "declaration/31/statement/3/value/decision/false",
    "outcome": "false",
    "line": 349,
    "state": "covered",
    "hits": "1"
  },
  {
    "id": "declaration/31/statement/5/decision/body",
    "outcome": "body",
    "line": 353,
    "state": "covered",
    "hits": "5"
  },
  {
    "id": "declaration/31/statement/5/decision/exit",
    "outcome": "exit",
    "line": 353,
    "state": "covered",
    "hits": "5"
  },
  {
    "id": "declaration/31/statement/5/body/statement/2/value/decision/true",
    "outcome": "true",
    "line": 356,
    "state": "covered",
    "hits": "3"
  },
  {
    "id": "declaration/31/statement/5/body/statement/2/value/decision/false",
    "outcome": "false",
    "line": 356,
    "state": "covered",
    "hits": "2"
  },
  {
    "id": "declaration/31/statement/5/body/statement/2/value/condition/decision/evaluate-right",
    "outcome": "evaluate-right",
    "line": 356,
    "state": "covered",
    "hits": "4"
  },
  {
    "id": "declaration/31/statement/5/body/statement/2/value/condition/decision/skip-right",
    "outcome": "skip-right",
    "line": 356,
    "state": "covered",
    "hits": "1"
  },
  {
    "id": "declaration/31/statement/5/body/statement/2/value/condition/left/right/decision/true",
    "outcome": "true",
    "line": 356,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/31/statement/5/body/statement/2/value/condition/left/right/decision/false",
    "outcome": "false",
    "line": 356,
    "state": "covered",
    "hits": "5"
  },
  {
    "id": "declaration/31/statement/5/body/statement/2/value/false/tail/decision/true",
    "outcome": "true",
    "line": 363,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/31/statement/5/body/statement/2/value/false/tail/decision/false",
    "outcome": "false",
    "line": 363,
    "state": "covered",
    "hits": "2"
  },
  {
    "id": "declaration/31/statement/6/decision/body",
    "outcome": "body",
    "line": 371,
    "state": "covered",
    "hits": "4"
  },
  {
    "id": "declaration/31/statement/6/decision/exit",
    "outcome": "exit",
    "line": 371,
    "state": "covered",
    "hits": "5"
  },
  {
    "id": "declaration/31/statement/6/body/statement/0/value/decision/evaluate-right",
    "outcome": "evaluate-right",
    "line": 372,
    "state": "covered",
    "hits": "2"
  },
  {
    "id": "declaration/31/statement/6/body/statement/0/value/decision/skip-right",
    "outcome": "skip-right",
    "line": 372,
    "state": "covered",
    "hits": "2"
  },
  {
    "id": "declaration/31/tail/args/0/decision/evaluate-right",
    "outcome": "evaluate-right",
    "line": 375,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/31/tail/args/0/decision/skip-right",
    "outcome": "skip-right",
    "line": 375,
    "state": "covered",
    "hits": "5"
  },
  {
    "id": "declaration/31/tail/args/0/left/decision/evaluate-right",
    "outcome": "evaluate-right",
    "line": 375,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/31/tail/args/0/left/decision/skip-right",
    "outcome": "skip-right",
    "line": 375,
    "state": "covered",
    "hits": "5"
  },
  {
    "id": "declaration/31/tail/args/0/left/left/decision/evaluate-right",
    "outcome": "evaluate-right",
    "line": 375,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/31/tail/args/0/left/left/decision/skip-right",
    "outcome": "skip-right",
    "line": 375,
    "state": "covered",
    "hits": "5"
  },
  {
    "id": "declaration/32/tail/decision/true",
    "outcome": "true",
    "line": 387,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/decision/false",
    "outcome": "false",
    "line": 387,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/false/tail/arm/0",
    "outcome": "Error",
    "line": 393,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/false/tail/arm/1",
    "outcome": "Ok",
    "line": 397,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/false/tail/arm/1/body/block/statement/8/value/decision/true",
    "outcome": "true",
    "line": 408,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/false/tail/arm/1/body/block/statement/8/value/decision/false",
    "outcome": "false",
    "line": 408,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/false/tail/arm/1/body/block/statement/8/value/condition/decision/evaluate-right",
    "outcome": "evaluate-right",
    "line": 408,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/false/tail/arm/1/body/block/statement/8/value/condition/decision/skip-right",
    "outcome": "skip-right",
    "line": 408,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/false/tail/arm/1/body/block/statement/9/decision/body",
    "outcome": "body",
    "line": 411,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/false/tail/arm/1/body/block/statement/9/decision/exit",
    "outcome": "exit",
    "line": 411,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/false/tail/arm/1/body/block/statement/9/body/statement/1/value/decision/true",
    "outcome": "true",
    "line": 413,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/false/tail/arm/1/body/block/statement/9/body/statement/1/value/decision/false",
    "outcome": "false",
    "line": 413,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/false/tail/arm/1/body/block/statement/9/body/tail/decision/true",
    "outcome": "true",
    "line": 417,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/false/tail/arm/1/body/block/statement/9/body/tail/decision/false",
    "outcome": "false",
    "line": 417,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/false/tail/arm/1/body/block/statement/9/body/tail/true/tail/arm/0",
    "outcome": "Error",
    "line": 423,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/false/tail/arm/1/body/block/statement/9/body/tail/true/tail/arm/1",
    "outcome": "Ok",
    "line": 426,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/false/tail/arm/1/body/block/statement/9/body/tail/true/tail/arm/1/body/block/statement/3/value/decision/evaluate-right",
    "outcome": "evaluate-right",
    "line": 437,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/false/tail/arm/1/body/block/statement/9/body/tail/true/tail/arm/1/body/block/statement/3/value/decision/skip-right",
    "outcome": "skip-right",
    "line": 437,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/false/tail/arm/1/body/block/statement/9/body/tail/true/tail/arm/1/body/block/statement/3/value/left/decision/evaluate-right",
    "outcome": "evaluate-right",
    "line": 437,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/false/tail/arm/1/body/block/statement/9/body/tail/true/tail/arm/1/body/block/statement/3/value/left/decision/skip-right",
    "outcome": "skip-right",
    "line": 437,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/false/tail/arm/1/body/block/statement/9/body/tail/true/tail/arm/1/body/block/tail/decision/true",
    "outcome": "true",
    "line": 438,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/false/tail/arm/1/body/block/statement/9/body/tail/true/tail/arm/1/body/block/tail/decision/false",
    "outcome": "false",
    "line": 438,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/false/tail/arm/1/body/block/statement/10/decision/body",
    "outcome": "body",
    "line": 445,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/false/tail/arm/1/body/block/statement/10/decision/exit",
    "outcome": "exit",
    "line": 445,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/false/tail/arm/1/body/block/statement/10/body/statement/0/value/decision/evaluate-right",
    "outcome": "evaluate-right",
    "line": 446,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/false/tail/arm/1/body/block/statement/10/body/statement/0/value/decision/skip-right",
    "outcome": "skip-right",
    "line": 446,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/false/tail/arm/1/body/block/statement/11/value/decision/evaluate-right",
    "outcome": "evaluate-right",
    "line": 448,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/false/tail/arm/1/body/block/statement/11/value/decision/skip-right",
    "outcome": "skip-right",
    "line": 448,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/false/tail/arm/1/body/block/tail/decision/true",
    "outcome": "true",
    "line": 449,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/false/tail/arm/1/body/block/tail/decision/false",
    "outcome": "false",
    "line": 449,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/false/tail/arm/1/body/block/tail/false/tail/decision/true",
    "outcome": "true",
    "line": 454,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/false/tail/arm/1/body/block/tail/false/tail/decision/false",
    "outcome": "false",
    "line": 454,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/false/tail/arm/1/body/block/tail/false/tail/true/tail/decision/true",
    "outcome": "true",
    "line": 455,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/false/tail/arm/1/body/block/tail/false/tail/true/tail/decision/false",
    "outcome": "false",
    "line": 455,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/false/tail/arm/1/body/block/tail/false/tail/false/tail/decision/true",
    "outcome": "true",
    "line": 463,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/false/tail/arm/1/body/block/tail/false/tail/false/tail/decision/false",
    "outcome": "false",
    "line": 463,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/false/tail/arm/1/body/block/tail/false/tail/false/tail/condition/decision/evaluate-right",
    "outcome": "evaluate-right",
    "line": 463,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/false/tail/arm/1/body/block/tail/false/tail/false/tail/condition/decision/skip-right",
    "outcome": "skip-right",
    "line": 463,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/false/tail/arm/1/body/block/tail/false/tail/false/tail/condition/left/decision/evaluate-right",
    "outcome": "evaluate-right",
    "line": 463,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/false/tail/arm/1/body/block/tail/false/tail/false/tail/condition/left/decision/skip-right",
    "outcome": "skip-right",
    "line": 463,
    "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
  },
  {
    "id": "declaration/3",
    "reason": "import",
    "line": 4
  },
  {
    "id": "declaration/4",
    "reason": "import",
    "line": 5
  },
  {
    "id": "declaration/5",
    "reason": "import",
    "line": 6
  },
  {
    "id": "declaration/6",
    "reason": "import",
    "line": 7
  },
  {
    "id": "declaration/7",
    "reason": "import",
    "line": 8
  },
  {
    "id": "declaration/8",
    "reason": "import",
    "line": 9
  },
  {
    "id": "declaration/9",
    "reason": "import",
    "line": 10
  },
  {
    "id": "declaration/10",
    "reason": "import",
    "line": 11
  },
  {
    "id": "declaration/11",
    "reason": "import",
    "line": 12
  },
  {
    "id": "declaration/12",
    "reason": "import",
    "line": 13
  },
  {
    "id": "declaration/13",
    "reason": "import",
    "line": 25
  },
  {
    "id": "declaration/14",
    "reason": "import",
    "line": 26
  },
  {
    "id": "declaration/15",
    "reason": "import",
    "line": 31
  },
  {
    "id": "declaration/16",
    "reason": "import",
    "line": 32
  },
  {
    "id": "declaration/17",
    "reason": "record-declaration",
    "line": 39
  },
  {
    "id": "declaration/20",
    "reason": "record-declaration",
    "line": 63
  },
  {
    "id": "declaration/28/tail/args/0/receiver",
    "reason": "namespace-qualifier",
    "line": 276
  },
  {
    "id": "declaration/30",
    "reason": "record-declaration",
    "line": 338
  },
  {
    "id": "declaration/31/statement/6/body/statement/0/value/right/left/receiver",
    "reason": "namespace-qualifier",
    "line": 372
  },
  {
    "id": "declaration/32/tail/true/statement/0/value/receiver",
    "reason": "namespace-qualifier",
    "line": 388
  },
  {
    "id": "declaration/32/tail/false/statement/0/value/receiver/receiver",
    "reason": "namespace-qualifier",
    "line": 391
  },
  {
    "id": "declaration/32/tail/false/tail/arm/0/body/block/statement/0/value/receiver",
    "reason": "namespace-qualifier",
    "line": 394
  },
  {
    "id": "declaration/32/tail/false/tail/arm/1/body/block/statement/5/value/receiver",
    "reason": "namespace-qualifier",
    "line": 405
  },
  {
    "id": "declaration/32/tail/false/tail/arm/1/body/block/statement/5/value/args/0/receiver",
    "reason": "namespace-qualifier",
    "line": 405
  },
  {
    "id": "declaration/32/tail/false/tail/arm/1/body/block/statement/6/value/receiver",
    "reason": "namespace-qualifier",
    "line": 406
  },
  {
    "id": "declaration/32/tail/false/tail/arm/1/body/block/statement/6/value/args/0/receiver/receiver",
    "reason": "namespace-qualifier",
    "line": 406
  },
  {
    "id": "declaration/32/tail/false/tail/arm/1/body/block/statement/7/value/receiver",
    "reason": "namespace-qualifier",
    "line": 407
  },
  {
    "id": "declaration/32/tail/false/tail/arm/1/body/block/statement/9/body/statement/0/value/receiver",
    "reason": "namespace-qualifier",
    "line": 412
  },
  {
    "id": "declaration/32/tail/false/tail/arm/1/body/block/statement/9/body/tail/true/statement/2/value/receiver",
    "reason": "namespace-qualifier",
    "line": 420
  },
  {
    "id": "declaration/32/tail/false/tail/arm/1/body/block/tail/true/statement/0/value/receiver",
    "reason": "namespace-qualifier",
    "line": 450
  },
  {
    "id": "declaration/32/tail/false/tail/arm/1/body/block/tail/false/tail/true/tail/false/statement/0/value/receiver",
    "reason": "namespace-qualifier",
    "line": 459
  },
  {
    "id": "declaration/32/tail/false/tail/arm/1/body/block/tail/false/tail/false/tail/false/statement/0/value/receiver",
    "reason": "namespace-qualifier",
    "line": 470
  }
]