All files

src/compiler/source_maps.panack

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

    1 import stdlib/bytes as byte_buffer
    2 import stdlib/path as std_path
    3 import stdlib/filesystem/legacy as std_filesystem
    4 pub import project/src/compiler/loader::{LoadedProject}
    5 import project/src/compiler/loader::{loaded_binding_graph}
    6 import project/src/compiler/diagnostics::{diagnostic_character}
    7 import project/src/compiler/module_emission::{module_emission_symbol}
    8 pub import project/src/compiler/module_bindings::{DeclarationIdentity, ModuleIdentity, ModuleDeclarationKind.ModuleFunction, source_module_identity}
    9 import project/src/compiler/module_resolution::{ModuleBindingGraph}
   10 pub import project/src/compiler/types::{SourcePos, SourceSpan}
   11 import project/src/bytecode/codec::{encode_u32, encode_text}
   12 pub import project/src/compiler/emitter::{SourceMappedProgram}
   13 import project/src/compiler/emitter::{render_instruction}
   14 import project/src/compiler/parser::{TopLevel.ImportDeclaration,TopLevel.TypeDeclaration,TopLevel.EnumDeclaration,TopLevel.RecordDeclaration,TopLevel.FunctionDeclaration}
   15 
   16 // Serialize and replay bounded, local source maps. Foreign paths and lengths are
   17 // never instructions to open files or allocate unchecked buffers.
   18 
   19 pub record SourceSnapshot {
   20   name: Str,
   21   path: Str,
   22   text: Str
   23 }
   24 
   25 pub record SourceMapFunctionSelector {
   26   identity: DeclarationIdentity,
   27   source_path: Str,
   28   emitted_name: Str,
   29   display_name: Str
   30 }
   31 
   32 // Tool queries use stable module identities rather than the private emitted
   33 // symbol. Bare names remain convenient only while they identify one function.
   34 pub source_map_function_selector(
   35   project: LoadedProject,
   36   selector: Str,
   37   entry_path: Str,
   38   root: Str,
   39   stdlib_root: Str
   40 ): Result[SourceMapFunctionSelector, Str] {
   41   mut separator: Option[Nat] = None()
   42   for index in 0..selector.len() {
   43     if selector[index] == ":" {
   44       separator = Some(index)
   45     }
   46   }
   47   mut selected_module: Str = ""
   48   mut function_name: Str = selector
   49   qualified: Bool = match separator {
   50     None() => false,
   51     Some(index) => {
   52       selected_module = selector.slice(0, index)
   53       function_name = selector.slice(index + 1, selector.len())
   54       true
   55     }
   56   }
   57   if function_name == "" || (qualified && selected_module == "") {
   58     Error("invalid function selector " + source_map_escape(selector))
   59   } else {
   60     graph: ModuleBindingGraph = loaded_binding_graph(project.modules, root, stdlib_root)
   61     entry: ModuleIdentity = source_module_identity(entry_path, root, stdlib_root)
   62     mut found: Option[SourceMapFunctionSelector] = None()
   63     mut matches: Nat = 0
   64     for module in project.modules {
   65       module_selector: Str = source_identifier(module.source_path, root, stdlib_root)
   66       module_matches: Bool = !qualified || module_selector == selected_module
   67       if module_matches {
   68         for binding in module.bindings.declarations {
   69           if binding.kind == ModuleFunction() && binding.identity.name == function_name {
   70             found = Some(SourceMapFunctionSelector(
   71               binding.identity,
   72               module.source_path,
   73               module_emission_symbol(graph, entry, binding.identity),
   74               selector
   75             ))
   76             matches = matches + 1
   77           }
   78         }
   79       }
   80     }
   81     if matches > 1 {
   82       Error("ambiguous function selector " + source_map_escape(selector) + "; use a module-qualified selector")
   83     } else {
   84       match found {
   85         None() => if qualified {
   86           Error("mismatched module identity selector " + source_map_escape(selector))
   87         } else {
   88           Error("unknown function selector " + source_map_escape(selector))
   89         },
   90         Some(value) => Ok(value)
   91       }
   92     }
   93   }
   94 }
   95 
   96 pure source_snapshot_less(left: SourceSnapshot, right: SourceSnapshot): Bool {
   97   left.name < right.name
   98 }
   99 
  100 pure source_path_parts(path: Str): [Str] {
  101   mut parts: [Str] = []
  102   mut start: Nat = 0
  103   mut cursor: Nat = 0
  104 
  105   while cursor <= path.len() {
  106     if cursor == path.len() || path[cursor] == "/" {
  107       if start < cursor {
  108         parts = parts.append(path.slice(start, cursor))
  109       }
  110       start = cursor + 1
  111     }
  112     cursor = cursor + 1
  113   }
  114 
  115   parts
  116 }
  117 
  118 // Inputs are normalized absolute paths from the loader. Parent segments are
  119 // descriptive identifiers only: the consumer never opens paths from a sidecar.
  120 pub pure source_relative_path(root: Str, path: Str): Str {
  121   base: [Str] = source_path_parts(root)
  122   target: [Str] = source_path_parts(path)
  123   mut common: Nat = 0
  124 
  125   while common < base.len() && common < target.len() && base[common] == target[common] {
  126     common = common + 1
  127   }
  128   mut output: Str = ""
  129   for index in common..base.len() {
  130     output = output + "../"
  131   }
  132   for index in common..target.len() {
  133     output = output + target[index]
  134     if index + 1 < target.len() {
  135       output = output + "/"
  136     }
  137   }
  138 
  139   output
  140 }
  141 
  142 pub pure source_identifier(path: Str, root: Str, stdlib_root: Str): Str {
  143   if path.starts_with_at(stdlib_root + "/", 0) {
  144     "stdlib/" + source_relative_path(stdlib_root, path)
  145   } else {
  146     "project/" + source_relative_path(root, path)
  147   }
  148 }
  149 
  150 pub pure source_snapshots(project: LoadedProject, root: Str, stdlib_root: Str): [SourceSnapshot] {
  151   mut snapshots: [SourceSnapshot] = []
  152 
  153   for path in project.source_paths {
  154     snapshots = snapshots.append(
  155       SourceSnapshot(source_identifier(path, root, stdlib_root), path, project.sources.get(path))
  156     )
  157   }
  158   snapshots.sort_by(@source_snapshot_less)
  159 }
  160 
  161 pub pure source_map_blob(data: Bytes): Bytes {
  162   encode_u32(data.length()).join(data)
  163 }
  164 
  165 pub pure source_map_position(position: SourcePos): Bytes {
  166   encode_u32(position.offset).join(encode_u32(position.line)).join(
  167     encode_u32(position.column)
  168   )
  169 }
  170 
  171 // Join a bounded set of chunks as a balanced tree. In particular, do not copy
  172 // the entire captured source closure for each emitted instruction.
  173 pub pure source_map_join(chunks: [Bytes], start: Nat, end: Nat): Bytes {
  174   if start >= end {
  175     byte_buffer.empty()
  176   } else {
  177     if end == start + 1 {
  178       chunks[start]
  179     } else {
  180       middle: Nat = (start + end).divide(2)
  181       source_map_join(chunks, start, middle).join(source_map_join(chunks, middle, end))
  182     }
  183   }
  184 }
  185 
  186 // No consumer decodes foreign bytes. Reproduction by the installed compiler is
  187 // the trust boundary; this marker specifies a format, not producer authentication.
  188 // The format embeds exact artifact/source bytes rather than collision-prone IDs.
  189 pub pure serialize_source_map(
  190   project: LoadedProject,
  191   mapped: SourceMappedProgram,
  192   artifact: Bytes,
  193   entry: Str,
  194   root: Str,
  195   stdlib_root: Str
  196 ): Bytes {
  197   snapshots: [SourceSnapshot] = source_snapshots(project, root, stdlib_root)
  198   mut valid: Bool = artifact.length() <= 16777216 && snapshots.len() <= 256
  199   mut chunks: [Bytes] = ["PANACKMAP1\nlocal-replay-v9\n".encode_utf8(),
  200     encode_text(source_identifier(
  201     entry,
  202     root,
  203     stdlib_root
  204   )), source_map_blob(artifact), encode_u32(snapshots.len())]
  205   mut size: Nat = 0
  206 
  207   for chunk in chunks {
  208     size = size + chunk.length()
  209   }
  210   valid = valid && size <= 16777216
  211   mut indices: Map[Str, Nat] = map()
  212   mut index: Nat = 0
  213   for snapshot in snapshots {
  214     if valid {
  215       indices = indices.put(snapshot.path, index)
  216       name: Bytes = encode_text(snapshot.name)
  217       text: Bytes = encode_text(snapshot.text)
  218       size = size + name.length() + text.length()
  219       valid = size <= 16777216
  220       if valid {
  221         chunks = chunks.append(name).append(text)
  222       }
  223       index = index + 1
  224     }
  225   }
  226   chunks = chunks.append(encode_u32(mapped.sources.len()))
  227   size = size + 4
  228   for function in mapped.sources {
  229     if valid {
  230       header: Bytes = encode_text(function.name).join(encode_u32(function.entries.len()))
  231       size = size + header.length()
  232       valid = size <= 16777216
  233       if valid {
  234         chunks = chunks.append(header)
  235       }
  236       for location in function.entries {
  237         span: SourceSpan = location.span
  238         size = size + 33
  239         if valid &&
  240           size <= 16777216 &&
  241           indices.has(span.start.file) &&
  242           span.start.file == span.end.file {
  243           mut chunk: Bytes = encode_u32(location.index).join(
  244             encode_u32(indices.get(span.start.file))
  245           )
  246           chunk = chunk.join(source_map_position(span.start))
  247           chunk = chunk.join(source_map_position(span.end))
  248           chunk = chunk.push(if location.lowered {
  249               1
  250             } else {
  251               0
  252             })
  253           chunks = chunks.append(chunk)
  254         } else {
  255           valid = false
  256         }
  257       }
  258     }
  259   }
  260   if valid && size <= 16777216 {
  261     source_map_join(chunks, 0, chunks.len())
  262   } else {
  263     byte_buffer.empty()
  264   }
  265 }
  266 
  267 pub source_map_read(path: Str, limit: Nat): Result[Bytes, Str] {
  268   match std_path.from_text(path) {
  269     Error(error) => Error("invalid path"),
  270     Ok(file) => match std_filesystem.read(file, limit) {
  271       Error(error) => Error("file unavailable or exceeds source-map limit"),
  272       Ok(data) => Ok(data)
  273     }
  274   }
  275 }
  276 
  277 pub source_map_matches(path: Str, expected: Bytes): Bool {
  278   match source_map_read(path, expected.length()) {
  279     Error(error) => false,
  280     Ok(actual) => actual == expected
  281   }
  282 }
  283 
  284 // Detect observed modifications since loading. This is not an atomic snapshot
  285 // of a concurrently edited tree; all reported coordinates describe captured text.
  286 pub source_snapshots_unchanged(project: LoadedProject): Bool {
  287   mut unchanged: Bool = true
  288 
  289   for path in project.source_paths {
  290     if !source_map_matches(path, project.sources.get(path).encode_utf8()) {
  291       unchanged = false
  292     }
  293   }
  294   unchanged
  295 }
  296 
  297 pub pure source_map_escape(text: Str): Str {
  298   mut output: Str = ""
  299 
  300   for index in 0..text.len() {
  301     output = output + diagnostic_character(text[index])
  302   }
  303 
  304   output
  305 }
  306 
  307 pub pure source_map_location(
  308   project: LoadedProject,
  309   mapped: SourceMappedProgram,
  310   emitted_name: Str,
  311   display_name: Str,
  312   pc: Nat,
  313   root: Str,
  314   stdlib_root: Str
  315 ): Str {
  316   mut output: Str = "source-map: unavailable"
  317 
  318   for function in mapped.sources {
  319     if function.name == emitted_name {
  320       for location in function.entries {
  321         if location.index == pc {
  322           span: SourceSpan = location.span
  323           kind: Str = if location.lowered {
  324             "lowered"
  325           } else {
  326             "expression"
  327           }
  328           file: Str = source_map_escape(source_identifier(span.start.file, root, stdlib_root))
  329           name: Str = source_map_escape(display_name)
  330           start: Nat = span.start.offset
  331           end: Nat = span.end.offset
  332           line: Nat = span.start.line
  333           column: Nat = span.start.column
  334           end_line: Nat = span.end.line
  335           end_column: Nat = span.end.column
  336           source: Str = project.sources.get(span.start.file)
  337           expression: Str = source_map_escape(source.slice(start, end))
  338           if output == "source-map: unavailable" { output = "" } else { output = output + "\n\n" }
  339           output = output + "source-map: ${kind}\nfunction: ${name}\ninstruction: ${pc}\nfile: ${file}\nrange: ${start}..${end}\nstart: ${line}:${column}\nend: ${end_line}:${end_column}\nexpression: ${expression}" + if location.reason == "" { "" } else { "\nreason: " + location.reason }
  340         }
  341       }
  342     }
  343   }
  344 
  345   output
  346 }
  347 
  348 pure source_map_contains(span: SourceSpan, line: Nat, column: Nat): Bool {
  349   (line > span.start.line || (line == span.start.line && column >= span.start.column)) &&
  350     (line < span.end.line || (line == span.end.line && column < span.end.column))
  351 }
  352 
  353 // Search only the replayed closure. Caller-supplied module identifiers never
  354 // become filesystem paths. For nested constructs choose the innermost mapping.
  355 pub pure source_map_reverse(project: LoadedProject, mapped: SourceMappedProgram, module_name: Str,
  356   line: Nat, column: Nat, root: Str, library: Str, entry: ModuleIdentity): Str {
  357   mut selected: Option[SourceSpan] = None()
  358   for function in mapped.sources {
  359     for item in function.entries {
  360       span = item.span
  361       if source_identifier(span.start.file, root, library) == module_name && source_map_contains(span, line, column) {
  362         match selected {
  363           None() => { selected = Some(span) },
  364           Some(previous) => if span.start.offset >= previous.start.offset && span.end.offset <= previous.end.offset {
  365             selected = Some(span)
  366           }
  367         }
  368       }
  369     }
  370   }
  371   match selected {
  372     None() => {
  373       mut reason = "No recorded source construct covers this position."
  374       for module in project.modules {
  375         if source_identifier(module.source_path, root, library) == module_name {
  376           for i in 0..module.parsed.syntax.len() {
  377             if source_map_contains(module.parsed.syntax[i].span, line, column) {
  378               reason = match module.parsed.program.declarations[i] {
  379                 ImportDeclaration(path) => "This import selects a module at compile time. It produces no standalone instructions.",
  380                 TypeDeclaration(name,base,guard_name,guard) => "Type " + source_map_escape(name) + " constrains values during checking. The declaration produces no standalone instructions.",
  381                 EnumDeclaration(name,parameters,variants) => "Enum " + source_map_escape(name) + " defines variants. Constructor instructions are emitted at their uses.",
  382                 RecordDeclaration(name,parameters,fields) => "Record " + source_map_escape(name) + " defines fields. Its construction and field reads have instructions at their uses.",
  383                 FunctionDeclaration(name,parameters,returns,pure_flag,async_flag,body,type_parameters) => {
  384                   symbol = module_emission_symbol(loaded_binding_graph(project.modules,root,library),entry,DeclarationIdentity(module.bindings.identity,name))
  385                   mut emitted = false
  386                   for f in mapped.bytecode.functions { if f.name == symbol { emitted = true } }
  387                   if !emitted && symbol.starts_with("$core_") { "Unused compiler-owned core function: no body was emitted." }
  388                   else if emitted && type_parameters.len() > 0 { "This generic declaration has one shared compiled body. Its declaration header has no standalone instruction." }
  389                   else { "No instruction is mapped to this part of the function declaration." }
  390                 }
  391               }
  392             }
  393           }
  394         }
  395       }
  396       reason
  397     },
  398     Some(span) => {
  399       graph = loaded_binding_graph(project.modules,root,library)
  400       mut names: Map[Str,Str] = map()
  401       mut shared: Set[Str] = set()
  402       for module in project.modules {
  403         for declaration in module.parsed.program.declarations {
  404           match declaration {
  405             FunctionDeclaration(name,parameters,returns,pure_flag,async_flag,body,type_parameters) => {
  406               symbol = module_emission_symbol(graph,entry,DeclarationIdentity(module.bindings.identity,name))
  407               names = names.put(symbol,source_identifier(module.source_path,root,library) + ":" + name)
  408               if type_parameters.len() > 0 { shared = shared.add(symbol) }
  409             },
  410             ImportDeclaration(path) => {}, TypeDeclaration(name,base,guard_name,guard) => {},
  411             EnumDeclaration(name,parameters,variants) => {}, RecordDeclaration(name,parameters,fields) => {}
  412           }
  413         }
  414       }
  415       source = project.sources.get(span.start.file)
  416       mut output = "Source: " + source_map_escape(source.slice(span.start.offset, span.end.offset))
  417       for i in 0..mapped.sources.len() {
  418         function = mapped.sources[i]
  419         for item in function.entries {
  420           if item.span == span {
  421             pc = item.index
  422             output = output + "\n" + source_map_escape(if names.has(function.name) { names.get(function.name) } else { function.name }) + (if shared.has(function.name) { " (shared generic body)" } else { "" }) + " instruction ${pc}: " +
  423               source_map_escape(render_instruction(mapped.bytecode.functions[i].instructions[pc])) +
  424               (if item.reason == "" { "" } else { " (" + item.reason + ")" })
  425           }
  426         }
  427       }
  428       output
  429     }
  430   }
  431 }
  432 
  433 // Fresh destinations prevent overwriting loaded sources through existing hard
  434 // links or symlinks as well as ordinary path aliases. Publication is not atomic;
  435 // consumers reject incomplete pairs. Output directories must be caller-controlled.
  436 pub source_map_destination_available(path: Str): Bool {
  437   match std_path.from_text(path) {
  438     Error(error) => false,
  439     Ok(file) => match std_filesystem.metadata(file) {
  440       Ok(metadata) => false,
  441       Error(error) => error.code == "not_found"
  442     }
  443   }
  444 }
  445 
  446 pub source_map_write(path: Str, data: Bytes): Bool {
  447   match std_path.from_text(path) {
  448     Error(error) => false,
  449     Ok(file) => match std_filesystem.write(file, data) {
  450       Error(error) => false,
  451       Ok(unit) => true
  452     }
  453   }
  454 }
  455 

Functions

[
  {
    "id": "declaration/16",
    "name": "source_map_function_selector",
    "line": 34,
    "state": "zero",
    "entries": "0"
  },
  {
    "id": "declaration/17",
    "name": "source_snapshot_less",
    "line": 96,
    "state": "covered",
    "entries": "36"
  },
  {
    "id": "declaration/18",
    "name": "source_path_parts",
    "line": 100,
    "state": "covered",
    "entries": "118"
  },
  {
    "id": "declaration/19",
    "name": "source_relative_path",
    "line": 120,
    "state": "covered",
    "entries": "59"
  },
  {
    "id": "declaration/20",
    "name": "source_identifier",
    "line": 142,
    "state": "covered",
    "entries": "57"
  },
  {
    "id": "declaration/21",
    "name": "source_snapshots",
    "line": 150,
    "state": "covered",
    "entries": "16"
  },
  {
    "id": "declaration/22",
    "name": "source_map_blob",
    "line": 161,
    "state": "covered",
    "entries": "80"
  },
  {
    "id": "declaration/23",
    "name": "source_map_position",
    "line": 165,
    "state": "covered",
    "entries": "6476"
  },
  {
    "id": "declaration/24",
    "name": "source_map_join",
    "line": 173,
    "state": "covered",
    "entries": "108543"
  },
  {
    "id": "declaration/25",
    "name": "serialize_source_map",
    "line": 189,
    "state": "covered",
    "entries": "6"
  },
  {
    "id": "declaration/26",
    "name": "source_map_read",
    "line": 267,
    "state": "covered",
    "entries": "7"
  },
  {
    "id": "declaration/27",
    "name": "source_map_matches",
    "line": 277,
    "state": "covered",
    "entries": "7"
  },
  {
    "id": "declaration/28",
    "name": "source_snapshots_unchanged",
    "line": 286,
    "state": "covered",
    "entries": "3"
  },
  {
    "id": "declaration/29",
    "name": "source_map_escape",
    "line": 297,
    "state": "covered",
    "entries": "819"
  },
  {
    "id": "declaration/30",
    "name": "source_map_location",
    "line": 307,
    "state": "covered",
    "entries": "7"
  },
  {
    "id": "declaration/31",
    "name": "source_map_contains",
    "line": 348,
    "state": "zero",
    "entries": "0"
  },
  {
    "id": "declaration/32",
    "name": "source_map_reverse",
    "line": 355,
    "state": "zero",
    "entries": "0"
  },
  {
    "id": "declaration/33",
    "name": "source_map_destination_available",
    "line": 436,
    "state": "zero",
    "entries": "0"
  },
  {
    "id": "declaration/34",
    "name": "source_map_write",
    "line": 446,
    "state": "zero",
    "entries": "0"
  }
]

Source branch outcomes

[
  {
    "id": "declaration/16/statement/1/decision/body",
    "outcome": "body",
    "line": 42,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/16/statement/1/decision/exit",
    "outcome": "exit",
    "line": 42,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/16/statement/1/body/tail/decision/true",
    "outcome": "true",
    "line": 43,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/16/statement/1/body/tail/decision/false",
    "outcome": "false",
    "line": 43,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/16/statement/4/value/arm/0",
    "outcome": "None",
    "line": 50,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/16/statement/4/value/arm/1",
    "outcome": "Some",
    "line": 51,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/16/tail/decision/true",
    "outcome": "true",
    "line": 57,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/16/tail/decision/false",
    "outcome": "false",
    "line": 57,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/16/tail/condition/decision/evaluate-right",
    "outcome": "evaluate-right",
    "line": 57,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/16/tail/condition/decision/skip-right",
    "outcome": "skip-right",
    "line": 57,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/16/tail/condition/right/decision/evaluate-right",
    "outcome": "evaluate-right",
    "line": 57,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/16/tail/condition/right/decision/skip-right",
    "outcome": "skip-right",
    "line": 57,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/16/tail/false/statement/4/decision/body",
    "outcome": "body",
    "line": 64,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/16/tail/false/statement/4/decision/exit",
    "outcome": "exit",
    "line": 64,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/16/tail/false/statement/4/body/statement/1/value/decision/evaluate-right",
    "outcome": "evaluate-right",
    "line": 66,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/16/tail/false/statement/4/body/statement/1/value/decision/skip-right",
    "outcome": "skip-right",
    "line": 66,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/16/tail/false/statement/4/body/tail/decision/true",
    "outcome": "true",
    "line": 67,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/16/tail/false/statement/4/body/tail/decision/false",
    "outcome": "false",
    "line": 67,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/16/tail/false/statement/4/body/tail/true/statement/0/decision/body",
    "outcome": "body",
    "line": 68,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/16/tail/false/statement/4/body/tail/true/statement/0/decision/exit",
    "outcome": "exit",
    "line": 68,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/16/tail/false/statement/4/body/tail/true/statement/0/body/tail/decision/true",
    "outcome": "true",
    "line": 69,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/16/tail/false/statement/4/body/tail/true/statement/0/body/tail/decision/false",
    "outcome": "false",
    "line": 69,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/16/tail/false/statement/4/body/tail/true/statement/0/body/tail/condition/decision/evaluate-right",
    "outcome": "evaluate-right",
    "line": 69,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/16/tail/false/statement/4/body/tail/true/statement/0/body/tail/condition/decision/skip-right",
    "outcome": "skip-right",
    "line": 69,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/16/tail/false/tail/decision/true",
    "outcome": "true",
    "line": 81,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/16/tail/false/tail/decision/false",
    "outcome": "false",
    "line": 81,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/16/tail/false/tail/false/tail/arm/0",
    "outcome": "None",
    "line": 85,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/16/tail/false/tail/false/tail/arm/0/body/decision/true",
    "outcome": "true",
    "line": 85,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/16/tail/false/tail/false/tail/arm/0/body/decision/false",
    "outcome": "false",
    "line": 85,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/16/tail/false/tail/false/tail/arm/1",
    "outcome": "Some",
    "line": 90,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/18/statement/3/decision/body",
    "outcome": "body",
    "line": 105,
    "state": "covered",
    "hits": "9386"
  },
  {
    "id": "declaration/18/statement/3/decision/exit",
    "outcome": "exit",
    "line": 105,
    "state": "covered",
    "hits": "118"
  },
  {
    "id": "declaration/18/statement/3/body/statement/0/value/decision/true",
    "outcome": "true",
    "line": 106,
    "state": "covered",
    "hits": "1115"
  },
  {
    "id": "declaration/18/statement/3/body/statement/0/value/decision/false",
    "outcome": "false",
    "line": 106,
    "state": "covered",
    "hits": "8271"
  },
  {
    "id": "declaration/18/statement/3/body/statement/0/value/condition/decision/evaluate-right",
    "outcome": "evaluate-right",
    "line": 106,
    "state": "covered",
    "hits": "9268"
  },
  {
    "id": "declaration/18/statement/3/body/statement/0/value/condition/decision/skip-right",
    "outcome": "skip-right",
    "line": 106,
    "state": "covered",
    "hits": "118"
  },
  {
    "id": "declaration/18/statement/3/body/statement/0/value/true/statement/0/value/decision/true",
    "outcome": "true",
    "line": 107,
    "state": "covered",
    "hits": "996"
  },
  {
    "id": "declaration/18/statement/3/body/statement/0/value/true/statement/0/value/decision/false",
    "outcome": "false",
    "line": 107,
    "state": "covered",
    "hits": "119"
  },
  {
    "id": "declaration/19/statement/3/decision/body",
    "outcome": "body",
    "line": 125,
    "state": "covered",
    "hits": "467"
  },
  {
    "id": "declaration/19/statement/3/decision/exit",
    "outcome": "exit",
    "line": 125,
    "state": "covered",
    "hits": "59"
  },
  {
    "id": "declaration/19/statement/3/condition/decision/evaluate-right",
    "outcome": "evaluate-right",
    "line": 125,
    "state": "covered",
    "hits": "468"
  },
  {
    "id": "declaration/19/statement/3/condition/decision/skip-right",
    "outcome": "skip-right",
    "line": 125,
    "state": "covered",
    "hits": "58"
  },
  {
    "id": "declaration/19/statement/3/condition/left/decision/evaluate-right",
    "outcome": "evaluate-right",
    "line": 125,
    "state": "covered",
    "hits": "468"
  },
  {
    "id": "declaration/19/statement/3/condition/left/decision/skip-right",
    "outcome": "skip-right",
    "line": 125,
    "state": "covered",
    "hits": "58"
  },
  {
    "id": "declaration/19/statement/5/decision/body",
    "outcome": "body",
    "line": 129,
    "state": "covered",
    "hits": "1"
  },
  {
    "id": "declaration/19/statement/5/decision/exit",
    "outcome": "exit",
    "line": 129,
    "state": "covered",
    "hits": "59"
  },
  {
    "id": "declaration/19/statement/6/decision/body",
    "outcome": "body",
    "line": 132,
    "state": "covered",
    "hits": "61"
  },
  {
    "id": "declaration/19/statement/6/decision/exit",
    "outcome": "exit",
    "line": 132,
    "state": "covered",
    "hits": "59"
  },
  {
    "id": "declaration/19/statement/6/body/tail/decision/true",
    "outcome": "true",
    "line": 134,
    "state": "covered",
    "hits": "2"
  },
  {
    "id": "declaration/19/statement/6/body/tail/decision/false",
    "outcome": "false",
    "line": 134,
    "state": "covered",
    "hits": "59"
  },
  {
    "id": "declaration/20/tail/decision/true",
    "outcome": "true",
    "line": 143,
    "state": "covered",
    "hits": "17"
  },
  {
    "id": "declaration/20/tail/decision/false",
    "outcome": "false",
    "line": 143,
    "state": "covered",
    "hits": "40"
  },
  {
    "id": "declaration/21/statement/1/decision/body",
    "outcome": "body",
    "line": 153,
    "state": "covered",
    "hits": "42"
  },
  {
    "id": "declaration/21/statement/1/decision/exit",
    "outcome": "exit",
    "line": 153,
    "state": "covered",
    "hits": "16"
  },
  {
    "id": "declaration/24/tail/decision/true",
    "outcome": "true",
    "line": 174,
    "state": "covered",
    "hits": "1"
  },
  {
    "id": "declaration/24/tail/decision/false",
    "outcome": "false",
    "line": 174,
    "state": "covered",
    "hits": "108542"
  },
  {
    "id": "declaration/24/tail/false/tail/decision/true",
    "outcome": "true",
    "line": 177,
    "state": "covered",
    "hits": "64434"
  },
  {
    "id": "declaration/24/tail/false/tail/decision/false",
    "outcome": "false",
    "line": 177,
    "state": "covered",
    "hits": "44108"
  },
  {
    "id": "declaration/25/statement/1/value/decision/evaluate-right",
    "outcome": "evaluate-right",
    "line": 198,
    "state": "covered",
    "hits": "6"
  },
  {
    "id": "declaration/25/statement/1/value/decision/skip-right",
    "outcome": "skip-right",
    "line": 198,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/25/statement/4/decision/body",
    "outcome": "body",
    "line": 207,
    "state": "covered",
    "hits": "24"
  },
  {
    "id": "declaration/25/statement/4/decision/exit",
    "outcome": "exit",
    "line": 207,
    "state": "covered",
    "hits": "6"
  },
  {
    "id": "declaration/25/statement/5/value/decision/evaluate-right",
    "outcome": "evaluate-right",
    "line": 210,
    "state": "covered",
    "hits": "6"
  },
  {
    "id": "declaration/25/statement/5/value/decision/skip-right",
    "outcome": "skip-right",
    "line": 210,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/25/statement/8/decision/body",
    "outcome": "body",
    "line": 213,
    "state": "covered",
    "hits": "14"
  },
  {
    "id": "declaration/25/statement/8/decision/exit",
    "outcome": "exit",
    "line": 213,
    "state": "covered",
    "hits": "6"
  },
  {
    "id": "declaration/25/statement/8/body/tail/decision/true",
    "outcome": "true",
    "line": 214,
    "state": "covered",
    "hits": "14"
  },
  {
    "id": "declaration/25/statement/8/body/tail/decision/false",
    "outcome": "false",
    "line": 214,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/25/statement/8/body/tail/true/statement/5/value/decision/true",
    "outcome": "true",
    "line": 220,
    "state": "covered",
    "hits": "14"
  },
  {
    "id": "declaration/25/statement/8/body/tail/true/statement/5/value/decision/false",
    "outcome": "false",
    "line": 220,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/25/statement/11/decision/body",
    "outcome": "body",
    "line": 228,
    "state": "covered",
    "hits": "18"
  },
  {
    "id": "declaration/25/statement/11/decision/exit",
    "outcome": "exit",
    "line": 228,
    "state": "covered",
    "hits": "6"
  },
  {
    "id": "declaration/25/statement/11/body/tail/decision/true",
    "outcome": "true",
    "line": 229,
    "state": "covered",
    "hits": "18"
  },
  {
    "id": "declaration/25/statement/11/body/tail/decision/false",
    "outcome": "false",
    "line": 229,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/25/statement/11/body/tail/true/statement/3/value/decision/true",
    "outcome": "true",
    "line": 233,
    "state": "covered",
    "hits": "18"
  },
  {
    "id": "declaration/25/statement/11/body/tail/true/statement/3/value/decision/false",
    "outcome": "false",
    "line": 233,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/25/statement/11/body/tail/true/statement/4/decision/body",
    "outcome": "body",
    "line": 236,
    "state": "covered",
    "hits": "410"
  },
  {
    "id": "declaration/25/statement/11/body/tail/true/statement/4/decision/exit",
    "outcome": "exit",
    "line": 236,
    "state": "covered",
    "hits": "18"
  },
  {
    "id": "declaration/25/statement/11/body/tail/true/statement/4/body/tail/decision/true",
    "outcome": "true",
    "line": 239,
    "state": "covered",
    "hits": "410"
  },
  {
    "id": "declaration/25/statement/11/body/tail/true/statement/4/body/tail/decision/false",
    "outcome": "false",
    "line": 239,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/25/statement/11/body/tail/true/statement/4/body/tail/condition/decision/evaluate-right",
    "outcome": "evaluate-right",
    "line": 239,
    "state": "covered",
    "hits": "410"
  },
  {
    "id": "declaration/25/statement/11/body/tail/true/statement/4/body/tail/condition/decision/skip-right",
    "outcome": "skip-right",
    "line": 239,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/25/statement/11/body/tail/true/statement/4/body/tail/condition/left/decision/evaluate-right",
    "outcome": "evaluate-right",
    "line": 239,
    "state": "covered",
    "hits": "410"
  },
  {
    "id": "declaration/25/statement/11/body/tail/true/statement/4/body/tail/condition/left/decision/skip-right",
    "outcome": "skip-right",
    "line": 239,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/25/statement/11/body/tail/true/statement/4/body/tail/condition/left/left/decision/evaluate-right",
    "outcome": "evaluate-right",
    "line": 239,
    "state": "covered",
    "hits": "410"
  },
  {
    "id": "declaration/25/statement/11/body/tail/true/statement/4/body/tail/condition/left/left/decision/skip-right",
    "outcome": "skip-right",
    "line": 239,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/25/statement/11/body/tail/true/statement/4/body/tail/true/statement/3/value/args/0/decision/true",
    "outcome": "true",
    "line": 248,
    "state": "covered",
    "hits": "224"
  },
  {
    "id": "declaration/25/statement/11/body/tail/true/statement/4/body/tail/true/statement/3/value/args/0/decision/false",
    "outcome": "false",
    "line": 248,
    "state": "covered",
    "hits": "186"
  },
  {
    "id": "declaration/25/tail/decision/true",
    "outcome": "true",
    "line": 260,
    "state": "covered",
    "hits": "6"
  },
  {
    "id": "declaration/25/tail/decision/false",
    "outcome": "false",
    "line": 260,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/25/tail/condition/decision/evaluate-right",
    "outcome": "evaluate-right",
    "line": 260,
    "state": "covered",
    "hits": "6"
  },
  {
    "id": "declaration/25/tail/condition/decision/skip-right",
    "outcome": "skip-right",
    "line": 260,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/26/tail/arm/0",
    "outcome": "Error",
    "line": 269,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/26/tail/arm/1",
    "outcome": "Ok",
    "line": 270,
    "state": "covered",
    "hits": "7"
  },
  {
    "id": "declaration/26/tail/arm/1/body/arm/0",
    "outcome": "Error",
    "line": 271,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/26/tail/arm/1/body/arm/1",
    "outcome": "Ok",
    "line": 272,
    "state": "covered",
    "hits": "7"
  },
  {
    "id": "declaration/27/tail/arm/0",
    "outcome": "Error",
    "line": 279,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/27/tail/arm/1",
    "outcome": "Ok",
    "line": 280,
    "state": "covered",
    "hits": "7"
  },
  {
    "id": "declaration/28/statement/1/decision/body",
    "outcome": "body",
    "line": 289,
    "state": "covered",
    "hits": "7"
  },
  {
    "id": "declaration/28/statement/1/decision/exit",
    "outcome": "exit",
    "line": 289,
    "state": "covered",
    "hits": "3"
  },
  {
    "id": "declaration/28/statement/1/body/tail/decision/true",
    "outcome": "true",
    "line": 290,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/28/statement/1/body/tail/decision/false",
    "outcome": "false",
    "line": 290,
    "state": "covered",
    "hits": "7"
  },
  {
    "id": "declaration/29/statement/1/decision/body",
    "outcome": "body",
    "line": 300,
    "state": "covered",
    "hits": "14836"
  },
  {
    "id": "declaration/29/statement/1/decision/exit",
    "outcome": "exit",
    "line": 300,
    "state": "covered",
    "hits": "819"
  },
  {
    "id": "declaration/30/statement/1/decision/body",
    "outcome": "body",
    "line": 318,
    "state": "covered",
    "hits": "20"
  },
  {
    "id": "declaration/30/statement/1/decision/exit",
    "outcome": "exit",
    "line": 318,
    "state": "covered",
    "hits": "7"
  },
  {
    "id": "declaration/30/statement/1/body/tail/decision/true",
    "outcome": "true",
    "line": 319,
    "state": "covered",
    "hits": "4"
  },
  {
    "id": "declaration/30/statement/1/body/tail/decision/false",
    "outcome": "false",
    "line": 319,
    "state": "covered",
    "hits": "16"
  },
  {
    "id": "declaration/30/statement/1/body/tail/true/statement/0/decision/body",
    "outcome": "body",
    "line": 320,
    "state": "covered",
    "hits": "89"
  },
  {
    "id": "declaration/30/statement/1/body/tail/true/statement/0/decision/exit",
    "outcome": "exit",
    "line": 320,
    "state": "covered",
    "hits": "4"
  },
  {
    "id": "declaration/30/statement/1/body/tail/true/statement/0/body/tail/decision/true",
    "outcome": "true",
    "line": 321,
    "state": "covered",
    "hits": "1"
  },
  {
    "id": "declaration/30/statement/1/body/tail/true/statement/0/body/tail/decision/false",
    "outcome": "false",
    "line": 321,
    "state": "covered",
    "hits": "88"
  },
  {
    "id": "declaration/30/statement/1/body/tail/true/statement/0/body/tail/true/statement/1/value/decision/true",
    "outcome": "true",
    "line": 323,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/30/statement/1/body/tail/true/statement/0/body/tail/true/statement/1/value/decision/false",
    "outcome": "false",
    "line": 323,
    "state": "covered",
    "hits": "1"
  },
  {
    "id": "declaration/30/statement/1/body/tail/true/statement/0/body/tail/true/statement/12/value/decision/true",
    "outcome": "true",
    "line": 338,
    "state": "covered",
    "hits": "1"
  },
  {
    "id": "declaration/30/statement/1/body/tail/true/statement/0/body/tail/true/statement/12/value/decision/false",
    "outcome": "false",
    "line": 338,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/30/statement/1/body/tail/true/statement/0/body/tail/true/statement/13/value/right/decision/true",
    "outcome": "true",
    "line": 339,
    "state": "covered",
    "hits": "1"
  },
  {
    "id": "declaration/30/statement/1/body/tail/true/statement/0/body/tail/true/statement/13/value/right/decision/false",
    "outcome": "false",
    "line": 339,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/31/tail/decision/evaluate-right",
    "outcome": "evaluate-right",
    "line": 349,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/31/tail/decision/skip-right",
    "outcome": "skip-right",
    "line": 349,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/31/tail/left/decision/evaluate-right",
    "outcome": "evaluate-right",
    "line": 349,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/31/tail/left/decision/skip-right",
    "outcome": "skip-right",
    "line": 349,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/31/tail/left/right/decision/evaluate-right",
    "outcome": "evaluate-right",
    "line": 349,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/31/tail/left/right/decision/skip-right",
    "outcome": "skip-right",
    "line": 349,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/31/tail/right/decision/evaluate-right",
    "outcome": "evaluate-right",
    "line": 350,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/31/tail/right/decision/skip-right",
    "outcome": "skip-right",
    "line": 350,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/31/tail/right/right/decision/evaluate-right",
    "outcome": "evaluate-right",
    "line": 350,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/31/tail/right/right/decision/skip-right",
    "outcome": "skip-right",
    "line": 350,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/statement/1/decision/body",
    "outcome": "body",
    "line": 358,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/statement/1/decision/exit",
    "outcome": "exit",
    "line": 358,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/statement/1/body/statement/0/decision/body",
    "outcome": "body",
    "line": 359,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/statement/1/body/statement/0/decision/exit",
    "outcome": "exit",
    "line": 359,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/statement/1/body/statement/0/body/tail/decision/true",
    "outcome": "true",
    "line": 361,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/statement/1/body/statement/0/body/tail/decision/false",
    "outcome": "false",
    "line": 361,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/statement/1/body/statement/0/body/tail/condition/decision/evaluate-right",
    "outcome": "evaluate-right",
    "line": 361,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/statement/1/body/statement/0/body/tail/condition/decision/skip-right",
    "outcome": "skip-right",
    "line": 361,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/statement/1/body/statement/0/body/tail/true/tail/arm/0",
    "outcome": "None",
    "line": 363,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/statement/1/body/statement/0/body/tail/true/tail/arm/1",
    "outcome": "Some",
    "line": 364,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/statement/1/body/statement/0/body/tail/true/tail/arm/1/body/decision/true",
    "outcome": "true",
    "line": 364,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/statement/1/body/statement/0/body/tail/true/tail/arm/1/body/decision/false",
    "outcome": "false",
    "line": 364,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/statement/1/body/statement/0/body/tail/true/tail/arm/1/body/condition/decision/evaluate-right",
    "outcome": "evaluate-right",
    "line": 364,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/statement/1/body/statement/0/body/tail/true/tail/arm/1/body/condition/decision/skip-right",
    "outcome": "skip-right",
    "line": 364,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/arm/0",
    "outcome": "None",
    "line": 372,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/arm/0/body/block/statement/1/decision/body",
    "outcome": "body",
    "line": 374,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/arm/0/body/block/statement/1/decision/exit",
    "outcome": "exit",
    "line": 374,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/arm/0/body/block/statement/1/body/tail/decision/true",
    "outcome": "true",
    "line": 375,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/arm/0/body/block/statement/1/body/tail/decision/false",
    "outcome": "false",
    "line": 375,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/arm/0/body/block/statement/1/body/tail/true/statement/0/decision/body",
    "outcome": "body",
    "line": 376,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/arm/0/body/block/statement/1/body/tail/true/statement/0/decision/exit",
    "outcome": "exit",
    "line": 376,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/arm/0/body/block/statement/1/body/tail/true/statement/0/body/tail/decision/true",
    "outcome": "true",
    "line": 377,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/arm/0/body/block/statement/1/body/tail/true/statement/0/body/tail/decision/false",
    "outcome": "false",
    "line": 377,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/arm/0/body/block/statement/1/body/tail/true/statement/0/body/tail/true/statement/0/value/arm/0",
    "outcome": "ImportDeclaration",
    "line": 379,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/arm/0/body/block/statement/1/body/tail/true/statement/0/body/tail/true/statement/0/value/arm/1",
    "outcome": "TypeDeclaration",
    "line": 380,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/arm/0/body/block/statement/1/body/tail/true/statement/0/body/tail/true/statement/0/value/arm/2",
    "outcome": "EnumDeclaration",
    "line": 381,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/arm/0/body/block/statement/1/body/tail/true/statement/0/body/tail/true/statement/0/value/arm/3",
    "outcome": "RecordDeclaration",
    "line": 382,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/arm/0/body/block/statement/1/body/tail/true/statement/0/body/tail/true/statement/0/value/arm/4",
    "outcome": "FunctionDeclaration",
    "line": 383,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/arm/0/body/block/statement/1/body/tail/true/statement/0/body/tail/true/statement/0/value/arm/4/body/block/statement/2/decision/body",
    "outcome": "body",
    "line": 386,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/arm/0/body/block/statement/1/body/tail/true/statement/0/body/tail/true/statement/0/value/arm/4/body/block/statement/2/decision/exit",
    "outcome": "exit",
    "line": 386,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/arm/0/body/block/statement/1/body/tail/true/statement/0/body/tail/true/statement/0/value/arm/4/body/block/statement/2/body/tail/decision/true",
    "outcome": "true",
    "line": 386,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/arm/0/body/block/statement/1/body/tail/true/statement/0/body/tail/true/statement/0/value/arm/4/body/block/statement/2/body/tail/decision/false",
    "outcome": "false",
    "line": 386,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/arm/0/body/block/statement/1/body/tail/true/statement/0/body/tail/true/statement/0/value/arm/4/body/block/tail/decision/true",
    "outcome": "true",
    "line": 387,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/arm/0/body/block/statement/1/body/tail/true/statement/0/body/tail/true/statement/0/value/arm/4/body/block/tail/decision/false",
    "outcome": "false",
    "line": 387,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/arm/0/body/block/statement/1/body/tail/true/statement/0/body/tail/true/statement/0/value/arm/4/body/block/tail/condition/decision/evaluate-right",
    "outcome": "evaluate-right",
    "line": 387,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/arm/0/body/block/statement/1/body/tail/true/statement/0/body/tail/true/statement/0/value/arm/4/body/block/tail/condition/decision/skip-right",
    "outcome": "skip-right",
    "line": 387,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/arm/0/body/block/statement/1/body/tail/true/statement/0/body/tail/true/statement/0/value/arm/4/body/block/tail/false/tail/decision/true",
    "outcome": "true",
    "line": 388,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/arm/0/body/block/statement/1/body/tail/true/statement/0/body/tail/true/statement/0/value/arm/4/body/block/tail/false/tail/decision/false",
    "outcome": "false",
    "line": 388,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/arm/0/body/block/statement/1/body/tail/true/statement/0/body/tail/true/statement/0/value/arm/4/body/block/tail/false/tail/condition/decision/evaluate-right",
    "outcome": "evaluate-right",
    "line": 388,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/arm/0/body/block/statement/1/body/tail/true/statement/0/body/tail/true/statement/0/value/arm/4/body/block/tail/false/tail/condition/decision/skip-right",
    "outcome": "skip-right",
    "line": 388,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/arm/1",
    "outcome": "Some",
    "line": 398,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/arm/1/body/block/statement/3/decision/body",
    "outcome": "body",
    "line": 402,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/arm/1/body/block/statement/3/decision/exit",
    "outcome": "exit",
    "line": 402,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/arm/1/body/block/statement/3/body/statement/0/decision/body",
    "outcome": "body",
    "line": 403,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/arm/1/body/block/statement/3/body/statement/0/decision/exit",
    "outcome": "exit",
    "line": 403,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/arm/1/body/block/statement/3/body/statement/0/body/tail/arm/0",
    "outcome": "FunctionDeclaration",
    "line": 405,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/arm/1/body/block/statement/3/body/statement/0/body/tail/arm/0/body/block/tail/decision/true",
    "outcome": "true",
    "line": 408,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/arm/1/body/block/statement/3/body/statement/0/body/tail/arm/0/body/block/tail/decision/false",
    "outcome": "false",
    "line": 408,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/arm/1/body/block/statement/3/body/statement/0/body/tail/arm/1",
    "outcome": "ImportDeclaration",
    "line": 410,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/arm/1/body/block/statement/3/body/statement/0/body/tail/arm/2",
    "outcome": "TypeDeclaration",
    "line": 410,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/arm/1/body/block/statement/3/body/statement/0/body/tail/arm/3",
    "outcome": "EnumDeclaration",
    "line": 411,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/arm/1/body/block/statement/3/body/statement/0/body/tail/arm/4",
    "outcome": "RecordDeclaration",
    "line": 411,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/arm/1/body/block/statement/6/decision/body",
    "outcome": "body",
    "line": 417,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/arm/1/body/block/statement/6/decision/exit",
    "outcome": "exit",
    "line": 417,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/arm/1/body/block/statement/6/body/statement/1/decision/body",
    "outcome": "body",
    "line": 419,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/arm/1/body/block/statement/6/body/statement/1/decision/exit",
    "outcome": "exit",
    "line": 419,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/arm/1/body/block/statement/6/body/statement/1/body/tail/decision/true",
    "outcome": "true",
    "line": 420,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/arm/1/body/block/statement/6/body/statement/1/body/tail/decision/false",
    "outcome": "false",
    "line": 420,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/arm/1/body/block/statement/6/body/statement/1/body/tail/true/statement/1/value/left/left/left/left/right/args/0/decision/true",
    "outcome": "true",
    "line": 422,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/arm/1/body/block/statement/6/body/statement/1/body/tail/true/statement/1/value/left/left/left/left/right/args/0/decision/false",
    "outcome": "false",
    "line": 422,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/arm/1/body/block/statement/6/body/statement/1/body/tail/true/statement/1/value/left/left/left/right/decision/true",
    "outcome": "true",
    "line": 422,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/arm/1/body/block/statement/6/body/statement/1/body/tail/true/statement/1/value/left/left/left/right/decision/false",
    "outcome": "false",
    "line": 422,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/arm/1/body/block/statement/6/body/statement/1/body/tail/true/statement/1/value/right/decision/true",
    "outcome": "true",
    "line": 424,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/32/tail/arm/1/body/block/statement/6/body/statement/1/body/tail/true/statement/1/value/right/decision/false",
    "outcome": "false",
    "line": 424,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/33/tail/arm/0",
    "outcome": "Error",
    "line": 438,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/33/tail/arm/1",
    "outcome": "Ok",
    "line": 439,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/33/tail/arm/1/body/arm/0",
    "outcome": "Ok",
    "line": 440,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/33/tail/arm/1/body/arm/1",
    "outcome": "Error",
    "line": 441,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/34/tail/arm/0",
    "outcome": "Error",
    "line": 448,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/34/tail/arm/1",
    "outcome": "Ok",
    "line": 449,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/34/tail/arm/1/body/arm/0",
    "outcome": "Error",
    "line": 450,
    "state": "zero",
    "hits": "0"
  },
  {
    "id": "declaration/34/tail/arm/1/body/arm/1",
    "outcome": "Ok",
    "line": 451,
    "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": 14
  },
  {
    "id": "declaration/14",
    "reason": "record-declaration",
    "line": 19
  },
  {
    "id": "declaration/15",
    "reason": "record-declaration",
    "line": 25
  },
  {
    "id": "declaration/24/tail/true/tail/receiver",
    "reason": "namespace-qualifier",
    "line": 175
  },
  {
    "id": "declaration/25/tail/false/tail/receiver",
    "reason": "namespace-qualifier",
    "line": 263
  },
  {
    "id": "declaration/26/tail/subject/receiver",
    "reason": "namespace-qualifier",
    "line": 268
  },
  {
    "id": "declaration/26/tail/arm/1/body/subject/receiver",
    "reason": "namespace-qualifier",
    "line": 270
  },
  {
    "id": "declaration/33/tail/subject/receiver",
    "reason": "namespace-qualifier",
    "line": 437
  },
  {
    "id": "declaration/33/tail/arm/1/body/subject/receiver",
    "reason": "namespace-qualifier",
    "line": 439
  },
  {
    "id": "declaration/34/tail/subject/receiver",
    "reason": "namespace-qualifier",
    "line": 447
  },
  {
    "id": "declaration/34/tail/arm/1/body/subject/receiver",
    "reason": "namespace-qualifier",
    "line": 449
  }
]