_Z14ImportCallbackPvPKcS1_PPcS3_Pm:
   26|     50|                     char** found_here, char **buf, size_t *buflen) {
   27|       |  // Don't load file and mark it as failure.
   28|       |  *buf = NULL;
   29|     50|  *buflen = 0;
   30|     50|  return 1;
   31|     50|}
_Z20ConvertJsonnetToJsonRKNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE:
   33|  7.41k|std::string ConvertJsonnetToJson(const std::string& jsonnet) {
   34|  7.41k|  JsonnetVm* jvm = jsonnet_make();
   35|  7.41k|  jsonnet_import_callback(jvm, ImportCallback, jvm);
   36|  7.41k|  int error = 0;
   37|  7.41k|  char* res =
   38|  7.41k|      jsonnet_evaluate_snippet_multi(jvm, /*filename=*/"", jsonnet.c_str(), &error);
   39|       |
   40|  7.41k|  std::string json;
   41|  7.41k|  if (error == 0 && res != nullptr) {
  ------------------
  |  Branch (41:7): [True: 522, False: 6.88k]
  |  Branch (41:21): [True: 522, False: 0]
  ------------------
   42|    522|    json = res;
   43|    522|  }
   44|       |
   45|  7.41k|  if (res) {
  ------------------
  |  Branch (45:7): [True: 7.41k, False: 0]
  ------------------
   46|  7.41k|    jsonnet_realloc(jvm, res, 0);
   47|  7.41k|  }
   48|  7.41k|  jsonnet_destroy(jvm);
   49|  7.41k|  return json;
   50|  7.41k|}
LLVMFuzzerTestOneInput:
   52|  7.41k|extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
   53|  7.41k|  std::string fuzz_jsonnet(reinterpret_cast<const char*>(data), size);
   54|  7.41k|  ConvertJsonnetToJson(fuzz_jsonnet);
   55|  7.41k|  return 0;
   56|  7.41k|}

libjsonnet.cpp:_ZN7jsonnet8internal12_GLOBAL__N_120build_precedence_mapEv:
 1047|      2|{
 1048|      2|    std::map<BinaryOp, int> r;
 1049|       |
 1050|      2|    r[BOP_MULT] = 5;
 1051|      2|    r[BOP_DIV] = 5;
 1052|      2|    r[BOP_PERCENT] = 5;
 1053|       |
 1054|      2|    r[BOP_PLUS] = 6;
 1055|      2|    r[BOP_MINUS] = 6;
 1056|       |
 1057|      2|    r[BOP_SHIFT_L] = 7;
 1058|      2|    r[BOP_SHIFT_R] = 7;
 1059|       |
 1060|      2|    r[BOP_GREATER] = 8;
 1061|      2|    r[BOP_GREATER_EQ] = 8;
 1062|      2|    r[BOP_LESS] = 8;
 1063|      2|    r[BOP_LESS_EQ] = 8;
 1064|      2|    r[BOP_IN] = 8;
 1065|       |
 1066|      2|    r[BOP_MANIFEST_EQUAL] = 9;
 1067|      2|    r[BOP_MANIFEST_UNEQUAL] = 9;
 1068|       |
 1069|      2|    r[BOP_BITWISE_AND] = 10;
 1070|       |
 1071|      2|    r[BOP_BITWISE_XOR] = 11;
 1072|       |
 1073|      2|    r[BOP_BITWISE_OR] = 12;
 1074|       |
 1075|      2|    r[BOP_AND] = 13;
 1076|       |
 1077|      2|    r[BOP_OR] = 14;
 1078|       |
 1079|      2|    return r;
 1080|      2|}
libjsonnet.cpp:_ZN7jsonnet8internal12_GLOBAL__N_115build_unary_mapEv:
 1083|      2|{
 1084|      2|    std::map<std::string, UnaryOp> r;
 1085|      2|    r["!"] = UOP_NOT;
 1086|      2|    r["~"] = UOP_BITWISE_NOT;
 1087|      2|    r["+"] = UOP_PLUS;
 1088|      2|    r["-"] = UOP_MINUS;
 1089|      2|    return r;
 1090|      2|}
libjsonnet.cpp:_ZN7jsonnet8internal12_GLOBAL__N_116build_binary_mapEv:
 1093|      2|{
 1094|      2|    std::map<std::string, BinaryOp> r;
 1095|       |
 1096|      2|    r["*"] = BOP_MULT;
 1097|      2|    r["/"] = BOP_DIV;
 1098|      2|    r["%"] = BOP_PERCENT;
 1099|       |
 1100|      2|    r["+"] = BOP_PLUS;
 1101|      2|    r["-"] = BOP_MINUS;
 1102|       |
 1103|      2|    r["<<"] = BOP_SHIFT_L;
 1104|      2|    r[">>"] = BOP_SHIFT_R;
 1105|       |
 1106|      2|    r[">"] = BOP_GREATER;
 1107|      2|    r[">="] = BOP_GREATER_EQ;
 1108|      2|    r["<"] = BOP_LESS;
 1109|      2|    r["<="] = BOP_LESS_EQ;
 1110|      2|    r["in"] = BOP_IN;
 1111|       |
 1112|      2|    r["=="] = BOP_MANIFEST_EQUAL;
 1113|      2|    r["!="] = BOP_MANIFEST_UNEQUAL;
 1114|       |
 1115|      2|    r["&"] = BOP_BITWISE_AND;
 1116|      2|    r["^"] = BOP_BITWISE_XOR;
 1117|      2|    r["|"] = BOP_BITWISE_OR;
 1118|       |
 1119|      2|    r["&&"] = BOP_AND;
 1120|      2|    r["||"] = BOP_OR;
 1121|      2|    return r;
 1122|      2|}
_ZN7jsonnet8internal9AllocatorD2Ev:
 1020|  7.41k|    {
 1021|   102M|        for (auto x : allocated) {
  ------------------
  |  Branch (1021:21): [True: 102M, False: 7.41k]
  ------------------
 1022|   102M|            delete x;
 1023|   102M|        }
 1024|  7.41k|        allocated.clear();
 1025|  2.09M|        for (const auto &x : internedIdentifiers) {
  ------------------
  |  Branch (1025:28): [True: 2.09M, False: 7.41k]
  ------------------
 1026|  2.09M|            delete x.second;
 1027|  2.09M|        }
 1028|  7.41k|        internedIdentifiers.clear();
 1029|   171k|        for (const auto &x : internedBuiltins) {
  ------------------
  |  Branch (1029:28): [True: 171k, False: 7.41k]
  ------------------
 1030|   171k|            delete x.second;
 1031|   171k|        }
 1032|  7.41k|        internedBuiltins.clear();
 1033|  7.41k|    }
_ZN7jsonnet8internal10IdentifierC2ERKNSt3__112basic_stringIDiNS2_11char_traitsIDiEENS2_9allocatorIDiEEEE:
  113|  2.65M|    Identifier(const UString &name) : name(name) {}
_ZN7jsonnet8internal3ASTC2ERKNS0_13LocationRangeENS0_7ASTTypeERKNSt3__16vectorINS0_13FodderElementENS6_9allocatorIS8_EEEE:
  132|  93.0M|        : location(location), type(type), openFodder(open_fodder)
  133|  93.0M|    {
  134|  93.0M|    }
_ZN7jsonnet8internal3ASTD2Ev:
  135|   102M|    virtual ~AST(void) {}
_ZN7jsonnet8internal8ArgParamC2ERKNSt3__16vectorINS0_13FodderElementENS2_9allocatorIS4_EEEEPKNS0_10IdentifierES9_:
  158|   602k|        : idFodder(id_fodder), id(id), expr(nullptr), commaFodder(comma_fodder)
  159|   602k|    {
  160|   602k|    }
_ZN7jsonnet8internal8ArgParamC2EPNS0_3ASTERKNSt3__16vectorINS0_13FodderElementENS4_9allocatorIS6_EEEE:
  163|  6.41M|        : id(nullptr), expr(expr), commaFodder(comma_fodder)
  164|  6.41M|    {
  165|  6.41M|    }
_ZN7jsonnet8internal8ArgParamC2ERKNSt3__16vectorINS0_13FodderElementENS2_9allocatorIS4_EEEEPKNS0_10IdentifierES9_PNS0_3ASTES9_:
  169|  13.6M|        : idFodder(id_fodder), id(id), eqFodder(eq_fodder), expr(expr), commaFodder(comma_fodder)
  170|  13.6M|    {
  171|  13.6M|    }
_ZN7jsonnet8internal17ComprehensionSpecC2ENS1_4KindERKNSt3__16vectorINS0_13FodderElementENS3_9allocatorIS5_EEEESA_PKNS0_10IdentifierESA_PNS0_3ASTE:
  187|   436k|        : kind(kind),
  188|   436k|          openFodder(open_fodder),
  189|   436k|          varFodder(var_fodder),
  190|   436k|          var(var),
  191|   436k|          inFodder(in_fodder),
  192|   436k|          expr(expr)
  193|   436k|    {
  194|   436k|    }
_ZN7jsonnet8internal5ApplyC2ERKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEEPNS0_3ASTESC_RKNS6_INS0_8ArgParamENS8_ISF_EEEEbSC_SC_b:
  209|  9.52M|        : AST(lr, AST_APPLY, open_fodder),
  210|  9.52M|          target(target),
  211|  9.52M|          fodderL(fodder_l),
  212|  9.52M|          args(args),
  213|  9.52M|          trailingComma(trailing_comma),
  214|  9.52M|          fodderR(fodder_r),
  215|  9.52M|          tailstrictFodder(tailstrict_fodder),
  216|  9.52M|          tailstrict(tailstrict)
  217|  9.52M|    {
  218|  9.52M|    }
_ZN7jsonnet8internal10ApplyBraceC2ERKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEEPNS0_3ASTESE_:
  226|  98.2k|        : AST(lr, AST_APPLY_BRACE, open_fodder), left(left), right(right)
  227|  98.2k|    {
  228|  98.2k|    }
_ZN7jsonnet8internal5Array7ElementC2EPNS0_3ASTERKNSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEE:
  236|  3.29M|        Element(AST *expr, const Fodder &comma_fodder) : expr(expr), commaFodder(comma_fodder) {}
_ZN7jsonnet8internal5ArrayC2ERKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEERKNS6_INS1_7ElementENS8_ISD_EEEEbSC_:
  244|  1.39M|        : AST(lr, AST_ARRAY, open_fodder),
  245|  1.39M|          elements(elements),
  246|  1.39M|          trailingComma(trailing_comma),
  247|  1.39M|          closeFodder(close_fodder)
  248|  1.39M|    {
  249|  1.39M|    }
_ZN7jsonnet8internal18ArrayComprehensionC2ERKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEEPNS0_3ASTESC_bRKNS6_INS0_17ComprehensionSpecENS8_ISF_EEEESC_:
  262|   275k|        : AST(lr, AST_ARRAY_COMPREHENSION, open_fodder),
  263|   275k|          body(body),
  264|   275k|          commaFodder(comma_fodder),
  265|   275k|          trailingComma(trailing_comma),
  266|   275k|          specs(specs),
  267|   275k|          closeFodder(close_fodder)
  268|   275k|    {
  269|       |        assert(specs.size() > 0);
  ------------------
  |  Branch (269:9): [True: 275k, False: 0]
  ------------------
  270|   275k|    }
_ZN7jsonnet8internal6AssertC2ERKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEEPNS0_3ASTESC_SE_SC_SE_:
  286|   311k|        : AST(lr, AST_ASSERT, open_fodder),
  287|   311k|          cond(cond),
  288|   311k|          colonFodder(colon_fodder),
  289|   311k|          message(message),
  290|   311k|          semicolonFodder(semicolon_fodder),
  291|   311k|          rest(rest)
  292|   311k|    {
  293|   311k|    }
_ZN7jsonnet8internal6BinaryC2ERKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEEPNS0_3ASTESC_NS0_8BinaryOpESE_:
  367|  7.65M|        : AST(lr, AST_BINARY, open_fodder), left(left), opFodder(op_fodder), op(op), right(right)
  368|  7.65M|    {
  369|  7.65M|    }
_ZN7jsonnet8internal19BuiltinFunctionBodyC2ERKNS0_13LocationRangeERKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERKNS5_6vectorIPKNS0_10IdentifierENS9_ISH_EEEE:
  382|   171k|        : AST(lr, AST_BUILTIN_FUNCTION_BODY, Fodder{}), name(name), params(params)
  383|   171k|    {
  384|   171k|    }
_ZN7jsonnet8internal15BuiltinFunctionC2ERKNS0_13LocationRangeEPKNS0_19BuiltinFunctionBodyE:
  395|   318k|        : AST(lr, AST_BUILTIN_FUNCTION, Fodder{}), body(body)
  396|   318k|    {
  397|   318k|    }
_ZN7jsonnet8internal11ConditionalC2ERKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEEPNS0_3ASTESC_SE_SC_SE_:
  414|  3.54M|        : AST(lr, AST_CONDITIONAL, open_fodder),
  415|  3.54M|          cond(cond),
  416|  3.54M|          thenFodder(then_fodder),
  417|  3.54M|          branchTrue(branch_true),
  418|  3.54M|          elseFodder(else_fodder),
  419|  3.54M|          branchFalse(branch_false)
  420|  3.54M|    {
  421|  3.54M|    }
_ZN7jsonnet8internal6DollarC2ERKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEE:
  426|  38.3k|    Dollar(const LocationRange &lr, const Fodder &open_fodder) : AST(lr, AST_DOLLAR, open_fodder) {}
_ZN7jsonnet8internal5ErrorC2ERKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEEPNS0_3ASTE:
  433|  1.13M|        : AST(lr, AST_ERROR, open_fodder), expr(expr)
  434|  1.13M|    {
  435|  1.13M|    }
_ZN7jsonnet8internal8FunctionC2ERKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEESC_RKNS6_INS0_8ArgParamENS8_ISD_EEEEbSC_PNS0_3ASTE:
  448|  1.96M|        : AST(lr, AST_FUNCTION, open_fodder),
  449|  1.96M|          parenLeftFodder(paren_left_fodder),
  450|  1.96M|          params(params),
  451|  1.96M|          trailingComma(trailing_comma),
  452|  1.96M|          parenRightFodder(paren_right_fodder),
  453|  1.96M|          body(body)
  454|  1.96M|    {
  455|  1.96M|    }
_ZN7jsonnet8internal6ImportC2ERKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEEPNS0_13LiteralStringE:
  464|    350|        : AST(lr, AST_IMPORT, open_fodder), file(file)
  465|    350|    {
  466|    350|    }
_ZN7jsonnet8internal9ImportstrC2ERKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEEPNS0_13LiteralStringE:
  473|    917|        : AST(lr, AST_IMPORTSTR, open_fodder), file(file)
  474|    917|    {
  475|    917|    }
_ZN7jsonnet8internal9ImportbinC2ERKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEEPNS0_13LiteralStringE:
  482|    632|        : AST(lr, AST_IMPORTBIN, open_fodder), file(file)
  483|    632|    {
  484|    632|    }
_ZN7jsonnet8internal5IndexC2ERKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEEPNS0_3ASTESC_SC_PKNS0_10IdentifierE:
  505|  5.43M|        : AST(lr, AST_INDEX, open_fodder),
  506|  5.43M|          target(target),
  507|  5.43M|          dotFodder(dot_fodder),
  508|  5.43M|          isSlice(false),
  509|  5.43M|          index(nullptr),
  510|  5.43M|          end(nullptr),
  511|  5.43M|          step(nullptr),
  512|  5.43M|          idFodder(id_fodder),
  513|  5.43M|          id(id)
  514|  5.43M|    {
  515|  5.43M|    }
_ZN7jsonnet8internal5IndexC2ERKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEEPNS0_3ASTESC_bSE_SC_SE_SC_SE_SC_:
  520|  4.33M|        : AST(lr, AST_INDEX, open_fodder),
  521|  4.33M|          target(target),
  522|  4.33M|          dotFodder(dot_fodder),
  523|  4.33M|          isSlice(is_slice),
  524|  4.33M|          index(index),
  525|  4.33M|          endColonFodder(end_colon_fodder),
  526|  4.33M|          end(end),
  527|  4.33M|          stepColonFodder(step_colon_fodder),
  528|  4.33M|          step(step),
  529|  4.33M|          idFodder(id_fodder),
  530|  4.33M|          id(nullptr)
  531|  4.33M|    {
  532|  4.33M|    }
_ZN7jsonnet8internal5Local4BindC2ERKNSt3__16vectorINS0_13FodderElementENS3_9allocatorIS5_EEEEPKNS0_10IdentifierESA_PNS0_3ASTEbSA_RKNS4_INS0_8ArgParamENS6_ISG_EEEEbSA_SA_:
  551|  3.21M|            : varFodder(var_fodder),
  552|  3.21M|              var(var),
  553|  3.21M|              opFodder(op_fodder),
  554|  3.21M|              body(body),
  555|  3.21M|              functionSugar(function_sugar),
  556|  3.21M|              parenLeftFodder(paren_left_fodder),
  557|  3.21M|              params(params),
  558|  3.21M|              trailingComma(trailing_comma),
  559|  3.21M|              parenRightFodder(paren_right_fodder),
  560|  3.21M|              closeFodder(close_fodder)
  561|  3.21M|        {
  562|  3.21M|        }
_ZN7jsonnet8internal5LocalC2ERKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEERKNS6_INS1_4BindENS8_ISD_EEEEPNS0_3ASTE:
  568|  3.47M|        : AST(lr, AST_LOCAL, open_fodder), binds(binds), body(body)
  569|  3.47M|    {
  570|  3.47M|    }
_ZN7jsonnet8internal14LiteralBooleanC2ERKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEEb:
  577|   673k|        : AST(lr, AST_LITERAL_BOOLEAN, open_fodder), value(value)
  578|   673k|    {
  579|   673k|    }
_ZN7jsonnet8internal11LiteralNullC2ERKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEE:
  585|   394k|        : AST(lr, AST_LITERAL_NULL, open_fodder)
  586|   394k|    {
  587|   394k|    }
_ZN7jsonnet8internal13LiteralNumberC2ERKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEERKNS5_12basic_stringIcNS5_11char_traitsIcEENS8_IcEEEE:
  595|  5.73M|        : AST(lr, AST_LITERAL_NUMBER, open_fodder),
  596|  5.73M|          value(strtod(str.c_str(), nullptr)),
  597|  5.73M|          originalString(str)
  598|  5.73M|    {
  599|  5.73M|    }
_ZN7jsonnet8internal13LiteralStringC2ERKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEERKNS5_12basic_stringIDiNS5_11char_traitsIDiEENS8_IDiEEEENS1_9TokenKindERKNSD_IcNSE_IcEENS8_IcEEEESP_:
  612|  14.5M|        : AST(lr, AST_LITERAL_STRING, open_fodder),
  613|  14.5M|          value(value),
  614|  14.5M|          tokenKind(token_kind),
  615|  14.5M|          blockIndent(block_indent),
  616|  14.5M|          blockTermIndent(block_term_indent)
  617|  14.5M|    {
  618|  14.5M|    }
_ZN7jsonnet8internal11ObjectFieldC2ENS1_4KindERKNSt3__16vectorINS0_13FodderElementENS3_9allocatorIS5_EEEESA_SA_SA_NS1_4HideEbbPNS0_3ASTEPKNS0_10IdentifierERKNS0_13LocationRangeERKNS4_INS0_8ArgParamENS6_ISK_EEEEbSA_SD_SD_SA_:
  682|  1.96M|        : kind(kind),
  683|  1.96M|          fodder1(fodder1),
  684|  1.96M|          fodder2(fodder2),
  685|  1.96M|          fodderL(fodder_l),
  686|  1.96M|          fodderR(fodder_r),
  687|  1.96M|          hide(hide),
  688|  1.96M|          superSugar(super_sugar),
  689|  1.96M|          methodSugar(method_sugar),
  690|  1.96M|          expr1(expr1),
  691|  1.96M|          id(id),
  692|  1.96M|          idLocation(id_lr),
  693|  1.96M|          params(params),
  694|  1.96M|          trailingComma(trailing_comma),
  695|  1.96M|          opFodder(op_fodder),
  696|  1.96M|          expr2(expr2),
  697|  1.96M|          expr3(expr3),
  698|  1.96M|          commaFodder(comma_fodder)
  699|  1.96M|    {
  700|       |        // Enforce what is written in comments above.
  701|  1.96M|        assert(kind != ASSERT || (hide == VISIBLE && !superSugar && !methodSugar));
  ------------------
  |  Branch (701:9): [True: 30.7k, False: 0]
  |  Branch (701:9): [True: 30.7k, False: 0]
  |  Branch (701:9): [True: 30.7k, False: 0]
  |  Branch (701:9): [True: 1.93M, False: 30.7k]
  |  Branch (701:9): [True: 1.96M, False: 0]
  ------------------
  702|  1.96M|        assert(kind != LOCAL || (hide == VISIBLE && !superSugar));
  ------------------
  |  Branch (702:9): [True: 79.8k, False: 0]
  |  Branch (702:9): [True: 79.8k, False: 0]
  |  Branch (702:9): [True: 1.88M, False: 79.8k]
  |  Branch (702:9): [True: 1.96M, False: 0]
  ------------------
  703|  1.96M|        assert(kind != FIELD_ID || (id != nullptr && expr1 == nullptr));
  ------------------
  |  Branch (703:9): [True: 1.71M, False: 0]
  |  Branch (703:9): [True: 1.71M, False: 0]
  |  Branch (703:9): [True: 252k, False: 1.71M]
  |  Branch (703:9): [True: 1.96M, False: 0]
  ------------------
  704|  1.96M|        assert(kind == FIELD_ID || kind == LOCAL || id == nullptr);
  ------------------
  |  Branch (704:9): [True: 1.71M, False: 252k]
  |  Branch (704:9): [True: 79.8k, False: 172k]
  |  Branch (704:9): [True: 172k, False: 0]
  |  Branch (704:9): [True: 1.96M, False: 0]
  ------------------
  705|  1.96M|        assert(methodSugar || (params.size() == 0 && !trailingComma));
  ------------------
  |  Branch (705:9): [True: 1.01M, False: 0]
  |  Branch (705:9): [True: 1.01M, False: 0]
  |  Branch (705:9): [True: 954k, False: 1.01M]
  |  Branch (705:9): [True: 1.96M, False: 0]
  ------------------
  706|  1.96M|        assert(kind == ASSERT || expr3 == nullptr);
  ------------------
  |  Branch (706:9): [True: 30.7k, False: 1.93M]
  |  Branch (706:9): [True: 1.93M, False: 0]
  |  Branch (706:9): [True: 1.96M, False: 0]
  ------------------
  707|  1.96M|    }
_ZN7jsonnet8internal11ObjectField5LocalERKNSt3__16vectorINS0_13FodderElementENS2_9allocatorIS4_EEEES9_S9_S9_bPKNS0_10IdentifierERKNS3_INS0_8ArgParamENS5_ISD_EEEEbS9_PNS0_3ASTES9_:
  713|  53.9k|    {
  714|  53.9k|        return ObjectField(LOCAL,
  715|  53.9k|                           fodder1,
  716|  53.9k|                           fodder2,
  717|  53.9k|                           fodder_l,
  718|  53.9k|                           fodder_r,
  719|  53.9k|                           VISIBLE,
  720|  53.9k|                           false,
  721|  53.9k|                           method_sugar,
  722|  53.9k|                           nullptr,
  723|  53.9k|                           id,
  724|  53.9k|                           LocationRange(),
  725|  53.9k|                           params,
  726|  53.9k|                           trailing_comma,
  727|  53.9k|                           op_fodder,
  728|  53.9k|                           body,
  729|  53.9k|                           nullptr,
  730|  53.9k|                           comma_fodder);
  731|  53.9k|    }
_ZN7jsonnet8internal11ObjectField5LocalERKNSt3__16vectorINS0_13FodderElementENS2_9allocatorIS4_EEEES9_PKNS0_10IdentifierES9_PNS0_3ASTES9_:
  734|  25.8k|    {
  735|  25.8k|        return ObjectField(LOCAL,
  736|  25.8k|                           fodder1,
  737|  25.8k|                           fodder2,
  738|  25.8k|                           Fodder{},
  739|  25.8k|                           Fodder{},
  740|  25.8k|                           VISIBLE,
  741|  25.8k|                           false,
  742|  25.8k|                           false,
  743|  25.8k|                           nullptr,
  744|  25.8k|                           id,
  745|  25.8k|                           LocationRange(),
  746|  25.8k|                           ArgParams{},
  747|  25.8k|                           false,
  748|  25.8k|                           op_fodder,
  749|  25.8k|                           body,
  750|  25.8k|                           nullptr,
  751|  25.8k|                           comma_fodder);
  752|  25.8k|    }
_ZN7jsonnet8internal11ObjectField6AssertERKNSt3__16vectorINS0_13FodderElementENS2_9allocatorIS4_EEEEPNS0_3ASTES9_SB_S9_:
  779|  30.7k|    {
  780|  30.7k|        return ObjectField(ASSERT,
  781|  30.7k|                           fodder1,
  782|  30.7k|                           Fodder{},
  783|  30.7k|                           Fodder{},
  784|  30.7k|                           Fodder{},
  785|  30.7k|                           VISIBLE,
  786|  30.7k|                           false,
  787|  30.7k|                           false,
  788|  30.7k|                           nullptr,
  789|  30.7k|                           nullptr,
  790|  30.7k|                           LocationRange(),
  791|  30.7k|                           ArgParams{},
  792|  30.7k|                           false,
  793|  30.7k|                           op_fodder,
  794|  30.7k|                           body,
  795|  30.7k|                           msg,
  796|  30.7k|                           comma_fodder);
  797|  30.7k|    }
_ZN7jsonnet8internal6ObjectC2ERKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEERKNS6_INS0_11ObjectFieldENS8_ISD_EEEEbSC_:
  812|   430k|        : AST(lr, AST_OBJECT, open_fodder),
  813|   430k|          fields(fields),
  814|   430k|          trailingComma(trailing_comma),
  815|   430k|          closeFodder(close_fodder)
  816|   430k|    {
  817|   430k|        assert(fields.size() > 0 || !trailing_comma);
  ------------------
  |  Branch (817:9): [True: 392k, False: 38.0k]
  |  Branch (817:9): [True: 38.0k, False: 0]
  |  Branch (817:9): [True: 430k, False: 0]
  ------------------
  818|   430k|        if (fields.size() > 0)
  ------------------
  |  Branch (818:13): [True: 392k, False: 38.0k]
  ------------------
  819|       |            assert(trailing_comma || fields[fields.size() - 1].commaFodder.size() == 0);
  ------------------
  |  Branch (819:13): [True: 106k, False: 286k]
  |  Branch (819:13): [True: 286k, False: 0]
  |  Branch (819:13): [True: 392k, False: 0]
  ------------------
  820|   430k|    }
_ZN7jsonnet8internal15DesugaredObject5FieldC2ENS0_11ObjectField4HideEPNS0_3ASTES6_:
  833|  2.08M|            : hide(hide), name(name), body(body)
  834|  2.08M|        {
  835|  2.08M|        }
_ZN7jsonnet8internal15DesugaredObjectC2ERKNS0_13LocationRangeERKNSt3__14listIPNS0_3ASTENS5_9allocatorIS8_EEEERKNS5_6vectorINS1_5FieldENS9_ISF_EEEE:
  841|   424k|        : AST(lr, AST_DESUGARED_OBJECT, Fodder{}), asserts(asserts), fields(fields)
  842|   424k|    {
  843|   424k|    }
_ZN7jsonnet8internal19ObjectComprehensionC2ERKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEERKNS6_INS0_11ObjectFieldENS8_ISD_EEEEbRKNS6_INS0_17ComprehensionSpecENS8_ISI_EEEESC_:
  856|  33.1k|        : AST(lr, AST_OBJECT_COMPREHENSION, open_fodder),
  857|  33.1k|          fields(fields),
  858|  33.1k|          trailingComma(trailing_comma),
  859|  33.1k|          specs(specs),
  860|  33.1k|          closeFodder(close_fodder)
  861|  33.1k|    {
  862|  33.1k|    }
_ZN7jsonnet8internal25ObjectComprehensionSimpleC2ERKNS0_13LocationRangeEPNS0_3ASTES6_PKNS0_10IdentifierES6_:
  873|  32.9k|        : AST(lr, AST_OBJECT_COMPREHENSION_SIMPLE, Fodder{}),
  874|  32.9k|          field(field),
  875|  32.9k|          value(value),
  876|  32.9k|          id(id),
  877|  32.9k|          array(array)
  878|  32.9k|    {
  879|  32.9k|    }
_ZN7jsonnet8internal6ParensC2ERKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEEPNS0_3ASTESC_:
  888|   378k|        : AST(lr, AST_PARENS, open_fodder), expr(expr), closeFodder(close_fodder)
  889|   378k|    {
  890|   378k|    }
_ZN7jsonnet8internal4SelfC2ERKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEE:
  895|  79.6k|    Self(const LocationRange &lr, const Fodder &open_fodder) : AST(lr, AST_SELF, open_fodder) {}
_ZN7jsonnet8internal10SuperIndexC2ERKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEESC_PNS0_3ASTESC_PKNS0_10IdentifierE:
  910|  14.5k|        : AST(lr, AST_SUPER_INDEX, open_fodder),
  911|  14.5k|          dotFodder(dot_fodder),
  912|  14.5k|          index(index),
  913|  14.5k|          idFodder(id_fodder),
  914|  14.5k|          id(id)
  915|  14.5k|    {
  916|  14.5k|    }
_ZN7jsonnet8internal7InSuperC2ERKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEEPNS0_3ASTESC_SC_:
  927|  13.8k|        : AST(lr, AST_IN_SUPER, open_fodder),
  928|  13.8k|          element(element),
  929|  13.8k|          inFodder(in_fodder),
  930|  13.8k|          superFodder(super_fodder)
  931|  13.8k|    {
  932|  13.8k|    }
_ZN7jsonnet8internal5UnaryC2ERKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEENS0_7UnaryOpEPNS0_3ASTE:
  956|   636k|        : AST(lr, AST_UNARY, open_fodder), op(op), expr(expr)
  957|   636k|    {
  958|   636k|    }
_ZN7jsonnet8internal3VarC2ERKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEEPKNS0_10IdentifierE:
  965|  30.0M|        : AST(lr, AST_VAR, open_fodder), id(id)
  966|  30.0M|    {
  967|  30.0M|    }
_ZN7jsonnet8internal9Allocator14makeIdentifierERKNSt3__112basic_stringIDiNS2_11char_traitsIDiEENS2_9allocatorIDiEEEE:
  998|  52.4M|    {
  999|  52.4M|        auto it = internedIdentifiers.find(name);
 1000|  52.4M|        if (it != internedIdentifiers.end()) {
  ------------------
  |  Branch (1000:13): [True: 50.3M, False: 2.09M]
  ------------------
 1001|  50.3M|            return it->second;
 1002|  50.3M|        }
 1003|  2.09M|        auto r = new Identifier(name);
 1004|  2.09M|        internedIdentifiers[name] = r;
 1005|  2.09M|        return r;
 1006|  52.4M|    }
parser.cpp:_ZN7jsonnet8internal12_GLOBAL__N_120build_precedence_mapEv:
 1047|      2|{
 1048|      2|    std::map<BinaryOp, int> r;
 1049|       |
 1050|      2|    r[BOP_MULT] = 5;
 1051|      2|    r[BOP_DIV] = 5;
 1052|      2|    r[BOP_PERCENT] = 5;
 1053|       |
 1054|      2|    r[BOP_PLUS] = 6;
 1055|      2|    r[BOP_MINUS] = 6;
 1056|       |
 1057|      2|    r[BOP_SHIFT_L] = 7;
 1058|      2|    r[BOP_SHIFT_R] = 7;
 1059|       |
 1060|      2|    r[BOP_GREATER] = 8;
 1061|      2|    r[BOP_GREATER_EQ] = 8;
 1062|      2|    r[BOP_LESS] = 8;
 1063|      2|    r[BOP_LESS_EQ] = 8;
 1064|      2|    r[BOP_IN] = 8;
 1065|       |
 1066|      2|    r[BOP_MANIFEST_EQUAL] = 9;
 1067|      2|    r[BOP_MANIFEST_UNEQUAL] = 9;
 1068|       |
 1069|      2|    r[BOP_BITWISE_AND] = 10;
 1070|       |
 1071|      2|    r[BOP_BITWISE_XOR] = 11;
 1072|       |
 1073|      2|    r[BOP_BITWISE_OR] = 12;
 1074|       |
 1075|      2|    r[BOP_AND] = 13;
 1076|       |
 1077|      2|    r[BOP_OR] = 14;
 1078|       |
 1079|      2|    return r;
 1080|      2|}
parser.cpp:_ZN7jsonnet8internal12_GLOBAL__N_115build_unary_mapEv:
 1083|      2|{
 1084|      2|    std::map<std::string, UnaryOp> r;
 1085|      2|    r["!"] = UOP_NOT;
 1086|      2|    r["~"] = UOP_BITWISE_NOT;
 1087|      2|    r["+"] = UOP_PLUS;
 1088|      2|    r["-"] = UOP_MINUS;
 1089|      2|    return r;
 1090|      2|}
parser.cpp:_ZN7jsonnet8internal12_GLOBAL__N_116build_binary_mapEv:
 1093|      2|{
 1094|      2|    std::map<std::string, BinaryOp> r;
 1095|       |
 1096|      2|    r["*"] = BOP_MULT;
 1097|      2|    r["/"] = BOP_DIV;
 1098|      2|    r["%"] = BOP_PERCENT;
 1099|       |
 1100|      2|    r["+"] = BOP_PLUS;
 1101|      2|    r["-"] = BOP_MINUS;
 1102|       |
 1103|      2|    r["<<"] = BOP_SHIFT_L;
 1104|      2|    r[">>"] = BOP_SHIFT_R;
 1105|       |
 1106|      2|    r[">"] = BOP_GREATER;
 1107|      2|    r[">="] = BOP_GREATER_EQ;
 1108|      2|    r["<"] = BOP_LESS;
 1109|      2|    r["<="] = BOP_LESS_EQ;
 1110|      2|    r["in"] = BOP_IN;
 1111|       |
 1112|      2|    r["=="] = BOP_MANIFEST_EQUAL;
 1113|      2|    r["!="] = BOP_MANIFEST_UNEQUAL;
 1114|       |
 1115|      2|    r["&"] = BOP_BITWISE_AND;
 1116|      2|    r["^"] = BOP_BITWISE_XOR;
 1117|      2|    r["|"] = BOP_BITWISE_OR;
 1118|       |
 1119|      2|    r["&&"] = BOP_AND;
 1120|      2|    r["||"] = BOP_OR;
 1121|      2|    return r;
 1122|      2|}
_ZN7jsonnet8internal9Allocator4makeINS0_6AssertEJNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEERPNS0_3ASTERSA_SF_SG_SF_EEEPT_DpOT0_:
  980|   311k|    {
  981|   311k|        auto r = new T(std::forward<Args>(args)...);
  982|   311k|        allocated.push_back(r);
  983|   311k|        return r;
  984|   311k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_5ErrorEJNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEERPNS0_3ASTEEEEPT_DpOT0_:
  980|   495k|    {
  981|   495k|        auto r = new T(std::forward<Args>(args)...);
  982|   495k|        allocated.push_back(r);
  983|   495k|        return r;
  984|   495k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_11ConditionalEJNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEERPNS0_3ASTERSA_SF_SG_SF_EEEPT_DpOT0_:
  980|  2.43M|    {
  981|  2.43M|        auto r = new T(std::forward<Args>(args)...);
  982|  2.43M|        allocated.push_back(r);
  983|  2.43M|        return r;
  984|  2.43M|    }
_ZN7jsonnet8internal9Allocator4makeINS0_11ConditionalEJNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEERPNS0_3ASTERSA_SF_SA_DnEEEPT_DpOT0_:
  980|  30.4k|    {
  981|  30.4k|        auto r = new T(std::forward<Args>(args)...);
  982|  30.4k|        allocated.push_back(r);
  983|  30.4k|        return r;
  984|  30.4k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_8FunctionEJNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEERSA_RNS6_INS0_8ArgParamENS8_ISE_EEEERbSD_RPNS0_3ASTEEEEPT_DpOT0_:
  980|   152k|    {
  981|   152k|        auto r = new T(std::forward<Args>(args)...);
  982|   152k|        allocated.push_back(r);
  983|   152k|        return r;
  984|   152k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_6ImportEJNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEERPNS0_13LiteralStringEEEEPT_DpOT0_:
  980|    350|    {
  981|    350|        auto r = new T(std::forward<Args>(args)...);
  982|    350|        allocated.push_back(r);
  983|    350|        return r;
  984|    350|    }
_ZN7jsonnet8internal9Allocator4makeINS0_9ImportstrEJNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEERPNS0_13LiteralStringEEEEPT_DpOT0_:
  980|    917|    {
  981|    917|        auto r = new T(std::forward<Args>(args)...);
  982|    917|        allocated.push_back(r);
  983|    917|        return r;
  984|    917|    }
_ZN7jsonnet8internal9Allocator4makeINS0_9ImportbinEJNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEERPNS0_13LiteralStringEEEEPT_DpOT0_:
  980|    632|    {
  981|    632|        auto r = new T(std::forward<Args>(args)...);
  982|    632|        allocated.push_back(r);
  983|    632|        return r;
  984|    632|    }
_ZN7jsonnet8internal9Allocator4makeINS0_5LocalEJNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEERNS6_INS3_4BindENS8_ISD_EEEERPNS0_3ASTEEEEPT_DpOT0_:
  980|  1.83M|    {
  981|  1.83M|        auto r = new T(std::forward<Args>(args)...);
  982|  1.83M|        allocated.push_back(r);
  983|  1.83M|        return r;
  984|  1.83M|    }
_ZN7jsonnet8internal9Allocator4makeINS0_5UnaryEJNS0_13LocationRangeERNSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEERNS0_7UnaryOpERPNS0_3ASTEEEEPT_DpOT0_:
  980|   452k|    {
  981|   452k|        auto r = new T(std::forward<Args>(args)...);
  982|   452k|        allocated.push_back(r);
  983|   452k|        return r;
  984|   452k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_6ObjectEJNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEERNS6_INS0_11ObjectFieldENS8_ISD_EEEERbRSA_EEEPT_DpOT0_:
  980|   430k|    {
  981|   430k|        auto r = new T(std::forward<Args>(args)...);
  982|   430k|        allocated.push_back(r);
  983|   430k|        return r;
  984|   430k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_19ObjectComprehensionEJNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEERNS6_INS0_11ObjectFieldENS8_ISD_EEEERbRNS6_INS0_17ComprehensionSpecENS8_ISI_EEEERSA_EEEPT_DpOT0_:
  980|  33.1k|    {
  981|  33.1k|        auto r = new T(std::forward<Args>(args)...);
  982|  33.1k|        allocated.push_back(r);
  983|  33.1k|        return r;
  984|  33.1k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_13LiteralStringEJRNS0_13LocationRangeERNSt3__16vectorINS0_13FodderElementENS6_9allocatorIS8_EEEENS6_12basic_stringIDiNS6_11char_traitsIDiEENS9_IDiEEEENS3_9TokenKindERA1_KcSL_EEEPT_DpOT0_:
  980|   105k|    {
  981|   105k|        auto r = new T(std::forward<Args>(args)...);
  982|   105k|        allocated.push_back(r);
  983|   105k|        return r;
  984|   105k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_13LiteralStringEJRNS0_13LocationRangeERNSt3__16vectorINS0_13FodderElementENS6_9allocatorIS8_EEEENS6_12basic_stringIDiNS6_11char_traitsIDiEENS9_IDiEEEENS3_9TokenKindERNSD_IcNSE_IcEENS9_IcEEEESM_EEEPT_DpOT0_:
  980|  2.12k|    {
  981|  2.12k|        auto r = new T(std::forward<Args>(args)...);
  982|  2.12k|        allocated.push_back(r);
  983|  2.12k|        return r;
  984|  2.12k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_5ArrayEJNS0_13LocationRangeERNSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEENS6_INS3_7ElementENS8_ISC_EEEEbSB_EEEPT_DpOT0_:
  980|   172k|    {
  981|   172k|        auto r = new T(std::forward<Args>(args)...);
  982|   172k|        allocated.push_back(r);
  983|   172k|        return r;
  984|   172k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_18ArrayComprehensionEJNS0_13LocationRangeERNSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEERPNS0_3ASTESB_RbRNS6_INS0_17ComprehensionSpecENS8_ISG_EEEESB_EEEPT_DpOT0_:
  980|   242k|    {
  981|   242k|        auto r = new T(std::forward<Args>(args)...);
  982|   242k|        allocated.push_back(r);
  983|   242k|        return r;
  984|   242k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_5ArrayEJNS0_13LocationRangeERNSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEERNS6_INS3_7ElementENS8_ISC_EEEERbSB_EEEPT_DpOT0_:
  980|   643k|    {
  981|   643k|        auto r = new T(std::forward<Args>(args)...);
  982|   643k|        allocated.push_back(r);
  983|   643k|        return r;
  984|   643k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_6ParensEJNS0_13LocationRangeERNSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEERPNS0_3ASTESB_EEEPT_DpOT0_:
  980|   378k|    {
  981|   378k|        auto r = new T(std::forward<Args>(args)...);
  982|   378k|        allocated.push_back(r);
  983|   378k|        return r;
  984|   378k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_13LiteralNumberEJNS0_13LocationRangeERNSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEERNS5_12basic_stringIcNS5_11char_traitsIcEENS8_IcEEEEEEEPT_DpOT0_:
  980|  5.11M|    {
  981|  5.11M|        auto r = new T(std::forward<Args>(args)...);
  982|  5.11M|        allocated.push_back(r);
  983|  5.11M|        return r;
  984|  5.11M|    }
_ZN7jsonnet8internal9Allocator4makeINS0_13LiteralStringEJNS0_13LocationRangeERNSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEENS5_12basic_stringIDiNS5_11char_traitsIDiEENS8_IDiEEEENS3_9TokenKindERA1_KcSK_EEEPT_DpOT0_:
  980|  3.60M|    {
  981|  3.60M|        auto r = new T(std::forward<Args>(args)...);
  982|  3.60M|        allocated.push_back(r);
  983|  3.60M|        return r;
  984|  3.60M|    }
_ZN7jsonnet8internal9Allocator4makeINS0_13LiteralStringEJNS0_13LocationRangeERNSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEENS5_12basic_stringIDiNS5_11char_traitsIDiEENS8_IDiEEEENS3_9TokenKindERNSC_IcNSD_IcEENS8_IcEEEESL_EEEPT_DpOT0_:
  980|  1.27k|    {
  981|  1.27k|        auto r = new T(std::forward<Args>(args)...);
  982|  1.27k|        allocated.push_back(r);
  983|  1.27k|        return r;
  984|  1.27k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_14LiteralBooleanEJNS0_13LocationRangeERNSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEEbEEEPT_DpOT0_:
  980|   644k|    {
  981|   644k|        auto r = new T(std::forward<Args>(args)...);
  982|   644k|        allocated.push_back(r);
  983|   644k|        return r;
  984|   644k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_11LiteralNullEJNS0_13LocationRangeERNSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEEEEEPT_DpOT0_:
  980|   138k|    {
  981|   138k|        auto r = new T(std::forward<Args>(args)...);
  982|   138k|        allocated.push_back(r);
  983|   138k|        return r;
  984|   138k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_6DollarEJNS0_13LocationRangeERNSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEEEEEPT_DpOT0_:
  980|  38.3k|    {
  981|  38.3k|        auto r = new T(std::forward<Args>(args)...);
  982|  38.3k|        allocated.push_back(r);
  983|  38.3k|        return r;
  984|  38.3k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_3VarEJNS0_13LocationRangeERNSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEEPKNS0_10IdentifierEEEEPT_DpOT0_:
  980|  23.5M|    {
  981|  23.5M|        auto r = new T(std::forward<Args>(args)...);
  982|  23.5M|        allocated.push_back(r);
  983|  23.5M|        return r;
  984|  23.5M|    }
_ZN7jsonnet8internal9Allocator4makeINS0_4SelfEJNS0_13LocationRangeERNSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEEEEEPT_DpOT0_:
  980|  53.2k|    {
  981|  53.2k|        auto r = new T(std::forward<Args>(args)...);
  982|  53.2k|        allocated.push_back(r);
  983|  53.2k|        return r;
  984|  53.2k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_10SuperIndexEJNS0_13LocationRangeERNSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEESB_RPNS0_3ASTESB_RPKNS0_10IdentifierEEEEPT_DpOT0_:
  980|    992|    {
  981|    992|        auto r = new T(std::forward<Args>(args)...);
  982|    992|        allocated.push_back(r);
  983|    992|        return r;
  984|    992|    }
_ZN7jsonnet8internal9Allocator4makeINS0_5IndexEJNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEERPNS0_3ASTERSA_RbSF_SG_SF_SG_SF_SG_EEEPT_DpOT0_:
  980|  1.30M|    {
  981|  1.30M|        auto r = new T(std::forward<Args>(args)...);
  982|  1.30M|        allocated.push_back(r);
  983|  1.30M|        return r;
  984|  1.30M|    }
_ZN7jsonnet8internal9Allocator4makeINS0_5IndexEJNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEERPNS0_3ASTERSA_SG_RPKNS0_10IdentifierEEEEPT_DpOT0_:
  980|  5.43M|    {
  981|  5.43M|        auto r = new T(std::forward<Args>(args)...);
  982|  5.43M|        allocated.push_back(r);
  983|  5.43M|        return r;
  984|  5.43M|    }
_ZN7jsonnet8internal9Allocator4makeINS0_5ApplyEJNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEERPNS0_3ASTERSA_RNS6_INS0_8ArgParamENS8_ISH_EEEERbSG_SG_SL_EEEPT_DpOT0_:
  980|  6.14M|    {
  981|  6.14M|        auto r = new T(std::forward<Args>(args)...);
  982|  6.14M|        allocated.push_back(r);
  983|  6.14M|        return r;
  984|  6.14M|    }
_ZN7jsonnet8internal9Allocator4makeINS0_10ApplyBraceEJNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEERPNS0_3ASTESF_EEEPT_DpOT0_:
  980|  98.2k|    {
  981|  98.2k|        auto r = new T(std::forward<Args>(args)...);
  982|  98.2k|        allocated.push_back(r);
  983|  98.2k|        return r;
  984|  98.2k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_7InSuperEJNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEERPNS0_3ASTERSA_SG_EEEPT_DpOT0_:
  980|    338|    {
  981|    338|        auto r = new T(std::forward<Args>(args)...);
  982|    338|        allocated.push_back(r);
  983|    338|        return r;
  984|    338|    }
_ZN7jsonnet8internal9Allocator4makeINS0_6BinaryEJNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEERPNS0_3ASTERSA_RNS0_8BinaryOpESF_EEEPT_DpOT0_:
  980|  6.55M|    {
  981|  6.55M|        auto r = new T(std::forward<Args>(args)...);
  982|  6.55M|        allocated.push_back(r);
  983|  6.55M|        return r;
  984|  6.55M|    }
pass.cpp:_ZN7jsonnet8internal12_GLOBAL__N_120build_precedence_mapEv:
 1047|      2|{
 1048|      2|    std::map<BinaryOp, int> r;
 1049|       |
 1050|      2|    r[BOP_MULT] = 5;
 1051|      2|    r[BOP_DIV] = 5;
 1052|      2|    r[BOP_PERCENT] = 5;
 1053|       |
 1054|      2|    r[BOP_PLUS] = 6;
 1055|      2|    r[BOP_MINUS] = 6;
 1056|       |
 1057|      2|    r[BOP_SHIFT_L] = 7;
 1058|      2|    r[BOP_SHIFT_R] = 7;
 1059|       |
 1060|      2|    r[BOP_GREATER] = 8;
 1061|      2|    r[BOP_GREATER_EQ] = 8;
 1062|      2|    r[BOP_LESS] = 8;
 1063|      2|    r[BOP_LESS_EQ] = 8;
 1064|      2|    r[BOP_IN] = 8;
 1065|       |
 1066|      2|    r[BOP_MANIFEST_EQUAL] = 9;
 1067|      2|    r[BOP_MANIFEST_UNEQUAL] = 9;
 1068|       |
 1069|      2|    r[BOP_BITWISE_AND] = 10;
 1070|       |
 1071|      2|    r[BOP_BITWISE_XOR] = 11;
 1072|       |
 1073|      2|    r[BOP_BITWISE_OR] = 12;
 1074|       |
 1075|      2|    r[BOP_AND] = 13;
 1076|       |
 1077|      2|    r[BOP_OR] = 14;
 1078|       |
 1079|      2|    return r;
 1080|      2|}
pass.cpp:_ZN7jsonnet8internal12_GLOBAL__N_115build_unary_mapEv:
 1083|      2|{
 1084|      2|    std::map<std::string, UnaryOp> r;
 1085|      2|    r["!"] = UOP_NOT;
 1086|      2|    r["~"] = UOP_BITWISE_NOT;
 1087|      2|    r["+"] = UOP_PLUS;
 1088|      2|    r["-"] = UOP_MINUS;
 1089|      2|    return r;
 1090|      2|}
pass.cpp:_ZN7jsonnet8internal12_GLOBAL__N_116build_binary_mapEv:
 1093|      2|{
 1094|      2|    std::map<std::string, BinaryOp> r;
 1095|       |
 1096|      2|    r["*"] = BOP_MULT;
 1097|      2|    r["/"] = BOP_DIV;
 1098|      2|    r["%"] = BOP_PERCENT;
 1099|       |
 1100|      2|    r["+"] = BOP_PLUS;
 1101|      2|    r["-"] = BOP_MINUS;
 1102|       |
 1103|      2|    r["<<"] = BOP_SHIFT_L;
 1104|      2|    r[">>"] = BOP_SHIFT_R;
 1105|       |
 1106|      2|    r[">"] = BOP_GREATER;
 1107|      2|    r[">="] = BOP_GREATER_EQ;
 1108|      2|    r["<"] = BOP_LESS;
 1109|      2|    r["<="] = BOP_LESS_EQ;
 1110|      2|    r["in"] = BOP_IN;
 1111|       |
 1112|      2|    r["=="] = BOP_MANIFEST_EQUAL;
 1113|      2|    r["!="] = BOP_MANIFEST_UNEQUAL;
 1114|       |
 1115|      2|    r["&"] = BOP_BITWISE_AND;
 1116|      2|    r["^"] = BOP_BITWISE_XOR;
 1117|      2|    r["|"] = BOP_BITWISE_OR;
 1118|       |
 1119|      2|    r["&&"] = BOP_AND;
 1120|      2|    r["||"] = BOP_OR;
 1121|      2|    return r;
 1122|      2|}
_ZN7jsonnet8internal9Allocator5cloneINS0_5ApplyEEEPT_S5_:
  988|   267k|    {
  989|   267k|        auto r = new T(*ast);
  990|   267k|        allocated.push_back(r);
  991|   267k|        return r;
  992|   267k|    }
_ZN7jsonnet8internal9Allocator5cloneINS0_5ArrayEEEPT_S5_:
  988|   159k|    {
  989|   159k|        auto r = new T(*ast);
  990|   159k|        allocated.push_back(r);
  991|   159k|        return r;
  992|   159k|    }
_ZN7jsonnet8internal9Allocator5cloneINS0_6BinaryEEEPT_S5_:
  988|   832k|    {
  989|   832k|        auto r = new T(*ast);
  990|   832k|        allocated.push_back(r);
  991|   832k|        return r;
  992|   832k|    }
_ZN7jsonnet8internal9Allocator5cloneINS0_11ConditionalEEEPT_S5_:
  988|   496k|    {
  989|   496k|        auto r = new T(*ast);
  990|   496k|        allocated.push_back(r);
  991|   496k|        return r;
  992|   496k|    }
_ZN7jsonnet8internal9Allocator5cloneINS0_15DesugaredObjectEEEPT_S5_:
  988|   929k|    {
  989|   929k|        auto r = new T(*ast);
  990|   929k|        allocated.push_back(r);
  991|   929k|        return r;
  992|   929k|    }
_ZN7jsonnet8internal9Allocator5cloneINS0_5ErrorEEEPT_S5_:
  988|  75.4k|    {
  989|  75.4k|        auto r = new T(*ast);
  990|  75.4k|        allocated.push_back(r);
  991|  75.4k|        return r;
  992|  75.4k|    }
_ZN7jsonnet8internal9Allocator5cloneINS0_8FunctionEEEPT_S5_:
  988|   116k|    {
  989|   116k|        auto r = new T(*ast);
  990|   116k|        allocated.push_back(r);
  991|   116k|        return r;
  992|   116k|    }
_ZN7jsonnet8internal9Allocator5cloneINS0_6ImportEEEPT_S5_:
  988|  1.76k|    {
  989|  1.76k|        auto r = new T(*ast);
  990|  1.76k|        allocated.push_back(r);
  991|  1.76k|        return r;
  992|  1.76k|    }
_ZN7jsonnet8internal9Allocator5cloneINS0_9ImportstrEEEPT_S5_:
  988|  3.24k|    {
  989|  3.24k|        auto r = new T(*ast);
  990|  3.24k|        allocated.push_back(r);
  991|  3.24k|        return r;
  992|  3.24k|    }
_ZN7jsonnet8internal9Allocator5cloneINS0_9ImportbinEEEPT_S5_:
  988|  1.09k|    {
  989|  1.09k|        auto r = new T(*ast);
  990|  1.09k|        allocated.push_back(r);
  991|  1.09k|        return r;
  992|  1.09k|    }
_ZN7jsonnet8internal9Allocator5cloneINS0_5IndexEEEPT_S5_:
  988|   300k|    {
  989|   300k|        auto r = new T(*ast);
  990|   300k|        allocated.push_back(r);
  991|   300k|        return r;
  992|   300k|    }
_ZN7jsonnet8internal9Allocator5cloneINS0_7InSuperEEEPT_S5_:
  988|   228k|    {
  989|   228k|        auto r = new T(*ast);
  990|   228k|        allocated.push_back(r);
  991|   228k|        return r;
  992|   228k|    }
_ZN7jsonnet8internal9Allocator5cloneINS0_14LiteralBooleanEEEPT_S5_:
  988|  13.8k|    {
  989|  13.8k|        auto r = new T(*ast);
  990|  13.8k|        allocated.push_back(r);
  991|  13.8k|        return r;
  992|  13.8k|    }
_ZN7jsonnet8internal9Allocator5cloneINS0_11LiteralNullEEEPT_S5_:
  988|  7.35k|    {
  989|  7.35k|        auto r = new T(*ast);
  990|  7.35k|        allocated.push_back(r);
  991|  7.35k|        return r;
  992|  7.35k|    }
_ZN7jsonnet8internal9Allocator5cloneINS0_13LiteralNumberEEEPT_S5_:
  988|   469k|    {
  989|   469k|        auto r = new T(*ast);
  990|   469k|        allocated.push_back(r);
  991|   469k|        return r;
  992|   469k|    }
_ZN7jsonnet8internal9Allocator5cloneINS0_13LiteralStringEEEPT_S5_:
  988|  1.58M|    {
  989|  1.58M|        auto r = new T(*ast);
  990|  1.58M|        allocated.push_back(r);
  991|  1.58M|        return r;
  992|  1.58M|    }
_ZN7jsonnet8internal9Allocator5cloneINS0_5LocalEEEPT_S5_:
  988|   288k|    {
  989|   288k|        auto r = new T(*ast);
  990|   288k|        allocated.push_back(r);
  991|   288k|        return r;
  992|   288k|    }
_ZN7jsonnet8internal9Allocator5cloneINS0_25ObjectComprehensionSimpleEEEPT_S5_:
  988|  26.2k|    {
  989|  26.2k|        auto r = new T(*ast);
  990|  26.2k|        allocated.push_back(r);
  991|  26.2k|        return r;
  992|  26.2k|    }
_ZN7jsonnet8internal9Allocator5cloneINS0_4SelfEEEPT_S5_:
  988|  9.31k|    {
  989|  9.31k|        auto r = new T(*ast);
  990|  9.31k|        allocated.push_back(r);
  991|  9.31k|        return r;
  992|  9.31k|    }
_ZN7jsonnet8internal9Allocator5cloneINS0_10SuperIndexEEEPT_S5_:
  988|   230k|    {
  989|   230k|        auto r = new T(*ast);
  990|   230k|        allocated.push_back(r);
  991|   230k|        return r;
  992|   230k|    }
_ZN7jsonnet8internal9Allocator5cloneINS0_5UnaryEEEPT_S5_:
  988|  1.05M|    {
  989|  1.05M|        auto r = new T(*ast);
  990|  1.05M|        allocated.push_back(r);
  991|  1.05M|        return r;
  992|  1.05M|    }
_ZN7jsonnet8internal9Allocator5cloneINS0_3VarEEEPT_S5_:
  988|  2.63M|    {
  989|  2.63M|        auto r = new T(*ast);
  990|  2.63M|        allocated.push_back(r);
  991|  2.63M|        return r;
  992|  2.63M|    }
static_analysis.cpp:_ZN7jsonnet8internal12_GLOBAL__N_120build_precedence_mapEv:
 1047|      2|{
 1048|      2|    std::map<BinaryOp, int> r;
 1049|       |
 1050|      2|    r[BOP_MULT] = 5;
 1051|      2|    r[BOP_DIV] = 5;
 1052|      2|    r[BOP_PERCENT] = 5;
 1053|       |
 1054|      2|    r[BOP_PLUS] = 6;
 1055|      2|    r[BOP_MINUS] = 6;
 1056|       |
 1057|      2|    r[BOP_SHIFT_L] = 7;
 1058|      2|    r[BOP_SHIFT_R] = 7;
 1059|       |
 1060|      2|    r[BOP_GREATER] = 8;
 1061|      2|    r[BOP_GREATER_EQ] = 8;
 1062|      2|    r[BOP_LESS] = 8;
 1063|      2|    r[BOP_LESS_EQ] = 8;
 1064|      2|    r[BOP_IN] = 8;
 1065|       |
 1066|      2|    r[BOP_MANIFEST_EQUAL] = 9;
 1067|      2|    r[BOP_MANIFEST_UNEQUAL] = 9;
 1068|       |
 1069|      2|    r[BOP_BITWISE_AND] = 10;
 1070|       |
 1071|      2|    r[BOP_BITWISE_XOR] = 11;
 1072|       |
 1073|      2|    r[BOP_BITWISE_OR] = 12;
 1074|       |
 1075|      2|    r[BOP_AND] = 13;
 1076|       |
 1077|      2|    r[BOP_OR] = 14;
 1078|       |
 1079|      2|    return r;
 1080|      2|}
static_analysis.cpp:_ZN7jsonnet8internal12_GLOBAL__N_115build_unary_mapEv:
 1083|      2|{
 1084|      2|    std::map<std::string, UnaryOp> r;
 1085|      2|    r["!"] = UOP_NOT;
 1086|      2|    r["~"] = UOP_BITWISE_NOT;
 1087|      2|    r["+"] = UOP_PLUS;
 1088|      2|    r["-"] = UOP_MINUS;
 1089|      2|    return r;
 1090|      2|}
static_analysis.cpp:_ZN7jsonnet8internal12_GLOBAL__N_116build_binary_mapEv:
 1093|      2|{
 1094|      2|    std::map<std::string, BinaryOp> r;
 1095|       |
 1096|      2|    r["*"] = BOP_MULT;
 1097|      2|    r["/"] = BOP_DIV;
 1098|      2|    r["%"] = BOP_PERCENT;
 1099|       |
 1100|      2|    r["+"] = BOP_PLUS;
 1101|      2|    r["-"] = BOP_MINUS;
 1102|       |
 1103|      2|    r["<<"] = BOP_SHIFT_L;
 1104|      2|    r[">>"] = BOP_SHIFT_R;
 1105|       |
 1106|      2|    r[">"] = BOP_GREATER;
 1107|      2|    r[">="] = BOP_GREATER_EQ;
 1108|      2|    r["<"] = BOP_LESS;
 1109|      2|    r["<="] = BOP_LESS_EQ;
 1110|      2|    r["in"] = BOP_IN;
 1111|       |
 1112|      2|    r["=="] = BOP_MANIFEST_EQUAL;
 1113|      2|    r["!="] = BOP_MANIFEST_UNEQUAL;
 1114|       |
 1115|      2|    r["&"] = BOP_BITWISE_AND;
 1116|      2|    r["^"] = BOP_BITWISE_XOR;
 1117|      2|    r["|"] = BOP_BITWISE_OR;
 1118|       |
 1119|      2|    r["&&"] = BOP_AND;
 1120|      2|    r["||"] = BOP_OR;
 1121|      2|    return r;
 1122|      2|}
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_120build_precedence_mapEv:
 1047|      2|{
 1048|      2|    std::map<BinaryOp, int> r;
 1049|       |
 1050|      2|    r[BOP_MULT] = 5;
 1051|      2|    r[BOP_DIV] = 5;
 1052|      2|    r[BOP_PERCENT] = 5;
 1053|       |
 1054|      2|    r[BOP_PLUS] = 6;
 1055|      2|    r[BOP_MINUS] = 6;
 1056|       |
 1057|      2|    r[BOP_SHIFT_L] = 7;
 1058|      2|    r[BOP_SHIFT_R] = 7;
 1059|       |
 1060|      2|    r[BOP_GREATER] = 8;
 1061|      2|    r[BOP_GREATER_EQ] = 8;
 1062|      2|    r[BOP_LESS] = 8;
 1063|      2|    r[BOP_LESS_EQ] = 8;
 1064|      2|    r[BOP_IN] = 8;
 1065|       |
 1066|      2|    r[BOP_MANIFEST_EQUAL] = 9;
 1067|      2|    r[BOP_MANIFEST_UNEQUAL] = 9;
 1068|       |
 1069|      2|    r[BOP_BITWISE_AND] = 10;
 1070|       |
 1071|      2|    r[BOP_BITWISE_XOR] = 11;
 1072|       |
 1073|      2|    r[BOP_BITWISE_OR] = 12;
 1074|       |
 1075|      2|    r[BOP_AND] = 13;
 1076|       |
 1077|      2|    r[BOP_OR] = 14;
 1078|       |
 1079|      2|    return r;
 1080|      2|}
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_115build_unary_mapEv:
 1083|      2|{
 1084|      2|    std::map<std::string, UnaryOp> r;
 1085|      2|    r["!"] = UOP_NOT;
 1086|      2|    r["~"] = UOP_BITWISE_NOT;
 1087|      2|    r["+"] = UOP_PLUS;
 1088|      2|    r["-"] = UOP_MINUS;
 1089|      2|    return r;
 1090|      2|}
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_116build_binary_mapEv:
 1093|      2|{
 1094|      2|    std::map<std::string, BinaryOp> r;
 1095|       |
 1096|      2|    r["*"] = BOP_MULT;
 1097|      2|    r["/"] = BOP_DIV;
 1098|      2|    r["%"] = BOP_PERCENT;
 1099|       |
 1100|      2|    r["+"] = BOP_PLUS;
 1101|      2|    r["-"] = BOP_MINUS;
 1102|       |
 1103|      2|    r["<<"] = BOP_SHIFT_L;
 1104|      2|    r[">>"] = BOP_SHIFT_R;
 1105|       |
 1106|      2|    r[">"] = BOP_GREATER;
 1107|      2|    r[">="] = BOP_GREATER_EQ;
 1108|      2|    r["<"] = BOP_LESS;
 1109|      2|    r["<="] = BOP_LESS_EQ;
 1110|      2|    r["in"] = BOP_IN;
 1111|       |
 1112|      2|    r["=="] = BOP_MANIFEST_EQUAL;
 1113|      2|    r["!="] = BOP_MANIFEST_UNEQUAL;
 1114|       |
 1115|      2|    r["&"] = BOP_BITWISE_AND;
 1116|      2|    r["^"] = BOP_BITWISE_XOR;
 1117|      2|    r["|"] = BOP_BITWISE_OR;
 1118|       |
 1119|      2|    r["&&"] = BOP_AND;
 1120|      2|    r["||"] = BOP_OR;
 1121|      2|    return r;
 1122|      2|}
_ZN7jsonnet8internal9Allocator4makeINS0_3VarEJNS0_13LocationRangeENSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEERPKNS0_10IdentifierEEEEPT_DpOT0_:
  980|  3.48k|    {
  981|  3.48k|        auto r = new T(std::forward<Args>(args)...);
  982|  3.48k|        allocated.push_back(r);
  983|  3.48k|        return r;
  984|  3.48k|    }
vm.cpp:_ZN7jsonnet8internalL10bop_stringENS0_8BinaryOpE:
  325|    171|{
  326|    171|    switch (bop) {
  327|      6|        case BOP_MULT: return "*";
  ------------------
  |  Branch (327:9): [True: 6, False: 165]
  ------------------
  328|      5|        case BOP_DIV: return "/";
  ------------------
  |  Branch (328:9): [True: 5, False: 166]
  ------------------
  329|      0|        case BOP_PERCENT: return "%";
  ------------------
  |  Branch (329:9): [True: 0, False: 171]
  ------------------
  330|       |
  331|     45|        case BOP_PLUS: return "+";
  ------------------
  |  Branch (331:9): [True: 45, False: 126]
  ------------------
  332|     10|        case BOP_MINUS: return "-";
  ------------------
  |  Branch (332:9): [True: 10, False: 161]
  ------------------
  333|       |
  334|      4|        case BOP_SHIFT_L: return "<<";
  ------------------
  |  Branch (334:9): [True: 4, False: 167]
  ------------------
  335|      3|        case BOP_SHIFT_R: return ">>";
  ------------------
  |  Branch (335:9): [True: 3, False: 168]
  ------------------
  336|       |
  337|     16|        case BOP_GREATER: return ">";
  ------------------
  |  Branch (337:9): [True: 16, False: 155]
  ------------------
  338|     14|        case BOP_GREATER_EQ: return ">=";
  ------------------
  |  Branch (338:9): [True: 14, False: 157]
  ------------------
  339|     20|        case BOP_LESS: return "<";
  ------------------
  |  Branch (339:9): [True: 20, False: 151]
  ------------------
  340|     10|        case BOP_LESS_EQ: return "<=";
  ------------------
  |  Branch (340:9): [True: 10, False: 161]
  ------------------
  341|      0|        case BOP_IN: return "in";
  ------------------
  |  Branch (341:9): [True: 0, False: 171]
  ------------------
  342|       |
  343|      0|        case BOP_MANIFEST_EQUAL: return "==";
  ------------------
  |  Branch (343:9): [True: 0, False: 171]
  ------------------
  344|      0|        case BOP_MANIFEST_UNEQUAL: return "!=";
  ------------------
  |  Branch (344:9): [True: 0, False: 171]
  ------------------
  345|       |
  346|      9|        case BOP_BITWISE_AND: return "&";
  ------------------
  |  Branch (346:9): [True: 9, False: 162]
  ------------------
  347|     14|        case BOP_BITWISE_XOR: return "^";
  ------------------
  |  Branch (347:9): [True: 14, False: 157]
  ------------------
  348|      7|        case BOP_BITWISE_OR: return "|";
  ------------------
  |  Branch (348:9): [True: 7, False: 164]
  ------------------
  349|       |
  350|      3|        case BOP_AND: return "&&";
  ------------------
  |  Branch (350:9): [True: 3, False: 168]
  ------------------
  351|      5|        case BOP_OR: return "||";
  ------------------
  |  Branch (351:9): [True: 5, False: 166]
  ------------------
  352|       |
  353|      0|        default:
  ------------------
  |  Branch (353:9): [True: 0, False: 171]
  ------------------
  354|      0|            std::cerr << "INTERNAL ERROR: Unrecognised binary operator: " << bop << std::endl;
  355|      0|            std::abort();
  356|    171|    }
  357|    171|}
vm.cpp:_ZN7jsonnet8internalL10uop_stringENS0_7UnaryOpE:
  938|    162|{
  939|    162|    switch (uop) {
  940|    106|        case UOP_PLUS: return "+";
  ------------------
  |  Branch (940:9): [True: 106, False: 56]
  ------------------
  941|     14|        case UOP_MINUS: return "-";
  ------------------
  |  Branch (941:9): [True: 14, False: 148]
  ------------------
  942|      4|        case UOP_BITWISE_NOT: return "~";
  ------------------
  |  Branch (942:9): [True: 4, False: 158]
  ------------------
  943|     38|        case UOP_NOT: return "!";
  ------------------
  |  Branch (943:9): [True: 38, False: 124]
  ------------------
  944|       |
  945|      0|        default:
  ------------------
  |  Branch (945:9): [True: 0, False: 162]
  ------------------
  946|      0|            std::cerr << "INTERNAL ERROR: Unrecognised unary operator: " << uop << std::endl;
  947|      0|            std::abort();
  948|    162|    }
  949|    162|}
desugarer.cpp:_ZN7jsonnet8internal12_GLOBAL__N_120build_precedence_mapEv:
 1047|      2|{
 1048|      2|    std::map<BinaryOp, int> r;
 1049|       |
 1050|      2|    r[BOP_MULT] = 5;
 1051|      2|    r[BOP_DIV] = 5;
 1052|      2|    r[BOP_PERCENT] = 5;
 1053|       |
 1054|      2|    r[BOP_PLUS] = 6;
 1055|      2|    r[BOP_MINUS] = 6;
 1056|       |
 1057|      2|    r[BOP_SHIFT_L] = 7;
 1058|      2|    r[BOP_SHIFT_R] = 7;
 1059|       |
 1060|      2|    r[BOP_GREATER] = 8;
 1061|      2|    r[BOP_GREATER_EQ] = 8;
 1062|      2|    r[BOP_LESS] = 8;
 1063|      2|    r[BOP_LESS_EQ] = 8;
 1064|      2|    r[BOP_IN] = 8;
 1065|       |
 1066|      2|    r[BOP_MANIFEST_EQUAL] = 9;
 1067|      2|    r[BOP_MANIFEST_UNEQUAL] = 9;
 1068|       |
 1069|      2|    r[BOP_BITWISE_AND] = 10;
 1070|       |
 1071|      2|    r[BOP_BITWISE_XOR] = 11;
 1072|       |
 1073|      2|    r[BOP_BITWISE_OR] = 12;
 1074|       |
 1075|      2|    r[BOP_AND] = 13;
 1076|       |
 1077|      2|    r[BOP_OR] = 14;
 1078|       |
 1079|      2|    return r;
 1080|      2|}
desugarer.cpp:_ZN7jsonnet8internal12_GLOBAL__N_115build_unary_mapEv:
 1083|      2|{
 1084|      2|    std::map<std::string, UnaryOp> r;
 1085|      2|    r["!"] = UOP_NOT;
 1086|      2|    r["~"] = UOP_BITWISE_NOT;
 1087|      2|    r["+"] = UOP_PLUS;
 1088|      2|    r["-"] = UOP_MINUS;
 1089|      2|    return r;
 1090|      2|}
desugarer.cpp:_ZN7jsonnet8internal12_GLOBAL__N_116build_binary_mapEv:
 1093|      2|{
 1094|      2|    std::map<std::string, BinaryOp> r;
 1095|       |
 1096|      2|    r["*"] = BOP_MULT;
 1097|      2|    r["/"] = BOP_DIV;
 1098|      2|    r["%"] = BOP_PERCENT;
 1099|       |
 1100|      2|    r["+"] = BOP_PLUS;
 1101|      2|    r["-"] = BOP_MINUS;
 1102|       |
 1103|      2|    r["<<"] = BOP_SHIFT_L;
 1104|      2|    r[">>"] = BOP_SHIFT_R;
 1105|       |
 1106|      2|    r[">"] = BOP_GREATER;
 1107|      2|    r[">="] = BOP_GREATER_EQ;
 1108|      2|    r["<"] = BOP_LESS;
 1109|      2|    r["<="] = BOP_LESS_EQ;
 1110|      2|    r["in"] = BOP_IN;
 1111|       |
 1112|      2|    r["=="] = BOP_MANIFEST_EQUAL;
 1113|      2|    r["!="] = BOP_MANIFEST_UNEQUAL;
 1114|       |
 1115|      2|    r["&"] = BOP_BITWISE_AND;
 1116|      2|    r["^"] = BOP_BITWISE_XOR;
 1117|      2|    r["|"] = BOP_BITWISE_OR;
 1118|       |
 1119|      2|    r["&&"] = BOP_AND;
 1120|      2|    r["||"] = BOP_OR;
 1121|      2|    return r;
 1122|      2|}
_ZN7jsonnet8internal9Allocator4makeINS0_6BinaryEJRNS0_13LocationRangeERNSt3__16vectorINS0_13FodderElementENS6_9allocatorIS8_EEEERPNS0_3ASTERKSB_NS0_8BinaryOpESF_EEEPT_DpOT0_:
  980|  95.8k|    {
  981|  95.8k|        auto r = new T(std::forward<Args>(args)...);
  982|  95.8k|        allocated.push_back(r);
  983|  95.8k|        return r;
  984|  95.8k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_13LiteralNumberEJRKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS7_9allocatorIS9_EEEERA4_KcEEEPT_DpOT0_:
  980|   583k|    {
  981|   583k|        auto r = new T(std::forward<Args>(args)...);
  982|   583k|        allocated.push_back(r);
  983|   583k|        return r;
  984|   583k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_5ApplyEJRNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS6_9allocatorIS8_EEEEPNS0_3VarESD_NS7_INS0_8ArgParamENS9_ISG_EEEEbSD_SD_bEEEPT_DpOT0_:
  980|   275k|    {
  981|   275k|        auto r = new T(std::forward<Args>(args)...);
  982|   275k|        allocated.push_back(r);
  983|   275k|        return r;
  984|   275k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_6BinaryEJRKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS7_9allocatorIS9_EEEEPNS0_3VarESE_NS0_8BinaryOpERPNS0_3ASTEEEEPT_DpOT0_:
  980|   414k|    {
  981|   414k|        auto r = new T(std::forward<Args>(args)...);
  982|   414k|        allocated.push_back(r);
  983|   414k|        return r;
  984|   414k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_6BinaryEJRKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS7_9allocatorIS9_EEEEPNS0_3VarESE_NS0_8BinaryOpEPNS0_5ArrayEEEEPT_DpOT0_:
  980|   275k|    {
  981|   275k|        auto r = new T(std::forward<Args>(args)...);
  982|   275k|        allocated.push_back(r);
  983|   275k|        return r;
  984|   275k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_5ArrayEJRNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS6_9allocatorIS8_EEEENS7_INS3_7ElementENS9_ISE_EEEEbSD_EEEPT_DpOT0_:
  980|   275k|    {
  981|   275k|        auto r = new T(std::forward<Args>(args)...);
  982|   275k|        allocated.push_back(r);
  983|   275k|        return r;
  984|   275k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_5ApplyEJRKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS7_9allocatorIS9_EEEEPNS0_3VarESE_NS8_INS0_8ArgParamENSA_ISH_EEEEbSE_SE_bEEEPT_DpOT0_:
  980|   439k|    {
  981|   439k|        auto r = new T(std::forward<Args>(args)...);
  982|   439k|        allocated.push_back(r);
  983|   439k|        return r;
  984|   439k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_11ConditionalEJRNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS6_9allocatorIS8_EEEERKPNS0_3ASTESD_RSF_SD_SI_EEEPT_DpOT0_:
  980|   112k|    {
  981|   112k|        auto r = new T(std::forward<Args>(args)...);
  982|   112k|        allocated.push_back(r);
  983|   112k|        return r;
  984|   112k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_5LocalEJRNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS6_9allocatorIS8_EEEENS7_INS3_4BindENS9_ISE_EEEEPNS0_11ConditionalEEEEPT_DpOT0_:
  980|   301k|    {
  981|   301k|        auto r = new T(std::forward<Args>(args)...);
  982|   301k|        allocated.push_back(r);
  983|   301k|        return r;
  984|   301k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_8FunctionEJRNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS6_9allocatorIS8_EEEESD_NS7_INS0_8ArgParamENS9_ISE_EEEEbSD_PNS0_11ConditionalEEEEPT_DpOT0_:
  980|   301k|    {
  981|   301k|        auto r = new T(std::forward<Args>(args)...);
  982|   301k|        allocated.push_back(r);
  983|   301k|        return r;
  984|   301k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_11ConditionalEJRNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS6_9allocatorIS8_EEEEPNS0_6BinaryESD_RPNS0_3ASTESD_PNS0_5LocalEEEEPT_DpOT0_:
  980|   301k|    {
  981|   301k|        auto r = new T(std::forward<Args>(args)...);
  982|   301k|        allocated.push_back(r);
  983|   301k|        return r;
  984|   301k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_6BinaryEJRKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS7_9allocatorIS9_EEEEPNS0_3VarESE_NS0_8BinaryOpEPNS0_5ApplyEEEEPT_DpOT0_:
  980|   301k|    {
  981|   301k|        auto r = new T(std::forward<Args>(args)...);
  982|   301k|        allocated.push_back(r);
  983|   301k|        return r;
  984|   301k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_5LocalEJRNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS6_9allocatorIS8_EEEENS7_INS3_4BindENS9_ISE_EEEERPNS0_3ASTEEEEPT_DpOT0_:
  980|   309k|    {
  981|   309k|        auto r = new T(std::forward<Args>(args)...);
  982|   309k|        allocated.push_back(r);
  983|   309k|        return r;
  984|   309k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_5IndexEJRKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS7_9allocatorIS9_EEEEPNS0_3VarESE_bSG_SE_DnSE_DnSE_EEEPT_DpOT0_:
  980|   301k|    {
  981|   301k|        auto r = new T(std::forward<Args>(args)...);
  982|   301k|        allocated.push_back(r);
  983|   301k|        return r;
  984|   301k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_11ConditionalEJRNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS6_9allocatorIS8_EEEEPNS0_5ApplyESD_SF_SD_PNS0_5ErrorEEEEPT_DpOT0_:
  980|   301k|    {
  981|   301k|        auto r = new T(std::forward<Args>(args)...);
  982|   301k|        allocated.push_back(r);
  983|   301k|        return r;
  984|   301k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_5ArrayEJRKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS7_9allocatorIS9_EEEENS8_INS3_7ElementENSA_ISF_EEEEbSE_EEEPT_DpOT0_:
  980|   275k|    {
  981|   275k|        auto r = new T(std::forward<Args>(args)...);
  982|   275k|        allocated.push_back(r);
  983|   275k|        return r;
  984|   275k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_13LiteralStringEJRKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS7_9allocatorIS9_EEEERKNS7_12basic_stringIDiNS7_11char_traitsIDiEENSA_IDiEEEENS3_9TokenKindERA1_KcSP_EEEPT_DpOT0_:
  980|  10.7M|    {
  981|  10.7M|        auto r = new T(std::forward<Args>(args)...);
  982|  10.7M|        allocated.push_back(r);
  983|  10.7M|        return r;
  984|  10.7M|    }
_ZN7jsonnet8internal9Allocator4makeINS0_5ErrorEJRNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS6_9allocatorIS8_EEEERPNS0_3ASTEEEEPT_DpOT0_:
  980|   641k|    {
  981|   641k|        auto r = new T(std::forward<Args>(args)...);
  982|   641k|        allocated.push_back(r);
  983|   641k|        return r;
  984|   641k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_11ConditionalEJRNS0_13LocationRangeERNSt3__16vectorINS0_13FodderElementENS6_9allocatorIS8_EEEERPNS0_3ASTERKSB_SF_SH_SF_EEEPT_DpOT0_:
  980|   310k|    {
  981|   310k|        auto r = new T(std::forward<Args>(args)...);
  982|   310k|        allocated.push_back(r);
  983|   310k|        return r;
  984|   310k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_5IndexEJRKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS7_9allocatorIS9_EEEEPNS0_3VarESE_bPNS0_13LiteralStringESE_DnSE_DnSE_EEEPT_DpOT0_:
  980|  2.65M|    {
  981|  2.65M|        auto r = new T(std::forward<Args>(args)...);
  982|  2.65M|        allocated.push_back(r);
  983|  2.65M|        return r;
  984|  2.65M|    }
_ZN7jsonnet8internal9Allocator4makeINS0_5ApplyEJRNS0_13LocationRangeERNSt3__16vectorINS0_13FodderElementENS6_9allocatorIS8_EEEERPNS0_3ASTERKSB_RNS7_INS0_8ArgParamENS9_ISI_EEEEbSH_SH_bEEEPT_DpOT0_:
  980|   234k|    {
  981|   234k|        auto r = new T(std::forward<Args>(args)...);
  982|   234k|        allocated.push_back(r);
  983|   234k|        return r;
  984|   234k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_5ApplyEJRKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS7_9allocatorIS9_EEEEPNS0_5IndexESE_NS8_INS0_8ArgParamENSA_ISH_EEEEbSE_SE_bEEEPT_DpOT0_:
  980|  1.68M|    {
  981|  1.68M|        auto r = new T(std::forward<Args>(args)...);
  982|  1.68M|        allocated.push_back(r);
  983|  1.68M|        return r;
  984|  1.68M|    }
_ZN7jsonnet8internal9Allocator4makeINS0_5UnaryEJRNS0_13LocationRangeERNSt3__16vectorINS0_13FodderElementENS6_9allocatorIS8_EEEENS0_7UnaryOpERPNS0_3ASTEEEEPT_DpOT0_:
  980|   183k|    {
  981|   183k|        auto r = new T(std::forward<Args>(args)...);
  982|   183k|        allocated.push_back(r);
  983|   183k|        return r;
  984|   183k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_11LiteralNullEJRKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS7_9allocatorIS9_EEEEEEEPT_DpOT0_:
  980|   255k|    {
  981|   255k|        auto r = new T(std::forward<Args>(args)...);
  982|   255k|        allocated.push_back(r);
  983|   255k|        return r;
  984|   255k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_3VarEJRKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS7_9allocatorIS9_EEEERPKNS0_10IdentifierEEEEPT_DpOT0_:
  980|  6.15M|    {
  981|  6.15M|        auto r = new T(std::forward<Args>(args)...);
  982|  6.15M|        allocated.push_back(r);
  983|  6.15M|        return r;
  984|  6.15M|    }
_ZN7jsonnet8internal9Allocator4makeINS0_5ApplyEJRNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS6_9allocatorIS8_EEEEPNS0_5IndexESD_NS7_INS0_8ArgParamENS9_ISG_EEEEbSD_SD_bEEEPT_DpOT0_:
  980|   744k|    {
  981|   744k|        auto r = new T(std::forward<Args>(args)...);
  982|   744k|        allocated.push_back(r);
  983|   744k|        return r;
  984|   744k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_8FunctionEJRNS0_13LocationRangeERNSt3__16vectorINS0_13FodderElementENS6_9allocatorIS8_EEEESC_RNS7_INS0_8ArgParamENS9_ISD_EEEEbSC_RPNS0_3ASTEEEEPT_DpOT0_:
  980|   560k|    {
  981|   560k|        auto r = new T(std::forward<Args>(args)...);
  982|   560k|        allocated.push_back(r);
  983|   560k|        return r;
  984|   560k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_4SelfEJRKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS7_9allocatorIS9_EEEEEEEPT_DpOT0_:
  980|  26.3k|    {
  981|  26.3k|        auto r = new T(std::forward<Args>(args)...);
  982|  26.3k|        allocated.push_back(r);
  983|  26.3k|        return r;
  984|  26.3k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_11ConditionalEJRNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS6_9allocatorIS8_EEEERPNS0_3ASTESD_PNS0_14LiteralBooleanESD_PNS0_5ErrorEEEEPT_DpOT0_:
  980|  29.6k|    {
  981|  29.6k|        auto r = new T(std::forward<Args>(args)...);
  982|  29.6k|        allocated.push_back(r);
  983|  29.6k|        return r;
  984|  29.6k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_14LiteralBooleanEJRKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS7_9allocatorIS9_EEEEbEEEPT_DpOT0_:
  980|  29.6k|    {
  981|  29.6k|        auto r = new T(std::forward<Args>(args)...);
  982|  29.6k|        allocated.push_back(r);
  983|  29.6k|        return r;
  984|  29.6k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_8FunctionEJRNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS6_9allocatorIS8_EEEERSB_RNS7_INS0_8ArgParamENS9_ISF_EEEERbSE_RPNS0_3ASTEEEEPT_DpOT0_:
  980|   953k|    {
  981|   953k|        auto r = new T(std::forward<Args>(args)...);
  982|   953k|        allocated.push_back(r);
  983|   953k|        return r;
  984|   953k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_3VarEJRNS0_13LocationRangeERNSt3__16vectorINS0_13FodderElementENS6_9allocatorIS8_EEEERPKNS0_10IdentifierEEEEPT_DpOT0_:
  980|   276k|    {
  981|   276k|        auto r = new T(std::forward<Args>(args)...);
  982|   276k|        allocated.push_back(r);
  983|   276k|        return r;
  984|   276k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_11ConditionalEJRNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS6_9allocatorIS8_EEEEPNS0_7InSuperESD_PNS0_6BinaryESD_PNS0_3ASTEEEEPT_DpOT0_:
  980|  13.5k|    {
  981|  13.5k|        auto r = new T(std::forward<Args>(args)...);
  982|  13.5k|        allocated.push_back(r);
  983|  13.5k|        return r;
  984|  13.5k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_7InSuperEJRNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS6_9allocatorIS8_EEEERPNS0_3ASTESD_SD_EEEPT_DpOT0_:
  980|  13.5k|    {
  981|  13.5k|        auto r = new T(std::forward<Args>(args)...);
  982|  13.5k|        allocated.push_back(r);
  983|  13.5k|        return r;
  984|  13.5k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_6BinaryEJRNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS6_9allocatorIS8_EEEEPNS0_10SuperIndexESD_NS0_8BinaryOpERPNS0_3ASTEEEEPT_DpOT0_:
  980|  13.5k|    {
  981|  13.5k|        auto r = new T(std::forward<Args>(args)...);
  982|  13.5k|        allocated.push_back(r);
  983|  13.5k|        return r;
  984|  13.5k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_10SuperIndexEJRNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS6_9allocatorIS8_EEEESD_PNS0_3ASTESD_DnEEEPT_DpOT0_:
  980|  13.5k|    {
  981|  13.5k|        auto r = new T(std::forward<Args>(args)...);
  982|  13.5k|        allocated.push_back(r);
  983|  13.5k|        return r;
  984|  13.5k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_15DesugaredObjectEJRNS0_13LocationRangeERNSt3__14listIPNS0_3ASTENS6_9allocatorIS9_EEEERNS6_6vectorINS3_5FieldENSA_ISF_EEEEEEEPT_DpOT0_:
  980|   424k|    {
  981|   424k|        auto r = new T(std::forward<Args>(args)...);
  982|   424k|        allocated.push_back(r);
  983|   424k|        return r;
  984|   424k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_5LocalEJRNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS6_9allocatorIS8_EEEERNS7_INS3_4BindENS9_ISE_EEEERPNS0_3ASTEEEEPT_DpOT0_:
  980|  1.03M|    {
  981|  1.03M|        auto r = new T(std::forward<Args>(args)...);
  982|  1.03M|        allocated.push_back(r);
  983|  1.03M|        return r;
  984|  1.03M|    }
_ZN7jsonnet8internal9Allocator4makeINS0_5IndexEJRKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS7_9allocatorIS9_EEEEPNS0_3VarESE_bPNS0_13LiteralNumberESE_DnSE_DnSE_EEEPT_DpOT0_:
  980|  35.5k|    {
  981|  35.5k|        auto r = new T(std::forward<Args>(args)...);
  982|  35.5k|        allocated.push_back(r);
  983|  35.5k|        return r;
  984|  35.5k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_13LiteralNumberEJRKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS7_9allocatorIS9_EEEENS7_12basic_stringIcNS7_11char_traitsIcEENSA_IcEEEEEEEPT_DpOT0_:
  980|  35.5k|    {
  981|  35.5k|        auto r = new T(std::forward<Args>(args)...);
  982|  35.5k|        allocated.push_back(r);
  983|  35.5k|        return r;
  984|  35.5k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_18ArrayComprehensionEJRNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS6_9allocatorIS8_EEEEPNS0_5ArrayESD_bRNS7_INS0_17ComprehensionSpecENS9_ISG_EEEESD_EEEPT_DpOT0_:
  980|  33.0k|    {
  981|  33.0k|        auto r = new T(std::forward<Args>(args)...);
  982|  33.0k|        allocated.push_back(r);
  983|  33.0k|        return r;
  984|  33.0k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_5ArrayEJRNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS6_9allocatorIS8_EEEERNS7_INS3_7ElementENS9_ISE_EEEEbSD_EEEPT_DpOT0_:
  980|  33.0k|    {
  981|  33.0k|        auto r = new T(std::forward<Args>(args)...);
  982|  33.0k|        allocated.push_back(r);
  983|  33.0k|        return r;
  984|  33.0k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_25ObjectComprehensionSimpleEJRNS0_13LocationRangeEPNS0_5IndexEPNS0_5LocalERPKNS0_10IdentifierERPNS0_3ASTEEEEPT_DpOT0_:
  980|  32.9k|    {
  981|  32.9k|        auto r = new T(std::forward<Args>(args)...);
  982|  32.9k|        allocated.push_back(r);
  983|  32.9k|        return r;
  984|  32.9k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_5IndexEJRKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS7_9allocatorIS9_EEEEPNS0_3VarESE_bRPNS0_3ASTESE_DnSE_DnSE_EEEPT_DpOT0_:
  980|  32.9k|    {
  981|  32.9k|        auto r = new T(std::forward<Args>(args)...);
  982|  32.9k|        allocated.push_back(r);
  983|  32.9k|        return r;
  984|  32.9k|    }
_ZN7jsonnet8internal9Allocator15makeBuiltinBodyIZNS0_9Desugarer9stdlibASTENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEUlvE_EEPKNS0_19BuiltinFunctionBodyERKNS0_13LocationRangeERKSA_OT_:
 1009|   318k|    {
 1010|   318k|        auto it = internedBuiltins.find(name);
 1011|   318k|        if (it != internedBuiltins.end()) {
  ------------------
  |  Branch (1011:13): [True: 146k, False: 171k]
  ------------------
 1012|   146k|            return it->second;
 1013|   146k|        }
 1014|   171k|        const Identifiers params = make_params();
 1015|   171k|        auto r = new BuiltinFunctionBody(loc, name, params);
 1016|   171k|        internedBuiltins[name] = r;
 1017|   171k|        return r;
 1018|   318k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_15BuiltinFunctionEJRKNS0_13LocationRangeERPKNS0_19BuiltinFunctionBodyEEEEPT_DpOT0_:
  980|   318k|    {
  981|   318k|        auto r = new T(std::forward<Args>(args)...);
  982|   318k|        allocated.push_back(r);
  983|   318k|        return r;
  984|   318k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_5LocalEJRNS0_13LocationRangeERNSt3__16vectorINS0_13FodderElementENS6_9allocatorIS8_EEEENS7_INS3_4BindENS9_ISD_EEEEPNS0_11ConditionalEEEEPT_DpOT0_:
  980|  4.08k|    {
  981|  4.08k|        auto r = new T(std::forward<Args>(args)...);
  982|  4.08k|        allocated.push_back(r);
  983|  4.08k|        return r;
  984|  4.08k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_11ConditionalEJRKNS0_13LocationRangeERNSt3__16vectorINS0_13FodderElementENS7_9allocatorIS9_EEEEPNS0_5ApplyERKSC_SF_SD_PNS0_3VarEEEEPT_DpOT0_:
  980|  4.08k|    {
  981|  4.08k|        auto r = new T(std::forward<Args>(args)...);
  982|  4.08k|        allocated.push_back(r);
  983|  4.08k|        return r;
  984|  4.08k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_5ApplyEJRNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS6_9allocatorIS8_EEEEPNS0_3VarESD_RNS7_INS0_8ArgParamENS9_ISG_EEEEbSD_SD_bEEEPT_DpOT0_:
  980|  4.08k|    {
  981|  4.08k|        auto r = new T(std::forward<Args>(args)...);
  982|  4.08k|        allocated.push_back(r);
  983|  4.08k|        return r;
  984|  4.08k|    }
_ZN7jsonnet8internal9Allocator4makeINS0_3VarEJRKNS0_13LocationRangeERNSt3__16vectorINS0_13FodderElementENS7_9allocatorIS9_EEEERPKNS0_10IdentifierEEEEPT_DpOT0_:
  980|  8.17k|    {
  981|  8.17k|        auto r = new T(std::forward<Args>(args)...);
  982|  8.17k|        allocated.push_back(r);
  983|  8.17k|        return r;
  984|  8.17k|    }
formatter.cpp:_ZN7jsonnet8internal12_GLOBAL__N_120build_precedence_mapEv:
 1047|      2|{
 1048|      2|    std::map<BinaryOp, int> r;
 1049|       |
 1050|      2|    r[BOP_MULT] = 5;
 1051|      2|    r[BOP_DIV] = 5;
 1052|      2|    r[BOP_PERCENT] = 5;
 1053|       |
 1054|      2|    r[BOP_PLUS] = 6;
 1055|      2|    r[BOP_MINUS] = 6;
 1056|       |
 1057|      2|    r[BOP_SHIFT_L] = 7;
 1058|      2|    r[BOP_SHIFT_R] = 7;
 1059|       |
 1060|      2|    r[BOP_GREATER] = 8;
 1061|      2|    r[BOP_GREATER_EQ] = 8;
 1062|      2|    r[BOP_LESS] = 8;
 1063|      2|    r[BOP_LESS_EQ] = 8;
 1064|      2|    r[BOP_IN] = 8;
 1065|       |
 1066|      2|    r[BOP_MANIFEST_EQUAL] = 9;
 1067|      2|    r[BOP_MANIFEST_UNEQUAL] = 9;
 1068|       |
 1069|      2|    r[BOP_BITWISE_AND] = 10;
 1070|       |
 1071|      2|    r[BOP_BITWISE_XOR] = 11;
 1072|       |
 1073|      2|    r[BOP_BITWISE_OR] = 12;
 1074|       |
 1075|      2|    r[BOP_AND] = 13;
 1076|       |
 1077|      2|    r[BOP_OR] = 14;
 1078|       |
 1079|      2|    return r;
 1080|      2|}
formatter.cpp:_ZN7jsonnet8internal12_GLOBAL__N_115build_unary_mapEv:
 1083|      2|{
 1084|      2|    std::map<std::string, UnaryOp> r;
 1085|      2|    r["!"] = UOP_NOT;
 1086|      2|    r["~"] = UOP_BITWISE_NOT;
 1087|      2|    r["+"] = UOP_PLUS;
 1088|      2|    r["-"] = UOP_MINUS;
 1089|      2|    return r;
 1090|      2|}
formatter.cpp:_ZN7jsonnet8internal12_GLOBAL__N_116build_binary_mapEv:
 1093|      2|{
 1094|      2|    std::map<std::string, BinaryOp> r;
 1095|       |
 1096|      2|    r["*"] = BOP_MULT;
 1097|      2|    r["/"] = BOP_DIV;
 1098|      2|    r["%"] = BOP_PERCENT;
 1099|       |
 1100|      2|    r["+"] = BOP_PLUS;
 1101|      2|    r["-"] = BOP_MINUS;
 1102|       |
 1103|      2|    r["<<"] = BOP_SHIFT_L;
 1104|      2|    r[">>"] = BOP_SHIFT_R;
 1105|       |
 1106|      2|    r[">"] = BOP_GREATER;
 1107|      2|    r[">="] = BOP_GREATER_EQ;
 1108|      2|    r["<"] = BOP_LESS;
 1109|      2|    r["<="] = BOP_LESS_EQ;
 1110|      2|    r["in"] = BOP_IN;
 1111|       |
 1112|      2|    r["=="] = BOP_MANIFEST_EQUAL;
 1113|      2|    r["!="] = BOP_MANIFEST_UNEQUAL;
 1114|       |
 1115|      2|    r["&"] = BOP_BITWISE_AND;
 1116|      2|    r["^"] = BOP_BITWISE_XOR;
 1117|      2|    r["|"] = BOP_BITWISE_OR;
 1118|       |
 1119|      2|    r["&&"] = BOP_AND;
 1120|      2|    r["||"] = BOP_OR;
 1121|      2|    return r;
 1122|      2|}

_ZN7jsonnet8internal20jsonnet_builtin_declEm:
   41|   318k|{
   42|   318k|    switch (builtin) {
   43|  7.57k|        case 0: return {U"makeArray", {U"sz", U"func"}};
  ------------------
  |  Branch (43:9): [True: 7.57k, False: 310k]
  ------------------
   44|  7.57k|        case 1: return {U"pow", {U"x", U"n"}};
  ------------------
  |  Branch (44:9): [True: 7.57k, False: 310k]
  ------------------
   45|  7.57k|        case 2: return {U"floor", {U"x"}};
  ------------------
  |  Branch (45:9): [True: 7.57k, False: 310k]
  ------------------
   46|  7.57k|        case 3: return {U"ceil", {U"x"}};
  ------------------
  |  Branch (46:9): [True: 7.57k, False: 310k]
  ------------------
   47|  7.57k|        case 4: return {U"sqrt", {U"x"}};
  ------------------
  |  Branch (47:9): [True: 7.57k, False: 310k]
  ------------------
   48|  7.57k|        case 5: return {U"sin", {U"x"}};
  ------------------
  |  Branch (48:9): [True: 7.57k, False: 310k]
  ------------------
   49|  7.57k|        case 6: return {U"cos", {U"x"}};
  ------------------
  |  Branch (49:9): [True: 7.57k, False: 310k]
  ------------------
   50|  7.57k|        case 7: return {U"tan", {U"x"}};
  ------------------
  |  Branch (50:9): [True: 7.57k, False: 310k]
  ------------------
   51|  7.57k|        case 8: return {U"asin", {U"x"}};
  ------------------
  |  Branch (51:9): [True: 7.57k, False: 310k]
  ------------------
   52|  7.57k|        case 9: return {U"acos", {U"x"}};
  ------------------
  |  Branch (52:9): [True: 7.57k, False: 310k]
  ------------------
   53|  7.57k|        case 10: return {U"atan", {U"x"}};
  ------------------
  |  Branch (53:9): [True: 7.57k, False: 310k]
  ------------------
   54|  7.57k|        case 11: return {U"type", {U"x"}};
  ------------------
  |  Branch (54:9): [True: 7.57k, False: 310k]
  ------------------
   55|  7.57k|        case 12: return {U"filter", {U"func", U"arr"}};
  ------------------
  |  Branch (55:9): [True: 7.57k, False: 310k]
  ------------------
   56|  7.57k|        case 13: return {U"objectHasEx", {U"obj", U"f", U"inc_hidden"}};
  ------------------
  |  Branch (56:9): [True: 7.57k, False: 310k]
  ------------------
   57|  7.57k|        case 14: return {U"length", {U"x"}};
  ------------------
  |  Branch (57:9): [True: 7.57k, False: 310k]
  ------------------
   58|  7.57k|        case 15: return {U"objectFieldsEx", {U"obj", U"inc_hidden"}};
  ------------------
  |  Branch (58:9): [True: 7.57k, False: 310k]
  ------------------
   59|  7.57k|        case 16: return {U"codepoint", {U"str"}};
  ------------------
  |  Branch (59:9): [True: 7.57k, False: 310k]
  ------------------
   60|  7.57k|        case 17: return {U"char", {U"n"}};
  ------------------
  |  Branch (60:9): [True: 7.57k, False: 310k]
  ------------------
   61|  7.57k|        case 18: return {U"log", {U"n"}};
  ------------------
  |  Branch (61:9): [True: 7.57k, False: 310k]
  ------------------
   62|  7.57k|        case 19: return {U"exp", {U"n"}};
  ------------------
  |  Branch (62:9): [True: 7.57k, False: 310k]
  ------------------
   63|  7.57k|        case 20: return {U"mantissa", {U"n"}};
  ------------------
  |  Branch (63:9): [True: 7.57k, False: 310k]
  ------------------
   64|  7.57k|        case 21: return {U"exponent", {U"n"}};
  ------------------
  |  Branch (64:9): [True: 7.57k, False: 310k]
  ------------------
   65|  7.57k|        case 22: return {U"modulo", {U"a", U"b"}};
  ------------------
  |  Branch (65:9): [True: 7.57k, False: 310k]
  ------------------
   66|  7.57k|        case 23: return {U"extVar", {U"x"}};
  ------------------
  |  Branch (66:9): [True: 7.57k, False: 310k]
  ------------------
   67|  7.57k|        case 24: return {U"primitiveEquals", {U"a", U"b"}};
  ------------------
  |  Branch (67:9): [True: 7.57k, False: 310k]
  ------------------
   68|  7.57k|        case 25: return {U"native", {U"name"}};
  ------------------
  |  Branch (68:9): [True: 7.57k, False: 310k]
  ------------------
   69|  7.57k|        case 26: return {U"md5", {U"str"}};
  ------------------
  |  Branch (69:9): [True: 7.57k, False: 310k]
  ------------------
   70|  7.57k|        case 27: return {U"trace", {U"str", U"rest"}};
  ------------------
  |  Branch (70:9): [True: 7.57k, False: 310k]
  ------------------
   71|  7.57k|        case 28: return {U"splitLimit", {U"str", U"c", U"maxsplits"}};
  ------------------
  |  Branch (71:9): [True: 7.57k, False: 310k]
  ------------------
   72|  7.57k|        case 29: return {U"substr", {U"str", U"from", U"len"}};
  ------------------
  |  Branch (72:9): [True: 7.57k, False: 310k]
  ------------------
   73|  7.57k|        case 30: return {U"range", {U"from", U"to"}};
  ------------------
  |  Branch (73:9): [True: 7.57k, False: 310k]
  ------------------
   74|  7.57k|        case 31: return {U"strReplace", {U"str", U"from", U"to"}};
  ------------------
  |  Branch (74:9): [True: 7.57k, False: 310k]
  ------------------
   75|  7.57k|        case 32: return {U"asciiLower", {U"str"}};
  ------------------
  |  Branch (75:9): [True: 7.57k, False: 310k]
  ------------------
   76|  7.57k|        case 33: return {U"asciiUpper", {U"str"}};
  ------------------
  |  Branch (76:9): [True: 7.57k, False: 310k]
  ------------------
   77|  7.57k|        case 34: return {U"join", {U"sep", U"arr"}};
  ------------------
  |  Branch (77:9): [True: 7.57k, False: 310k]
  ------------------
   78|  7.57k|        case 35: return {U"parseJson", {U"str"}};
  ------------------
  |  Branch (78:9): [True: 7.57k, False: 310k]
  ------------------
   79|  7.57k|        case 36: return {U"parseYaml", {U"str"}};
  ------------------
  |  Branch (79:9): [True: 7.57k, False: 310k]
  ------------------
   80|  7.57k|        case 37: return {U"encodeUTF8", {U"str"}};
  ------------------
  |  Branch (80:9): [True: 7.57k, False: 310k]
  ------------------
   81|  7.57k|        case 38: return {U"decodeUTF8", {U"arr"}};
  ------------------
  |  Branch (81:9): [True: 7.57k, False: 310k]
  ------------------
   82|  7.57k|        case 39: return {U"atan2", {U"y", U"x"}};
  ------------------
  |  Branch (82:9): [True: 7.57k, False: 310k]
  ------------------
   83|  7.57k|        case 40: return {U"hypot", {U"a", U"b"}};
  ------------------
  |  Branch (83:9): [True: 7.57k, False: 310k]
  ------------------
   84|  7.57k|        case 41: return {U"objectRemoveKey", {U"obj", U"key"}};
  ------------------
  |  Branch (84:9): [True: 7.57k, False: 310k]
  ------------------
   85|      0|        default:
  ------------------
  |  Branch (85:9): [True: 0, False: 318k]
  ------------------
   86|      0|            std::cerr << "INTERNAL ERROR: Unrecognized builtin function: " << builtin << std::endl;
   87|      0|            std::abort();
   88|   318k|    }
   89|       |    // Quiet, compiler.
   90|      0|    return BuiltinDecl();
   91|   318k|}
_ZN7jsonnet8internal13makeStdlibASTEPNS0_9AllocatorENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE:
 1022|  3.48k|DesugaredObject *makeStdlibAST(Allocator *alloc, std::string filename) {
 1023|  3.48k|    Desugarer desugarer(alloc, true);
 1024|  3.48k|    return desugarer.stdlibAST(filename);
 1025|  3.48k|}
_ZN7jsonnet8internal15jsonnet_desugarEPNS0_9AllocatorERPNS0_3ASTEPNSt3__13mapINS6_12basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEENS0_5VmExtENS6_4lessISD_EENSB_INS6_4pairIKSD_SE_EEEEEE:
 1028|  4.53k|{
 1029|  4.53k|    Desugarer desugarer(alloc);
 1030|  4.53k|    desugarer.desugarFile(ast, tlas);
 1031|  4.53k|}
_ZN7jsonnet8internal9DesugarerC2EPNS0_9AllocatorEb:
  229|  8.01k|    Desugarer(Allocator *alloc, bool isStdlib = false) : alloc(alloc), isStdlib(isStdlib) {}
_ZN7jsonnet8internal9Desugarer9stdlibASTENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
  921|  7.57k|    DesugaredObject *stdlibAST(std::string filename) {
  922|       |        // Now, implement the std library by wrapping in a local construct.
  923|  7.57k|        Tokens tokens = jsonnet_lex("std.jsonnet", STD_CODE);
  924|  7.57k|        AST *std_ast = jsonnet_parse(alloc, tokens);
  925|  7.57k|        desugar(std_ast, 0);
  926|  7.57k|        auto *std_obj = dynamic_cast<DesugaredObject *>(std_ast);
  927|  7.57k|        if (std_obj == nullptr) {
  ------------------
  |  Branch (927:13): [True: 0, False: 7.57k]
  ------------------
  928|      0|            std::cerr << "INTERNAL ERROR: std.jsonnet not an object." << std::endl;
  929|      0|            std::abort();
  930|      0|        }
  931|       |
  932|       |        // Bind 'std' builtins that are implemented natively.
  933|  7.57k|        DesugaredObject::Fields &fields = std_obj->fields;
  934|   325k|        for (unsigned long c = 0; c <= max_builtin; ++c) {
  ------------------
  |  Branch (934:35): [True: 318k, False: 7.57k]
  ------------------
  935|   318k|            const auto &decl = jsonnet_builtin_decl(c);
  936|   318k|            auto name = str(decl.name);
  937|   318k|            auto name_utf8 = "std:" + encode_utf8(decl.name);
  938|   318k|            auto fnbody = alloc->makeBuiltinBody(E, name_utf8, [this, &decl]()->Identifiers {
  939|   318k|                Identifiers params;
  940|   318k|                for (const auto &p : decl.params)
  941|   318k|                    params.push_back(this->id(p));
  942|   318k|                return params;
  943|   318k|            });
  944|   318k|            auto field = std::find_if(fields.begin(), fields.end(),
  945|   318k|                [=](const DesugaredObject::Field& f) {
  946|   318k|                    return static_cast<LiteralString*>(f.name)->value == decl.name;
  947|   318k|                });
  948|   318k|            auto fn = make<BuiltinFunction>(E, fnbody);
  949|   318k|            if (field != fields.end()) {
  ------------------
  |  Branch (949:17): [True: 53.0k, False: 265k]
  ------------------
  950|  53.0k|                field->body = fn;
  951|   265k|            } else {
  952|   265k|                fields.emplace_back(ObjectField::HIDDEN, name, fn);
  953|   265k|            }
  954|   318k|        }
  955|  7.57k|        fields.emplace_back(
  956|  7.57k|            ObjectField::HIDDEN, str(U"thisFile"), str(decode_utf8(filename)));
  957|  7.57k|        return std_obj;
  958|  7.57k|    }
_ZN7jsonnet8internal9Desugarer7desugarERPNS0_3ASTEj:
  686|  63.5M|    {
  687|  63.5M|        if (auto *ast = dynamic_cast<Apply *>(ast_)) {
  ------------------
  |  Branch (687:19): [True: 6.17M, False: 57.3M]
  ------------------
  688|  6.17M|            desugar(ast->target, obj_level);
  689|  6.17M|            for (ArgParam &arg : ast->args)
  ------------------
  |  Branch (689:32): [True: 10.2M, False: 6.17M]
  ------------------
  690|  10.2M|                desugar(arg.expr, obj_level);
  691|       |
  692|  57.3M|        } else if (auto *ast = dynamic_cast<ApplyBrace *>(ast_)) {
  ------------------
  |  Branch (692:26): [True: 96.0k, False: 57.2M]
  ------------------
  693|  96.0k|            desugar(ast->left, obj_level);
  694|  96.0k|            desugar(ast->right, obj_level);
  695|  96.0k|            ast_ =
  696|  96.0k|                make<Binary>(ast->location, ast->openFodder, ast->left, EF, BOP_PLUS, ast->right);
  697|       |
  698|  57.2M|        } else if (auto *ast = dynamic_cast<Array *>(ast_)) {
  ------------------
  |  Branch (698:26): [True: 862k, False: 56.4M]
  ------------------
  699|   862k|            for (auto &el : ast->elements)
  ------------------
  |  Branch (699:27): [True: 2.65M, False: 862k]
  ------------------
  700|  2.65M|                desugar(el.expr, obj_level);
  701|       |
  702|  56.4M|        } else if (auto *ast = dynamic_cast<ArrayComprehension *>(ast_)) {
  ------------------
  |  Branch (702:26): [True: 275k, False: 56.1M]
  ------------------
  703|   275k|            for (ComprehensionSpec &spec : ast->specs)
  ------------------
  |  Branch (703:42): [True: 414k, False: 275k]
  ------------------
  704|   414k|                desugar(spec.expr, obj_level);
  705|   275k|            desugar(ast->body, obj_level + 1);
  706|       |
  707|   275k|            ast_ = makeArrayComprehension(ast);
  708|       |
  709|  56.1M|        } else if (auto *ast = dynamic_cast<Assert *>(ast_)) {
  ------------------
  |  Branch (709:26): [True: 310k, False: 55.8M]
  ------------------
  710|   310k|            desugar(ast->cond, obj_level);
  711|   310k|            if (ast->message == nullptr) {
  ------------------
  |  Branch (711:17): [True: 22.9k, False: 287k]
  ------------------
  712|  22.9k|                ast->message = str(U"Assertion failed.");
  713|  22.9k|            }
  714|   310k|            desugar(ast->message, obj_level);
  715|   310k|            desugar(ast->rest, obj_level);
  716|       |
  717|       |            // if cond then rest else error msg
  718|   310k|            AST *branch_false = make<Error>(ast->location, EF, ast->message);
  719|   310k|            ast_ = make<Conditional>(
  720|   310k|                ast->location, ast->openFodder, ast->cond, EF, ast->rest, EF, branch_false);
  721|       |
  722|  55.8M|        } else if (auto *ast = dynamic_cast<Binary *>(ast_)) {
  ------------------
  |  Branch (722:26): [True: 6.65M, False: 49.1M]
  ------------------
  723|  6.65M|            desugar(ast->left, obj_level);
  724|  6.65M|            desugar(ast->right, obj_level);
  725|       |
  726|  6.65M|            bool invert = false;
  727|       |
  728|  6.65M|            switch (ast->op) {
  729|   234k|                case BOP_PERCENT: {
  ------------------
  |  Branch (729:17): [True: 234k, False: 6.41M]
  ------------------
  730|   234k|                    AST *f_mod = make<Index>(
  731|   234k|                        E, EF, std(), EF, false, str(U"mod"), EF, nullptr, EF, nullptr, EF);
  732|   234k|                    ArgParams args = {{ast->left, EF}, {ast->right, EF}};
  733|   234k|                    ast_ = make<Apply>(
  734|   234k|                        ast->location, ast->openFodder, f_mod, EF, args, false, EF, EF, false);
  735|   234k|                } break;
  736|       |
  737|   183k|                case BOP_MANIFEST_UNEQUAL: invert = true;
  ------------------
  |  Branch (737:17): [True: 183k, False: 6.46M]
  ------------------
  738|   183k|                [[fallthrough]];
  739|  1.37M|                case BOP_MANIFEST_EQUAL: {
  ------------------
  |  Branch (739:17): [True: 1.19M, False: 5.45M]
  ------------------
  740|  1.37M|                    ast_ = equals(ast->location, ast->left, ast->right);
  741|  1.37M|                    if (invert)
  ------------------
  |  Branch (741:25): [True: 183k, False: 1.19M]
  ------------------
  742|   183k|                        ast_ = make<Unary>(ast->location, ast->openFodder, UOP_NOT, ast_);
  743|  1.37M|                } break;
  744|       |
  745|  5.04M|                default:;
  ------------------
  |  Branch (745:17): [True: 5.04M, False: 1.60M]
  ------------------
  746|       |                    // Otherwise don't change it.
  747|  6.65M|            }
  748|       |
  749|  49.1M|        } else if (dynamic_cast<const BuiltinFunction *>(ast_)) {
  ------------------
  |  Branch (749:20): [True: 0, False: 49.1M]
  ------------------
  750|       |            // Nothing to do.
  751|       |
  752|  49.1M|        } else if (auto *ast = dynamic_cast<Conditional *>(ast_)) {
  ------------------
  |  Branch (752:26): [True: 2.50M, False: 46.6M]
  ------------------
  753|  2.50M|            desugar(ast->cond, obj_level);
  754|  2.50M|            desugar(ast->branchTrue, obj_level);
  755|  2.50M|            if (ast->branchFalse == nullptr)
  ------------------
  |  Branch (755:17): [True: 30.2k, False: 2.47M]
  ------------------
  756|  30.2k|                ast->branchFalse = null();
  757|  2.50M|            desugar(ast->branchFalse, obj_level);
  758|       |
  759|  46.6M|        } else if (auto *ast = dynamic_cast<Dollar *>(ast_)) {
  ------------------
  |  Branch (759:26): [True: 35.4k, False: 46.6M]
  ------------------
  760|  35.4k|            if (obj_level == 0) {
  ------------------
  |  Branch (760:17): [True: 219, False: 35.1k]
  ------------------
  761|    219|                throw StaticError(ast->location, "No top-level object found.");
  762|    219|            }
  763|  35.1k|            ast_ = var(id(U"$"));
  764|       |
  765|  46.6M|        } else if (auto *ast = dynamic_cast<Error *>(ast_)) {
  ------------------
  |  Branch (765:26): [True: 511k, False: 46.1M]
  ------------------
  766|   511k|            desugar(ast->expr, obj_level);
  767|       |
  768|  46.1M|        } else if (auto *ast = dynamic_cast<Function *>(ast_)) {
  ------------------
  |  Branch (768:26): [True: 185k, False: 45.9M]
  ------------------
  769|   185k|            desugar(ast->body, obj_level);
  770|   185k|            desugarParams(ast->params, obj_level);
  771|       |
  772|  45.9M|        } else if (auto *ast = dynamic_cast<Import *>(ast_)) {
  ------------------
  |  Branch (772:26): [True: 326, False: 45.9M]
  ------------------
  773|       |            // TODO(dcunnin): Abstract this into a template function if it becomes more common.
  774|    326|            AST *file = ast->file;
  775|    326|            desugar(file, obj_level);
  776|    326|            ast->file = dynamic_cast<LiteralString *>(file);
  777|       |
  778|  45.9M|        } else if (auto *ast = dynamic_cast<Importstr *>(ast_)) {
  ------------------
  |  Branch (778:26): [True: 613, False: 45.9M]
  ------------------
  779|       |            // TODO(dcunnin): Abstract this into a template function if it becomes more common.
  780|    613|            AST *file = ast->file;
  781|    613|            desugar(file, obj_level);
  782|    613|            ast->file = dynamic_cast<LiteralString *>(file);
  783|       |
  784|  45.9M|        } else if (auto *ast = dynamic_cast<Importbin *>(ast_)) {
  ------------------
  |  Branch (784:26): [True: 562, False: 45.9M]
  ------------------
  785|       |            // TODO(dcunnin): Abstract this into a template function if it becomes more common.
  786|    562|            AST *file = ast->file;
  787|    562|            desugar(file, obj_level);
  788|    562|            ast->file = dynamic_cast<LiteralString *>(file);
  789|       |
  790|  45.9M|        } else if (auto *ast = dynamic_cast<InSuper *>(ast_)) {
  ------------------
  |  Branch (790:26): [True: 10.1k, False: 45.9M]
  ------------------
  791|  10.1k|            desugar(ast->element, obj_level);
  792|       |
  793|  45.9M|        } else if (auto *ast = dynamic_cast<Index *>(ast_)) {
  ------------------
  |  Branch (793:26): [True: 6.79M, False: 39.1M]
  ------------------
  794|  6.79M|            desugar(ast->target, obj_level);
  795|  6.79M|            if (ast->isSlice) {
  ------------------
  |  Branch (795:17): [True: 138k, False: 6.65M]
  ------------------
  796|   138k|                if (ast->index == nullptr)
  ------------------
  |  Branch (796:21): [True: 17.1k, False: 121k]
  ------------------
  797|  17.1k|                    ast->index = null();
  798|   138k|                desugar(ast->index, obj_level);
  799|       |
  800|   138k|                if (ast->end == nullptr)
  ------------------
  |  Branch (800:21): [True: 77.6k, False: 61.1k]
  ------------------
  801|  77.6k|                    ast->end = null();
  802|   138k|                desugar(ast->end, obj_level);
  803|       |
  804|   138k|                if (ast->step == nullptr)
  ------------------
  |  Branch (804:21): [True: 130k, False: 8.04k]
  ------------------
  805|   130k|                    ast->step = null();
  806|   138k|                desugar(ast->step, obj_level);
  807|       |
  808|   138k|                ast_ = make<Apply>(
  809|   138k|                    ast->location,
  810|   138k|                    EF,
  811|   138k|                    make<Index>(
  812|   138k|                        E, EF, std(), EF, false, str(U"slice"), EF, nullptr, EF, nullptr, EF),
  813|   138k|                    EF,
  814|   138k|                    ArgParams{
  815|   138k|                        {ast->target, EF},
  816|   138k|                        {ast->index, EF},
  817|   138k|                        {ast->end, EF},
  818|   138k|                        {ast->step, EF},
  819|   138k|                    },
  820|   138k|                    false,  // trailing comma
  821|   138k|                    EF,
  822|   138k|                    EF,
  823|   138k|                    false  // tailstrict
  824|   138k|                );
  825|  6.65M|            } else {
  826|  6.65M|                if (ast->id != nullptr) {
  ------------------
  |  Branch (826:21): [True: 5.43M, False: 1.21M]
  ------------------
  827|  5.43M|                    assert(ast->index == nullptr);
  ------------------
  |  Branch (827:21): [True: 5.43M, False: 0]
  ------------------
  828|  5.43M|                    ast->index = str(ast->id->name);
  829|  5.43M|                    ast->id = nullptr;
  830|  5.43M|                }
  831|  6.65M|                desugar(ast->index, obj_level);
  832|  6.65M|            }
  833|       |
  834|  39.1M|        } else if (auto *ast = dynamic_cast<Local *>(ast_)) {
  ------------------
  |  Branch (834:26): [True: 1.85M, False: 37.2M]
  ------------------
  835|  1.85M|            for (auto &bind : ast->binds)
  ------------------
  |  Branch (835:29): [True: 1.97M, False: 1.85M]
  ------------------
  836|  1.97M|                desugar(bind.body, obj_level);
  837|  1.85M|            desugar(ast->body, obj_level);
  838|       |
  839|  1.97M|            for (auto &bind : ast->binds) {
  ------------------
  |  Branch (839:29): [True: 1.97M, False: 1.85M]
  ------------------
  840|  1.97M|                if (bind.functionSugar) {
  ------------------
  |  Branch (840:21): [True: 560k, False: 1.41M]
  ------------------
  841|   560k|                    desugarParams(bind.params, obj_level);
  842|   560k|                    bind.body = make<Function>(ast->location,
  843|   560k|                                               ast->openFodder,
  844|   560k|                                               bind.parenLeftFodder,
  845|   560k|                                               bind.params,
  846|   560k|                                               false,
  847|   560k|                                               bind.parenRightFodder,
  848|   560k|                                               bind.body);
  849|   560k|                    bind.functionSugar = false;
  850|   560k|                    bind.params.clear();
  851|   560k|                }
  852|  1.97M|            }
  853|       |
  854|  37.2M|        } else if (dynamic_cast<const LiteralBoolean *>(ast_)) {
  ------------------
  |  Branch (854:20): [True: 645k, False: 36.6M]
  ------------------
  855|       |            // Nothing to do.
  856|       |
  857|  36.6M|        } else if (dynamic_cast<const LiteralNumber *>(ast_)) {
  ------------------
  |  Branch (857:20): [True: 4.64M, False: 32.0M]
  ------------------
  858|       |            // Nothing to do.
  859|       |
  860|  32.0M|        } else if (auto *ast = dynamic_cast<LiteralString *>(ast_)) {
  ------------------
  |  Branch (860:26): [True: 9.29M, False: 22.7M]
  ------------------
  861|  9.29M|            if ((ast->tokenKind != LiteralString::RAW_DESUGARED) &&
  ------------------
  |  Branch (861:17): [True: 3.69M, False: 5.59M]
  ------------------
  862|  3.69M|                (ast->tokenKind != LiteralString::BLOCK) &&
  ------------------
  |  Branch (862:17): [True: 3.69M, False: 1.63k]
  ------------------
  863|  3.69M|                (ast->tokenKind != LiteralString::VERBATIM_DOUBLE) &&
  ------------------
  |  Branch (863:17): [True: 3.69M, False: 244]
  ------------------
  864|  3.69M|                (ast->tokenKind != LiteralString::VERBATIM_SINGLE)) {
  ------------------
  |  Branch (864:17): [True: 3.69M, False: 90]
  ------------------
  865|  3.69M|                ast->value = jsonnet_string_unescape(ast->location, ast->value);
  866|  3.69M|            }
  867|  9.29M|            ast->tokenKind = LiteralString::RAW_DESUGARED;
  868|  9.29M|            ast->blockIndent.clear();
  869|       |
  870|  22.7M|        } else if (dynamic_cast<const LiteralNull *>(ast_)) {
  ------------------
  |  Branch (870:20): [True: 394k, False: 22.3M]
  ------------------
  871|       |            // Nothing to do.
  872|       |
  873|  22.3M|        } else if (auto *ast = dynamic_cast<DesugaredObject *>(ast_)) {
  ------------------
  |  Branch (873:26): [True: 88.2k, False: 22.2M]
  ------------------
  874|  88.2k|            for (auto &field : ast->fields) {
  ------------------
  |  Branch (874:30): [True: 65.8k, False: 88.2k]
  ------------------
  875|  65.8k|                desugar(field.name, obj_level);
  876|  65.8k|                desugar(field.body, obj_level + 1);
  877|  65.8k|            }
  878|  88.2k|            for (AST *assert : ast->asserts) {
  ------------------
  |  Branch (878:30): [True: 1.78k, False: 88.2k]
  ------------------
  879|  1.78k|                desugar(assert, obj_level + 1);
  880|  1.78k|            }
  881|       |
  882|  22.2M|        } else if (auto *ast = dynamic_cast<Object *>(ast_)) {
  ------------------
  |  Branch (882:26): [True: 424k, False: 21.8M]
  ------------------
  883|   424k|            ast_ = makeObject(ast, obj_level);
  884|       |
  885|  21.8M|        } else if (auto *ast = dynamic_cast<ObjectComprehension *>(ast_)) {
  ------------------
  |  Branch (885:26): [True: 33.0k, False: 21.7M]
  ------------------
  886|  33.0k|            ast_ = makeObjectComprehension(ast, obj_level);
  887|       |
  888|  21.7M|        } else if (auto *ast = dynamic_cast<ObjectComprehensionSimple *>(ast_)) {
  ------------------
  |  Branch (888:26): [True: 5.92k, False: 21.7M]
  ------------------
  889|  5.92k|            desugar(ast->field, obj_level);
  890|  5.92k|            desugar(ast->value, obj_level + 1);
  891|  5.92k|            desugar(ast->array, obj_level);
  892|       |
  893|  21.7M|        } else if (auto *ast = dynamic_cast<Parens *>(ast_)) {
  ------------------
  |  Branch (893:26): [True: 378k, False: 21.3M]
  ------------------
  894|       |            // Strip parens.
  895|   378k|            desugar(ast->expr, obj_level);
  896|   378k|            ast_ = ast->expr;
  897|       |
  898|  21.3M|        } else if (dynamic_cast<const Self *>(ast_)) {
  ------------------
  |  Branch (898:20): [True: 79.5k, False: 21.3M]
  ------------------
  899|       |            // Nothing to do.
  900|       |
  901|  21.3M|        } else if (auto *ast = dynamic_cast<SuperIndex *>(ast_)) {
  ------------------
  |  Branch (901:26): [True: 10.4k, False: 21.2M]
  ------------------
  902|  10.4k|            if (ast->id != nullptr) {
  ------------------
  |  Branch (902:17): [True: 400, False: 10.0k]
  ------------------
  903|    400|                assert(ast->index == nullptr);
  ------------------
  |  Branch (903:17): [True: 400, False: 0]
  ------------------
  904|    400|                ast->index = str(ast->id->name);
  905|    400|                ast->id = nullptr;
  906|    400|            }
  907|  10.4k|            desugar(ast->index, obj_level);
  908|       |
  909|  21.2M|        } else if (auto *ast = dynamic_cast<Unary *>(ast_)) {
  ------------------
  |  Branch (909:26): [True: 621k, False: 20.6M]
  ------------------
  910|   621k|            desugar(ast->expr, obj_level);
  911|       |
  912|  20.6M|        } else if (dynamic_cast<const Var *>(ast_)) {
  ------------------
  |  Branch (912:20): [True: 20.6M, False: 0]
  ------------------
  913|       |            // Nothing to do.
  914|       |
  915|  20.6M|        } else {
  916|      0|            std::cerr << "INTERNAL ERROR: Unknown AST: " << ast_ << std::endl;
  917|      0|            std::abort();
  918|      0|        }
  919|  63.5M|    }
_ZN7jsonnet8internal9Desugarer4makeINS0_6BinaryEJRNS0_13LocationRangeERNSt3__16vectorINS0_13FodderElementENS6_9allocatorIS8_EEEERPNS0_3ASTERKSB_NS0_8BinaryOpESF_EEEPT_DpOT0_:
  110|  95.8k|    {
  111|  95.8k|        return alloc->make<T>(std::forward<Args>(args)...);
  112|  95.8k|    }
_ZN7jsonnet8internal9Desugarer22makeArrayComprehensionEPNS0_18ArrayComprehensionE:
  417|   275k|    AST* makeArrayComprehension(ArrayComprehension *ast) {
  418|   275k|        int n = ast->specs.size();
  419|   275k|        AST *zero = make<LiteralNumber>(E, EF, "0.0");
  420|   275k|        AST *one = make<LiteralNumber>(E, EF, "1.0");
  421|   275k|        auto *_r = id(U"$r");
  422|   275k|        auto *_l = id(U"$l");
  423|   275k|        std::vector<const Identifier *> _i(n);
  424|   689k|        for (int i = 0; i < n; ++i) {
  ------------------
  |  Branch (424:25): [True: 414k, False: 275k]
  ------------------
  425|   414k|            UStringStream ss;
  426|   414k|            ss << U"$i_" << i;
  427|   414k|            _i[i] = id(ss.str());
  428|   414k|        }
  429|   275k|        std::vector<const Identifier *> _aux(n);
  430|   689k|        for (int i = 0; i < n; ++i) {
  ------------------
  |  Branch (430:25): [True: 414k, False: 275k]
  ------------------
  431|   414k|            UStringStream ss;
  432|   414k|            ss << U"$aux_" << i;
  433|   414k|            _aux[i] = id(ss.str());
  434|   414k|        }
  435|       |
  436|       |        // Build it from the inside out.  We keep wrapping 'in' with more ASTs.
  437|   275k|        assert(ast->specs[0].kind == ComprehensionSpec::FOR);
  ------------------
  |  Branch (437:9): [True: 275k, False: 0]
  ------------------
  438|       |
  439|   275k|        int last_for = n - 1;
  440|   388k|        while (ast->specs[last_for].kind != ComprehensionSpec::FOR)
  ------------------
  |  Branch (440:16): [True: 112k, False: 275k]
  ------------------
  441|   112k|            last_for--;
  442|       |        // $aux_{last_for}($i_{last_for} + 1, $r + [body])
  443|   275k|        AST *in = make<Apply>(
  444|   275k|            ast->body->location,
  445|   275k|            EF,
  446|   275k|            var(_aux[last_for]),
  447|   275k|            EF,
  448|   275k|            ArgParams{{make<Binary>(E, EF, var(_i[last_for]), EF, BOP_PLUS, one), EF},
  449|   275k|                {make<Binary>(E, EF, var(_r), EF, BOP_PLUS, singleton(ast->body)), EF}},
  450|   275k|            false,  // trailingComma
  451|   275k|            EF,
  452|   275k|            EF,
  453|   275k|            true  // tailstrict
  454|   275k|        );
  455|   689k|        for (int i = n - 1; i >= 0; --i) {
  ------------------
  |  Branch (455:29): [True: 414k, False: 275k]
  ------------------
  456|   414k|            const ComprehensionSpec &spec = ast->specs[i];
  457|   414k|            AST *out;
  458|   414k|            if (i > 0) {
  ------------------
  |  Branch (458:17): [True: 138k, False: 275k]
  ------------------
  459|   138k|                int prev_for = i - 1;
  460|   293M|                while (ast->specs[prev_for].kind != ComprehensionSpec::FOR)
  ------------------
  |  Branch (460:24): [True: 292M, False: 138k]
  ------------------
  461|   292M|                    prev_for--;
  462|       |
  463|       |                // aux_{prev_for}($i_{prev_for} + 1, $r)
  464|   138k|                out = make<Apply>(  // False branch.
  465|   138k|                    E,
  466|   138k|                    EF,
  467|   138k|                    var(_aux[prev_for]),
  468|   138k|                    EF,
  469|   138k|                    ArgParams{{
  470|   138k|                        make<Binary>(E, EF, var(_i[prev_for]), EF, BOP_PLUS, one),
  471|   138k|                            EF,
  472|   138k|                            },
  473|   138k|                      {
  474|   138k|                        var(_r),
  475|   138k|                            EF,
  476|   138k|                            }},
  477|   138k|                    false,  // trailingComma
  478|   138k|                    EF,
  479|   138k|                    EF,
  480|   138k|                    true  // tailstrict
  481|   138k|                );
  482|   275k|            } else {
  483|   275k|                out = var(_r);
  484|   275k|            }
  485|   414k|            switch (spec.kind) {
  ------------------
  |  Branch (485:21): [True: 414k, False: 0]
  ------------------
  486|   112k|                case ComprehensionSpec::IF: {
  ------------------
  |  Branch (486:17): [True: 112k, False: 301k]
  ------------------
  487|       |                  /*
  488|       |                    if [[[...cond...]]] then
  489|       |                    [[[...in...]]]
  490|       |                    else
  491|       |                    [[[...out...]]]
  492|       |                  */
  493|   112k|                    in = make<Conditional>(ast->location,
  494|   112k|                                           EF,
  495|   112k|                                           spec.expr,
  496|   112k|                                           EF,
  497|   112k|                                           in,  // True branch.
  498|   112k|                                           EF,
  499|   112k|                                           out);  // False branch.
  500|   112k|                } break;
  501|   301k|                case ComprehensionSpec::FOR: {
  ------------------
  |  Branch (501:17): [True: 301k, False: 112k]
  ------------------
  502|       |                    /*
  503|       |                      local $l = [[[...array...]]]
  504|       |                      aux_{i}(i_{i}, r) =
  505|       |                      if i_{i} >= std.length($l) then
  506|       |                      [[[...out...]]]
  507|       |                      else
  508|       |                      local [[[...var...]]] = $l[i_{i}];
  509|       |                      [[[...in...]]];
  510|       |                      if std.type($l) == "array" then
  511|       |                      aux_{i}(0, $r) tailstrict
  512|       |                      else
  513|       |                      error "In comprehension, can only iterate over array..";
  514|       |                    */
  515|   301k|                    in = make<Local>(
  516|   301k|                        ast->location,
  517|   301k|                        EF,
  518|   301k|                        Local::Binds{
  519|   301k|                          bind(_l, spec.expr),  // Need to check expr is an array
  520|   301k|                              bind(_aux[i],
  521|   301k|                                   make<Function>(
  522|   301k|                                       ast->location,
  523|   301k|                                       EF,
  524|   301k|                                       EF,
  525|   301k|                                       ArgParams{{EF, _i[i], EF}, {EF, _r, EF}},
  526|   301k|                                       false,  // trailingComma
  527|   301k|                                       EF,
  528|   301k|                                       make<Conditional>(ast->location,
  529|   301k|                                                         EF,
  530|   301k|                                                         make<Binary>(E,
  531|   301k|                                                                      EF,
  532|   301k|                                                                      var(_i[i]),
  533|   301k|                                                                      EF,
  534|   301k|                                                                      BOP_GREATER_EQ,
  535|   301k|                                                                      length(var(_l))),
  536|   301k|                                                         EF,
  537|   301k|                                                         out,
  538|   301k|                                                         EF,
  539|   301k|                                                         make<Local>(
  540|   301k|                                                             ast->location,
  541|   301k|                                                             EF,
  542|   301k|                                                             singleBind(spec.var,
  543|   301k|                                                                        make<Index>(E,
  544|   301k|                                                                                    EF,
  545|   301k|                                                                                    var(_l),
  546|   301k|                                                                                    EF,
  547|   301k|                                                                                    false,
  548|   301k|                                                                                    var(_i[i]),
  549|   301k|                                                                                    EF,
  550|   301k|                                                                                    nullptr,
  551|   301k|                                                                                    EF,
  552|   301k|                                                                                    nullptr,
  553|   301k|                                                                                    EF)),
  554|   301k|                                                             in))))},
  555|   301k|                        make<Conditional>(
  556|   301k|                            ast->location,
  557|   301k|                            EF,
  558|   301k|                            equals(ast->location, type(var(_l)), str(U"array")),
  559|   301k|                            EF,
  560|   301k|                            make<Apply>(
  561|   301k|                                E,
  562|   301k|                                EF,
  563|   301k|                                var(_aux[i]),
  564|   301k|                                EF,
  565|   301k|                                ArgParams{{zero, EF},
  566|   301k|                                  {
  567|   301k|                                    i == 0 ? make<Array>(
  ------------------
  |  Branch (567:37): [True: 275k, False: 25.6k]
  ------------------
  568|   275k|                                        E, EF, Array::Elements{}, false, EF)
  569|   301k|                                        : static_cast<AST *>(var(_r)),
  570|   301k|                                        EF,
  571|   301k|                                        }},
  572|   301k|                                false,  // trailingComma
  573|   301k|                                EF,
  574|   301k|                                EF,
  575|   301k|                                true),  // tailstrict
  576|   301k|                            EF,
  577|   301k|                            error(ast->location,
  578|   301k|                                  U"In comprehension, can only iterate over array.")));
  579|   301k|                } break;
  580|   414k|            }
  581|   414k|        }
  582|       |
  583|   275k|        return in;
  584|   275k|    }
_ZN7jsonnet8internal9Desugarer4makeINS0_13LiteralNumberEJRKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS7_9allocatorIS9_EEEERA4_KcEEEPT_DpOT0_:
  110|   583k|    {
  111|   583k|        return alloc->make<T>(std::forward<Args>(args)...);
  112|   583k|    }
_ZN7jsonnet8internal9Desugarer4makeINS0_5ApplyEJRNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS6_9allocatorIS8_EEEEPNS0_3VarESD_NS7_INS0_8ArgParamENS9_ISG_EEEEbSD_SD_bEEEPT_DpOT0_:
  110|   275k|    {
  111|   275k|        return alloc->make<T>(std::forward<Args>(args)...);
  112|   275k|    }
_ZN7jsonnet8internal9Desugarer4makeINS0_6BinaryEJRKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS7_9allocatorIS9_EEEEPNS0_3VarESE_NS0_8BinaryOpERPNS0_3ASTEEEEPT_DpOT0_:
  110|   414k|    {
  111|   414k|        return alloc->make<T>(std::forward<Args>(args)...);
  112|   414k|    }
_ZN7jsonnet8internal9Desugarer4makeINS0_6BinaryEJRKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS7_9allocatorIS9_EEEEPNS0_3VarESE_NS0_8BinaryOpEPNS0_5ArrayEEEEPT_DpOT0_:
  110|   275k|    {
  111|   275k|        return alloc->make<T>(std::forward<Args>(args)...);
  112|   275k|    }
_ZN7jsonnet8internal9Desugarer9singletonEPNS0_3ASTE:
  163|   275k|    {
  164|   275k|        return make<Array>(
  165|   275k|            body->location, EF, Array::Elements{Array::Element(body, EF)}, false, EF);
  166|   275k|    }
_ZN7jsonnet8internal9Desugarer4makeINS0_5ArrayEJRNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS6_9allocatorIS8_EEEENS7_INS3_7ElementENS9_ISE_EEEEbSD_EEEPT_DpOT0_:
  110|   275k|    {
  111|   275k|        return alloc->make<T>(std::forward<Args>(args)...);
  112|   275k|    }
_ZN7jsonnet8internal9Desugarer4makeINS0_5ApplyEJRKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS7_9allocatorIS9_EEEEPNS0_3VarESE_NS8_INS0_8ArgParamENSA_ISH_EEEEbSE_SE_bEEEPT_DpOT0_:
  110|   439k|    {
  111|   439k|        return alloc->make<T>(std::forward<Args>(args)...);
  112|   439k|    }
_ZN7jsonnet8internal9Desugarer4makeINS0_11ConditionalEJRNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS6_9allocatorIS8_EEEERKPNS0_3ASTESD_RSF_SD_SI_EEEPT_DpOT0_:
  110|   112k|    {
  111|   112k|        return alloc->make<T>(std::forward<Args>(args)...);
  112|   112k|    }
_ZN7jsonnet8internal9Desugarer4makeINS0_5LocalEJRNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS6_9allocatorIS8_EEEENS7_INS3_4BindENS9_ISE_EEEEPNS0_11ConditionalEEEEPT_DpOT0_:
  110|   301k|    {
  111|   301k|        return alloc->make<T>(std::forward<Args>(args)...);
  112|   301k|    }
_ZN7jsonnet8internal9Desugarer4bindEPKNS0_10IdentifierEPNS0_3ASTE:
  153|  1.28M|    {
  154|  1.28M|        return Local::Bind(EF, id, EF, body, false, EF, ArgParams{}, false, EF, EF);
  155|  1.28M|    }
_ZN7jsonnet8internal9Desugarer4makeINS0_8FunctionEJRNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS6_9allocatorIS8_EEEESD_NS7_INS0_8ArgParamENS9_ISE_EEEEbSD_PNS0_11ConditionalEEEEPT_DpOT0_:
  110|   301k|    {
  111|   301k|        return alloc->make<T>(std::forward<Args>(args)...);
  112|   301k|    }
_ZN7jsonnet8internal9Desugarer4makeINS0_11ConditionalEJRNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS6_9allocatorIS8_EEEEPNS0_6BinaryESD_RPNS0_3ASTESD_PNS0_5LocalEEEEPT_DpOT0_:
  110|   301k|    {
  111|   301k|        return alloc->make<T>(std::forward<Args>(args)...);
  112|   301k|    }
_ZN7jsonnet8internal9Desugarer4makeINS0_6BinaryEJRKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS7_9allocatorIS9_EEEEPNS0_3VarESE_NS0_8BinaryOpEPNS0_5ApplyEEEEPT_DpOT0_:
  110|   301k|    {
  111|   301k|        return alloc->make<T>(std::forward<Args>(args)...);
  112|   301k|    }
_ZN7jsonnet8internal9Desugarer6lengthEPNS0_3ASTE:
  199|   301k|    {
  200|   301k|        return stdFunc(U"length", v);
  201|   301k|    }
_ZN7jsonnet8internal9Desugarer7stdFuncERKNSt3__112basic_stringIDiNS2_11char_traitsIDiEENS2_9allocatorIDiEEEEPNS0_3ASTE:
  169|   606k|    {
  170|   606k|        return make<Apply>(
  171|   606k|            v->location,
  172|   606k|            EF,
  173|   606k|            make<Index>(E, EF, std(), EF, false, str(name), EF, nullptr, EF, nullptr, EF),
  174|   606k|            EF,
  175|   606k|            ArgParams{{v, EF}},
  176|   606k|            false,  // trailingComma
  177|   606k|            EF,
  178|   606k|            EF,
  179|   606k|            true  // tailstrict
  180|   606k|        );
  181|   606k|    }
_ZN7jsonnet8internal9Desugarer4makeINS0_5LocalEJRNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS6_9allocatorIS8_EEEENS7_INS3_4BindENS9_ISE_EEEERPNS0_3ASTEEEEPT_DpOT0_:
  110|   309k|    {
  111|   309k|        return alloc->make<T>(std::forward<Args>(args)...);
  112|   309k|    }
_ZN7jsonnet8internal9Desugarer10singleBindEPKNS0_10IdentifierEPNS0_3ASTE:
  158|   313k|    {
  159|   313k|        return {bind(id, body)};
  160|   313k|    }
_ZN7jsonnet8internal9Desugarer4makeINS0_5IndexEJRKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS7_9allocatorIS9_EEEEPNS0_3VarESE_bSG_SE_DnSE_DnSE_EEEPT_DpOT0_:
  110|   301k|    {
  111|   301k|        return alloc->make<T>(std::forward<Args>(args)...);
  112|   301k|    }
_ZN7jsonnet8internal9Desugarer4makeINS0_11ConditionalEJRNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS6_9allocatorIS8_EEEEPNS0_5ApplyESD_SF_SD_PNS0_5ErrorEEEEPT_DpOT0_:
  110|   301k|    {
  111|   301k|        return alloc->make<T>(std::forward<Args>(args)...);
  112|   301k|    }
_ZN7jsonnet8internal9Desugarer4typeEPNS0_3ASTE:
  204|   305k|    {
  205|   305k|        return stdFunc(U"type", v);
  206|   305k|    }
_ZN7jsonnet8internal9Desugarer4makeINS0_5ArrayEJRKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS7_9allocatorIS9_EEEENS8_INS3_7ElementENSA_ISF_EEEEbSE_EEEPT_DpOT0_:
  110|   275k|    {
  111|   275k|        return alloc->make<T>(std::forward<Args>(args)...);
  112|   275k|    }
_ZN7jsonnet8internal9Desugarer5errorERKNS0_13LocationRangeERKNSt3__112basic_stringIDiNS5_11char_traitsIDiEENS5_9allocatorIDiEEEE:
  224|   301k|    {
  225|   301k|        return error(str(loc, msg));
  226|   301k|    }
_ZN7jsonnet8internal9Desugarer5errorEPNS0_3ASTE:
  219|   330k|    {
  220|   330k|        return make<Error>(msg->location, EF, msg);
  221|   330k|    }
_ZN7jsonnet8internal9Desugarer3strERKNS0_13LocationRangeERKNSt3__112basic_stringIDiNS5_11char_traitsIDiEENS5_9allocatorIDiEEEE:
  130|  2.02M|    {
  131|  2.02M|        return make<LiteralString>(loc, EF, s, LiteralString::RAW_DESUGARED, "", "");
  132|  2.02M|    }
_ZN7jsonnet8internal9Desugarer4makeINS0_13LiteralStringEJRKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS7_9allocatorIS9_EEEERKNS7_12basic_stringIDiNS7_11char_traitsIDiEENSA_IDiEEEENS3_9TokenKindERA1_KcSP_EEEPT_DpOT0_:
  110|  10.7M|    {
  111|  10.7M|        return alloc->make<T>(std::forward<Args>(args)...);
  112|  10.7M|    }
_ZN7jsonnet8internal9Desugarer4makeINS0_5ErrorEJRNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS6_9allocatorIS8_EEEERPNS0_3ASTEEEEPT_DpOT0_:
  110|   641k|    {
  111|   641k|        return alloc->make<T>(std::forward<Args>(args)...);
  112|   641k|    }
_ZN7jsonnet8internal9Desugarer4makeINS0_11ConditionalEJRNS0_13LocationRangeERNSt3__16vectorINS0_13FodderElementENS6_9allocatorIS8_EEEERPNS0_3ASTERKSB_SF_SH_SF_EEEPT_DpOT0_:
  110|   310k|    {
  111|   310k|        return alloc->make<T>(std::forward<Args>(args)...);
  112|   310k|    }
_ZN7jsonnet8internal9Desugarer4makeINS0_5IndexEJRKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS7_9allocatorIS9_EEEEPNS0_3VarESE_bPNS0_13LiteralStringESE_DnSE_DnSE_EEEPT_DpOT0_:
  110|  2.65M|    {
  111|  2.65M|        return alloc->make<T>(std::forward<Args>(args)...);
  112|  2.65M|    }
_ZN7jsonnet8internal9Desugarer3stdEv:
  145|  2.66M|    {
  146|       |        // In most places, there is a "$std" variable inserted by
  147|       |        // the desugarer. On the standard library itself there isn't,
  148|       |        // so use "std" instead.
  149|  2.66M|        return var(id(isStdlib ? U"std" : U"$std"));
  ------------------
  |  Branch (149:23): [True: 1.20M, False: 1.45M]
  ------------------
  150|  2.66M|    }
_ZN7jsonnet8internal9Desugarer4makeINS0_5ApplyEJRNS0_13LocationRangeERNSt3__16vectorINS0_13FodderElementENS6_9allocatorIS8_EEEERPNS0_3ASTERKSB_RNS7_INS0_8ArgParamENS9_ISI_EEEEbSH_SH_bEEEPT_DpOT0_:
  110|   234k|    {
  111|   234k|        return alloc->make<T>(std::forward<Args>(args)...);
  112|   234k|    }
_ZN7jsonnet8internal9Desugarer6equalsERKNS0_13LocationRangeEPNS0_3ASTES6_:
  214|  1.67M|    {
  215|  1.67M|        return stdFunc(loc, U"equals", a, b);
  216|  1.67M|    }
_ZN7jsonnet8internal9Desugarer7stdFuncERKNS0_13LocationRangeERKNSt3__112basic_stringIDiNS5_11char_traitsIDiEENS5_9allocatorIDiEEEEPNS0_3ASTESF_:
  184|  1.68M|    {
  185|  1.68M|        return make<Apply>(
  186|  1.68M|            loc,
  187|  1.68M|            EF,
  188|  1.68M|            make<Index>(E, EF, std(), EF, false, str(name), EF, nullptr, EF, nullptr, EF),
  189|  1.68M|            EF,
  190|  1.68M|            ArgParams{{a, EF}, {b, EF}},
  191|  1.68M|            false,  // trailingComma
  192|  1.68M|            EF,
  193|  1.68M|            EF,
  194|  1.68M|            true  // tailstrict
  195|  1.68M|        );
  196|  1.68M|    }
_ZN7jsonnet8internal9Desugarer4makeINS0_5ApplyEJRKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS7_9allocatorIS9_EEEEPNS0_5IndexESE_NS8_INS0_8ArgParamENSA_ISH_EEEEbSE_SE_bEEEPT_DpOT0_:
  110|  1.68M|    {
  111|  1.68M|        return alloc->make<T>(std::forward<Args>(args)...);
  112|  1.68M|    }
_ZN7jsonnet8internal9Desugarer4makeINS0_5UnaryEJRNS0_13LocationRangeERNSt3__16vectorINS0_13FodderElementENS6_9allocatorIS8_EEEENS0_7UnaryOpERPNS0_3ASTEEEEPT_DpOT0_:
  110|   183k|    {
  111|   183k|        return alloc->make<T>(std::forward<Args>(args)...);
  112|   183k|    }
_ZN7jsonnet8internal9Desugarer4nullEv:
  135|   255k|    {
  136|   255k|        return make<LiteralNull>(E, EF);
  137|   255k|    }
_ZN7jsonnet8internal9Desugarer4makeINS0_11LiteralNullEJRKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS7_9allocatorIS9_EEEEEEEPT_DpOT0_:
  110|   255k|    {
  111|   255k|        return alloc->make<T>(std::forward<Args>(args)...);
  112|   255k|    }
_ZN7jsonnet8internal9Desugarer3varEPKNS0_10IdentifierE:
  140|  6.15M|    {
  141|  6.15M|        return make<Var>(E, EF, ident);
  142|  6.15M|    }
_ZN7jsonnet8internal9Desugarer4makeINS0_3VarEJRKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS7_9allocatorIS9_EEEERPKNS0_10IdentifierEEEEPT_DpOT0_:
  110|  6.15M|    {
  111|  6.15M|        return alloc->make<T>(std::forward<Args>(args)...);
  112|  6.15M|    }
_ZN7jsonnet8internal9Desugarer2idERKNSt3__112basic_stringIDiNS2_11char_traitsIDiEENS2_9allocatorIDiEEEE:
  120|  4.67M|    {
  121|  4.67M|        return alloc->makeIdentifier(s);
  122|  4.67M|    }
_ZN7jsonnet8internal9Desugarer13desugarParamsERNSt3__16vectorINS0_8ArgParamENS2_9allocatorIS4_EEEEj:
  232|  2.69M|    {
  233|  3.37M|        for (auto &param : params) {
  ------------------
  |  Branch (233:26): [True: 3.37M, False: 2.69M]
  ------------------
  234|  3.37M|            if (param.expr) {
  ------------------
  |  Branch (234:17): [True: 160k, False: 3.20M]
  ------------------
  235|       |                // Default arg.
  236|   160k|                desugar(param.expr, obj_level);
  237|   160k|            }
  238|  3.37M|        }
  239|  2.69M|    }
_ZN7jsonnet8internal9Desugarer4makeINS0_5ApplyEJRNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS6_9allocatorIS8_EEEEPNS0_5IndexESD_NS7_INS0_8ArgParamENS9_ISG_EEEEbSD_SD_bEEEPT_DpOT0_:
  110|   744k|    {
  111|   744k|        return alloc->make<T>(std::forward<Args>(args)...);
  112|   744k|    }
_ZN7jsonnet8internal9Desugarer4makeINS0_8FunctionEJRNS0_13LocationRangeERNSt3__16vectorINS0_13FodderElementENS6_9allocatorIS8_EEEESC_RNS7_INS0_8ArgParamENS9_ISD_EEEEbSC_RPNS0_3ASTEEEEPT_DpOT0_:
  110|   560k|    {
  111|   560k|        return alloc->make<T>(std::forward<Args>(args)...);
  112|   560k|    }
_ZN7jsonnet8internal9Desugarer10makeObjectEPNS0_6ObjectEj:
  586|   424k|    AST* makeObject(Object *ast, unsigned obj_level) {
  587|       |        // Hidden variable to allow outer/top binding.
  588|   424k|        if (obj_level == 0) {
  ------------------
  |  Branch (588:13): [True: 25.4k, False: 398k]
  ------------------
  589|  25.4k|            const Identifier *hidden_var = id(U"$");
  590|  25.4k|            auto *body = make<Self>(E, EF);
  591|  25.4k|            ast->fields.push_back(ObjectField::Local(EF, EF, hidden_var, EF, body, EF));
  592|  25.4k|        }
  593|       |
  594|   424k|        SuperVars svs = desugarFields(ast, ast->fields, obj_level);
  595|       |
  596|   424k|        DesugaredObject::Fields new_fields;
  597|   424k|        ASTs new_asserts;
  598|  1.83M|        for (const ObjectField &field : ast->fields) {
  ------------------
  |  Branch (598:39): [True: 1.83M, False: 424k]
  ------------------
  599|  1.83M|            if (field.kind == ObjectField::ASSERT) {
  ------------------
  |  Branch (599:17): [True: 29.6k, False: 1.81M]
  ------------------
  600|  29.6k|                new_asserts.push_back(field.expr2);
  601|  1.81M|            } else if (field.kind == ObjectField::FIELD_EXPR) {
  ------------------
  |  Branch (601:24): [True: 1.81M, False: 0]
  ------------------
  602|  1.81M|                new_fields.emplace_back(field.hide, field.expr1, field.expr2);
  603|  1.81M|            } else {
  604|      0|                std::cerr << "INTERNAL ERROR: field should have been desugared: " << field.kind
  605|      0|                          << std::endl;
  606|      0|            }
  607|  1.83M|        }
  608|       |
  609|   424k|        AST* retval = make<DesugaredObject>(ast->location, new_asserts, new_fields);
  610|   424k|        if (svs.size() > 0) {
  ------------------
  |  Branch (610:13): [True: 2.00k, False: 422k]
  ------------------
  611|  2.00k|            Local::Binds binds;
  612|   252k|            for (const auto &pair : svs) {
  ------------------
  |  Branch (612:35): [True: 252k, False: 2.00k]
  ------------------
  613|   252k|                if (pair.second == nullptr) {
  ------------------
  |  Branch (613:21): [True: 464, False: 251k]
  ------------------
  614|       |                    // Self binding
  615|    464|                    binds.push_back(bind(pair.first, make<Self>(E, EF)));
  616|   251k|                } else {
  617|       |                    // Super binding
  618|   251k|                    binds.push_back(bind(pair.first, pair.second));
  619|   251k|                }
  620|   252k|            }
  621|  2.00k|            retval = make<Local>(ast->location, EF, binds, retval);
  622|  2.00k|        }
  623|       |
  624|   424k|        return retval;
  625|   424k|    }
_ZN7jsonnet8internal9Desugarer4makeINS0_4SelfEJRKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS7_9allocatorIS9_EEEEEEEPT_DpOT0_:
  110|  26.3k|    {
  111|  26.3k|        return alloc->make<T>(std::forward<Args>(args)...);
  112|  26.3k|    }
_ZN7jsonnet8internal9Desugarer13desugarFieldsEPNS0_3ASTERNSt3__16vectorINS0_11ObjectFieldENS4_9allocatorIS6_EEEEj:
  246|   457k|    {
  247|       |        // Desugar children
  248|  1.95M|        for (auto &field : fields) {
  ------------------
  |  Branch (248:26): [True: 1.95M, False: 457k]
  ------------------
  249|  1.95M|            if (field.expr1 != nullptr)
  ------------------
  |  Branch (249:17): [True: 131k, False: 1.82M]
  ------------------
  250|   131k|                desugar(field.expr1, obj_level);
  251|  1.95M|            desugar(field.expr2, obj_level + 1);
  252|  1.95M|            if (field.expr3 != nullptr)
  ------------------
  |  Branch (252:17): [True: 18.6k, False: 1.93M]
  ------------------
  253|  18.6k|                desugar(field.expr3, obj_level + 1);
  254|  1.95M|            desugarParams(field.params, obj_level + 1);
  255|  1.95M|        }
  256|       |
  257|       |        // Simplify asserts
  258|  1.95M|        for (auto &field : fields) {
  ------------------
  |  Branch (258:26): [True: 1.95M, False: 457k]
  ------------------
  259|  1.95M|            if (field.kind != ObjectField::ASSERT)
  ------------------
  |  Branch (259:17): [True: 1.92M, False: 29.6k]
  ------------------
  260|  1.92M|                continue;
  261|  29.6k|            AST *msg = field.expr3;
  262|  29.6k|            field.expr3 = nullptr;
  263|  29.6k|            if (msg == nullptr) {
  ------------------
  |  Branch (263:17): [True: 10.9k, False: 18.6k]
  ------------------
  264|       |                // The location is what appears in the stacktrace.
  265|  10.9k|                msg = str(field.expr2->location, U"Object assertion failed.");
  266|  10.9k|            }
  267|       |
  268|       |            // if expr2 then true else error msg
  269|  29.6k|            field.expr2 = make<Conditional>(field.expr2->location,
  270|  29.6k|                                            EF,
  271|  29.6k|                                            field.expr2,
  272|  29.6k|                                            EF,
  273|  29.6k|                                            make<LiteralBoolean>(E, EF, true),
  274|  29.6k|                                            EF,
  275|  29.6k|                                            error(msg));
  276|  29.6k|        }
  277|       |
  278|       |        // Remove methods
  279|  1.95M|        for (auto &field : fields) {
  ------------------
  |  Branch (279:26): [True: 1.95M, False: 457k]
  ------------------
  280|  1.95M|            if (!field.methodSugar)
  ------------------
  |  Branch (280:17): [True: 998k, False: 953k]
  ------------------
  281|   998k|                continue;
  282|   953k|            field.expr2 = make<Function>(field.expr2->location,
  283|   953k|                                         EF,
  284|   953k|                                         field.fodderL,
  285|   953k|                                         field.params,
  286|   953k|                                         field.trailingComma,
  287|   953k|                                         field.fodderR,
  288|   953k|                                         field.expr2);
  289|   953k|            field.methodSugar = false;
  290|   953k|            field.params.clear();
  291|   953k|        }
  292|       |
  293|       |        // Remove object-level locals
  294|   457k|        auto copy = fields;
  295|   457k|        fields.clear();
  296|   457k|        Local::Binds binds;
  297|  1.95M|        for (auto &local : copy) {
  ------------------
  |  Branch (297:26): [True: 1.95M, False: 457k]
  ------------------
  298|  1.95M|            if (local.kind != ObjectField::LOCAL)
  ------------------
  |  Branch (298:17): [True: 1.87M, False: 79.0k]
  ------------------
  299|  1.87M|                continue;
  300|  79.0k|            binds.push_back(bind(local.id, local.expr2));
  301|  79.0k|        }
  302|  1.95M|        for (auto &field : copy) {
  ------------------
  |  Branch (302:26): [True: 1.95M, False: 457k]
  ------------------
  303|  1.95M|            if (field.kind == ObjectField::LOCAL)
  ------------------
  |  Branch (303:17): [True: 79.0k, False: 1.87M]
  ------------------
  304|  79.0k|                continue;
  305|  1.87M|            if (!binds.empty())
  ------------------
  |  Branch (305:17): [True: 996k, False: 876k]
  ------------------
  306|   996k|                field.expr2 = make<Local>(field.expr2->location, EF, binds, field.expr2);
  307|  1.87M|            fields.push_back(field);
  308|  1.87M|        }
  309|       |
  310|       |        // Change all to FIELD_EXPR
  311|  1.87M|        for (auto &field : fields) {
  ------------------
  |  Branch (311:26): [True: 1.87M, False: 457k]
  ------------------
  312|  1.87M|            switch (field.kind) {
  ------------------
  |  Branch (312:21): [True: 1.87M, False: 0]
  ------------------
  313|  29.6k|                case ObjectField::ASSERT:
  ------------------
  |  Branch (313:17): [True: 29.6k, False: 1.84M]
  ------------------
  314|       |                    // Nothing to do.
  315|  29.6k|                    break;
  316|       |
  317|  1.71M|                case ObjectField::FIELD_ID:
  ------------------
  |  Branch (317:17): [True: 1.71M, False: 160k]
  ------------------
  318|  1.71M|                    field.expr1 = str(field.idLocation, field.id->name);
  319|  1.71M|                    field.kind = ObjectField::FIELD_EXPR;
  320|  1.71M|                    break;
  321|       |
  322|  35.8k|                case ObjectField::FIELD_EXPR:
  ------------------
  |  Branch (322:17): [True: 35.8k, False: 1.83M]
  ------------------
  323|       |                    // Nothing to do.
  324|  35.8k|                    break;
  325|       |
  326|  95.1k|                case ObjectField::FIELD_STR:
  ------------------
  |  Branch (326:17): [True: 95.1k, False: 1.77M]
  ------------------
  327|       |                    // Just set the flag.
  328|  95.1k|                    field.kind = ObjectField::FIELD_EXPR;
  329|  95.1k|                    break;
  330|       |
  331|      0|                case ObjectField::LOCAL:
  ------------------
  |  Branch (331:17): [True: 0, False: 1.87M]
  ------------------
  332|      0|                    std::cerr << "Locals should be removed by now." << std::endl;
  333|      0|                    abort();
  334|  1.87M|            }
  335|  1.87M|        }
  336|       |
  337|       |        /** Replaces all occurrences of self, super[f] and e in super with variables.
  338|       |         *
  339|       |         * Returns all variables and original expressions via super_vars.
  340|       |         */
  341|   457k|        class SubstituteSelfSuper : public CompilerPass {
  342|   457k|            Desugarer *desugarer;
  343|   457k|            SuperVars &superVars;
  344|   457k|            unsigned &counter;
  345|   457k|            const Identifier *newSelf;
  346|       |
  347|   457k|           public:
  348|   457k|            SubstituteSelfSuper(Desugarer *desugarer, SuperVars &super_vars, unsigned &counter)
  349|   457k|                : CompilerPass(*desugarer->alloc),
  350|   457k|                  desugarer(desugarer),
  351|   457k|                  superVars(super_vars),
  352|   457k|                  counter(counter),
  353|   457k|                  newSelf(nullptr)
  354|   457k|            {
  355|   457k|            }
  356|   457k|            void visitExpr(AST *&expr)
  357|   457k|            {
  358|   457k|                if (dynamic_cast<Self *>(expr)) {
  359|   457k|                    if (newSelf == nullptr) {
  360|   457k|                        newSelf = desugarer->id(U"$outer_self");
  361|   457k|                        superVars.emplace_back(newSelf, nullptr);
  362|   457k|                    }
  363|   457k|                    expr = alloc.make<Var>(expr->location, expr->openFodder, newSelf);
  364|   457k|                } else if (auto *super_index = dynamic_cast<SuperIndex *>(expr)) {
  365|   457k|                    UStringStream ss;
  366|   457k|                    ss << U"$outer_super_index" << (counter++);
  367|   457k|                    const Identifier *super_var = desugarer->id(ss.str());
  368|       |                    // Desugaring of expr should already have occurred.
  369|   457k|                    assert(super_index->index != nullptr);
  370|       |                    // Re-use super_index since we're replacing it here.
  371|   457k|                    superVars.emplace_back(super_var, super_index);
  372|   457k|                    expr = alloc.make<Var>(expr->location, expr->openFodder, super_var);
  373|   457k|                } else if (auto *in_super = dynamic_cast<InSuper *>(expr)) {
  374|   457k|                    UStringStream ss;
  375|   457k|                    ss << U"$outer_in_super" << (counter++);
  376|   457k|                    const Identifier *in_super_var = desugarer->id(ss.str());
  377|       |                    // Re-use in_super since we're replacing it here.
  378|   457k|                    superVars.emplace_back(in_super_var, in_super);
  379|   457k|                    expr = alloc.make<Var>(expr->location, expr->openFodder, in_super_var);
  380|   457k|                }
  381|   457k|                CompilerPass::visitExpr(expr);
  382|   457k|            }
  383|   457k|        };
  384|       |
  385|   457k|        SuperVars super_vars;
  386|   457k|        unsigned counter = 0;
  387|       |
  388|       |        // Remove +:
  389|  1.87M|        for (auto &field : fields) {
  ------------------
  |  Branch (389:26): [True: 1.87M, False: 457k]
  ------------------
  390|  1.87M|            if (!field.superSugar)
  ------------------
  |  Branch (390:17): [True: 1.85M, False: 13.5k]
  ------------------
  391|  1.85M|                continue;
  392|       |            // We have to bind self/super from expr1 outside the class, as we copy the expression
  393|       |            // into the field body.
  394|       |            // Clone it so that we maintain the AST as a tree.
  395|  13.5k|            AST *index = clone(field.expr1);
  396|       |            // This will remove self/super.
  397|  13.5k|            SubstituteSelfSuper(this, super_vars, counter).expr(index);
  398|  13.5k|            field.expr2 = make<Conditional>(
  399|  13.5k|                ast->location,
  400|  13.5k|                EF,
  401|  13.5k|                make<InSuper>(ast->location, EF, index, EF, EF),
  402|  13.5k|                EF,
  403|  13.5k|                make<Binary>(ast->location,
  404|  13.5k|                             EF,
  405|  13.5k|                             make<SuperIndex>(ast->location, EF, EF, clone(index), EF, nullptr),
  406|  13.5k|                             EF,
  407|  13.5k|                             BOP_PLUS,
  408|  13.5k|                             field.expr2),
  409|  13.5k|                EF,
  410|  13.5k|                clone(field.expr2));
  411|  13.5k|            field.superSugar = false;
  412|  13.5k|        }
  413|       |
  414|   457k|        return super_vars;
  415|   457k|    }
_ZN7jsonnet8internal9Desugarer4makeINS0_11ConditionalEJRNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS6_9allocatorIS8_EEEERPNS0_3ASTESD_PNS0_14LiteralBooleanESD_PNS0_5ErrorEEEEPT_DpOT0_:
  110|  29.6k|    {
  111|  29.6k|        return alloc->make<T>(std::forward<Args>(args)...);
  112|  29.6k|    }
_ZN7jsonnet8internal9Desugarer4makeINS0_14LiteralBooleanEJRKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS7_9allocatorIS9_EEEEbEEEPT_DpOT0_:
  110|  29.6k|    {
  111|  29.6k|        return alloc->make<T>(std::forward<Args>(args)...);
  112|  29.6k|    }
_ZN7jsonnet8internal9Desugarer4makeINS0_8FunctionEJRNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS6_9allocatorIS8_EEEERSB_RNS7_INS0_8ArgParamENS9_ISF_EEEERbSE_RPNS0_3ASTEEEEPT_DpOT0_:
  110|   953k|    {
  111|   953k|        return alloc->make<T>(std::forward<Args>(args)...);
  112|   953k|    }
_ZN7jsonnet8internal9Desugarer5cloneEPNS0_3ASTE:
  115|  40.5k|    {
  116|  40.5k|        return clone_ast(*alloc, ast);
  117|  40.5k|    }
_ZZN7jsonnet8internal9Desugarer13desugarFieldsEPNS0_3ASTERNSt3__16vectorINS0_11ObjectFieldENS4_9allocatorIS6_EEEEjEN19SubstituteSelfSuperC2EPS1_RNS5_INS4_4pairIPKNS0_10IdentifierES3_EENS7_ISH_EEEERj:
  349|  13.5k|                : CompilerPass(*desugarer->alloc),
  350|  13.5k|                  desugarer(desugarer),
  351|  13.5k|                  superVars(super_vars),
  352|  13.5k|                  counter(counter),
  353|  13.5k|                  newSelf(nullptr)
  354|  13.5k|            {
  355|  13.5k|            }
_ZZN7jsonnet8internal9Desugarer13desugarFieldsEPNS0_3ASTERNSt3__16vectorINS0_11ObjectFieldENS4_9allocatorIS6_EEEEjEN19SubstituteSelfSuper9visitExprERS3_:
  357|  1.15M|            {
  358|  1.15M|                if (dynamic_cast<Self *>(expr)) {
  ------------------
  |  Branch (358:21): [True: 3.69k, False: 1.15M]
  ------------------
  359|  3.69k|                    if (newSelf == nullptr) {
  ------------------
  |  Branch (359:25): [True: 575, False: 3.12k]
  ------------------
  360|    575|                        newSelf = desugarer->id(U"$outer_self");
  361|    575|                        superVars.emplace_back(newSelf, nullptr);
  362|    575|                    }
  363|  3.69k|                    expr = alloc.make<Var>(expr->location, expr->openFodder, newSelf);
  364|  1.15M|                } else if (auto *super_index = dynamic_cast<SuperIndex *>(expr)) {
  ------------------
  |  Branch (364:34): [True: 136k, False: 1.01M]
  ------------------
  365|   136k|                    UStringStream ss;
  366|   136k|                    ss << U"$outer_super_index" << (counter++);
  367|   136k|                    const Identifier *super_var = desugarer->id(ss.str());
  368|       |                    // Desugaring of expr should already have occurred.
  369|   136k|                    assert(super_index->index != nullptr);
  ------------------
  |  Branch (369:21): [True: 136k, False: 0]
  ------------------
  370|       |                    // Re-use super_index since we're replacing it here.
  371|   136k|                    superVars.emplace_back(super_var, super_index);
  372|   136k|                    expr = alloc.make<Var>(expr->location, expr->openFodder, super_var);
  373|  1.01M|                } else if (auto *in_super = dynamic_cast<InSuper *>(expr)) {
  ------------------
  |  Branch (373:34): [True: 135k, False: 882k]
  ------------------
  374|   135k|                    UStringStream ss;
  375|   135k|                    ss << U"$outer_in_super" << (counter++);
  376|   135k|                    const Identifier *in_super_var = desugarer->id(ss.str());
  377|       |                    // Re-use in_super since we're replacing it here.
  378|   135k|                    superVars.emplace_back(in_super_var, in_super);
  379|   135k|                    expr = alloc.make<Var>(expr->location, expr->openFodder, in_super_var);
  380|   135k|                }
  381|  1.15M|                CompilerPass::visitExpr(expr);
  382|  1.15M|            }
_ZN7jsonnet8internal9Desugarer4makeINS0_11ConditionalEJRNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS6_9allocatorIS8_EEEEPNS0_7InSuperESD_PNS0_6BinaryESD_PNS0_3ASTEEEEPT_DpOT0_:
  110|  13.5k|    {
  111|  13.5k|        return alloc->make<T>(std::forward<Args>(args)...);
  112|  13.5k|    }
_ZN7jsonnet8internal9Desugarer4makeINS0_7InSuperEJRNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS6_9allocatorIS8_EEEERPNS0_3ASTESD_SD_EEEPT_DpOT0_:
  110|  13.5k|    {
  111|  13.5k|        return alloc->make<T>(std::forward<Args>(args)...);
  112|  13.5k|    }
_ZN7jsonnet8internal9Desugarer4makeINS0_6BinaryEJRNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS6_9allocatorIS8_EEEEPNS0_10SuperIndexESD_NS0_8BinaryOpERPNS0_3ASTEEEEPT_DpOT0_:
  110|  13.5k|    {
  111|  13.5k|        return alloc->make<T>(std::forward<Args>(args)...);
  112|  13.5k|    }
_ZN7jsonnet8internal9Desugarer4makeINS0_10SuperIndexEJRNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS6_9allocatorIS8_EEEESD_PNS0_3ASTESD_DnEEEPT_DpOT0_:
  110|  13.5k|    {
  111|  13.5k|        return alloc->make<T>(std::forward<Args>(args)...);
  112|  13.5k|    }
_ZN7jsonnet8internal9Desugarer4makeINS0_15DesugaredObjectEJRNS0_13LocationRangeERNSt3__14listIPNS0_3ASTENS6_9allocatorIS9_EEEERNS6_6vectorINS3_5FieldENSA_ISF_EEEEEEEPT_DpOT0_:
  110|   424k|    {
  111|   424k|        return alloc->make<T>(std::forward<Args>(args)...);
  112|   424k|    }
_ZN7jsonnet8internal9Desugarer4makeINS0_5LocalEJRNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS6_9allocatorIS8_EEEERNS7_INS3_4BindENS9_ISE_EEEERPNS0_3ASTEEEEPT_DpOT0_:
  110|  1.03M|    {
  111|  1.03M|        return alloc->make<T>(std::forward<Args>(args)...);
  112|  1.03M|    }
_ZN7jsonnet8internal9Desugarer23makeObjectComprehensionEPNS0_19ObjectComprehensionEj:
  627|  33.0k|    AST* makeObjectComprehension(ObjectComprehension *ast, unsigned obj_level) {
  628|       |        // Hidden variable to allow outer/top binding.
  629|  33.0k|        if (obj_level == 0) {
  ------------------
  |  Branch (629:13): [True: 435, False: 32.5k]
  ------------------
  630|    435|            const Identifier *hidden_var = id(U"$");
  631|    435|            auto *body = make<Self>(E, EF);
  632|    435|            ast->fields.push_back(ObjectField::Local(EF, EF, hidden_var, EF, body, EF));
  633|    435|        }
  634|       |
  635|  33.0k|        SuperVars svs = desugarFields(ast, ast->fields, obj_level);
  636|       |
  637|  33.0k|        AST *field = ast->fields.front().expr1;
  638|  33.0k|        AST *value = ast->fields.front().expr2;
  639|       |
  640|       |        /*  {
  641|       |            [arr[0]]: local x = arr[1], y = arr[2], z = arr[3]; val_expr
  642|       |            for arr in [ [key_expr, x, y, z] for ...  ]
  643|       |            }
  644|       |        */
  645|  33.0k|        auto *_arr = id(U"$arr");
  646|  33.0k|        AST *zero = make<LiteralNumber>(E, EF, "0.0");
  647|  33.0k|        int counter = 1;
  648|  33.0k|        Local::Binds binds;
  649|  33.0k|        Array::Elements arr_e{Array::Element(field, EF)};
  650|  43.4k|        for (ComprehensionSpec &spec : ast->specs) {
  ------------------
  |  Branch (650:38): [True: 43.4k, False: 33.0k]
  ------------------
  651|  43.4k|            if (spec.kind == ComprehensionSpec::FOR) {
  ------------------
  |  Branch (651:17): [True: 35.5k, False: 7.97k]
  ------------------
  652|  35.5k|                std::stringstream num;
  653|  35.5k|                num << counter++;
  654|  35.5k|                binds.push_back(bind(spec.var,
  655|  35.5k|                                     make<Index>(E,
  656|  35.5k|                                                 EF,
  657|  35.5k|                                                 var(_arr),
  658|  35.5k|                                                 EF,
  659|  35.5k|                                                 false,
  660|  35.5k|                                                 make<LiteralNumber>(E, EF, num.str()),
  661|  35.5k|                                                 EF,
  662|  35.5k|                                                 nullptr,
  663|  35.5k|                                                 EF,
  664|  35.5k|                                                 nullptr,
  665|  35.5k|                                                 EF)));
  666|  35.5k|                arr_e.emplace_back(var(spec.var), EF);
  667|  35.5k|            }
  668|  43.4k|        }
  669|  33.0k|        AST *arr = make<ArrayComprehension>(ast->location,
  670|  33.0k|                                            EF,
  671|  33.0k|                                            make<Array>(ast->location, EF, arr_e, false, EF),
  672|  33.0k|                                            EF,
  673|  33.0k|                                            false,
  674|  33.0k|                                            ast->specs,
  675|  33.0k|                                            EF);
  676|  33.0k|        desugar(arr, obj_level);
  677|  33.0k|        return make<ObjectComprehensionSimple>(
  678|  33.0k|            ast->location,
  679|  33.0k|            make<Index>(E, EF, var(_arr), EF, false, zero, EF, nullptr, EF, nullptr, EF),
  680|  33.0k|            make<Local>(ast->location, EF, binds, value),
  681|  33.0k|            _arr,
  682|  33.0k|            arr);
  683|  33.0k|    }
_ZN7jsonnet8internal9Desugarer4makeINS0_5IndexEJRKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS7_9allocatorIS9_EEEEPNS0_3VarESE_bPNS0_13LiteralNumberESE_DnSE_DnSE_EEEPT_DpOT0_:
  110|  35.5k|    {
  111|  35.5k|        return alloc->make<T>(std::forward<Args>(args)...);
  112|  35.5k|    }
_ZN7jsonnet8internal9Desugarer4makeINS0_13LiteralNumberEJRKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS7_9allocatorIS9_EEEENS7_12basic_stringIcNS7_11char_traitsIcEENSA_IcEEEEEEEPT_DpOT0_:
  110|  35.5k|    {
  111|  35.5k|        return alloc->make<T>(std::forward<Args>(args)...);
  112|  35.5k|    }
_ZN7jsonnet8internal9Desugarer4makeINS0_18ArrayComprehensionEJRNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS6_9allocatorIS8_EEEEPNS0_5ArrayESD_bRNS7_INS0_17ComprehensionSpecENS9_ISG_EEEESD_EEEPT_DpOT0_:
  110|  33.0k|    {
  111|  33.0k|        return alloc->make<T>(std::forward<Args>(args)...);
  112|  33.0k|    }
_ZN7jsonnet8internal9Desugarer4makeINS0_5ArrayEJRNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS6_9allocatorIS8_EEEERNS7_INS3_7ElementENS9_ISE_EEEEbSD_EEEPT_DpOT0_:
  110|  33.0k|    {
  111|  33.0k|        return alloc->make<T>(std::forward<Args>(args)...);
  112|  33.0k|    }
_ZN7jsonnet8internal9Desugarer4makeINS0_25ObjectComprehensionSimpleEJRNS0_13LocationRangeEPNS0_5IndexEPNS0_5LocalERPKNS0_10IdentifierERPNS0_3ASTEEEEPT_DpOT0_:
  110|  32.9k|    {
  111|  32.9k|        return alloc->make<T>(std::forward<Args>(args)...);
  112|  32.9k|    }
_ZN7jsonnet8internal9Desugarer4makeINS0_5IndexEJRKNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS7_9allocatorIS9_EEEEPNS0_3VarESE_bRPNS0_3ASTESE_DnSE_DnSE_EEEPT_DpOT0_:
  110|  32.9k|    {
  111|  32.9k|        return alloc->make<T>(std::forward<Args>(args)...);
  112|  32.9k|    }
_ZN7jsonnet8internal9Desugarer3strERKNSt3__112basic_stringIDiNS2_11char_traitsIDiEENS2_9allocatorIDiEEEE:
  125|  8.75M|    {
  126|  8.75M|        return make<LiteralString>(E, EF, s, LiteralString::RAW_DESUGARED, "", "");
  127|  8.75M|    }
_ZZN7jsonnet8internal9Desugarer9stdlibASTENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEENKUlvE_clEv:
  938|   171k|            auto fnbody = alloc->makeBuiltinBody(E, name_utf8, [this, &decl]()->Identifiers {
  939|   171k|                Identifiers params;
  940|   171k|                for (const auto &p : decl.params)
  ------------------
  |  Branch (940:36): [True: 253k, False: 171k]
  ------------------
  941|   253k|                    params.push_back(this->id(p));
  942|   171k|                return params;
  943|   171k|            });
_ZZN7jsonnet8internal9Desugarer9stdlibASTENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEENKUlRKNS0_15DesugaredObject5FieldEE_clESC_:
  945|  38.8M|                [=](const DesugaredObject::Field& f) {
  946|  38.8M|                    return static_cast<LiteralString*>(f.name)->value == decl.name;
  947|  38.8M|                });
_ZN7jsonnet8internal9Desugarer4makeINS0_15BuiltinFunctionEJRKNS0_13LocationRangeERPKNS0_19BuiltinFunctionBodyEEEEPT_DpOT0_:
  110|   318k|    {
  111|   318k|        return alloc->make<T>(std::forward<Args>(args)...);
  112|   318k|    }
_ZN7jsonnet8internal9Desugarer11desugarFileERPNS0_3ASTEPNSt3__13mapINS5_12basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEENS0_5VmExtENS5_4lessISC_EENSA_INS5_4pairIKSC_SD_EEEEEE:
  961|  4.53k|    {
  962|  4.53k|        desugar(ast, 0);
  963|       |
  964|  4.53k|        DesugaredObject *std_obj = stdlibAST(ast->location.file);
  965|       |
  966|  4.53k|        std::vector<std::string> empty;
  967|  4.53k|        auto line_end_blank = Fodder{{FodderElement::LINE_END, 1, 0, empty}};
  968|  4.53k|        auto line_end = Fodder{{FodderElement::LINE_END, 0, 0, empty}};
  969|       |
  970|       |        // local body = ast;
  971|       |        // if std.type(body) == "function") then
  972|       |        //     body(tlas...)
  973|       |        // else
  974|       |        //     body
  975|  4.53k|        if (tlas != nullptr) {
  ------------------
  |  Branch (975:13): [True: 4.08k, False: 446]
  ------------------
  976|  4.08k|            LocationRange tla_loc("Top-level function");
  977|  4.08k|            ArgParams args;
  978|  4.08k|            for (const auto &pair : *tlas) {
  ------------------
  |  Branch (978:35): [True: 0, False: 4.08k]
  ------------------
  979|      0|                AST *expr;
  980|      0|                if (pair.second.isCode) {
  ------------------
  |  Branch (980:21): [True: 0, False: 0]
  ------------------
  981|      0|                    Tokens tokens = jsonnet_lex("tla:" + pair.first, pair.second.data.c_str());
  982|      0|                    expr = jsonnet_parse(alloc, tokens);
  983|      0|                    desugar(expr, 0);
  984|      0|                } else {
  985|      0|                    expr = str(decode_utf8(pair.second.data));
  986|      0|                }
  987|       |                // Add them as named arguments, so order does not matter.
  988|      0|                args.emplace_back(EF, id(decode_utf8(pair.first)), EF, expr, EF);
  989|      0|            }
  990|  4.08k|            const Identifier *body = id(U"top_level");
  991|  4.08k|            ast =
  992|  4.08k|                make<Local>(ast->location,
  993|  4.08k|                            line_end_blank,
  994|  4.08k|                            singleBind(body, ast),
  995|  4.08k|                            make<Conditional>(E,
  996|  4.08k|                                              line_end,
  997|  4.08k|                                              primitiveEquals(E, type(var(body)), str(U"function")),
  998|  4.08k|                                              EF,
  999|  4.08k|                                              make<Apply>(tla_loc,
 1000|  4.08k|                                                          EF,
 1001|  4.08k|                                                          make<Var>(E, line_end, body),
 1002|  4.08k|                                                          EF,
 1003|  4.08k|                                                          args,
 1004|  4.08k|                                                          false,  // trailing comma
 1005|  4.08k|                                                          EF,
 1006|  4.08k|                                                          EF,
 1007|  4.08k|                                                          false  // tailstrict
 1008|  4.08k|                                                          ),
 1009|  4.08k|                                              line_end,
 1010|  4.08k|                                              make<Var>(E, line_end, body)));
 1011|  4.08k|        }
 1012|       |
 1013|       |        // local $std = (std.jsonnet stuff); std = $std; ast
 1014|       |        // The standard library is bound to $std, which cannot be overriden,
 1015|       |        // so redefining std won't break expressions that desugar to calls
 1016|       |        // to standard library functions.
 1017|  4.53k|        ast = make<Local>(ast->location, EF, singleBind(id(U"std"), std()), ast);
 1018|  4.53k|        ast = make<Local>(ast->location, EF, singleBind(id(U"$std"), std_obj), ast);
 1019|  4.53k|    }
_ZN7jsonnet8internal9Desugarer4makeINS0_5LocalEJRNS0_13LocationRangeERNSt3__16vectorINS0_13FodderElementENS6_9allocatorIS8_EEEENS7_INS3_4BindENS9_ISD_EEEEPNS0_11ConditionalEEEEPT_DpOT0_:
  110|  4.08k|    {
  111|  4.08k|        return alloc->make<T>(std::forward<Args>(args)...);
  112|  4.08k|    }
_ZN7jsonnet8internal9Desugarer4makeINS0_11ConditionalEJRKNS0_13LocationRangeERNSt3__16vectorINS0_13FodderElementENS7_9allocatorIS9_EEEEPNS0_5ApplyERKSC_SF_SD_PNS0_3VarEEEEPT_DpOT0_:
  110|  4.08k|    {
  111|  4.08k|        return alloc->make<T>(std::forward<Args>(args)...);
  112|  4.08k|    }
_ZN7jsonnet8internal9Desugarer15primitiveEqualsERKNS0_13LocationRangeEPNS0_3ASTES6_:
  209|  4.08k|    {
  210|  4.08k|        return stdFunc(loc, U"primitiveEquals", a, b);
  211|  4.08k|    }
_ZN7jsonnet8internal9Desugarer4makeINS0_5ApplyEJRNS0_13LocationRangeERKNSt3__16vectorINS0_13FodderElementENS6_9allocatorIS8_EEEEPNS0_3VarESD_RNS7_INS0_8ArgParamENS9_ISG_EEEEbSD_SD_bEEEPT_DpOT0_:
  110|  4.08k|    {
  111|  4.08k|        return alloc->make<T>(std::forward<Args>(args)...);
  112|  4.08k|    }
_ZN7jsonnet8internal9Desugarer4makeINS0_3VarEJRKNS0_13LocationRangeERNSt3__16vectorINS0_13FodderElementENS7_9allocatorIS9_EEEERPKNS0_10IdentifierEEEEPT_DpOT0_:
  110|  8.17k|    {
  111|  8.17k|        return alloc->make<T>(std::forward<Args>(args)...);
  112|  8.17k|    }

_ZN7jsonnet8internal7FmtOptsC2Ev:
   37|  7.41k|        : stringStyle('s'),
   38|  7.41k|          commentStyle('s'),
   39|  7.41k|          indent(2),
   40|  7.41k|          maxBlankLines(2),
   41|  7.41k|          padArrays(false),
   42|  7.41k|          padObjects(true),
   43|  7.41k|          stripComments(false),
   44|  7.41k|          stripAllButComments(false),
   45|  7.41k|          stripEverything(false),
   46|  7.41k|          prettyFieldNames(true),
   47|  7.41k|          sortImports(true)
   48|  7.41k|    {
   49|  7.41k|    }

_ZN7jsonnet8internal26allowed_at_end_of_operatorEc:
  174|  4.57M|bool allowed_at_end_of_operator(char c) {
  175|  4.57M|    switch (c) {
  ------------------
  |  Branch (175:13): [True: 1.34M, False: 3.23M]
  ------------------
  176|   733k|        case '+':
  ------------------
  |  Branch (176:9): [True: 733k, False: 3.84M]
  ------------------
  177|   781k|        case '-':
  ------------------
  |  Branch (177:9): [True: 47.5k, False: 4.53M]
  ------------------
  178|  1.11M|        case '~':
  ------------------
  |  Branch (178:9): [True: 333k, False: 4.24M]
  ------------------
  179|  1.27M|        case '!':
  ------------------
  |  Branch (179:9): [True: 163k, False: 4.41M]
  ------------------
  180|  1.34M|        case '$': return false;
  ------------------
  |  Branch (180:9): [True: 69.4k, False: 4.50M]
  ------------------
  181|  4.57M|    }
  182|  3.23M|    return true;
  183|  4.57M|}
_ZN7jsonnet8internal20lex_get_keyword_kindERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  207|  45.3M|{
  208|  45.3M|    auto it = keywords.find(identifier);
  209|  45.3M|    if (it == keywords.end())
  ------------------
  |  Branch (209:9): [True: 33.2M, False: 12.1M]
  ------------------
  210|  33.2M|        return Token::IDENTIFIER;
  211|  12.1M|    return it->second;
  212|  45.3M|}
_ZN7jsonnet8internal10lex_numberERPKcRKNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERKNS0_8LocationE:
  215|  5.13M|{
  216|       |    // This function should be understood with reference to the linked image:
  217|       |    // https://www.json.org/img/number.png
  218|       |
  219|       |    // Note, we deviate from the json.org documentation as follows:
  220|       |    // * There is no reason to lex negative numbers as atomic tokens, it is better to parse them
  221|       |    //   as a unary operator combined with a numeric literal.  This avoids x-1 being tokenized as
  222|       |    //   <identifier> <number> instead of the intended <identifier> <binop> <number>.
  223|       |    // * We support digit separators using the _ character for readability in
  224|       |    //   large numeric literals.
  225|       |
  226|  5.13M|    enum State {
  227|  5.13M|        BEGIN,
  228|  5.13M|        AFTER_ZERO,
  229|  5.13M|        AFTER_ONE_TO_NINE,
  230|  5.13M|        AFTER_INT_UNDERSCORE,
  231|  5.13M|        AFTER_DOT,
  232|  5.13M|        AFTER_DIGIT,
  233|  5.13M|        AFTER_FRAC_UNDERSCORE,
  234|  5.13M|        AFTER_E,
  235|  5.13M|        AFTER_EXP_SIGN,
  236|  5.13M|        AFTER_EXP_DIGIT,
  237|  5.13M|        AFTER_EXP_UNDERSCORE
  238|  5.13M|    } state;
  239|       |
  240|  5.13M|    std::string r;
  241|       |
  242|  5.13M|    state = BEGIN;
  243|  11.1M|    while (true) {
  ------------------
  |  Branch (243:12): [True: 11.1M, Folded]
  ------------------
  244|  11.1M|        switch (state) {
  ------------------
  |  Branch (244:17): [True: 11.1M, False: 0]
  ------------------
  245|  5.13M|            case BEGIN:
  ------------------
  |  Branch (245:13): [True: 5.13M, False: 5.97M]
  ------------------
  246|  5.13M|                switch (*c) {
  247|  1.09M|                    case '0': state = AFTER_ZERO; break;
  ------------------
  |  Branch (247:21): [True: 1.09M, False: 4.03M]
  ------------------
  248|       |
  249|  1.37M|                    case '1':
  ------------------
  |  Branch (249:21): [True: 1.37M, False: 3.75M]
  ------------------
  250|  1.65M|                    case '2':
  ------------------
  |  Branch (250:21): [True: 277k, False: 4.85M]
  ------------------
  251|  1.85M|                    case '3':
  ------------------
  |  Branch (251:21): [True: 201k, False: 4.93M]
  ------------------
  252|  2.04M|                    case '4':
  ------------------
  |  Branch (252:21): [True: 195k, False: 4.93M]
  ------------------
  253|  2.09M|                    case '5':
  ------------------
  |  Branch (253:21): [True: 47.3k, False: 5.08M]
  ------------------
  254|  2.33M|                    case '6':
  ------------------
  |  Branch (254:21): [True: 236k, False: 4.89M]
  ------------------
  255|  2.35M|                    case '7':
  ------------------
  |  Branch (255:21): [True: 23.6k, False: 5.10M]
  ------------------
  256|  3.29M|                    case '8':
  ------------------
  |  Branch (256:21): [True: 937k, False: 4.19M]
  ------------------
  257|  4.03M|                    case '9': state = AFTER_ONE_TO_NINE; break;
  ------------------
  |  Branch (257:21): [True: 743k, False: 4.38M]
  ------------------
  258|       |
  259|      0|                    default: throw StaticError(filename, begin, "couldn't lex number");
  ------------------
  |  Branch (259:21): [True: 0, False: 5.13M]
  ------------------
  260|  5.13M|                }
  261|  5.13M|                break;
  262|       |
  263|  5.13M|            case AFTER_ZERO:
  ------------------
  |  Branch (263:13): [True: 1.09M, False: 10.0M]
  ------------------
  264|  1.09M|                switch (*c) {
  265|  16.2k|                    case '.': state = AFTER_DOT; break;
  ------------------
  |  Branch (265:21): [True: 16.2k, False: 1.08M]
  ------------------
  266|       |
  267|    389|                    case 'e':
  ------------------
  |  Branch (267:21): [True: 389, False: 1.09M]
  ------------------
  268|    503|                    case 'E': state = AFTER_E; break;
  ------------------
  |  Branch (268:21): [True: 114, False: 1.09M]
  ------------------
  269|       |
  270|      1|                    case '_': {
  ------------------
  |  Branch (270:21): [True: 1, False: 1.09M]
  ------------------
  271|      1|                        std::stringstream ss;
  272|      1|                        ss << "couldn't lex number, _ not allowed after leading 0";
  273|      1|                        throw StaticError(filename, begin, ss.str());
  274|    389|                    }
  275|       |
  276|  1.07M|                    default: goto end;
  ------------------
  |  Branch (276:21): [True: 1.07M, False: 16.7k]
  ------------------
  277|  1.09M|                }
  278|  16.7k|                break;
  279|       |
  280|  4.64M|            case AFTER_ONE_TO_NINE:
  ------------------
  |  Branch (280:13): [True: 4.64M, False: 6.46M]
  ------------------
  281|  4.64M|                switch (*c) {
  282|  10.7k|                    case '.': state = AFTER_DOT; break;
  ------------------
  |  Branch (282:21): [True: 10.7k, False: 4.63M]
  ------------------
  283|       |
  284|    937|                    case 'e':
  ------------------
  |  Branch (284:21): [True: 937, False: 4.64M]
  ------------------
  285|  2.14k|                    case 'E': state = AFTER_E; break;
  ------------------
  |  Branch (285:21): [True: 1.20k, False: 4.64M]
  ------------------
  286|       |
  287|   240k|                    case '0':
  ------------------
  |  Branch (287:21): [True: 240k, False: 4.40M]
  ------------------
  288|   255k|                    case '1':
  ------------------
  |  Branch (288:21): [True: 14.7k, False: 4.63M]
  ------------------
  289|   339k|                    case '2':
  ------------------
  |  Branch (289:21): [True: 84.5k, False: 4.56M]
  ------------------
  290|   370k|                    case '3':
  ------------------
  |  Branch (290:21): [True: 31.0k, False: 4.61M]
  ------------------
  291|   406k|                    case '4':
  ------------------
  |  Branch (291:21): [True: 35.5k, False: 4.61M]
  ------------------
  292|   482k|                    case '5':
  ------------------
  |  Branch (292:21): [True: 76.3k, False: 4.57M]
  ------------------
  293|   529k|                    case '6':
  ------------------
  |  Branch (293:21): [True: 47.1k, False: 4.60M]
  ------------------
  294|   555k|                    case '7':
  ------------------
  |  Branch (294:21): [True: 25.6k, False: 4.62M]
  ------------------
  295|   589k|                    case '8':
  ------------------
  |  Branch (295:21): [True: 34.3k, False: 4.61M]
  ------------------
  296|   611k|                    case '9': state = AFTER_ONE_TO_NINE; break;
  ------------------
  |  Branch (296:21): [True: 21.8k, False: 4.62M]
  ------------------
  297|       |
  298|     96|                    case '_': state = AFTER_INT_UNDERSCORE; goto skip_char;
  ------------------
  |  Branch (298:21): [True: 96, False: 4.64M]
  ------------------
  299|       |
  300|  4.02M|                    default: goto end;
  ------------------
  |  Branch (300:21): [True: 4.02M, False: 624k]
  ------------------
  301|  4.64M|                }
  302|   624k|                break;
  303|       |
  304|   624k|            case AFTER_INT_UNDERSCORE:
  ------------------
  |  Branch (304:13): [True: 96, False: 11.1M]
  ------------------
  305|     96|                switch (*c) {
  306|       |                    // The only valid transition from _ is to a digit.
  307|      0|                    case '0':
  ------------------
  |  Branch (307:21): [True: 0, False: 96]
  ------------------
  308|      0|                    case '1':
  ------------------
  |  Branch (308:21): [True: 0, False: 96]
  ------------------
  309|      1|                    case '2':
  ------------------
  |  Branch (309:21): [True: 1, False: 95]
  ------------------
  310|      1|                    case '3':
  ------------------
  |  Branch (310:21): [True: 0, False: 96]
  ------------------
  311|      1|                    case '4':
  ------------------
  |  Branch (311:21): [True: 0, False: 96]
  ------------------
  312|      1|                    case '5':
  ------------------
  |  Branch (312:21): [True: 0, False: 96]
  ------------------
  313|      1|                    case '6':
  ------------------
  |  Branch (313:21): [True: 0, False: 96]
  ------------------
  314|      1|                    case '7':
  ------------------
  |  Branch (314:21): [True: 0, False: 96]
  ------------------
  315|     93|                    case '8':
  ------------------
  |  Branch (315:21): [True: 92, False: 4]
  ------------------
  316|     94|                    case '9': state = AFTER_ONE_TO_NINE; break;
  ------------------
  |  Branch (316:21): [True: 1, False: 95]
  ------------------
  317|       |
  318|      2|                    default: {
  ------------------
  |  Branch (318:21): [True: 2, False: 94]
  ------------------
  319|      2|                        std::stringstream ss;
  320|      2|                        ss << "couldn't lex number, junk after _: " << *c;
  321|      2|                        throw StaticError(filename, begin, ss.str());
  322|     93|                    }
  323|     96|                }
  324|     94|                break;
  325|       |
  326|  26.9k|            case AFTER_DOT:
  ------------------
  |  Branch (326:13): [True: 26.9k, False: 11.0M]
  ------------------
  327|  26.9k|                switch (*c) {
  328|  1.04k|                    case '0':
  ------------------
  |  Branch (328:21): [True: 1.04k, False: 25.8k]
  ------------------
  329|  9.00k|                    case '1':
  ------------------
  |  Branch (329:21): [True: 7.95k, False: 18.9k]
  ------------------
  330|  9.54k|                    case '2':
  ------------------
  |  Branch (330:21): [True: 543, False: 26.4k]
  ------------------
  331|  10.1k|                    case '3':
  ------------------
  |  Branch (331:21): [True: 568, False: 26.3k]
  ------------------
  332|  10.4k|                    case '4':
  ------------------
  |  Branch (332:21): [True: 347, False: 26.5k]
  ------------------
  333|  25.6k|                    case '5':
  ------------------
  |  Branch (333:21): [True: 15.2k, False: 11.7k]
  ------------------
  334|  25.9k|                    case '6':
  ------------------
  |  Branch (334:21): [True: 212, False: 26.7k]
  ------------------
  335|  25.9k|                    case '7':
  ------------------
  |  Branch (335:21): [True: 37, False: 26.9k]
  ------------------
  336|  26.4k|                    case '8':
  ------------------
  |  Branch (336:21): [True: 541, False: 26.4k]
  ------------------
  337|  26.9k|                    case '9': state = AFTER_DIGIT; break;
  ------------------
  |  Branch (337:21): [True: 458, False: 26.4k]
  ------------------
  338|       |
  339|      7|                    default: {
  ------------------
  |  Branch (339:21): [True: 7, False: 26.9k]
  ------------------
  340|      7|                        std::stringstream ss;
  341|      7|                        ss << "couldn't lex number, junk after decimal point: " << *c;
  342|      7|                        throw StaticError(filename, begin, ss.str());
  343|  26.4k|                    }
  344|  26.9k|                }
  345|  26.9k|                break;
  346|       |
  347|   183k|            case AFTER_DIGIT:
  ------------------
  |  Branch (347:13): [True: 183k, False: 10.9M]
  ------------------
  348|   183k|                switch (*c) {
  349|    595|                    case 'e':
  ------------------
  |  Branch (349:21): [True: 595, False: 182k]
  ------------------
  350|    946|                    case 'E': state = AFTER_E; break;
  ------------------
  |  Branch (350:21): [True: 351, False: 183k]
  ------------------
  351|       |
  352|  16.9k|                    case '0':
  ------------------
  |  Branch (352:21): [True: 16.9k, False: 166k]
  ------------------
  353|  40.7k|                    case '1':
  ------------------
  |  Branch (353:21): [True: 23.8k, False: 159k]
  ------------------
  354|  49.3k|                    case '2':
  ------------------
  |  Branch (354:21): [True: 8.60k, False: 174k]
  ------------------
  355|  65.9k|                    case '3':
  ------------------
  |  Branch (355:21): [True: 16.5k, False: 166k]
  ------------------
  356|  73.9k|                    case '4':
  ------------------
  |  Branch (356:21): [True: 8.02k, False: 175k]
  ------------------
  357|  97.7k|                    case '5':
  ------------------
  |  Branch (357:21): [True: 23.8k, False: 159k]
  ------------------
  358|   113k|                    case '6':
  ------------------
  |  Branch (358:21): [True: 15.8k, False: 167k]
  ------------------
  359|   121k|                    case '7':
  ------------------
  |  Branch (359:21): [True: 8.37k, False: 175k]
  ------------------
  360|   133k|                    case '8':
  ------------------
  |  Branch (360:21): [True: 11.4k, False: 172k]
  ------------------
  361|   156k|                    case '9': state = AFTER_DIGIT; break;
  ------------------
  |  Branch (361:21): [True: 23.0k, False: 160k]
  ------------------
  362|       |
  363|    116|                    case '_': state = AFTER_FRAC_UNDERSCORE; goto skip_char;
  ------------------
  |  Branch (363:21): [True: 116, False: 183k]
  ------------------
  364|       |
  365|  25.9k|                    default: goto end;
  ------------------
  |  Branch (365:21): [True: 25.9k, False: 157k]
  ------------------
  366|   183k|                }
  367|   157k|                break;
  368|       |
  369|   157k|            case AFTER_FRAC_UNDERSCORE:
  ------------------
  |  Branch (369:13): [True: 116, False: 11.1M]
  ------------------
  370|    116|                switch (*c) {
  371|       |                    // The only valid transition from _ is to a digit.
  372|      0|                    case '0':
  ------------------
  |  Branch (372:21): [True: 0, False: 116]
  ------------------
  373|      0|                    case '1':
  ------------------
  |  Branch (373:21): [True: 0, False: 116]
  ------------------
  374|      0|                    case '2':
  ------------------
  |  Branch (374:21): [True: 0, False: 116]
  ------------------
  375|      0|                    case '3':
  ------------------
  |  Branch (375:21): [True: 0, False: 116]
  ------------------
  376|      1|                    case '4':
  ------------------
  |  Branch (376:21): [True: 1, False: 115]
  ------------------
  377|      1|                    case '5':
  ------------------
  |  Branch (377:21): [True: 0, False: 116]
  ------------------
  378|      1|                    case '6':
  ------------------
  |  Branch (378:21): [True: 0, False: 116]
  ------------------
  379|      1|                    case '7':
  ------------------
  |  Branch (379:21): [True: 0, False: 116]
  ------------------
  380|    114|                    case '8':
  ------------------
  |  Branch (380:21): [True: 113, False: 3]
  ------------------
  381|    114|                    case '9': state = AFTER_DIGIT; break;
  ------------------
  |  Branch (381:21): [True: 0, False: 116]
  ------------------
  382|       |
  383|      2|                    default: {
  ------------------
  |  Branch (383:21): [True: 2, False: 114]
  ------------------
  384|      2|                        std::stringstream ss;
  385|      2|                        ss << "couldn't lex number, junk after _: " << *c;
  386|      2|                        throw StaticError(filename, begin, ss.str());
  387|    114|                    }
  388|    116|                }
  389|    114|                break;
  390|       |
  391|  3.59k|            case AFTER_E:
  ------------------
  |  Branch (391:13): [True: 3.59k, False: 11.1M]
  ------------------
  392|  3.59k|                switch (*c) {
  393|    452|                    case '+':
  ------------------
  |  Branch (393:21): [True: 452, False: 3.14k]
  ------------------
  394|  1.20k|                    case '-': state = AFTER_EXP_SIGN; break;
  ------------------
  |  Branch (394:21): [True: 748, False: 2.84k]
  ------------------
  395|       |
  396|  1.23k|                    case '0':
  ------------------
  |  Branch (396:21): [True: 1.23k, False: 2.35k]
  ------------------
  397|  1.32k|                    case '1':
  ------------------
  |  Branch (397:21): [True: 89, False: 3.50k]
  ------------------
  398|  1.43k|                    case '2':
  ------------------
  |  Branch (398:21): [True: 111, False: 3.48k]
  ------------------
  399|  1.45k|                    case '3':
  ------------------
  |  Branch (399:21): [True: 15, False: 3.57k]
  ------------------
  400|  1.47k|                    case '4':
  ------------------
  |  Branch (400:21): [True: 16, False: 3.57k]
  ------------------
  401|  1.67k|                    case '5':
  ------------------
  |  Branch (401:21): [True: 208, False: 3.38k]
  ------------------
  402|  2.03k|                    case '6':
  ------------------
  |  Branch (402:21): [True: 354, False: 3.23k]
  ------------------
  403|  2.06k|                    case '7':
  ------------------
  |  Branch (403:21): [True: 37, False: 3.55k]
  ------------------
  404|  2.12k|                    case '8':
  ------------------
  |  Branch (404:21): [True: 58, False: 3.53k]
  ------------------
  405|  2.36k|                    case '9': state = AFTER_EXP_DIGIT; break;
  ------------------
  |  Branch (405:21): [True: 238, False: 3.35k]
  ------------------
  406|       |
  407|     28|                    default: {
  ------------------
  |  Branch (407:21): [True: 28, False: 3.56k]
  ------------------
  408|     28|                        std::stringstream ss;
  409|     28|                        ss << "couldn't lex number, junk after 'E': " << *c;
  410|     28|                        throw StaticError(filename, begin, ss.str());
  411|  2.12k|                    }
  412|  3.59k|                }
  413|  3.56k|                break;
  414|       |
  415|  3.56k|            case AFTER_EXP_SIGN:
  ------------------
  |  Branch (415:13): [True: 1.20k, False: 11.1M]
  ------------------
  416|  1.20k|                switch (*c) {
  417|     13|                    case '0':
  ------------------
  |  Branch (417:21): [True: 13, False: 1.18k]
  ------------------
  418|     94|                    case '1':
  ------------------
  |  Branch (418:21): [True: 81, False: 1.11k]
  ------------------
  419|    259|                    case '2':
  ------------------
  |  Branch (419:21): [True: 165, False: 1.03k]
  ------------------
  420|    833|                    case '3':
  ------------------
  |  Branch (420:21): [True: 574, False: 626]
  ------------------
  421|  1.12k|                    case '4':
  ------------------
  |  Branch (421:21): [True: 287, False: 913]
  ------------------
  422|  1.13k|                    case '5':
  ------------------
  |  Branch (422:21): [True: 15, False: 1.18k]
  ------------------
  423|  1.13k|                    case '6':
  ------------------
  |  Branch (423:21): [True: 0, False: 1.20k]
  ------------------
  424|  1.13k|                    case '7':
  ------------------
  |  Branch (424:21): [True: 0, False: 1.20k]
  ------------------
  425|  1.19k|                    case '8':
  ------------------
  |  Branch (425:21): [True: 59, False: 1.14k]
  ------------------
  426|  1.19k|                    case '9': state = AFTER_EXP_DIGIT; break;
  ------------------
  |  Branch (426:21): [True: 2, False: 1.19k]
  ------------------
  427|       |
  428|      4|                    default: {
  ------------------
  |  Branch (428:21): [True: 4, False: 1.19k]
  ------------------
  429|      4|                        std::stringstream ss;
  430|      4|                        ss << "couldn't lex number, junk after exponent sign: " << *c;
  431|      4|                        throw StaticError(filename, begin, ss.str());
  432|  1.19k|                    }
  433|  1.20k|                }
  434|  1.19k|                break;
  435|       |
  436|  18.2k|            case AFTER_EXP_DIGIT:
  ------------------
  |  Branch (436:13): [True: 18.2k, False: 11.0M]
  ------------------
  437|  18.2k|                switch (*c) {
  438|  1.14k|                    case '0':
  ------------------
  |  Branch (438:21): [True: 1.14k, False: 17.1k]
  ------------------
  439|  3.03k|                    case '1':
  ------------------
  |  Branch (439:21): [True: 1.89k, False: 16.3k]
  ------------------
  440|  3.53k|                    case '2':
  ------------------
  |  Branch (440:21): [True: 499, False: 17.7k]
  ------------------
  441|  5.15k|                    case '3':
  ------------------
  |  Branch (441:21): [True: 1.61k, False: 16.6k]
  ------------------
  442|  7.14k|                    case '4':
  ------------------
  |  Branch (442:21): [True: 1.98k, False: 16.2k]
  ------------------
  443|  8.42k|                    case '5':
  ------------------
  |  Branch (443:21): [True: 1.27k, False: 16.9k]
  ------------------
  444|  9.63k|                    case '6':
  ------------------
  |  Branch (444:21): [True: 1.21k, False: 17.0k]
  ------------------
  445|  10.5k|                    case '7':
  ------------------
  |  Branch (445:21): [True: 885, False: 17.3k]
  ------------------
  446|  13.6k|                    case '8':
  ------------------
  |  Branch (446:21): [True: 3.10k, False: 15.1k]
  ------------------
  447|  14.3k|                    case '9': state = AFTER_EXP_DIGIT; break;
  ------------------
  |  Branch (447:21): [True: 693, False: 17.5k]
  ------------------
  448|       |
  449|    395|                    case '_': state = AFTER_EXP_UNDERSCORE; goto skip_char;
  ------------------
  |  Branch (449:21): [True: 395, False: 17.8k]
  ------------------
  450|       |
  451|  3.55k|                    default: goto end;
  ------------------
  |  Branch (451:21): [True: 3.55k, False: 14.7k]
  ------------------
  452|  18.2k|                }
  453|  14.3k|                break;
  454|       |
  455|  14.3k|            case AFTER_EXP_UNDERSCORE:
  ------------------
  |  Branch (455:13): [True: 395, False: 11.1M]
  ------------------
  456|    395|                switch (*c) {
  457|       |                    // The only valid transition from _ is to a digit.
  458|      0|                    case '0':
  ------------------
  |  Branch (458:21): [True: 0, False: 395]
  ------------------
  459|    340|                    case '1':
  ------------------
  |  Branch (459:21): [True: 340, False: 55]
  ------------------
  460|    340|                    case '2':
  ------------------
  |  Branch (460:21): [True: 0, False: 395]
  ------------------
  461|    340|                    case '3':
  ------------------
  |  Branch (461:21): [True: 0, False: 395]
  ------------------
  462|    342|                    case '4':
  ------------------
  |  Branch (462:21): [True: 2, False: 393]
  ------------------
  463|    342|                    case '5':
  ------------------
  |  Branch (463:21): [True: 0, False: 395]
  ------------------
  464|    342|                    case '6':
  ------------------
  |  Branch (464:21): [True: 0, False: 395]
  ------------------
  465|    342|                    case '7':
  ------------------
  |  Branch (465:21): [True: 0, False: 395]
  ------------------
  466|    393|                    case '8':
  ------------------
  |  Branch (466:21): [True: 51, False: 344]
  ------------------
  467|    393|                    case '9': state = AFTER_EXP_DIGIT; break;
  ------------------
  |  Branch (467:21): [True: 0, False: 395]
  ------------------
  468|       |
  469|      2|                    default: {
  ------------------
  |  Branch (469:21): [True: 2, False: 393]
  ------------------
  470|      2|                        std::stringstream ss;
  471|      2|                        ss << "couldn't lex number, junk after _: " << *c;
  472|      2|                        throw StaticError(filename, begin, ss.str());
  473|    393|                    }
  474|    395|                }
  475|    393|                break;
  476|  11.1M|        }
  477|  5.97M|        r += *c;
  478|       |
  479|  5.97M|skip_char:
  480|  5.97M|        c++;
  481|  5.97M|    }
  482|  5.13M|end:
  483|  5.13M|    return r;
  484|  5.13M|}
_ZN7jsonnet8internal11jsonnet_lexERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEPKc:
  521|  14.9k|{
  522|  14.9k|    unsigned long line_number = 1;
  523|  14.9k|    const char *line_start = input;
  524|       |
  525|  14.9k|    Tokens r;
  526|       |
  527|  14.9k|    const char *c = input;
  528|       |
  529|  14.9k|    Fodder fodder;
  530|  14.9k|    bool fresh_line = true;  // Are we tokenizing from the beginning of a new line?
  531|       |
  532|   108M|    while (*c != '\0') {
  ------------------
  |  Branch (532:12): [True: 108M, False: 6.74k]
  ------------------
  533|       |        // Used to ensure we have actually advanced the pointer by the end of the iteration.
  534|   108M|        const char *original_c = c;
  535|       |
  536|   108M|        Token::Kind kind;
  537|   108M|        std::string data;
  538|   108M|        std::string string_block_indent;
  539|   108M|        std::string string_block_term_indent;
  540|       |
  541|   108M|        unsigned new_lines, indent;
  542|   108M|        lex_ws(c, new_lines, indent, line_start, line_number);
  543|       |
  544|       |        // If it's the end of the file, discard final whitespace.
  545|   108M|        if (*c == '\0')
  ------------------
  |  Branch (545:13): [True: 7.72k, False: 108M]
  ------------------
  546|  7.72k|            break;
  547|       |
  548|   108M|        if (new_lines > 0) {
  ------------------
  |  Branch (548:13): [True: 11.3M, False: 97.5M]
  ------------------
  549|       |            // Otherwise store whitespace in fodder.
  550|  11.3M|            unsigned blanks = new_lines - 1;
  551|  11.3M|            fodder.emplace_back(FodderElement::LINE_END, blanks, indent, EMPTY);
  552|  11.3M|            fresh_line = true;
  553|  11.3M|        }
  554|       |
  555|   108M|        Location begin(line_number, c - line_start + 1);
  556|       |
  557|   108M|        switch (*c) {
  558|       |            // The following operators should never be combined with subsequent symbols.
  559|   476k|            case '{':
  ------------------
  |  Branch (559:13): [True: 476k, False: 108M]
  ------------------
  560|   476k|                kind = Token::BRACE_L;
  561|   476k|                c++;
  562|   476k|                break;
  563|       |
  564|   467k|            case '}':
  ------------------
  |  Branch (564:13): [True: 467k, False: 108M]
  ------------------
  565|   467k|                kind = Token::BRACE_R;
  566|   467k|                c++;
  567|   467k|                break;
  568|       |
  569|  2.41M|            case '[':
  ------------------
  |  Branch (569:13): [True: 2.41M, False: 106M]
  ------------------
  570|  2.41M|                kind = Token::BRACKET_L;
  571|  2.41M|                c++;
  572|  2.41M|                break;
  573|       |
  574|  2.40M|            case ']':
  ------------------
  |  Branch (574:13): [True: 2.40M, False: 106M]
  ------------------
  575|  2.40M|                kind = Token::BRACKET_R;
  576|  2.40M|                c++;
  577|  2.40M|                break;
  578|       |
  579|  9.86M|            case ',':
  ------------------
  |  Branch (579:13): [True: 9.86M, False: 99.0M]
  ------------------
  580|  9.86M|                kind = Token::COMMA;
  581|  9.86M|                c++;
  582|  9.86M|                break;
  583|       |
  584|  5.44M|            case '.':
  ------------------
  |  Branch (584:13): [True: 5.44M, False: 103M]
  ------------------
  585|  5.44M|                kind = Token::DOT;
  586|  5.44M|                c++;
  587|  5.44M|                break;
  588|       |
  589|  8.19M|            case '(':
  ------------------
  |  Branch (589:13): [True: 8.19M, False: 100M]
  ------------------
  590|  8.19M|                kind = Token::PAREN_L;
  591|  8.19M|                c++;
  592|  8.19M|                break;
  593|       |
  594|  8.18M|            case ')':
  ------------------
  |  Branch (594:13): [True: 8.18M, False: 100M]
  ------------------
  595|  8.18M|                kind = Token::PAREN_R;
  596|  8.18M|                c++;
  597|  8.18M|                break;
  598|       |
  599|  2.14M|            case ';':
  ------------------
  |  Branch (599:13): [True: 2.14M, False: 106M]
  ------------------
  600|  2.14M|                kind = Token::SEMICOLON;
  601|  2.14M|                c++;
  602|  2.14M|                break;
  603|       |
  604|       |            // Numeric literals.
  605|  1.09M|            case '0':
  ------------------
  |  Branch (605:13): [True: 1.09M, False: 107M]
  ------------------
  606|  2.47M|            case '1':
  ------------------
  |  Branch (606:13): [True: 1.37M, False: 107M]
  ------------------
  607|  2.74M|            case '2':
  ------------------
  |  Branch (607:13): [True: 277k, False: 108M]
  ------------------
  608|  2.94M|            case '3':
  ------------------
  |  Branch (608:13): [True: 201k, False: 108M]
  ------------------
  609|  3.14M|            case '4':
  ------------------
  |  Branch (609:13): [True: 195k, False: 108M]
  ------------------
  610|  3.19M|            case '5':
  ------------------
  |  Branch (610:13): [True: 47.3k, False: 108M]
  ------------------
  611|  3.42M|            case '6':
  ------------------
  |  Branch (611:13): [True: 236k, False: 108M]
  ------------------
  612|  3.45M|            case '7':
  ------------------
  |  Branch (612:13): [True: 23.6k, False: 108M]
  ------------------
  613|  4.38M|            case '8':
  ------------------
  |  Branch (613:13): [True: 937k, False: 107M]
  ------------------
  614|  5.13M|            case '9':
  ------------------
  |  Branch (614:13): [True: 743k, False: 108M]
  ------------------
  615|  5.13M|                kind = Token::NUMBER;
  616|  5.13M|                data = lex_number(c, filename, begin);
  617|  5.13M|                break;
  618|       |
  619|       |            // UString literals.
  620|   157k|            case '"': {
  ------------------
  |  Branch (620:13): [True: 157k, False: 108M]
  ------------------
  621|   157k|                c++;
  622|  36.2M|                for (;; ++c) {
  623|  36.2M|                    if (*c == '\0') {
  ------------------
  |  Branch (623:25): [True: 20, False: 36.2M]
  ------------------
  624|     20|                        throw StaticError(filename, begin, "unterminated string");
  625|     20|                    }
  626|  36.2M|                    if (*c == '"') {
  ------------------
  |  Branch (626:25): [True: 157k, False: 36.1M]
  ------------------
  627|   157k|                        break;
  628|   157k|                    }
  629|  36.1M|                    if (*c == '\\' && *(c + 1) != '\0') {
  ------------------
  |  Branch (629:25): [True: 55.2k, False: 36.0M]
  |  Branch (629:39): [True: 55.2k, False: 1]
  ------------------
  630|  55.2k|                        data += *c;
  631|  55.2k|                        ++c;
  632|  55.2k|                    }
  633|  36.1M|                    if (*c == '\n') {
  ------------------
  |  Branch (633:25): [True: 1.35M, False: 34.7M]
  ------------------
  634|       |                        // Maintain line/column counters.
  635|  1.35M|                        line_number++;
  636|  1.35M|                        line_start = c + 1;
  637|  1.35M|                    }
  638|  36.1M|                    data += *c;
  639|  36.1M|                }
  640|   157k|                c++;  // Advance beyond the ".
  641|   157k|                kind = Token::STRING_DOUBLE;
  642|   157k|            } break;
  643|       |
  644|       |            // UString literals.
  645|  3.55M|            case '\'': {
  ------------------
  |  Branch (645:13): [True: 3.55M, False: 105M]
  ------------------
  646|  3.55M|                c++;
  647|  51.9M|                for (;; ++c) {
  648|  51.9M|                    if (*c == '\0') {
  ------------------
  |  Branch (648:25): [True: 26, False: 51.9M]
  ------------------
  649|     26|                        throw StaticError(filename, begin, "unterminated string");
  650|     26|                    }
  651|  51.9M|                    if (*c == '\'') {
  ------------------
  |  Branch (651:25): [True: 3.55M, False: 48.3M]
  ------------------
  652|  3.55M|                        break;
  653|  3.55M|                    }
  654|  48.3M|                    if (*c == '\\' && *(c + 1) != '\0') {
  ------------------
  |  Branch (654:25): [True: 403k, False: 47.9M]
  |  Branch (654:39): [True: 403k, False: 1]
  ------------------
  655|   403k|                        data += *c;
  656|   403k|                        ++c;
  657|   403k|                    }
  658|  48.3M|                    if (*c == '\n') {
  ------------------
  |  Branch (658:25): [True: 229k, False: 48.1M]
  ------------------
  659|       |                        // Maintain line/column counters.
  660|   229k|                        line_number++;
  661|   229k|                        line_start = c + 1;
  662|   229k|                    }
  663|  48.3M|                    data += *c;
  664|  48.3M|                }
  665|  3.55M|                c++;  // Advance beyond the '.
  666|  3.55M|                kind = Token::STRING_SINGLE;
  667|  3.55M|            } break;
  668|       |
  669|       |            // Verbatim string literals.
  670|       |            // ' and " quoting is interpreted here, unlike non-verbatim strings
  671|       |            // where it is done later by jsonnet_string_unescape.  This is OK
  672|       |            // in this case because no information is lost by resoving the
  673|       |            // repeated quote into a single quote, so we can go back to the
  674|       |            // original form in the formatter.
  675|  2.45k|            case '@': {
  ------------------
  |  Branch (675:13): [True: 2.45k, False: 108M]
  ------------------
  676|  2.45k|                c++;
  677|  2.45k|                if (*c != '"' && *c != '\'') {
  ------------------
  |  Branch (677:21): [True: 827, False: 1.62k]
  |  Branch (677:34): [True: 17, False: 810]
  ------------------
  678|     17|                    std::stringstream ss;
  679|     17|                    ss << "couldn't lex verbatim string, junk after '@': " << *c;
  680|     17|                    throw StaticError(filename, begin, ss.str());
  681|     17|                }
  682|  2.43k|                const char quot = *c;
  683|  2.43k|                c++;  // Advance beyond the opening quote.
  684|  17.7k|                for (;; ++c) {
  685|  17.7k|                    if (*c == '\0') {
  ------------------
  |  Branch (685:25): [True: 24, False: 17.7k]
  ------------------
  686|     24|                        throw StaticError(filename, begin, "unterminated verbatim string");
  687|     24|                    }
  688|  17.7k|                    if (*c == quot) {
  ------------------
  |  Branch (688:25): [True: 2.86k, False: 14.8k]
  ------------------
  689|  2.86k|                        if (*(c + 1) == quot) {
  ------------------
  |  Branch (689:29): [True: 448, False: 2.41k]
  ------------------
  690|    448|                            c++;
  691|  2.41k|                        } else {
  692|  2.41k|                            break;
  693|  2.41k|                        }
  694|  2.86k|                    }
  695|  15.2k|                    data += *c;
  696|  15.2k|                }
  697|  2.41k|                c++;  // Advance beyond the closing quote.
  698|  2.41k|                if (quot == '"') {
  ------------------
  |  Branch (698:21): [True: 1.61k, False: 798]
  ------------------
  699|  1.61k|                    kind = Token::VERBATIM_STRING_DOUBLE;
  700|  1.61k|                } else {
  701|    798|                    kind = Token::VERBATIM_STRING_SINGLE;
  702|    798|                }
  703|  2.41k|            } break;
  704|       |
  705|       |            // Keywords
  706|  60.4M|            default:
  ------------------
  |  Branch (706:13): [True: 60.4M, False: 48.4M]
  ------------------
  707|  60.4M|                if (is_identifier_first(*c)) {
  ------------------
  |  Branch (707:21): [True: 45.3M, False: 15.0M]
  ------------------
  708|  45.3M|                    std::string id;
  709|   246M|                    for (; is_identifier(*c); ++c)
  ------------------
  |  Branch (709:28): [True: 201M, False: 45.3M]
  ------------------
  710|   201M|                        id += *c;
  711|  45.3M|                    kind = lex_get_keyword_kind(id);
  712|  45.3M|                    data = id;
  713|       |
  714|  45.3M|                } else if (is_symbol(*c) || *c == '#') {
  ------------------
  |  Branch (714:28): [True: 12.6M, False: 2.41M]
  |  Branch (714:45): [True: 2.41M, False: 122]
  ------------------
  715|       |                    // Single line C++ and Python style comments.
  716|  15.0M|                    if (*c == '#' || (*c == '/' && *(c + 1) == '/')) {
  ------------------
  |  Branch (716:25): [True: 2.41M, False: 12.6M]
  |  Branch (716:39): [True: 1.18M, False: 11.4M]
  |  Branch (716:52): [True: 704k, False: 476k]
  ------------------
  717|  3.12M|                        std::vector<std::string> comment(1);
  718|  3.12M|                        unsigned blanks;
  719|  3.12M|                        unsigned indent;
  720|  3.12M|                        lex_until_newline(c, comment[0], blanks, indent, line_start, line_number);
  721|  3.12M|                        auto kind = fresh_line ? FodderElement::PARAGRAPH : FodderElement::LINE_END;
  ------------------
  |  Branch (721:37): [True: 3.10M, False: 15.8k]
  ------------------
  722|  3.12M|                        fodder.emplace_back(kind, blanks, indent, comment);
  723|  3.12M|                        fresh_line = true;
  724|  3.12M|                        continue;  // We've not got a token, just fodder, so keep scanning.
  725|  3.12M|                    }
  726|       |
  727|       |                    // Multi-line C style comment.
  728|  11.9M|                    if (*c == '/' && *(c + 1) == '*') {
  ------------------
  |  Branch (728:25): [True: 476k, False: 11.4M]
  |  Branch (728:38): [True: 375k, False: 100k]
  ------------------
  729|   375k|                        unsigned margin = c - line_start;
  730|       |
  731|   375k|                        const char *initial_c = c;
  732|   375k|                        c += 2;  // Avoid matching /*/: skip the /* before starting the search for
  733|       |                                 // */.
  734|       |
  735|  50.9M|                        while (!(*c == '*' && *(c + 1) == '/')) {
  ------------------
  |  Branch (735:34): [True: 611k, False: 50.3M]
  |  Branch (735:47): [True: 375k, False: 235k]
  ------------------
  736|  50.5M|                            if (*c == '\0') {
  ------------------
  |  Branch (736:33): [True: 64, False: 50.5M]
  ------------------
  737|     64|                                auto msg = "multi-line comment has no terminating */.";
  738|     64|                                throw StaticError(filename, begin, msg);
  739|     64|                            }
  740|  50.5M|                            if (*c == '\n') {
  ------------------
  |  Branch (740:33): [True: 8.00M, False: 42.5M]
  ------------------
  741|       |                                // Just keep track of the line / column counters.
  742|  8.00M|                                line_number++;
  743|  8.00M|                                line_start = c + 1;
  744|  8.00M|                            }
  745|  50.5M|                            ++c;
  746|  50.5M|                        }
  747|   375k|                        c += 2;  // Move the pointer to the char after the closing '/'.
  748|       |
  749|   375k|                        std::string comment(initial_c,
  750|   375k|                                            c - initial_c);  // Includes the "/*" and "*/".
  751|       |
  752|       |                        // Lex whitespace after comment
  753|   375k|                        unsigned new_lines_after, indent_after;
  754|   375k|                        lex_ws(c, new_lines_after, indent_after, line_start, line_number);
  755|   375k|                        std::vector<std::string> lines;
  756|   375k|                        if (comment.find('\n') >= comment.length()) {
  ------------------
  |  Branch (756:29): [True: 229k, False: 145k]
  ------------------
  757|       |                            // Comment looks like /* foo */
  758|   229k|                            lines.push_back(comment);
  759|   229k|                            fodder.emplace_back(FodderElement::INTERSTITIAL, 0, 0, lines);
  760|   229k|                            if (new_lines_after > 0) {
  ------------------
  |  Branch (760:33): [True: 226k, False: 3.83k]
  ------------------
  761|   226k|                                fodder.emplace_back(FodderElement::LINE_END,
  762|   226k|                                                    new_lines_after - 1,
  763|   226k|                                                    indent_after,
  764|   226k|                                                    EMPTY);
  765|   226k|                                fresh_line = true;
  766|   226k|                            }
  767|   229k|                        } else {
  768|   145k|                            lines = line_split(comment, margin);
  769|   145k|                            assert(lines[0][0] == '/');
  ------------------
  |  Branch (769:29): [True: 145k, False: 0]
  ------------------
  770|       |                            // Little hack to support PARAGRAPHs with * down the LHS:
  771|       |                            // Add a space to lines that start with a '*'
  772|   145k|                            bool all_star = true;
  773|  8.14M|                            for (auto &l : lines) {
  ------------------
  |  Branch (773:42): [True: 8.14M, False: 145k]
  ------------------
  774|  8.14M|                                if (l[0] != '*')
  ------------------
  |  Branch (774:37): [True: 8.06M, False: 81.6k]
  ------------------
  775|  8.06M|                                    all_star = false;
  776|  8.14M|                            }
  777|   145k|                            if (all_star) {
  ------------------
  |  Branch (777:33): [True: 0, False: 145k]
  ------------------
  778|      0|                                for (auto &l : lines) {
  ------------------
  |  Branch (778:46): [True: 0, False: 0]
  ------------------
  779|      0|                                    if (l[0] == '*')
  ------------------
  |  Branch (779:41): [True: 0, False: 0]
  ------------------
  780|      0|                                        l = " " + l;
  781|      0|                                }
  782|      0|                            }
  783|   145k|                            if (new_lines_after == 0) {
  ------------------
  |  Branch (783:33): [True: 9.89k, False: 135k]
  ------------------
  784|       |                                // Ensure a line end after the paragraph.
  785|  9.89k|                                new_lines_after = 1;
  786|  9.89k|                                indent_after = 0;
  787|  9.89k|                            }
  788|   145k|                            fodder_push_back(fodder,
  789|   145k|                                             FodderElement(FodderElement::PARAGRAPH,
  790|   145k|                                                           new_lines_after - 1,
  791|   145k|                                                           indent_after,
  792|   145k|                                                           lines));
  793|   145k|                            fresh_line = true;
  794|   145k|                        }
  795|   375k|                        continue;  // We've not got a token, just fodder, so keep scanning.
  796|   375k|                    }
  797|       |
  798|       |                    // Text block
  799|  11.5M|                    if (*c == '|' && *(c + 1) == '|' && *(c + 2) == '|') {
  ------------------
  |  Branch (799:25): [True: 218k, False: 11.3M]
  |  Branch (799:38): [True: 165k, False: 53.2k]
  |  Branch (799:57): [True: 4.63k, False: 161k]
  ------------------
  800|  4.63k|                        c += 3;  // Skip the "|||".
  801|       |
  802|  4.63k|                        bool chomp_trailing_nl = false;
  803|  4.63k|                        if (*c == '-') {
  ------------------
  |  Branch (803:29): [True: 384, False: 4.25k]
  ------------------
  804|    384|                            chomp_trailing_nl = true;
  805|    384|                            c++;
  806|    384|                        }
  807|       |
  808|  6.21k|                        while (is_horz_ws(*c)) ++c;  // Chomp whitespace at end of line.
  ------------------
  |  Branch (808:32): [True: 1.57k, False: 4.63k]
  ------------------
  809|  4.63k|                        if (*c != '\n') {
  ------------------
  |  Branch (809:29): [True: 36, False: 4.60k]
  ------------------
  810|     36|                            auto msg = "text block syntax requires new line after |||.";
  811|     36|                            throw StaticError(filename, begin, msg);
  812|     36|                        }
  813|  4.60k|                        std::stringstream block;
  814|  4.60k|                        c++;  // Skip the "\n"
  815|  4.60k|                        line_number++;
  816|       |                        // Skip any blank lines at the beginning of the block.
  817|  6.57k|                        while (*c == '\n') {
  ------------------
  |  Branch (817:32): [True: 1.97k, False: 4.60k]
  ------------------
  818|  1.97k|                            line_number++;
  819|  1.97k|                            ++c;
  820|  1.97k|                            block << '\n';
  821|  1.97k|                        }
  822|  4.60k|                        line_start = c;
  823|  4.60k|                        const char *first_line = c;
  824|  4.60k|                        int ws_chars = whitespace_check(first_line, c);
  825|  4.60k|                        string_block_indent = std::string(first_line, ws_chars);
  826|  4.60k|                        if (ws_chars == 0) {
  ------------------
  |  Branch (826:29): [True: 18, False: 4.58k]
  ------------------
  827|     18|                            auto msg = "text block's first line must start with whitespace.";
  828|     18|                            throw StaticError(filename, begin, msg);
  829|     18|                        }
  830|  6.40k|                        while (true) {
  ------------------
  |  Branch (830:32): [True: 6.40k, Folded]
  ------------------
  831|  6.40k|                            assert(ws_chars > 0);
  ------------------
  |  Branch (831:29): [True: 6.40k, False: 0]
  ------------------
  832|       |                            // Read up to the \n
  833|   215k|                            for (c = &c[ws_chars]; *c != '\n'; ++c) {
  ------------------
  |  Branch (833:52): [True: 209k, False: 6.34k]
  ------------------
  834|   209k|                                if (*c == '\0')
  ------------------
  |  Branch (834:37): [True: 63, False: 209k]
  ------------------
  835|     63|                                    throw StaticError(filename, begin, "unexpected EOF");
  836|   209k|                                block << *c;
  837|   209k|                            }
  838|       |                            // Add the \n
  839|  6.34k|                            block << '\n';
  840|  6.34k|                            ++c;
  841|  6.34k|                            line_number++;
  842|  6.34k|                            line_start = c;
  843|       |                            // Skip any blank lines
  844|  7.22k|                            while (*c == '\n') {
  ------------------
  |  Branch (844:36): [True: 885, False: 6.34k]
  ------------------
  845|    885|                                line_number++;
  846|    885|                                ++c;
  847|    885|                                block << '\n';
  848|    885|                            }
  849|       |                            // Examine next line
  850|  6.34k|                            ws_chars = whitespace_check(first_line, c);
  851|  6.34k|                            if (ws_chars == 0) {
  ------------------
  |  Branch (851:33): [True: 4.51k, False: 1.82k]
  ------------------
  852|       |                                // End of text block (or indentation error).
  853|       |                                // Count actual whitespace on this line.
  854|  4.51k|                                int actual_ws = 0;
  855|  59.8k|                                while (c[actual_ws] == ' ' ||
  ------------------
  |  Branch (855:40): [True: 54.8k, False: 4.99k]
  ------------------
  856|  55.3k|                                       c[actual_ws] == '\t') {
  ------------------
  |  Branch (856:40): [True: 474, False: 4.51k]
  ------------------
  857|  55.3k|                                    actual_ws++;
  858|  55.3k|                                }
  859|       |
  860|       |                                // Check if this is the terminator |||
  861|  4.51k|                                bool is_terminator = (
  862|  4.51k|                                    c[actual_ws] == '|' &&
  ------------------
  |  Branch (862:37): [True: 4.44k, False: 70]
  ------------------
  863|  4.44k|                                    c[actual_ws + 1] == '|' &&
  ------------------
  |  Branch (863:37): [True: 4.44k, False: 8]
  ------------------
  864|  4.44k|                                    c[actual_ws + 2] == '|');
  ------------------
  |  Branch (864:37): [True: 4.43k, False: 7]
  ------------------
  865|       |
  866|  4.51k|                                if (!is_terminator) {
  ------------------
  |  Branch (866:37): [True: 85, False: 4.43k]
  ------------------
  867|       |                                    // Not a terminator - check if it's an
  868|       |                                    // indentation issue.
  869|     85|                                    if (actual_ws > 0) {
  ------------------
  |  Branch (869:41): [True: 39, False: 46]
  ------------------
  870|       |                                        // Has whitespace but doesn't match expected
  871|       |                                        // indentation.
  872|     39|                                        std::stringstream msg;
  873|     39|                                        msg << "text block indentation mismatch: "
  874|     39|                                                "expected at least ";
  875|     39|                                        describe_whitespace(msg, string_block_indent);
  876|     39|                                        msg << ", found ";
  877|     39|                                        describe_whitespace(msg, std::string(c, actual_ws));
  878|     39|                                        throw StaticError(filename, begin, msg.str());
  879|     46|                                    } else {
  880|       |                                        // No whitespace and no ||| - missing
  881|       |                                        // terminator.
  882|     46|                                        auto msg =
  883|     46|                                            "text block not terminated with |||";
  884|     46|                                        throw StaticError(filename, begin, msg);
  885|     46|                                    }
  886|     85|                                }
  887|       |
  888|       |                                // Valid termination - skip over any whitespace.
  889|  59.1k|                                while (*c == ' ' || *c == '\t') {
  ------------------
  |  Branch (889:40): [True: 54.6k, False: 4.46k]
  |  Branch (889:53): [True: 35, False: 4.43k]
  ------------------
  890|  54.6k|                                    string_block_term_indent += *c;
  891|  54.6k|                                    ++c;
  892|  54.6k|                                }
  893|       |                                // Skip the |||
  894|  4.43k|                                c += 3;  // Leave after the last |
  895|  4.43k|                                data = block.str();
  896|  4.43k|                                kind = Token::STRING_BLOCK;
  897|  4.43k|                                if (chomp_trailing_nl) {
  ------------------
  |  Branch (897:37): [True: 368, False: 4.06k]
  ------------------
  898|    368|                                    assert(data.back() == '\n');
  ------------------
  |  Branch (898:37): [True: 368, False: 0]
  ------------------
  899|    368|                                    data.pop_back();
  900|    368|                                }
  901|  4.43k|                                break;  // Out of the while loop.
  902|  4.43k|                            }
  903|  6.34k|                        }
  904|       |
  905|  4.43k|                        break;  // Out of the switch.
  906|  4.58k|                    }
  907|       |
  908|  11.5M|                    const char *operator_begin = c;
  909|  34.7M|                    for (; is_symbol(*c); ++c) {
  ------------------
  |  Branch (909:28): [True: 23.2M, False: 11.5M]
  ------------------
  910|       |                        // Not allowed // in operators
  911|  23.2M|                        if (*c == '/' && *(c + 1) == '/')
  ------------------
  |  Branch (911:29): [True: 101k, False: 23.1M]
  |  Branch (911:42): [True: 381, False: 101k]
  ------------------
  912|    381|                            break;
  913|       |                        // Not allowed /* in operators
  914|  23.2M|                        if (*c == '/' && *(c + 1) == '*')
  ------------------
  |  Branch (914:29): [True: 101k, False: 23.1M]
  |  Branch (914:42): [True: 314, False: 100k]
  ------------------
  915|    314|                            break;
  916|       |                        // Not allowed ||| in operators
  917|  23.2M|                        if (*c == '|' && *(c + 1) == '|' && *(c + 2) == '|')
  ------------------
  |  Branch (917:29): [True: 376k, False: 22.8M]
  |  Branch (917:42): [True: 161k, False: 214k]
  |  Branch (917:61): [True: 675, False: 161k]
  ------------------
  918|    675|                            break;
  919|  23.2M|                    }
  920|       |                    // Not allowed to end with a + - ~ ! unless a single char.
  921|       |                    // So, wind it back if we need to (but not too far).
  922|  12.9M|                    while (c > operator_begin + 1 && !allowed_at_end_of_operator(*(c - 1))) {
  ------------------
  |  Branch (922:28): [True: 4.57M, False: 8.32M]
  |  Branch (922:54): [True: 1.34M, False: 3.23M]
  ------------------
  923|  1.34M|                        c--;
  924|  1.34M|                    }
  925|  11.5M|                    data += std::string(operator_begin, c);
  926|  11.5M|                    if (data == "$") {
  ------------------
  |  Branch (926:25): [True: 40.6k, False: 11.5M]
  ------------------
  927|  40.6k|                        kind = Token::DOLLAR;
  928|  40.6k|                        data = "";
  929|  11.5M|                    } else {
  930|  11.5M|                        kind = Token::OPERATOR;
  931|  11.5M|                    }
  932|  11.5M|                } else {
  933|    122|                    std::stringstream ss;
  934|    122|                    ss << "Could not lex the character ";
  935|    122|                    auto uc = (unsigned char)(*c);
  936|    122|                    if (*c < 32)
  ------------------
  |  Branch (936:25): [True: 107, False: 15]
  ------------------
  937|    107|                        ss << "code " << unsigned(uc);
  938|     15|                    else
  939|     15|                        ss << "'" << *c << "'";
  940|    122|                    throw StaticError(filename, begin, ss.str());
  941|    122|                }
  942|   108M|        }
  943|       |
  944|       |        // Ensure that a bug in the above code does not cause an infinite memory consuming loop due
  945|       |        // to pushing empty tokens.
  946|   105M|        if (c == original_c) {
  ------------------
  |  Branch (946:13): [True: 0, False: 105M]
  ------------------
  947|      0|            throw StaticError(filename, begin, "internal lexing error:  pointer did not advance");
  948|      0|        }
  949|       |
  950|   105M|        Location end(line_number, (c + 1) - line_start);
  951|   105M|        r.emplace_back(kind,
  952|   105M|                       fodder,
  953|   105M|                       data,
  954|   105M|                       string_block_indent,
  955|   105M|                       string_block_term_indent,
  956|   105M|                       LocationRange(filename, begin, end));
  957|   105M|        fodder.clear();
  958|   105M|        fresh_line = false;
  959|   105M|    }
  960|       |
  961|  14.4k|    Location begin(line_number, c - line_start + 1);
  962|  14.4k|    Location end(line_number, (c + 1) - line_start + 1);
  963|  14.4k|    r.emplace_back(Token::END_OF_FILE, fodder, "", "", "", LocationRange(filename, begin, end));
  964|  14.4k|    return r;
  965|  14.9k|}
lexer.cpp:_ZN7jsonnet8internalL6lex_wsERPKcRjS4_S3_Rm:
   81|   112M|{
   82|   112M|    indent = 0;
   83|   112M|    new_lines = 0;
   84|   258M|    for (; *c != '\0' && is_ws(*c); c++) {
  ------------------
  |  Branch (84:12): [True: 258M, False: 8.21k]
  |  Branch (84:26): [True: 145M, False: 112M]
  ------------------
   85|   145M|        switch (*c) {
  ------------------
  |  Branch (85:17): [True: 145M, False: 0]
  ------------------
   86|   324k|            case '\r':
  ------------------
  |  Branch (86:13): [True: 324k, False: 145M]
  ------------------
   87|       |                // Ignore.
   88|   324k|                break;
   89|       |
   90|  16.3M|            case '\n':
  ------------------
  |  Branch (90:13): [True: 16.3M, False: 129M]
  ------------------
   91|  16.3M|                indent = 0;
   92|  16.3M|                new_lines++;
   93|  16.3M|                line_number++;
   94|  16.3M|                line_start = c + 1;
   95|  16.3M|                break;
   96|       |
   97|   129M|            case ' ': indent += 1; break;
  ------------------
  |  Branch (97:13): [True: 129M, False: 16.7M]
  ------------------
   98|       |
   99|       |            // This only works for \t at the beginning of lines, but we strip it everywhere else
  100|       |            // anyway.  The only case where this will cause a problem is spaces followed by \t
  101|       |            // at the beginning of a line.  However that is rare, ill-advised, and if re-indentation
  102|       |            // is enabled it will be fixed later.
  103|  39.4k|            case '\t': indent += 8; break;
  ------------------
  |  Branch (103:13): [True: 39.4k, False: 145M]
  ------------------
  104|   145M|        }
  105|   145M|    }
  106|   112M|}
lexer.cpp:_ZN7jsonnet8internalL5is_wsEc:
   39|   258M|{
   40|   258M|    return c == '\n' || is_horz_ws(c);
  ------------------
  |  Branch (40:12): [True: 16.3M, False: 241M]
  |  Branch (40:25): [True: 129M, False: 112M]
  ------------------
   41|   258M|}
lexer.cpp:_ZN7jsonnet8internalL19is_identifier_firstEc:
  143|   307M|{
  144|   307M|    return is_upper(c) || is_lower(c) || c == '_';
  ------------------
  |  Branch (144:12): [True: 4.46M, False: 302M]
  |  Branch (144:27): [True: 228M, False: 74.8M]
  |  Branch (144:42): [True: 3.22M, False: 71.5M]
  ------------------
  145|   307M|}
lexer.cpp:_ZN7jsonnet8internalL8is_upperEc:
  128|   307M|{
  129|   307M|    return c >= 'A' && c <= 'Z';
  ------------------
  |  Branch (129:12): [True: 238M, False: 68.8M]
  |  Branch (129:24): [True: 4.46M, False: 234M]
  ------------------
  130|   307M|}
lexer.cpp:_ZN7jsonnet8internalL8is_lowerEc:
  133|   302M|{
  134|   302M|    return c >= 'a' && c <= 'z';
  ------------------
  |  Branch (134:12): [True: 228M, False: 74.5M]
  |  Branch (134:24): [True: 228M, False: 232k]
  ------------------
  135|   302M|}
lexer.cpp:_ZN7jsonnet8internalL13is_identifierEc:
  148|   246M|{
  149|   246M|    return is_identifier_first(c) || is_number(c);
  ------------------
  |  Branch (149:12): [True: 190M, False: 56.5M]
  |  Branch (149:38): [True: 11.1M, False: 45.3M]
  ------------------
  150|   246M|}
lexer.cpp:_ZN7jsonnet8internalL9is_numberEc:
  138|  56.5M|{
  139|  56.5M|    return c >= '0' && c <= '9';
  ------------------
  |  Branch (139:12): [True: 15.1M, False: 41.4M]
  |  Branch (139:24): [True: 11.1M, False: 3.96M]
  ------------------
  140|  56.5M|}
lexer.cpp:_ZN7jsonnet8internalL9is_symbolEc:
  153|  49.8M|{
  154|  49.8M|    switch (c) {
  ------------------
  |  Branch (154:13): [True: 35.8M, False: 13.9M]
  ------------------
  155|  1.06M|        case '!':
  ------------------
  |  Branch (155:9): [True: 1.06M, False: 48.7M]
  ------------------
  156|  1.21M|        case '$':
  ------------------
  |  Branch (156:9): [True: 150k, False: 49.6M]
  ------------------
  157|  6.78M|        case ':':
  ------------------
  |  Branch (157:9): [True: 5.56M, False: 44.2M]
  ------------------
  158|  7.13M|        case '~':
  ------------------
  |  Branch (158:9): [True: 344k, False: 49.4M]
  ------------------
  159|  13.7M|        case '+':
  ------------------
  |  Branch (159:9): [True: 6.61M, False: 43.2M]
  ------------------
  160|  14.6M|        case '-':
  ------------------
  |  Branch (160:9): [True: 938k, False: 48.8M]
  ------------------
  161|  15.7M|        case '&':
  ------------------
  |  Branch (161:9): [True: 1.10M, False: 48.7M]
  ------------------
  162|  16.3M|        case '|':
  ------------------
  |  Branch (162:9): [True: 594k, False: 49.2M]
  ------------------
  163|  16.3M|        case '^':
  ------------------
  |  Branch (163:9): [True: 1.70k, False: 49.8M]
  ------------------
  164|  27.2M|        case '=':
  ------------------
  |  Branch (164:9): [True: 10.8M, False: 38.9M]
  ------------------
  165|  28.1M|        case '<':
  ------------------
  |  Branch (165:9): [True: 949k, False: 48.8M]
  ------------------
  166|  29.4M|        case '>':
  ------------------
  |  Branch (166:9): [True: 1.30M, False: 48.5M]
  ------------------
  167|  34.0M|        case '*':
  ------------------
  |  Branch (167:9): [True: 4.62M, False: 45.1M]
  ------------------
  168|  35.3M|        case '/':
  ------------------
  |  Branch (168:9): [True: 1.28M, False: 48.5M]
  ------------------
  169|  35.8M|        case '%': return true;
  ------------------
  |  Branch (169:9): [True: 475k, False: 49.3M]
  ------------------
  170|  49.8M|    }
  171|  13.9M|    return false;
  172|  49.8M|}
lexer.cpp:_ZN7jsonnet8internalL17lex_until_newlineERPKcRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERjSC_S3_Rm:
  113|  3.12M|{
  114|  3.12M|    const char *original_c = c;
  115|  3.12M|    const char *last_non_space = c;
  116|  43.5M|    for (; *c != '\0' && *c != '\n'; c++) {
  ------------------
  |  Branch (116:12): [True: 43.4M, False: 236]
  |  Branch (116:26): [True: 40.3M, False: 3.12M]
  ------------------
  117|  40.3M|        if (!is_horz_ws(*c))
  ------------------
  |  Branch (117:13): [True: 34.7M, False: 5.64M]
  ------------------
  118|  34.7M|            last_non_space = c;
  119|  40.3M|    }
  120|  3.12M|    text = std::string(original_c, last_non_space - original_c + 1);
  121|       |    // Consume subsequent whitespace including the '\n'.
  122|  3.12M|    unsigned new_lines;
  123|  3.12M|    lex_ws(c, new_lines, indent, line_start, line_number);
  124|  3.12M|    blanks = new_lines == 0 ? 0 : new_lines - 1;
  ------------------
  |  Branch (124:14): [True: 236, False: 3.12M]
  ------------------
  125|  3.12M|}
lexer.cpp:_ZN7jsonnet8internalL10line_splitERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEj:
   60|   145k|{
   61|   145k|    std::vector<std::string> ret;
   62|   145k|    std::stringstream ss;
   63|  45.2M|    for (size_t i = 0; i < s.length(); ++i) {
  ------------------
  |  Branch (63:24): [True: 45.1M, False: 145k]
  ------------------
   64|  45.1M|        if (s[i] == '\n') {
  ------------------
  |  Branch (64:13): [True: 8.00M, False: 37.1M]
  ------------------
   65|  8.00M|            ret.emplace_back(strip_ws(ss.str(), margin));
   66|  8.00M|            ss.str("");
   67|  37.1M|        } else {
   68|  37.1M|            ss << s[i];
   69|  37.1M|        }
   70|  45.1M|    }
   71|   145k|    ret.emplace_back(strip_ws(ss.str(), margin));
   72|   145k|    return ret;
   73|   145k|}
lexer.cpp:_ZN7jsonnet8internalL8strip_wsERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEj:
   45|  8.14M|{
   46|  8.14M|    if (s.size() == 0)
  ------------------
  |  Branch (46:9): [True: 6.95M, False: 1.19M]
  ------------------
   47|  6.95M|        return s;  // Avoid underflow below.
   48|  1.19M|    size_t i = 0;
   49|  3.03M|    while (i < s.length() && is_horz_ws(s[i]) && i < margin)
  ------------------
  |  Branch (49:12): [True: 3.03M, False: 3.13k]
  |  Branch (49:30): [True: 2.29M, False: 734k]
  |  Branch (49:50): [True: 1.83M, False: 459k]
  ------------------
   50|  1.83M|        i++;
   51|  1.19M|    size_t j = s.size();
   52|  3.65M|    while (j > i && is_horz_ws(s[j - 1])) {
  ------------------
  |  Branch (52:12): [True: 3.49M, False: 154k]
  |  Branch (52:21): [True: 2.45M, False: 1.04M]
  ------------------
   53|  2.45M|        j--;
   54|  2.45M|    }
   55|  1.19M|    return std::string(&s[i], &s[j]);
   56|  8.14M|}
lexer.cpp:_ZN7jsonnet8internalL10is_horz_wsEc:
   33|   288M|{
   34|   288M|    return c == ' ' || c == '\t' || c == '\r';
  ------------------
  |  Branch (34:12): [True: 139M, False: 149M]
  |  Branch (34:24): [True: 80.8k, False: 149M]
  |  Branch (34:37): [True: 333k, False: 148M]
  ------------------
   35|   288M|}
lexer.cpp:_ZN7jsonnet8internalL16whitespace_checkEPKcS2_:
  489|  10.9k|{
  490|  10.9k|    int i = 0;
  491|   102k|    while (a[i] == ' ' || a[i] == '\t') {
  ------------------
  |  Branch (491:12): [True: 1.33k, False: 100k]
  |  Branch (491:27): [True: 94.5k, False: 6.42k]
  ------------------
  492|  95.8k|        if (b[i] != a[i])
  ------------------
  |  Branch (492:13): [True: 4.51k, False: 91.3k]
  ------------------
  493|  4.51k|            return 0;
  494|  91.3k|        i++;
  495|  91.3k|    }
  496|  6.42k|    return i;
  497|  10.9k|}
lexer.cpp:_ZN7jsonnet8internalL19describe_whitespaceERNSt3__118basic_stringstreamIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKNS1_12basic_stringIcS4_S6_EE:
  499|     78|static void describe_whitespace(std::stringstream& msg, const std::string& ws) {
  500|     78|    int spaces = 0;
  501|     78|    int tabs = 0;
  502|  1.64k|    for (char c : ws) {
  ------------------
  |  Branch (502:17): [True: 1.64k, False: 78]
  ------------------
  503|  1.64k|        if (c == ' ')
  ------------------
  |  Branch (503:13): [True: 320, False: 1.32k]
  ------------------
  504|    320|            spaces++;
  505|  1.32k|        else if (c == '\t')
  ------------------
  |  Branch (505:18): [True: 1.32k, False: 0]
  ------------------
  506|  1.32k|            tabs++;
  507|  1.64k|    }
  508|     78|    if (spaces > 0 && tabs > 0) {
  ------------------
  |  Branch (508:9): [True: 38, False: 40]
  |  Branch (508:23): [True: 9, False: 29]
  ------------------
  509|      9|        msg << spaces << (spaces == 1 ? " space" : " spaces") << " and " << tabs
  ------------------
  |  Branch (509:27): [True: 8, False: 1]
  ------------------
  510|      9|            << (tabs == 1 ? " tab" : " tabs");
  ------------------
  |  Branch (510:17): [True: 2, False: 7]
  ------------------
  511|     69|    } else if (spaces > 0) {
  ------------------
  |  Branch (511:16): [True: 29, False: 40]
  ------------------
  512|     29|        msg << spaces << (spaces == 1 ? " space" : " spaces");
  ------------------
  |  Branch (512:27): [True: 11, False: 18]
  ------------------
  513|     40|    } else if (tabs > 0) {
  ------------------
  |  Branch (513:16): [True: 40, False: 0]
  ------------------
  514|     40|        msg << tabs << (tabs == 1 ? " tab" : " tabs");
  ------------------
  |  Branch (514:25): [True: 10, False: 30]
  ------------------
  515|     40|    } else {
  516|      0|        msg << "no indentation";
  517|      0|    }
  518|     78|}

_ZN7jsonnet8internal13FodderElementC2ENS1_4KindEjjRKNSt3__16vectorINS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS8_ISA_EEEE:
   92|  15.0M|        : kind(kind), blanks(blanks), indent(indent), comment(comment)
   93|  15.0M|    {
   94|  15.0M|        assert(kind != LINE_END || comment.size() <= 1);
  ------------------
  |  Branch (94:9): [True: 3.48M, False: 11.6M]
  |  Branch (94:9): [True: 11.6M, False: 0]
  |  Branch (94:9): [True: 15.0M, False: 0]
  ------------------
   95|  15.0M|        assert(kind != INTERSTITIAL || (blanks == 0 && indent == 0 && comment.size() == 1));
  ------------------
  |  Branch (95:9): [True: 229k, False: 0]
  |  Branch (95:9): [True: 229k, False: 0]
  |  Branch (95:9): [True: 229k, False: 0]
  |  Branch (95:9): [True: 14.8M, False: 229k]
  |  Branch (95:9): [True: 15.0M, False: 0]
  ------------------
   96|  15.0M|        assert(kind != PARAGRAPH || comment.size() >= 1);
  ------------------
  |  Branch (96:9): [True: 11.8M, False: 3.25M]
  |  Branch (96:9): [True: 3.25M, False: 0]
  |  Branch (96:9): [True: 15.0M, False: 0]
  ------------------
   97|  15.0M|    }
_ZNK7jsonnet8internal5Token6data32Ev:
  299|  36.9M|    {
  300|  36.9M|        return decode_utf8(data);
  301|  36.9M|    }
_ZN7jsonnet8internal5TokenC2ENS1_4KindERKNSt3__16vectorINS0_13FodderElementENS3_9allocatorIS5_EEEERKNS3_12basic_stringIcNS3_11char_traitsIcEENS6_IcEEEESH_SH_RKNS0_13LocationRangeE:
  308|   105M|        : kind(kind),
  309|   105M|          fodder(fodder),
  310|   105M|          data(data),
  311|   105M|          stringBlockIndent(string_block_indent),
  312|   105M|          stringBlockTermIndent(string_block_term_indent),
  313|   105M|          location(location)
  314|   105M|    {
  315|   105M|    }
_ZN7jsonnet8internal5Token8toStringENS1_4KindE:
  320|  1.06k|    {
  321|  1.06k|        switch (v) {
  322|     25|            case BRACE_L: return "\"{\"";
  ------------------
  |  Branch (322:13): [True: 25, False: 1.04k]
  ------------------
  323|     34|            case BRACE_R: return "\"}\"";
  ------------------
  |  Branch (323:13): [True: 34, False: 1.03k]
  ------------------
  324|      2|            case BRACKET_L: return "\"[\"";
  ------------------
  |  Branch (324:13): [True: 2, False: 1.06k]
  ------------------
  325|     61|            case BRACKET_R: return "\"]\"";
  ------------------
  |  Branch (325:13): [True: 61, False: 1.00k]
  ------------------
  326|     56|            case COMMA: return "\",\"";
  ------------------
  |  Branch (326:13): [True: 56, False: 1.01k]
  ------------------
  327|     33|            case DOLLAR: return "\"$\"";
  ------------------
  |  Branch (327:13): [True: 33, False: 1.03k]
  ------------------
  328|     24|            case DOT: return "\".\"";
  ------------------
  |  Branch (328:13): [True: 24, False: 1.04k]
  ------------------
  329|       |
  330|      0|            case PAREN_L: return "\"(\"";
  ------------------
  |  Branch (330:13): [True: 0, False: 1.06k]
  ------------------
  331|     40|            case PAREN_R: return "\")\"";
  ------------------
  |  Branch (331:13): [True: 40, False: 1.02k]
  ------------------
  332|     35|            case SEMICOLON: return "\";\"";
  ------------------
  |  Branch (332:13): [True: 35, False: 1.03k]
  ------------------
  333|       |
  334|    117|            case IDENTIFIER: return "IDENTIFIER";
  ------------------
  |  Branch (334:13): [True: 117, False: 952]
  ------------------
  335|     43|            case NUMBER: return "NUMBER";
  ------------------
  |  Branch (335:13): [True: 43, False: 1.02k]
  ------------------
  336|    144|            case OPERATOR: return "OPERATOR";
  ------------------
  |  Branch (336:13): [True: 144, False: 925]
  ------------------
  337|     28|            case STRING_SINGLE: return "STRING_SINGLE";
  ------------------
  |  Branch (337:13): [True: 28, False: 1.04k]
  ------------------
  338|      9|            case STRING_DOUBLE: return "STRING_DOUBLE";
  ------------------
  |  Branch (338:13): [True: 9, False: 1.06k]
  ------------------
  339|      2|            case VERBATIM_STRING_SINGLE: return "VERBATIM_STRING_SINGLE";
  ------------------
  |  Branch (339:13): [True: 2, False: 1.06k]
  ------------------
  340|      4|            case VERBATIM_STRING_DOUBLE: return "VERBATIM_STRING_DOUBLE";
  ------------------
  |  Branch (340:13): [True: 4, False: 1.06k]
  ------------------
  341|     12|            case STRING_BLOCK: return "STRING_BLOCK";
  ------------------
  |  Branch (341:13): [True: 12, False: 1.05k]
  ------------------
  342|       |
  343|      1|            case ASSERT: return "assert";
  ------------------
  |  Branch (343:13): [True: 1, False: 1.06k]
  ------------------
  344|      1|            case ELSE: return "else";
  ------------------
  |  Branch (344:13): [True: 1, False: 1.06k]
  ------------------
  345|      0|            case ERROR: return "error";
  ------------------
  |  Branch (345:13): [True: 0, False: 1.06k]
  ------------------
  346|      0|            case FALSE: return "false";
  ------------------
  |  Branch (346:13): [True: 0, False: 1.06k]
  ------------------
  347|      1|            case FOR: return "for";
  ------------------
  |  Branch (347:13): [True: 1, False: 1.06k]
  ------------------
  348|      3|            case FUNCTION: return "function";
  ------------------
  |  Branch (348:13): [True: 3, False: 1.06k]
  ------------------
  349|      0|            case IF: return "if";
  ------------------
  |  Branch (349:13): [True: 0, False: 1.06k]
  ------------------
  350|      0|            case IMPORT: return "import";
  ------------------
  |  Branch (350:13): [True: 0, False: 1.06k]
  ------------------
  351|      2|            case IMPORTSTR: return "importstr";
  ------------------
  |  Branch (351:13): [True: 2, False: 1.06k]
  ------------------
  352|      1|            case IMPORTBIN: return "importbin";
  ------------------
  |  Branch (352:13): [True: 1, False: 1.06k]
  ------------------
  353|     23|            case IN: return "in";
  ------------------
  |  Branch (353:13): [True: 23, False: 1.04k]
  ------------------
  354|      0|            case LOCAL: return "local";
  ------------------
  |  Branch (354:13): [True: 0, False: 1.06k]
  ------------------
  355|      1|            case NULL_LIT: return "null";
  ------------------
  |  Branch (355:13): [True: 1, False: 1.06k]
  ------------------
  356|      1|            case SELF: return "self";
  ------------------
  |  Branch (356:13): [True: 1, False: 1.06k]
  ------------------
  357|      1|            case SUPER: return "super";
  ------------------
  |  Branch (357:13): [True: 1, False: 1.06k]
  ------------------
  358|      1|            case TAILSTRICT: return "tailstrict";
  ------------------
  |  Branch (358:13): [True: 1, False: 1.06k]
  ------------------
  359|      4|            case THEN: return "then";
  ------------------
  |  Branch (359:13): [True: 4, False: 1.06k]
  ------------------
  360|      0|            case TRUE: return "true";
  ------------------
  |  Branch (360:13): [True: 0, False: 1.06k]
  ------------------
  361|       |
  362|    360|            case END_OF_FILE: return "end of file";
  ------------------
  |  Branch (362:13): [True: 360, False: 709]
  ------------------
  363|      0|            default:
  ------------------
  |  Branch (363:13): [True: 0, False: 1.06k]
  ------------------
  364|      0|                std::cerr << "INTERNAL ERROR: Unknown token kind: " << v << std::endl;
  365|      0|                std::abort();
  366|  1.06k|        }
  367|  1.06k|    }
parser.cpp:_ZN7jsonnet8internallsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_5Token4KindE:
  387|    614|{
  388|    614|    o << Token::toString(v);
  389|    614|    return o;
  390|    614|}
parser.cpp:_ZN7jsonnet8internallsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS0_5TokenE:
  393|    485|{
  394|    485|    if (v.data == "") {
  ------------------
  |  Branch (394:9): [True: 330, False: 155]
  ------------------
  395|    330|        o << Token::toString(v.kind);
  396|    330|    } else if (v.kind == Token::OPERATOR) {
  ------------------
  |  Branch (396:16): [True: 30, False: 125]
  ------------------
  397|     30|        o << "\"" << v.data << "\"";
  398|    125|    } else {
  399|    125|        o << "(" << Token::toString(v.kind) << ", \"" << v.data << "\")";
  400|    125|    }
  401|    485|    return o;
  402|    485|}
lexer.cpp:_ZN7jsonnet8internalL16fodder_push_backERNSt3__16vectorINS0_13FodderElementENS1_9allocatorIS3_EEEERKS3_:
  143|   145k|{
  144|   145k|    if (fodder_has_clean_endline(a) && elem.kind == FodderElement::LINE_END) {
  ------------------
  |  Branch (144:9): [True: 133k, False: 12.2k]
  |  Branch (144:40): [True: 0, False: 133k]
  ------------------
  145|      0|        if (elem.comment.size() > 0) {
  ------------------
  |  Branch (145:13): [True: 0, False: 0]
  ------------------
  146|       |            // The line end had a comment, so create a single line paragraph for it.
  147|      0|            a.emplace_back(FodderElement::PARAGRAPH, elem.blanks, elem.indent, elem.comment);
  148|      0|        } else {
  149|       |            // Merge it into the previous line end.
  150|      0|            a.back().indent = elem.indent;
  151|      0|            a.back().blanks += elem.blanks;
  152|      0|        }
  153|   145k|    } else {
  154|   145k|        if (!fodder_has_clean_endline(a) && elem.kind == FodderElement::PARAGRAPH) {
  ------------------
  |  Branch (154:13): [True: 12.2k, False: 133k]
  |  Branch (154:45): [True: 12.2k, False: 0]
  ------------------
  155|  12.2k|            a.emplace_back(FodderElement::LINE_END, 0, elem.indent, std::vector<std::string>());
  156|  12.2k|        }
  157|   145k|        a.push_back(elem);
  158|   145k|    }
  159|   145k|}
lexer.cpp:_ZN7jsonnet8internalL24fodder_has_clean_endlineERKNSt3__16vectorINS0_13FodderElementENS1_9allocatorIS3_EEEE:
  134|   291k|{
  135|   291k|    return !fodder.empty() && fodder.back().kind != FodderElement::INTERSTITIAL;
  ------------------
  |  Branch (135:12): [True: 272k, False: 19.4k]
  |  Branch (135:31): [True: 267k, False: 5.08k]
  ------------------
  136|   291k|}

jsonnet_version:
  334|  14.8k|{
  335|  14.8k|    return LIB_JSONNET_VERSION;
  ------------------
  |  |   34|  14.8k|#define LIB_JSONNET_VERSION "v0.22.0"
  ------------------
  336|  14.8k|}
jsonnet_make:
  339|  7.41k|{
  340|  7.41k|    TRY
  ------------------
  |  |  319|  7.41k|#define TRY try {
  ------------------
  341|  7.41k|        return new JsonnetVm();
  342|  7.41k|    CATCH("jsonnet_make")
  ------------------
  |  |  321|  7.41k|    }                                                                                         \
  |  |  322|  7.41k|    catch (const std::bad_alloc &)                                                            \
  |  |  323|  7.41k|    {                                                                                         \
  |  |  324|      0|        memory_panic();                                                                       \
  |  |  325|      0|    }                                                                                         \
  |  |  326|  7.41k|    catch (const std::exception &e)                                                           \
  |  |  327|  7.41k|    {                                                                                         \
  |  |  328|      0|        std::cerr << "Something went wrong during " func ", please report this: " << e.what() \
  |  |  329|      0|                  << std::endl;                                                               \
  |  |  330|      0|        abort();                                                                              \
  |  |  331|      0|    }
  ------------------
  343|      0|    return nullptr;
  344|  7.41k|}
jsonnet_destroy:
  347|  7.41k|{
  348|  7.41k|    TRY
  ------------------
  |  |  319|  7.41k|#define TRY try {
  ------------------
  349|  7.41k|        delete vm;
  350|  7.41k|    CATCH("jsonnet_destroy")
  ------------------
  |  |  321|  7.41k|    }                                                                                         \
  |  |  322|  7.41k|    catch (const std::bad_alloc &)                                                            \
  |  |  323|  7.41k|    {                                                                                         \
  |  |  324|      0|        memory_panic();                                                                       \
  |  |  325|      0|    }                                                                                         \
  |  |  326|  7.41k|    catch (const std::exception &e)                                                           \
  |  |  327|  7.41k|    {                                                                                         \
  |  |  328|      0|        std::cerr << "Something went wrong during " func ", please report this: " << e.what() \
  |  |  329|      0|                  << std::endl;                                                               \
  |  |  330|      0|        abort();                                                                              \
  |  |  331|      0|    }
  ------------------
  351|  7.41k|}
jsonnet_import_callback:
  379|  7.41k|{
  380|  7.41k|    vm->importCallback = cb;
  381|  7.41k|    vm->importCallbackContext = ctx;
  382|  7.41k|}
jsonnet_evaluate_snippet_multi:
  738|  7.41k|{
  739|  7.41k|    TRY
  ------------------
  |  |  319|  7.41k|#define TRY try {
  ------------------
  740|  7.41k|        return jsonnet_evaluate_snippet_aux(vm, filename, snippet, error, MULTI);
  741|  7.41k|    CATCH("jsonnet_evaluate_snippet_multi")
  ------------------
  |  |  321|  7.41k|    }                                                                                         \
  |  |  322|  7.41k|    catch (const std::bad_alloc &)                                                            \
  |  |  323|  7.41k|    {                                                                                         \
  |  |  324|      0|        memory_panic();                                                                       \
  |  |  325|      0|    }                                                                                         \
  |  |  326|  7.41k|    catch (const std::exception &e)                                                           \
  |  |  327|  7.41k|    {                                                                                         \
  |  |  328|      0|        std::cerr << "Something went wrong during " func ", please report this: " << e.what() \
  |  |  329|      0|                  << std::endl;                                                               \
  |  |  330|      0|        abort();                                                                              \
  |  |  331|      0|    }
  ------------------
  742|      0|    return nullptr;  // Never happens.
  743|  7.41k|}
jsonnet_realloc:
  755|  14.2k|{
  756|  14.2k|    (void)vm;
  757|  14.2k|    if (str == nullptr) {
  ------------------
  |  Branch (757:9): [True: 6.88k, False: 7.41k]
  ------------------
  758|  6.88k|        if (sz == 0)
  ------------------
  |  Branch (758:13): [True: 0, False: 6.88k]
  ------------------
  759|      0|            return nullptr;
  760|  6.88k|        auto *r = static_cast<char *>(::malloc(sz));
  761|  6.88k|        if (r == nullptr)
  ------------------
  |  Branch (761:13): [True: 0, False: 6.88k]
  ------------------
  762|      0|            memory_panic();
  763|  6.88k|        return r;
  764|  7.41k|    } else {
  765|  7.41k|        if (sz == 0) {
  ------------------
  |  Branch (765:13): [True: 7.41k, False: 0]
  ------------------
  766|  7.41k|            ::free(str);
  767|  7.41k|            return nullptr;
  768|  7.41k|        } else {
  769|      0|            auto *r = static_cast<char *>(::realloc(str, sz));
  770|      0|            if (r == nullptr)
  ------------------
  |  Branch (770:17): [True: 0, False: 0]
  ------------------
  771|      0|                memory_panic();
  772|      0|            return r;
  773|      0|        }
  774|  7.41k|    }
  775|  14.2k|}
_ZN9JsonnetVmC2Ev:
  228|  7.41k|        : gcGrowthTrigger(2.0),
  229|  7.41k|          maxStack(500),
  230|  7.41k|          gcMinObjects(1000),
  231|  7.41k|          maxTrace(20),
  232|  7.41k|          importCallback(default_import_callback),
  233|  7.41k|          importCallbackContext(this),
  234|  7.41k|          stringOutput(false),
  235|  7.41k|          trailingNewline(true),
  236|  7.41k|          fmtDebugDesugaring(false)
  237|  7.41k|    {
  238|  7.41k|        jpaths.emplace_back("/usr/share/jsonnet-" + std::string(jsonnet_version()) + "/");
  239|  7.41k|        jpaths.emplace_back("/usr/local/share/jsonnet-" + std::string(jsonnet_version()) + "/");
  240|  7.41k|    }
libjsonnet.cpp:_ZL11from_stringP9JsonnetVmRKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
   90|  6.88k|{
   91|  6.88k|    char *r = jsonnet_realloc(vm, nullptr, v.length() + 1);
   92|  6.88k|    std::memcpy(r, v.c_str(), v.length() + 1);
   93|  6.88k|    return r;
   94|  6.88k|}
libjsonnet.cpp:_ZL28jsonnet_evaluate_snippet_auxP9JsonnetVmPKcS2_PiN12_GLOBAL__N_18EvalKindE:
  541|  7.41k|{
  542|  7.41k|    try {
  543|  7.41k|        Allocator alloc;
  544|  7.41k|        AST *expr;
  545|  7.41k|        Tokens tokens = jsonnet_lex(filename, snippet);
  546|       |
  547|  7.41k|        expr = jsonnet_parse(&alloc, tokens);
  548|       |
  549|  7.41k|        jsonnet_desugar(&alloc, expr, &vm->tla);
  550|       |
  551|  7.41k|        unsigned max_stack = vm->maxStack;
  552|       |
  553|       |        // For the stdlib desugaring.
  554|  7.41k|        max_stack++;
  555|       |
  556|       |        // For the TLA desugaring.
  557|  7.41k|        max_stack++;
  558|       |
  559|  7.41k|        jsonnet_static_analysis(expr);
  560|  7.41k|        switch (kind) {
  561|      0|            case REGULAR: {
  ------------------
  |  Branch (561:13): [True: 0, False: 7.41k]
  ------------------
  562|      0|                std::string json_str = jsonnet_vm_execute(&alloc,
  563|      0|                                                          expr,
  564|      0|                                                          vm->ext,
  565|      0|                                                          max_stack,
  566|      0|                                                          vm->gcMinObjects,
  567|      0|                                                          vm->gcGrowthTrigger,
  568|      0|                                                          vm->nativeCallbacks,
  569|      0|                                                          vm->importCallback,
  570|      0|                                                          vm->importCallbackContext,
  571|      0|                                                          vm->stringOutput);
  572|      0|                if (vm->trailingNewline) {
  ------------------
  |  Branch (572:21): [True: 0, False: 0]
  ------------------
  573|      0|                    json_str += "\n";
  574|      0|                }
  575|      0|                *error = false;
  576|      0|                return from_string(vm, json_str);
  577|      0|            } break;
  578|       |
  579|  3.48k|            case MULTI: {
  ------------------
  |  Branch (579:13): [True: 3.48k, False: 3.92k]
  ------------------
  580|  3.48k|                std::map<std::string, std::string> files =
  581|  3.48k|                    jsonnet_vm_execute_multi(&alloc,
  582|  3.48k|                                             expr,
  583|  3.48k|                                             vm->ext,
  584|  3.48k|                                             max_stack,
  585|  3.48k|                                             vm->gcMinObjects,
  586|  3.48k|                                             vm->gcGrowthTrigger,
  587|  3.48k|                                             vm->nativeCallbacks,
  588|  3.48k|                                             vm->importCallback,
  589|  3.48k|                                             vm->importCallbackContext,
  590|  3.48k|                                             vm->stringOutput);
  591|  3.48k|                size_t sz = 1;  // final sentinel
  592|  4.79k|                for (const auto &pair : files) {
  ------------------
  |  Branch (592:39): [True: 4.79k, False: 3.48k]
  ------------------
  593|  4.79k|                    sz += pair.first.length() + 1;   // include sentinel
  594|  4.79k|                    sz += pair.second.length() + 2;  // Add a '\n' as well as sentinel
  595|  4.79k|                }
  596|  3.48k|                char *buf = (char *)::malloc(sz);
  597|  3.48k|                if (buf == nullptr)
  ------------------
  |  Branch (597:21): [True: 0, False: 3.48k]
  ------------------
  598|      0|                    memory_panic();
  599|  3.48k|                std::ptrdiff_t i = 0;
  600|  4.79k|                for (const auto &pair : files) {
  ------------------
  |  Branch (600:39): [True: 4.79k, False: 3.48k]
  ------------------
  601|  4.79k|                    memcpy(&buf[i], pair.first.c_str(), pair.first.length() + 1);
  602|  4.79k|                    i += pair.first.length() + 1;
  603|  4.79k|                    memcpy(&buf[i], pair.second.c_str(), pair.second.length());
  604|  4.79k|                    i += pair.second.length();
  605|  4.79k|                    if (vm->trailingNewline) {
  ------------------
  |  Branch (605:25): [True: 4.79k, False: 0]
  ------------------
  606|  4.79k|                        buf[i] = '\n';
  607|  4.79k|                        i++;
  608|  4.79k|                    }
  609|  4.79k|                    buf[i] = '\0';
  610|  4.79k|                    i++;
  611|  4.79k|                }
  612|  3.48k|                buf[i] = '\0';  // final sentinel
  613|  3.48k|                *error = false;
  614|  3.48k|                return buf;
  615|      0|            } break;
  616|       |
  617|      0|            case STREAM: {
  ------------------
  |  Branch (617:13): [True: 0, False: 7.41k]
  ------------------
  618|      0|                if (!vm->trailingNewline) {
  ------------------
  |  Branch (618:21): [True: 0, False: 0]
  ------------------
  619|      0|                    *error = true;
  620|      0|                    return from_string(vm, "INTERNAL: trailing-newline is required for streamed output");
  621|      0|                }
  622|      0|                std::vector<std::string> documents =
  623|      0|                    jsonnet_vm_execute_stream(&alloc,
  624|      0|                                              expr,
  625|      0|                                              vm->ext,
  626|      0|                                              max_stack,
  627|      0|                                              vm->gcMinObjects,
  628|      0|                                              vm->gcGrowthTrigger,
  629|      0|                                              vm->nativeCallbacks,
  630|      0|                                              vm->importCallback,
  631|      0|                                              vm->importCallbackContext,
  632|      0|                                              vm->stringOutput);
  633|      0|                size_t sz = 1;  // final sentinel
  634|      0|                for (const auto &doc : documents) {
  ------------------
  |  Branch (634:38): [True: 0, False: 0]
  ------------------
  635|      0|                    sz += doc.length() + 2;  // Add a '\n' as well as sentinel
  636|      0|                }
  637|      0|                char *buf = (char *)::malloc(sz);
  638|      0|                if (buf == nullptr)
  ------------------
  |  Branch (638:21): [True: 0, False: 0]
  ------------------
  639|      0|                    memory_panic();
  640|      0|                std::ptrdiff_t i = 0;
  641|      0|                for (const auto &doc : documents) {
  ------------------
  |  Branch (641:38): [True: 0, False: 0]
  ------------------
  642|      0|                    memcpy(&buf[i], doc.c_str(), doc.length());
  643|      0|                    i += doc.length();
  644|      0|                    buf[i] = '\n';
  645|      0|                    i++;
  646|      0|                    buf[i] = '\0';
  647|      0|                    i++;
  648|      0|                }
  649|      0|                buf[i] = '\0';  // final sentinel
  650|      0|                *error = false;
  651|      0|                return buf;
  652|      0|            } break;
  653|       |
  654|      0|            default:
  ------------------
  |  Branch (654:13): [True: 0, False: 7.41k]
  ------------------
  655|      0|                fputs("INTERNAL ERROR: bad value of 'kind', probably memory corruption.\n", stderr);
  656|      0|                abort();
  657|  7.41k|        }
  658|       |
  659|  7.41k|    } catch (StaticError &e) {
  660|  3.92k|        std::stringstream ss;
  661|  3.92k|        ss << "STATIC ERROR: " << e << std::endl;
  662|  3.92k|        *error = true;
  663|  3.92k|        return from_string(vm, ss.str());
  664|       |
  665|  3.92k|    } catch (RuntimeError &e) {
  666|  2.96k|        std::stringstream ss;
  667|  2.96k|        ss << "RUNTIME ERROR: " << e.msg << std::endl;
  668|  2.96k|        const long max_above = vm->maxTrace / 2;
  669|  2.96k|        const long max_below = vm->maxTrace - max_above;
  670|  2.96k|        const long sz = e.stackTrace.size();
  671|   295k|        for (long i = 0; i < sz; ++i) {
  ------------------
  |  Branch (671:26): [True: 292k, False: 2.96k]
  ------------------
  672|   292k|            const auto &f = e.stackTrace[i];
  673|   292k|            if (vm->maxTrace > 0 && i >= max_above && i < sz - max_below) {
  ------------------
  |  Branch (673:17): [True: 292k, False: 0]
  |  Branch (673:37): [True: 279k, False: 13.4k]
  |  Branch (673:55): [True: 270k, False: 8.26k]
  ------------------
  674|   270k|                if (i == max_above)
  ------------------
  |  Branch (674:21): [True: 718, False: 270k]
  ------------------
  675|    718|                    ss << "\t..." << std::endl;
  676|   270k|            } else {
  677|  21.7k|                ss << "\t" << f.location << "\t" << f.name << std::endl;
  678|  21.7k|            }
  679|   292k|        }
  680|  2.96k|        *error = true;
  681|  2.96k|        return from_string(vm, ss.str());
  682|  2.96k|    }
  683|       |
  684|      0|    return nullptr;  // Quiet, compiler.
  685|  7.41k|}

_ZN7jsonnet8internal22jsonnet_unparse_numberEd:
   38|  3.09M|{
   39|  3.09M|    std::stringstream ss;
   40|       |    // Make sure we output the same thing, even if the user
   41|       |    // of the library changed the global locale
   42|  3.09M|    ss.imbue(std::locale::classic());
   43|  3.09M|    if (v == floor(v)) {
  ------------------
  |  Branch (43:9): [True: 2.99M, False: 98.6k]
  ------------------
   44|  2.99M|        ss << std::fixed << std::setprecision(0) << v;
   45|  2.99M|    } else {
   46|       |        // See "What Every Computer Scientist Should Know About Floating-Point Arithmetic"
   47|       |        // Theorem 15
   48|       |        // https://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html
   49|  98.6k|        ss << std::setprecision(17);
   50|  98.6k|        ss << v;
   51|  98.6k|    }
   52|  3.09M|    return ss.str();
   53|  3.09M|}
_ZN7jsonnet8internal13jsonnet_parseEPNS0_9AllocatorERNSt3__14listINS0_5TokenENS3_9allocatorIS5_EEEE:
 1210|  14.4k|{
 1211|  14.4k|    Parser parser(tokens, alloc);
 1212|  14.4k|    unsigned parse_depth = 0;
 1213|  14.4k|    AST *expr = parser.parse(MAX_PRECEDENCE, parse_depth);
 1214|  14.4k|    if (tokens.front().kind != Token::END_OF_FILE) {
  ------------------
  |  Branch (1214:9): [True: 204, False: 14.2k]
  ------------------
 1215|    204|        std::stringstream ss;
 1216|    204|        ss << "did not expect: " << tokens.front();
 1217|    204|        throw StaticError(tokens.front().location, ss.str());
 1218|    204|    }
 1219|       |
 1220|  14.2k|    return expr;
 1221|  14.4k|}
parser.cpp:_ZN7jsonnet8internal12_GLOBAL__N_16ParserC2ERNSt3__14listINS0_5TokenENS3_9allocatorIS5_EEEEPNS0_9AllocatorE:
  155|  14.4k|    Parser(Tokens &tokens, Allocator *alloc) : tokens(tokens), alloc(alloc) {}
parser.cpp:_ZN7jsonnet8internal12_GLOBAL__N_16Parser5parseEjj:
  980|  40.7M|    {
  981|  40.7M|        if (current_depth >= MAX_PARSER_DEPTH) {
  ------------------
  |  Branch (981:13): [True: 4, False: 40.7M]
  ------------------
  982|      4|            throw StaticError(peek().location, "Exceeded maximum parse depth limit.");
  983|      4|        }
  984|       |
  985|  40.7M|        AST *ast = maybeParseGreedy(current_depth + 1);
  986|       |        // There cannot be an operator after a greedy parse.
  987|  40.7M|        if (ast != nullptr) return ast;
  ------------------
  |  Branch (987:13): [True: 5.26M, False: 35.4M]
  ------------------
  988|       |
  989|       |        // If we get here, we could be parsing an infix construct.
  990|       |
  991|       |        // Allocate this on the heap to control stack growth.
  992|  35.4M|        std::unique_ptr<Token> begin_(new Token(peek()));
  993|  35.4M|        const Token &begin = *begin_;
  994|       |
  995|  35.4M|        AST *lhs = parseTerminalBracketsOrUnary(current_depth + 1);
  996|       |
  997|  35.4M|        return parseInfix(lhs, begin, max_precedence, current_depth + 1);
  998|  40.7M|    }
parser.cpp:_ZN7jsonnet8internal12_GLOBAL__N_16Parser4peekEv:
  123|   336M|    {
  124|   336M|        return tokens.front();
  125|   336M|    }
parser.cpp:_ZN7jsonnet8internal12_GLOBAL__N_16Parser16maybeParseGreedyEj:
  811|  40.7M|    {
  812|  40.7M|        if (current_depth >= MAX_PARSER_DEPTH) {
  ------------------
  |  Branch (812:13): [True: 2, False: 40.7M]
  ------------------
  813|      2|            throw StaticError(peek().location, "Exceeded maximum parse depth limit.");
  814|      2|        }
  815|       |
  816|       |        // Allocate this on the heap to control stack growth.
  817|  40.7M|        std::unique_ptr<Token> begin_(new Token(peek()));
  818|  40.7M|        const Token &begin = *begin_;
  819|       |
  820|  40.7M|        switch (begin.kind) {
  821|       |            // These cases have effectively MAX_PRECEDENCE as the first
  822|       |            // call to parse will parse them.
  823|   311k|            case Token::ASSERT: {
  ------------------
  |  Branch (823:13): [True: 311k, False: 40.4M]
  ------------------
  824|   311k|                pop();
  825|   311k|                AST *cond = parse(MAX_PRECEDENCE, current_depth + 1);
  826|   311k|                Fodder colonFodder;
  827|   311k|                AST *msg = nullptr;
  828|   311k|                if (peek().kind == Token::OPERATOR && peek().data == ":") {
  ------------------
  |  Branch (828:21): [True: 288k, False: 23.3k]
  |  Branch (828:55): [True: 288k, False: 1]
  ------------------
  829|   288k|                    Token colon = pop();
  830|   288k|                    colonFodder = colon.fodder;
  831|   288k|                    msg = parse(MAX_PRECEDENCE, current_depth + 1);
  832|   288k|                }
  833|   311k|                Token semicolon = popExpect(Token::SEMICOLON);
  834|   311k|                AST *rest = parse(MAX_PRECEDENCE, current_depth + 1);
  835|   311k|                return alloc->make<Assert>(span(begin, rest),
  836|   311k|                                           begin.fodder,
  837|   311k|                                           cond,
  838|   311k|                                           colonFodder,
  839|   311k|                                           msg,
  840|   311k|                                           semicolon.fodder,
  841|   311k|                                           rest);
  842|      0|            }
  843|       |
  844|   495k|            case Token::ERROR: {
  ------------------
  |  Branch (844:13): [True: 495k, False: 40.2M]
  ------------------
  845|   495k|                pop();
  846|   495k|                AST *expr = parse(MAX_PRECEDENCE, current_depth + 1);
  847|   495k|                return alloc->make<Error>(span(begin, expr), begin.fodder, expr);
  848|      0|            }
  849|       |
  850|  2.46M|            case Token::IF: {
  ------------------
  |  Branch (850:13): [True: 2.46M, False: 38.2M]
  ------------------
  851|  2.46M|                pop();
  852|  2.46M|                AST *cond = parse(MAX_PRECEDENCE, current_depth + 1);
  853|  2.46M|                Token then = popExpect(Token::THEN);
  854|  2.46M|                AST *branch_true = parse(MAX_PRECEDENCE, current_depth + 1);
  855|  2.46M|                if (peek().kind == Token::ELSE) {
  ------------------
  |  Branch (855:21): [True: 2.43M, False: 30.8k]
  ------------------
  856|  2.43M|                    Token else_ = pop();
  857|  2.43M|                    AST *branch_false = parse(MAX_PRECEDENCE, current_depth + 1);
  858|  2.43M|                    return alloc->make<Conditional>(span(begin, branch_false),
  859|  2.43M|                                                    begin.fodder,
  860|  2.43M|                                                    cond,
  861|  2.43M|                                                    then.fodder,
  862|  2.43M|                                                    branch_true,
  863|  2.43M|                                                    else_.fodder,
  864|  2.43M|                                                    branch_false);
  865|  2.43M|                }
  866|  30.8k|                return alloc->make<Conditional>(span(begin, branch_true),
  867|  30.8k|                                                begin.fodder,
  868|  30.8k|                                                cond,
  869|  30.8k|                                                then.fodder,
  870|  30.8k|                                                branch_true,
  871|  30.8k|                                                Fodder{},
  872|  30.8k|                                                nullptr);
  873|  2.46M|            }
  874|       |
  875|   152k|            case Token::FUNCTION: {
  ------------------
  |  Branch (875:13): [True: 152k, False: 40.5M]
  ------------------
  876|   152k|                pop();  // Still available in 'begin'.
  877|   152k|                Token paren_l = pop();
  878|   152k|                if (paren_l.kind == Token::PAREN_L) {
  ------------------
  |  Branch (878:21): [True: 152k, False: 8]
  ------------------
  879|   152k|                    std::vector<AST *> params_asts;
  880|   152k|                    bool got_comma;
  881|   152k|                    Fodder paren_r_fodder;
  882|   152k|                    ArgParams params = parseParams("function parameter", got_comma, paren_r_fodder, current_depth);
  883|   152k|                    AST *body = parse(MAX_PRECEDENCE, current_depth + 1);
  884|   152k|                    return alloc->make<Function>(span(begin, body),
  885|   152k|                                                 begin.fodder,
  886|   152k|                                                 paren_l.fodder,
  887|   152k|                                                 params,
  888|   152k|                                                 got_comma,
  889|   152k|                                                 paren_r_fodder,
  890|   152k|                                                 body);
  891|   152k|                } else {
  892|      8|                    std::stringstream ss;
  893|      8|                    ss << "expected ( but got " << paren_l;
  894|      8|                    throw StaticError(paren_l.location, ss.str());
  895|      8|                }
  896|   152k|            }
  897|       |
  898|    726|            case Token::IMPORT: {
  ------------------
  |  Branch (898:13): [True: 726, False: 40.7M]
  ------------------
  899|    726|                pop();
  900|    726|                AST *body = parse(MAX_PRECEDENCE, current_depth + 1);
  901|    726|                if (body->type == AST_LITERAL_STRING) {
  ------------------
  |  Branch (901:21): [True: 351, False: 375]
  ------------------
  902|    351|                    auto *lit = static_cast<LiteralString *>(body);
  903|    351|                    if (lit->tokenKind == LiteralString::BLOCK) {
  ------------------
  |  Branch (903:25): [True: 1, False: 350]
  ------------------
  904|      1|                        throw StaticError(lit->location,
  905|      1|                                          "Cannot use text blocks in import statements.");
  906|      1|                    }
  907|    350|                    return alloc->make<Import>(span(begin, body), begin.fodder, lit);
  908|    375|                } else {
  909|    375|                    std::stringstream ss;
  910|    375|                    ss << "computed imports are not allowed.";
  911|    375|                    throw StaticError(body->location, ss.str());
  912|    375|                }
  913|    726|            }
  914|       |
  915|  1.19k|            case Token::IMPORTSTR: {
  ------------------
  |  Branch (915:13): [True: 1.19k, False: 40.7M]
  ------------------
  916|  1.19k|                pop();
  917|  1.19k|                AST *body = parse(MAX_PRECEDENCE, current_depth + 1);
  918|  1.19k|                if (body->type == AST_LITERAL_STRING) {
  ------------------
  |  Branch (918:21): [True: 918, False: 278]
  ------------------
  919|    918|                    auto *lit = static_cast<LiteralString *>(body);
  920|    918|                    if (lit->tokenKind == LiteralString::BLOCK) {
  ------------------
  |  Branch (920:25): [True: 1, False: 917]
  ------------------
  921|      1|                        throw StaticError(lit->location,
  922|      1|                                          "Cannot use text blocks in import statements.");
  923|      1|                    }
  924|    917|                    return alloc->make<Importstr>(span(begin, body), begin.fodder, lit);
  925|    918|                } else {
  926|    278|                    std::stringstream ss;
  927|    278|                    ss << "computed imports are not allowed.";
  928|    278|                    throw StaticError(body->location, ss.str());
  929|    278|                }
  930|  1.19k|            }
  931|       |
  932|    719|            case Token::IMPORTBIN: {
  ------------------
  |  Branch (932:13): [True: 719, False: 40.7M]
  ------------------
  933|    719|                pop();
  934|    719|                AST *body = parse(MAX_PRECEDENCE, current_depth + 1);
  935|    719|                if (body->type == AST_LITERAL_STRING) {
  ------------------
  |  Branch (935:21): [True: 632, False: 87]
  ------------------
  936|    632|                    auto *lit = static_cast<LiteralString *>(body);
  937|    632|                    if (lit->tokenKind == LiteralString::BLOCK) {
  ------------------
  |  Branch (937:25): [True: 0, False: 632]
  ------------------
  938|      0|                        throw StaticError(lit->location,
  939|      0|                                          "Cannot use text blocks in import statements.");
  940|      0|                    }
  941|    632|                    return alloc->make<Importbin>(span(begin, body), begin.fodder, lit);
  942|    632|                } else {
  943|     87|                    std::stringstream ss;
  944|     87|                    ss << "computed imports are not allowed.";
  945|     87|                    throw StaticError(body->location, ss.str());
  946|     87|                }
  947|    719|            }
  948|       |
  949|  1.83M|            case Token::LOCAL: {
  ------------------
  |  Branch (949:13): [True: 1.83M, False: 38.9M]
  ------------------
  950|  1.83M|                pop();
  951|  1.83M|                Local::Binds binds;
  952|  1.93M|                do {
  953|  1.93M|                    Token delim = parseBind(binds, current_depth + 1);
  954|  1.93M|                    if (delim.kind != Token::SEMICOLON && delim.kind != Token::COMMA) {
  ------------------
  |  Branch (954:25): [True: 100k, False: 1.83M]
  |  Branch (954:59): [True: 12, False: 100k]
  ------------------
  955|     12|                        std::stringstream ss;
  956|     12|                        ss << "expected , or ; but got " << delim;
  957|     12|                        throw StaticError(delim.location, ss.str());
  958|     12|                    }
  959|  1.93M|                    if (delim.kind == Token::SEMICOLON)
  ------------------
  |  Branch (959:25): [True: 1.83M, False: 101k]
  ------------------
  960|  1.83M|                        break;
  961|  1.93M|                } while (true);
  ------------------
  |  Branch (961:26): [True: 100k, Folded]
  ------------------
  962|  1.83M|                AST *body = parse(MAX_PRECEDENCE, current_depth + 1);
  963|  1.83M|                return alloc->make<Local>(span(begin, body), begin.fodder, binds, body);
  964|  1.83M|            }
  965|       |
  966|  35.4M|            default:
  ------------------
  |  Branch (966:13): [True: 35.4M, False: 5.26M]
  ------------------
  967|  35.4M|            return nullptr;
  968|  40.7M|        }
  969|  40.7M|    }
parser.cpp:_ZN7jsonnet8internal12_GLOBAL__N_16Parser3popEv:
  111|   105M|    {
  112|   105M|        Token tok = peek();
  113|   105M|        tokens.pop_front();
  114|   105M|        return tok;
  115|   105M|    }
parser.cpp:_ZN7jsonnet8internal12_GLOBAL__N_16Parser9popExpectENS0_5Token4KindEPKc:
  136|  16.3M|    {
  137|  16.3M|        Token tok = pop();
  138|  16.3M|        if (tok.kind != k) {
  ------------------
  |  Branch (138:13): [True: 230, False: 16.3M]
  ------------------
  139|    230|            std::stringstream ss;
  140|    230|            ss << "expected token " << k << " but got " << tok;
  141|    230|            throw StaticError(tok.location, ss.str());
  142|    230|        }
  143|  16.3M|        if (data != nullptr && tok.data != data) {
  ------------------
  |  Branch (143:13): [True: 1.98M, False: 14.3M]
  |  Branch (143:32): [True: 18, False: 1.98M]
  ------------------
  144|     18|            std::stringstream ss;
  145|     18|            ss << "expected operator " << data << " but got " << tok.data;
  146|     18|            throw StaticError(tok.location, ss.str());
  147|     18|        }
  148|  16.3M|        return tok;
  149|  16.3M|    }
parser.cpp:_ZN7jsonnet8internal12_GLOBAL__N_14spanERKNS0_5TokenEPNS0_3ASTE:
   94|  12.2M|{
   95|  12.2M|    return LocationRange(begin.location.file, begin.location.begin, end->location.end);
   96|  12.2M|}
parser.cpp:_ZN7jsonnet8internal12_GLOBAL__N_16Parser11parseParamsERKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERbRNS3_6vectorINS0_13FodderElementENS7_ISE_EEEEj:
  218|  1.67M|    {
  219|  1.67M|        ArgParams params;
  220|  1.67M|        Token paren_r = parseArgs(params, element_kind, got_comma, current_depth);
  221|       |
  222|       |        // Check they're all identifiers
  223|       |        // parseArgs returns f(x) with x as an expression.  Convert it here.
  224|  3.26M|        for (auto &p : params) {
  ------------------
  |  Branch (224:22): [True: 3.26M, False: 1.67M]
  ------------------
  225|  3.26M|            if (p.id == nullptr) {
  ------------------
  |  Branch (225:17): [True: 3.10M, False: 159k]
  ------------------
  226|  3.10M|                if (p.expr->type != AST_VAR) {
  ------------------
  |  Branch (226:21): [True: 2, False: 3.10M]
  ------------------
  227|      2|                    throw StaticError(p.expr->location, "could not parse parameter here.");
  228|      2|                }
  229|  3.10M|                auto *pv = static_cast<Var *>(p.expr);
  230|  3.10M|                p.id = pv->id;
  231|  3.10M|                p.idFodder = pv->openFodder;
  232|  3.10M|                p.expr = nullptr;
  233|  3.10M|            }
  234|  3.26M|        }
  235|       |
  236|  1.67M|        close_fodder = paren_r.fodder;
  237|       |
  238|  1.67M|        return params;
  239|  1.67M|    }
parser.cpp:_ZN7jsonnet8internal12_GLOBAL__N_16Parser9parseArgsERNSt3__16vectorINS0_8ArgParamENS3_9allocatorIS5_EEEERKNS3_12basic_stringIcNS3_11char_traitsIcEENS6_IcEEEERbj:
  167|  7.81M|    {
  168|  7.81M|        got_comma = false;
  169|  7.81M|        bool first = true;
  170|  21.4M|        do {
  171|  21.4M|            Token next = peek();
  172|  21.4M|            if (next.kind == Token::PAREN_R) {
  ------------------
  |  Branch (172:17): [True: 7.81M, False: 13.6M]
  ------------------
  173|       |                // got_comma can be true or false here.
  174|  7.81M|                return pop();
  175|  7.81M|            }
  176|  13.6M|            if (!first && !got_comma) {
  ------------------
  |  Branch (176:17): [True: 5.80M, False: 7.81M]
  |  Branch (176:27): [True: 71, False: 5.80M]
  ------------------
  177|     71|                std::stringstream ss;
  178|     71|                ss << "expected a comma before next " << element_kind << ".";
  179|     71|                throw StaticError(next.location, ss.str());
  180|     71|            }
  181|       |            // Either id=expr or id or expr, but note that expr could be id==1 so this needs
  182|       |            // look-ahead.
  183|  13.6M|            Fodder id_fodder;
  184|  13.6M|            const Identifier *id = nullptr;
  185|  13.6M|            Fodder eq_fodder;
  186|  13.6M|            if (peek().kind == Token::IDENTIFIER) {
  ------------------
  |  Branch (186:17): [True: 11.6M, False: 1.99M]
  ------------------
  187|  11.6M|                Token maybe_eq = doublePeek();
  188|  11.6M|                if (maybe_eq.kind == Token::OPERATOR && maybe_eq.data == "=") {
  ------------------
  |  Branch (188:21): [True: 1.20M, False: 10.4M]
  |  Branch (188:57): [True: 183k, False: 1.02M]
  ------------------
  189|   183k|                    id_fodder = peek().fodder;
  190|   183k|                    id = alloc->makeIdentifier(peek().data32());
  191|   183k|                    eq_fodder = maybe_eq.fodder;
  192|   183k|                    pop();  // id
  193|   183k|                    pop();  // eq
  194|   183k|                }
  195|  11.6M|            }
  196|  13.6M|            AST *expr = parse(MAX_PRECEDENCE, current_depth + 1);
  197|  13.6M|            got_comma = false;
  198|  13.6M|            first = false;
  199|  13.6M|            Fodder comma_fodder;
  200|  13.6M|            if (peek().kind == Token::COMMA) {
  ------------------
  |  Branch (200:17): [True: 5.80M, False: 7.81M]
  ------------------
  201|  5.80M|                Token comma = pop();
  202|  5.80M|                comma_fodder = comma.fodder;
  203|  5.80M|                got_comma = true;
  204|  5.80M|            }
  205|  13.6M|            args.emplace_back(id_fodder, id, eq_fodder, expr, comma_fodder);
  206|  13.6M|        } while (true);
  ------------------
  |  Branch (206:18): [True: 13.6M, Folded]
  ------------------
  207|  7.81M|    }
parser.cpp:_ZN7jsonnet8internal12_GLOBAL__N_16Parser10doublePeekEv:
  129|  11.6M|    {
  130|  11.6M|        Tokens::iterator it = tokens.begin();  // First one.
  131|  11.6M|        it++;                                  // Now pointing at the second one.
  132|  11.6M|        return *(it);
  133|  11.6M|    }
parser.cpp:_ZN7jsonnet8internal12_GLOBAL__N_16Parser9parseBindERNSt3__16vectorINS0_5Local4BindENS3_9allocatorIS6_EEEEj:
  248|  1.93M|    {
  249|  1.93M|        Token var_id = popExpect(Token::IDENTIFIER);
  250|  1.93M|        auto *id = alloc->makeIdentifier(var_id.data32());
  251|  1.93M|        for (const auto &bind : binds) {
  ------------------
  |  Branch (251:31): [True: 273k, False: 1.93M]
  ------------------
  252|   273k|            if (bind.var == id)
  ------------------
  |  Branch (252:17): [True: 5, False: 273k]
  ------------------
  253|      5|                throw StaticError(var_id.location, "duplicate local var: " + var_id.data);
  254|   273k|        }
  255|  1.93M|        bool is_function = false;
  256|  1.93M|        ArgParams params;
  257|  1.93M|        bool trailing_comma = false;
  258|  1.93M|        Fodder fodder_l, fodder_r;
  259|  1.93M|        if (peek().kind == Token::PAREN_L) {
  ------------------
  |  Branch (259:13): [True: 560k, False: 1.37M]
  ------------------
  260|   560k|            Token paren_l = pop();
  261|   560k|            fodder_l = paren_l.fodder;
  262|   560k|            params = parseParams("function parameter", trailing_comma, fodder_r, current_depth);
  263|   560k|            is_function = true;
  264|   560k|        }
  265|  1.93M|        Token eq = popExpect(Token::OPERATOR, "=");
  266|  1.93M|        AST *body = parse(MAX_PRECEDENCE, current_depth + 1);
  267|  1.93M|        Token delim = pop();
  268|  1.93M|        binds.emplace_back(var_id.fodder,
  269|  1.93M|                           id,
  270|  1.93M|                           eq.fodder,
  271|  1.93M|                           body,
  272|  1.93M|                           is_function,
  273|  1.93M|                           fodder_l,
  274|  1.93M|                           params,
  275|  1.93M|                           trailing_comma,
  276|  1.93M|                           fodder_r,
  277|  1.93M|                           delim.fodder);
  278|  1.93M|        return delim;
  279|  1.93M|    }
parser.cpp:_ZN7jsonnet8internal12_GLOBAL__N_16Parser28parseTerminalBracketsOrUnaryEj:
  627|  35.4M|    {
  628|  35.4M|        if (current_depth >= MAX_PARSER_DEPTH) {
  ------------------
  |  Branch (628:13): [True: 0, False: 35.4M]
  ------------------
  629|      0|            throw StaticError(peek().location, "Exceeded maximum parse depth limit.");
  630|      0|        }
  631|       |
  632|  35.4M|        Token tok = pop();
  633|  35.4M|        switch (tok.kind) {
  ------------------
  |  Branch (633:17): [True: 35.4M, False: 0]
  ------------------
  634|      0|            case Token::ASSERT:
  ------------------
  |  Branch (634:13): [True: 0, False: 35.4M]
  ------------------
  635|     11|            case Token::BRACE_R:
  ------------------
  |  Branch (635:13): [True: 11, False: 35.4M]
  ------------------
  636|     22|            case Token::BRACKET_R:
  ------------------
  |  Branch (636:13): [True: 11, False: 35.4M]
  ------------------
  637|     57|            case Token::COMMA:
  ------------------
  |  Branch (637:13): [True: 35, False: 35.4M]
  ------------------
  638|     77|            case Token::DOT:
  ------------------
  |  Branch (638:13): [True: 20, False: 35.4M]
  ------------------
  639|     78|            case Token::ELSE:
  ------------------
  |  Branch (639:13): [True: 1, False: 35.4M]
  ------------------
  640|     78|            case Token::ERROR:
  ------------------
  |  Branch (640:13): [True: 0, False: 35.4M]
  ------------------
  641|     79|            case Token::FOR:
  ------------------
  |  Branch (641:13): [True: 1, False: 35.4M]
  ------------------
  642|     79|            case Token::FUNCTION:
  ------------------
  |  Branch (642:13): [True: 0, False: 35.4M]
  ------------------
  643|     79|            case Token::IF:
  ------------------
  |  Branch (643:13): [True: 0, False: 35.4M]
  ------------------
  644|     86|            case Token::IN:
  ------------------
  |  Branch (644:13): [True: 7, False: 35.4M]
  ------------------
  645|     86|            case Token::IMPORT:
  ------------------
  |  Branch (645:13): [True: 0, False: 35.4M]
  ------------------
  646|     86|            case Token::IMPORTSTR:
  ------------------
  |  Branch (646:13): [True: 0, False: 35.4M]
  ------------------
  647|     86|            case Token::IMPORTBIN:
  ------------------
  |  Branch (647:13): [True: 0, False: 35.4M]
  ------------------
  648|     86|            case Token::LOCAL:
  ------------------
  |  Branch (648:13): [True: 0, False: 35.4M]
  ------------------
  649|    101|            case Token::PAREN_R:
  ------------------
  |  Branch (649:13): [True: 15, False: 35.4M]
  ------------------
  650|    116|            case Token::SEMICOLON:
  ------------------
  |  Branch (650:13): [True: 15, False: 35.4M]
  ------------------
  651|    117|            case Token::TAILSTRICT:
  ------------------
  |  Branch (651:13): [True: 1, False: 35.4M]
  ------------------
  652|    118|            case Token::THEN: throw unexpected(tok, "parsing terminal");
  ------------------
  |  Branch (652:13): [True: 1, False: 35.4M]
  ------------------
  653|       |
  654|    689|            case Token::END_OF_FILE: throw StaticError(tok.location, "unexpected end of file.");
  ------------------
  |  Branch (654:13): [True: 689, False: 35.4M]
  ------------------
  655|       |
  656|   456k|            case Token::OPERATOR: {
  ------------------
  |  Branch (656:13): [True: 456k, False: 35.0M]
  ------------------
  657|   456k|                UnaryOp uop;
  658|   456k|                if (!op_is_unary(tok.data, uop)) {
  ------------------
  |  Branch (658:21): [True: 185, False: 456k]
  ------------------
  659|    185|                    std::stringstream ss;
  660|    185|                    ss << "not a unary operator: " << tok.data;
  661|    185|                    throw StaticError(tok.location, ss.str());
  662|    185|                }
  663|   456k|                AST *expr = parse(UNARY_PRECEDENCE, current_depth + 1);
  664|   456k|                return alloc->make<Unary>(span(tok, expr), tok.fodder, uop, expr);
  665|   456k|            }
  666|   370k|            case Token::BRACE_L: {
  ------------------
  |  Branch (666:13): [True: 370k, False: 35.0M]
  ------------------
  667|   370k|                AST *obj;
  668|   370k|                parseObjectRemainder(obj, tok, current_depth + 1);
  669|   370k|                return obj;
  670|   456k|            }
  671|       |
  672|  1.06M|            case Token::BRACKET_L: {
  ------------------
  |  Branch (672:13): [True: 1.06M, False: 34.4M]
  ------------------
  673|  1.06M|                Token next = peek();
  674|  1.06M|                if (next.kind == Token::BRACKET_R) {
  ------------------
  |  Branch (674:21): [True: 172k, False: 891k]
  ------------------
  675|   172k|                    Token bracket_r = pop();
  676|   172k|                    return alloc->make<Array>(
  677|   172k|                        span(tok, next), tok.fodder, Array::Elements{}, false, bracket_r.fodder);
  678|   172k|                }
  679|   891k|                AST *first = parse(MAX_PRECEDENCE, current_depth + 1);
  680|   891k|                bool got_comma = false;
  681|   891k|                Fodder comma_fodder;
  682|   891k|                next = peek();
  683|   891k|                if (!got_comma && next.kind == Token::COMMA) {
  ------------------
  |  Branch (683:21): [True: 888k, False: 2.84k]
  |  Branch (683:35): [True: 135k, False: 753k]
  ------------------
  684|   135k|                    Token comma = pop();
  685|   135k|                    comma_fodder = comma.fodder;
  686|   135k|                    next = peek();
  687|   135k|                    got_comma = true;
  688|   135k|                }
  689|       |
  690|   891k|                if (next.kind == Token::FOR) {
  ------------------
  |  Branch (690:21): [True: 243k, False: 648k]
  ------------------
  691|       |                    // It's a comprehension
  692|   243k|                    Token for_token = pop();
  693|   243k|                    std::vector<ComprehensionSpec> specs;
  694|   243k|                    Token last = parseComprehensionSpecs(Token::BRACKET_R, for_token.fodder, specs, current_depth + 1);
  695|   243k|                    return alloc->make<ArrayComprehension>(span(tok, last),
  696|   243k|                                                           tok.fodder,
  697|   243k|                                                           first,
  698|   243k|                                                           comma_fodder,
  699|   243k|                                                           got_comma,
  700|   243k|                                                           specs,
  701|   243k|                                                           last.fodder);
  702|   243k|                }
  703|       |
  704|       |                // Not a comprehension: It can have more elements.
  705|   648k|                Array::Elements elements;
  706|   648k|                elements.emplace_back(first, comma_fodder);
  707|  2.95M|                do {
  708|  2.95M|                    if (next.kind == Token::BRACKET_R) {
  ------------------
  |  Branch (708:25): [True: 643k, False: 2.31M]
  ------------------
  709|   643k|                        Token bracket_r = pop();
  710|   643k|                        return alloc->make<Array>(
  711|   643k|                            span(tok, next), tok.fodder, elements, got_comma, bracket_r.fodder);
  712|   643k|                    }
  713|  2.31M|                    if (!got_comma) {
  ------------------
  |  Branch (713:25): [True: 234, False: 2.31M]
  ------------------
  714|    234|                        std::stringstream ss;
  715|    234|                        ss << "expected a comma before next array element.";
  716|    234|                        throw StaticError(next.location, ss.str());
  717|    234|                    }
  718|  2.31M|                    AST *expr = parse(MAX_PRECEDENCE, current_depth + 1);
  719|  2.31M|                    comma_fodder.clear();
  720|  2.31M|                    got_comma = false;
  721|  2.31M|                    next = peek();
  722|  2.31M|                    if (next.kind == Token::COMMA) {
  ------------------
  |  Branch (722:25): [True: 2.19M, False: 121k]
  ------------------
  723|  2.19M|                        Token comma = pop();
  724|  2.19M|                        comma_fodder = comma.fodder;
  725|  2.19M|                        next = peek();
  726|  2.19M|                        got_comma = true;
  727|  2.19M|                    }
  728|  2.31M|                    elements.emplace_back(expr, comma_fodder);
  729|  2.31M|                } while (true);
  ------------------
  |  Branch (729:26): [True: 2.30M, Folded]
  ------------------
  730|   648k|            }
  731|       |
  732|   384k|            case Token::PAREN_L: {
  ------------------
  |  Branch (732:13): [True: 380k, False: 35.0M]
  ------------------
  733|   384k|                auto *inner = parse(MAX_PRECEDENCE, current_depth + 1);
  734|   384k|                Token close = popExpect(Token::PAREN_R);
  735|   384k|                return alloc->make<Parens>(span(tok, close), tok.fodder, inner, close.fodder);
  736|   648k|            }
  737|       |
  738|       |            // Literals
  739|  5.11M|            case Token::NUMBER: return alloc->make<LiteralNumber>(span(tok), tok.fodder, tok.data);
  ------------------
  |  Branch (739:13): [True: 5.11M, False: 30.3M]
  ------------------
  740|       |
  741|  3.52M|            case Token::STRING_SINGLE:
  ------------------
  |  Branch (741:13): [True: 3.52M, False: 31.9M]
  ------------------
  742|  3.52M|                return alloc->make<LiteralString>(
  743|  3.52M|                    span(tok), tok.fodder, tok.data32(), LiteralString::SINGLE, "", "");
  744|  80.5k|            case Token::STRING_DOUBLE:
  ------------------
  |  Branch (744:13): [True: 80.5k, False: 35.3M]
  ------------------
  745|  80.5k|                return alloc->make<LiteralString>(
  746|  80.5k|                    span(tok), tok.fodder, tok.data32(), LiteralString::DOUBLE, "", "");
  747|  1.27k|            case Token::STRING_BLOCK:
  ------------------
  |  Branch (747:13): [True: 1.27k, False: 35.4M]
  ------------------
  748|  1.27k|                return alloc->make<LiteralString>(span(tok),
  749|  1.27k|                                                  tok.fodder,
  750|  1.27k|                                                  tok.data32(),
  751|  1.27k|                                                  LiteralString::BLOCK,
  752|  1.27k|                                                  tok.stringBlockIndent,
  753|  1.27k|                                                  tok.stringBlockTermIndent);
  754|    608|            case Token::VERBATIM_STRING_SINGLE:
  ------------------
  |  Branch (754:13): [True: 608, False: 35.4M]
  ------------------
  755|    608|                return alloc->make<LiteralString>(
  756|    608|                    span(tok), tok.fodder, tok.data32(), LiteralString::VERBATIM_SINGLE, "", "");
  757|    545|            case Token::VERBATIM_STRING_DOUBLE:
  ------------------
  |  Branch (757:13): [True: 545, False: 35.4M]
  ------------------
  758|    545|                return alloc->make<LiteralString>(
  759|    545|                    span(tok), tok.fodder, tok.data32(), LiteralString::VERBATIM_DOUBLE, "", "");
  760|       |
  761|   371k|            case Token::FALSE: return alloc->make<LiteralBoolean>(span(tok), tok.fodder, false);
  ------------------
  |  Branch (761:13): [True: 371k, False: 35.0M]
  ------------------
  762|       |
  763|   272k|            case Token::TRUE: return alloc->make<LiteralBoolean>(span(tok), tok.fodder, true);
  ------------------
  |  Branch (763:13): [True: 272k, False: 35.1M]
  ------------------
  764|       |
  765|   138k|            case Token::NULL_LIT: return alloc->make<LiteralNull>(span(tok), tok.fodder);
  ------------------
  |  Branch (765:13): [True: 138k, False: 35.3M]
  ------------------
  766|       |
  767|       |            // Variables
  768|  38.3k|            case Token::DOLLAR: return alloc->make<Dollar>(span(tok), tok.fodder);
  ------------------
  |  Branch (768:13): [True: 38.3k, False: 35.4M]
  ------------------
  769|       |
  770|  23.5M|            case Token::IDENTIFIER:
  ------------------
  |  Branch (770:13): [True: 23.5M, False: 11.8M]
  ------------------
  771|  23.5M|                return alloc->make<Var>(span(tok), tok.fodder, alloc->makeIdentifier(tok.data32()));
  772|       |
  773|  53.2k|            case Token::SELF: return alloc->make<Self>(span(tok), tok.fodder);
  ------------------
  |  Branch (773:13): [True: 53.2k, False: 35.4M]
  ------------------
  774|       |
  775|  1.19k|            case Token::SUPER: {
  ------------------
  |  Branch (775:13): [True: 1.19k, False: 35.4M]
  ------------------
  776|  1.19k|                Token next = pop();
  777|  1.19k|                AST *index = nullptr;
  778|  1.19k|                const Identifier *id = nullptr;
  779|  1.19k|                Fodder id_fodder;
  780|  1.19k|                switch (next.kind) {
  781|    961|                    case Token::DOT: {
  ------------------
  |  Branch (781:21): [True: 961, False: 233]
  ------------------
  782|    961|                        Token field_id = popExpect(Token::IDENTIFIER);
  783|    961|                        id_fodder = field_id.fodder;
  784|    961|                        id = alloc->makeIdentifier(field_id.data32());
  785|    961|                    } break;
  786|    231|                    case Token::BRACKET_L: {
  ------------------
  |  Branch (786:21): [True: 231, False: 963]
  ------------------
  787|    231|                        index = parse(MAX_PRECEDENCE, current_depth + 1);
  788|    231|                        Token bracket_r = popExpect(Token::BRACKET_R);
  789|    231|                        id_fodder = bracket_r.fodder;  // Not id_fodder, but use the same var.
  790|    231|                    } break;
  791|      2|                    default: throw StaticError(tok.location, "expected . or [ after super.");
  ------------------
  |  Branch (791:21): [True: 2, False: 1.19k]
  ------------------
  792|  1.19k|                }
  793|    992|                return alloc->make<SuperIndex>(
  794|    992|                    span(tok), tok.fodder, next.fodder, index, id_fodder, id);
  795|  1.19k|            }
  796|  35.4M|        }
  797|       |
  798|      0|        std::cerr << "INTERNAL ERROR: Unknown tok kind: " << tok.kind << std::endl;
  799|      0|        std::abort();
  800|      0|        return nullptr;  // Quiet, compiler.
  801|  35.4M|    }
parser.cpp:_ZN7jsonnet8internal12_GLOBAL__N_16Parser10unexpectedERKNS0_5TokenERKNSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEE:
  104|    353|    {
  105|    353|        std::stringstream ss;
  106|    353|        ss << "unexpected: " << tok.kind << " while " << while_;
  107|    353|        return StaticError(tok.location, ss.str());
  108|    353|    }
parser.cpp:_ZN7jsonnet8internal12_GLOBAL__N_111op_is_unaryERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEERNS0_7UnaryOpE:
   66|   456k|{
   67|   456k|    auto it = unary_map.find(op);
   68|   456k|    if (it == unary_map.end())
  ------------------
  |  Branch (68:9): [True: 185, False: 456k]
  ------------------
   69|    185|        return false;
   70|   456k|    uop = it->second;
   71|   456k|    return true;
   72|   456k|}
parser.cpp:_ZN7jsonnet8internal12_GLOBAL__N_16Parser20parseObjectRemainderERPNS0_3ASTERKNS0_5TokenEj:
  289|   470k|    {
  290|   470k|        if (current_depth >= MAX_PARSER_DEPTH) {
  ------------------
  |  Branch (290:13): [True: 3, False: 470k]
  ------------------
  291|      3|            throw StaticError(peek().location, "Exceeded maximum parse depth limit.");
  292|      3|        }
  293|       |
  294|   470k|        ObjectFields fields;
  295|   470k|        std::set<std::string> literal_fields;  // For duplicate fields detection.
  296|   470k|        std::set<const Identifier *> binds;    // For duplicate locals detection.
  297|       |
  298|   470k|        bool got_comma = false;
  299|   470k|        bool first = true;
  300|   470k|        Token next = pop();
  301|       |
  302|  2.41M|        do {
  303|  2.41M|            if (next.kind == Token::BRACE_R) {
  ------------------
  |  Branch (303:17): [True: 430k, False: 1.97M]
  ------------------
  304|   430k|                obj = alloc->make<Object>(
  305|   430k|                    span(tok, next), tok.fodder, fields, got_comma, next.fodder);
  306|   430k|                return next;
  307|       |
  308|  1.97M|            } else if (next.kind == Token::FOR) {
  ------------------
  |  Branch (308:24): [True: 33.2k, False: 1.94M]
  ------------------
  309|       |                // It's a comprehension
  310|  33.2k|                unsigned num_fields = 0;
  311|  33.2k|                unsigned num_asserts = 0;
  312|  33.2k|                const ObjectField *field_ptr = nullptr;
  313|  33.5k|                for (const auto &field : fields) {
  ------------------
  |  Branch (313:40): [True: 33.5k, False: 33.2k]
  ------------------
  314|  33.5k|                    if (field.kind == ObjectField::LOCAL)
  ------------------
  |  Branch (314:25): [True: 1, False: 33.5k]
  ------------------
  315|      1|                        continue;
  316|  33.5k|                    if (field.kind == ObjectField::ASSERT) {
  ------------------
  |  Branch (316:25): [True: 278, False: 33.2k]
  ------------------
  317|    278|                        num_asserts++;
  318|    278|                        continue;
  319|    278|                    }
  320|  33.2k|                    field_ptr = &field;
  321|  33.2k|                    num_fields++;
  322|  33.2k|                }
  323|  33.2k|                if (num_asserts > 0) {
  ------------------
  |  Branch (323:21): [True: 10, False: 33.2k]
  ------------------
  324|     10|                    auto msg = "object comprehension cannot have asserts.";
  325|     10|                    throw StaticError(next.location, msg);
  326|     10|                }
  327|  33.2k|                if (num_fields != 1) {
  ------------------
  |  Branch (327:21): [True: 4, False: 33.2k]
  ------------------
  328|      4|                    auto msg = "object comprehension can only have one field.";
  329|      4|                    throw StaticError(next.location, msg);
  330|      4|                }
  331|  33.2k|                const ObjectField &field = *field_ptr;
  332|       |
  333|  33.2k|                if (field.hide != ObjectField::INHERIT) {
  ------------------
  |  Branch (333:21): [True: 1, False: 33.2k]
  ------------------
  334|      1|                    auto msg = "object comprehensions cannot have hidden fields.";
  335|      1|                    throw StaticError(next.location, msg);
  336|      1|                }
  337|       |
  338|  33.2k|                if (field.kind != ObjectField::FIELD_EXPR) {
  ------------------
  |  Branch (338:21): [True: 1, False: 33.2k]
  ------------------
  339|      1|                    auto msg = "object comprehensions can only have [e] fields.";
  340|      1|                    throw StaticError(next.location, msg);
  341|      1|                }
  342|       |
  343|  33.2k|                std::vector<ComprehensionSpec> specs;
  344|  33.2k|                Token last = parseComprehensionSpecs(Token::BRACE_R, next.fodder, specs, current_depth + 1);
  345|  33.2k|                obj = alloc->make<ObjectComprehension>(
  346|  33.2k|                    span(tok, last), tok.fodder, fields, got_comma, specs, last.fodder);
  347|       |
  348|  33.2k|                return last;
  349|  33.2k|            }
  350|       |
  351|  1.94M|            if (!got_comma && !first)
  ------------------
  |  Branch (351:17): [True: 432k, False: 1.51M]
  |  Branch (351:31): [True: 93, False: 432k]
  ------------------
  352|     93|                throw StaticError(next.location, "expected a comma before next field.");
  353|       |
  354|  1.94M|            first = false;
  355|  1.94M|            got_comma = false;
  356|       |
  357|  1.94M|            switch (next.kind) {
  358|  37.7k|                case Token::BRACKET_L:
  ------------------
  |  Branch (358:17): [True: 37.7k, False: 1.90M]
  ------------------
  359|  1.75M|                case Token::IDENTIFIER:
  ------------------
  |  Branch (359:17): [True: 1.71M, False: 231k]
  ------------------
  360|  1.82M|                case Token::STRING_DOUBLE:
  ------------------
  |  Branch (360:17): [True: 74.1k, False: 1.87M]
  ------------------
  361|  1.85M|                case Token::STRING_SINGLE:
  ------------------
  |  Branch (361:17): [True: 30.6k, False: 1.91M]
  ------------------
  362|  1.85M|                case Token::STRING_BLOCK:
  ------------------
  |  Branch (362:17): [True: 2.12k, False: 1.94M]
  ------------------
  363|  1.86M|                case Token::VERBATIM_STRING_DOUBLE:
  ------------------
  |  Branch (363:17): [True: 935, False: 1.94M]
  ------------------
  364|  1.86M|                case Token::VERBATIM_STRING_SINGLE: {
  ------------------
  |  Branch (364:17): [True: 135, False: 1.94M]
  ------------------
  365|  1.86M|                    ObjectField::Kind kind;
  366|  1.86M|                    AST *expr1 = nullptr;
  367|  1.86M|                    const Identifier *id = nullptr;
  368|  1.86M|                    Fodder fodder1, fodder2;
  369|  1.86M|                    LocationRange idLocation;
  370|  1.86M|                    if (next.kind == Token::IDENTIFIER) {
  ------------------
  |  Branch (370:25): [True: 1.71M, False: 145k]
  ------------------
  371|  1.71M|                        fodder1 = next.fodder;
  372|  1.71M|                        kind = ObjectField::FIELD_ID;
  373|  1.71M|                        id = alloc->makeIdentifier(next.data32());
  374|  1.71M|                        idLocation = next.location;
  375|  1.71M|                    } else if (next.kind == Token::STRING_DOUBLE) {
  ------------------
  |  Branch (375:32): [True: 74.1k, False: 71.6k]
  ------------------
  376|  74.1k|                        kind = ObjectField::FIELD_STR;
  377|  74.1k|                        expr1 = alloc->make<LiteralString>(next.location,
  378|  74.1k|                                                           next.fodder,
  379|  74.1k|                                                           next.data32(),
  380|  74.1k|                                                           LiteralString::DOUBLE,
  381|  74.1k|                                                           "",
  382|  74.1k|                                                           "");
  383|  74.1k|                    } else if (next.kind == Token::STRING_SINGLE) {
  ------------------
  |  Branch (383:32): [True: 30.6k, False: 40.9k]
  ------------------
  384|  30.6k|                        kind = ObjectField::FIELD_STR;
  385|  30.6k|                        expr1 = alloc->make<LiteralString>(next.location,
  386|  30.6k|                                                           next.fodder,
  387|  30.6k|                                                           next.data32(),
  388|  30.6k|                                                           LiteralString::SINGLE,
  389|  30.6k|                                                           "",
  390|  30.6k|                                                           "");
  391|  40.9k|                    } else if (next.kind == Token::STRING_BLOCK) {
  ------------------
  |  Branch (391:32): [True: 2.12k, False: 38.8k]
  ------------------
  392|  2.12k|                        kind = ObjectField::FIELD_STR;
  393|  2.12k|                        expr1 = alloc->make<LiteralString>(next.location,
  394|  2.12k|                                                           next.fodder,
  395|  2.12k|                                                           next.data32(),
  396|  2.12k|                                                           LiteralString::BLOCK,
  397|  2.12k|                                                           next.stringBlockIndent,
  398|  2.12k|                                                           next.stringBlockTermIndent);
  399|  38.8k|                    } else if (next.kind == Token::VERBATIM_STRING_SINGLE) {
  ------------------
  |  Branch (399:32): [True: 135, False: 38.7k]
  ------------------
  400|    135|                        kind = ObjectField::FIELD_STR;
  401|    135|                        expr1 = alloc->make<LiteralString>(next.location,
  402|    135|                                                           next.fodder,
  403|    135|                                                           next.data32(),
  404|    135|                                                           LiteralString::VERBATIM_SINGLE,
  405|    135|                                                           "",
  406|    135|                                                           "");
  407|  38.7k|                    } else if (next.kind == Token::VERBATIM_STRING_DOUBLE) {
  ------------------
  |  Branch (407:32): [True: 935, False: 37.7k]
  ------------------
  408|    935|                        kind = ObjectField::FIELD_STR;
  409|    935|                        expr1 = alloc->make<LiteralString>(next.location,
  410|    935|                                                           next.fodder,
  411|    935|                                                           next.data32(),
  412|    935|                                                           LiteralString::VERBATIM_DOUBLE,
  413|    935|                                                           "",
  414|    935|                                                           "");
  415|  37.7k|                    } else {
  416|  37.7k|                        kind = ObjectField::FIELD_EXPR;
  417|  37.7k|                        fodder1 = next.fodder;
  418|  37.7k|                        expr1 = parse(MAX_PRECEDENCE, current_depth + 1);
  419|  37.7k|                        Token bracket_r = popExpect(Token::BRACKET_R);
  420|  37.7k|                        fodder2 = bracket_r.fodder;
  421|  37.7k|                    }
  422|       |
  423|  1.86M|                    bool is_method = false;
  424|  1.86M|                    bool meth_comma = false;
  425|  1.86M|                    ArgParams params;
  426|  1.86M|                    Fodder fodder_l;
  427|  1.86M|                    Fodder fodder_r;
  428|  1.86M|                    if (peek().kind == Token::PAREN_L) {
  ------------------
  |  Branch (428:25): [True: 948k, False: 911k]
  ------------------
  429|   948k|                        Token paren_l = pop();
  430|   948k|                        fodder_l = paren_l.fodder;
  431|   948k|                        params = parseParams("method parameter", meth_comma, fodder_r, current_depth);
  432|   948k|                        is_method = true;
  433|   948k|                    }
  434|       |
  435|  1.86M|                    bool plus_sugar = false;
  436|       |
  437|  1.86M|                    Token op = popExpect(Token::OPERATOR);
  438|  1.86M|                    const char *od = op.data.c_str();
  439|  1.86M|                    if (*od == '+') {
  ------------------
  |  Branch (439:25): [True: 15.1k, False: 1.84M]
  ------------------
  440|  15.1k|                        plus_sugar = true;
  441|  15.1k|                        od++;
  442|  15.1k|                    }
  443|  1.86M|                    unsigned colons = 0;
  444|  4.66M|                    for (; *od != '\0'; ++od) {
  ------------------
  |  Branch (444:28): [True: 2.80M, False: 1.86M]
  ------------------
  445|  2.80M|                        if (*od != ':') {
  ------------------
  |  Branch (445:29): [True: 16, False: 2.80M]
  ------------------
  446|     16|                            throw StaticError(
  447|     16|                                next.location,
  448|     16|                                "expected one of :, ::, :::, +:, +::, +:::, got: " + op.data);
  449|     16|                        }
  450|  2.80M|                        ++colons;
  451|  2.80M|                    }
  452|  1.86M|                    ObjectField::Hide field_hide;
  453|  1.86M|                    switch (colons) {
  454|   909k|                        case 1: field_hide = ObjectField::INHERIT; break;
  ------------------
  |  Branch (454:25): [True: 909k, False: 950k]
  ------------------
  455|       |
  456|   946k|                        case 2: field_hide = ObjectField::HIDDEN; break;
  ------------------
  |  Branch (456:25): [True: 946k, False: 913k]
  ------------------
  457|       |
  458|     11|                        case 3: field_hide = ObjectField::VISIBLE; break;
  ------------------
  |  Branch (458:25): [True: 11, False: 1.86M]
  ------------------
  459|       |
  460|      8|                        default:
  ------------------
  |  Branch (460:25): [True: 8, False: 1.86M]
  ------------------
  461|      8|                            throw StaticError(
  462|      8|                                next.location,
  463|      8|                                "expected one of :, ::, :::, +:, +::, +:::, got: " + op.data);
  464|  1.86M|                    }
  465|       |
  466|       |                    // Basic checks for invalid Jsonnet code.
  467|  1.85M|                    if (is_method && plus_sugar) {
  ------------------
  |  Branch (467:25): [True: 946k, False: 910k]
  |  Branch (467:38): [True: 1, False: 946k]
  ------------------
  468|      1|                        throw StaticError(next.location,
  469|      1|                                          "cannot use +: syntax sugar in a method: " + next.data);
  470|      1|                    }
  471|  1.85M|                    if (kind != ObjectField::FIELD_EXPR) {
  ------------------
  |  Branch (471:25): [True: 1.82M, False: 36.3k]
  ------------------
  472|  1.82M|                        if (!literal_fields.insert(next.data).second) {
  ------------------
  |  Branch (472:29): [True: 11, False: 1.82M]
  ------------------
  473|     11|                            throw StaticError(next.location, "duplicate field: " + next.data);
  474|     11|                        }
  475|  1.82M|                    }
  476|       |
  477|  1.85M|                    AST *body = parse(MAX_PRECEDENCE, current_depth + 1);
  478|       |
  479|  1.85M|                    Fodder comma_fodder;
  480|  1.85M|                    next = pop();
  481|  1.85M|                    if (next.kind == Token::COMMA) {
  ------------------
  |  Branch (481:25): [True: 1.53M, False: 319k]
  ------------------
  482|  1.53M|                        comma_fodder = next.fodder;
  483|  1.53M|                        next = pop();
  484|  1.53M|                        got_comma = true;
  485|  1.53M|                    }
  486|  1.85M|                    fields.emplace_back(kind,
  487|  1.85M|                                        fodder1,
  488|  1.85M|                                        fodder2,
  489|  1.85M|                                        fodder_l,
  490|  1.85M|                                        fodder_r,
  491|  1.85M|                                        field_hide,
  492|  1.85M|                                        plus_sugar,
  493|  1.85M|                                        is_method,
  494|  1.85M|                                        expr1,
  495|  1.85M|                                        id,
  496|  1.85M|                                        idLocation,
  497|  1.85M|                                        params,
  498|  1.85M|                                        meth_comma,
  499|  1.85M|                                        op.fodder,
  500|  1.85M|                                        body,
  501|  1.85M|                                        nullptr,
  502|  1.85M|                                        comma_fodder);
  503|  1.85M|                } break;
  504|       |
  505|  54.6k|                case Token::LOCAL: {
  ------------------
  |  Branch (505:17): [True: 54.6k, False: 1.89M]
  ------------------
  506|  54.6k|                    Fodder local_fodder = next.fodder;
  507|  54.6k|                    Token var_id = popExpect(Token::IDENTIFIER);
  508|  54.6k|                    auto *id = alloc->makeIdentifier(var_id.data32());
  509|       |
  510|  54.6k|                    if (binds.find(id) != binds.end()) {
  ------------------
  |  Branch (510:25): [True: 1, False: 54.6k]
  ------------------
  511|      1|                        throw StaticError(var_id.location, "duplicate local var: " + var_id.data);
  512|      1|                    }
  513|  54.6k|                    bool is_method = false;
  514|  54.6k|                    bool func_comma = false;
  515|  54.6k|                    ArgParams params;
  516|  54.6k|                    Fodder paren_l_fodder;
  517|  54.6k|                    Fodder paren_r_fodder;
  518|  54.6k|                    if (peek().kind == Token::PAREN_L) {
  ------------------
  |  Branch (518:25): [True: 8.46k, False: 46.2k]
  ------------------
  519|  8.46k|                        Token paren_l = pop();
  520|  8.46k|                        paren_l_fodder = paren_l.fodder;
  521|  8.46k|                        is_method = true;
  522|  8.46k|                        params = parseParams("function parameter", func_comma, paren_r_fodder, current_depth);
  523|  8.46k|                    }
  524|  54.6k|                    Token eq = popExpect(Token::OPERATOR, "=");
  525|  54.6k|                    AST *body = parse(MAX_PRECEDENCE, current_depth + 1);
  526|  54.6k|                    binds.insert(id);
  527|       |
  528|  54.6k|                    Fodder comma_fodder;
  529|  54.6k|                    next = pop();
  530|  54.6k|                    if (next.kind == Token::COMMA) {
  ------------------
  |  Branch (530:25): [True: 53.0k, False: 1.60k]
  ------------------
  531|  53.0k|                        comma_fodder = next.fodder;
  532|  53.0k|                        next = pop();
  533|  53.0k|                        got_comma = true;
  534|  53.0k|                    }
  535|  54.6k|                    fields.push_back(ObjectField::Local(local_fodder,
  536|  54.6k|                                                        var_id.fodder,
  537|  54.6k|                                                        paren_l_fodder,
  538|  54.6k|                                                        paren_r_fodder,
  539|  54.6k|                                                        is_method,
  540|  54.6k|                                                        id,
  541|  54.6k|                                                        params,
  542|  54.6k|                                                        func_comma,
  543|  54.6k|                                                        eq.fodder,
  544|  54.6k|                                                        body,
  545|  54.6k|                                                        comma_fodder));
  546|       |
  547|  54.6k|                } break;
  548|       |
  549|  31.0k|                case Token::ASSERT: {
  ------------------
  |  Branch (549:17): [True: 31.0k, False: 1.91M]
  ------------------
  550|  31.0k|                    Fodder assert_fodder = next.fodder;
  551|  31.0k|                    AST *cond = parse(MAX_PRECEDENCE, current_depth + 1);
  552|  31.0k|                    AST *msg = nullptr;
  553|  31.0k|                    Fodder colon_fodder;
  554|  31.0k|                    if (peek().kind == Token::OPERATOR && peek().data == ":") {
  ------------------
  |  Branch (554:25): [True: 19.6k, False: 11.4k]
  |  Branch (554:59): [True: 19.6k, False: 1]
  ------------------
  555|  19.6k|                        Token colon = pop();
  556|  19.6k|                        colon_fodder = colon.fodder;
  557|  19.6k|                        msg = parse(MAX_PRECEDENCE, current_depth + 1);
  558|  19.6k|                    }
  559|       |
  560|  31.0k|                    Fodder comma_fodder;
  561|  31.0k|                    next = pop();
  562|  31.0k|                    if (next.kind == Token::COMMA) {
  ------------------
  |  Branch (562:25): [True: 29.1k, False: 1.95k]
  ------------------
  563|  29.1k|                        comma_fodder = next.fodder;
  564|  29.1k|                        next = pop();
  565|  29.1k|                        got_comma = true;
  566|  29.1k|                    }
  567|  31.0k|                    fields.push_back(
  568|  31.0k|                        ObjectField::Assert(assert_fodder, cond, colon_fodder, msg, comma_fodder));
  569|  31.0k|                } break;
  570|       |
  571|     69|                default: throw unexpected(next, "parsing field definition");
  ------------------
  |  Branch (571:17): [True: 69, False: 1.94M]
  ------------------
  572|  1.94M|            }
  573|       |
  574|  1.94M|        } while (true);
  ------------------
  |  Branch (574:18): [True: 1.93M, Folded]
  ------------------
  575|   470k|    }
parser.cpp:_ZN7jsonnet8internal12_GLOBAL__N_14spanERKNS0_5TokenES4_:
   89|  14.8M|{
   90|  14.8M|    return LocationRange(begin.location.file, begin.location.begin, end.location.end);
   91|  14.8M|}
parser.cpp:_ZN7jsonnet8internal12_GLOBAL__N_16Parser23parseComprehensionSpecsENS0_5Token4KindENSt3__16vectorINS0_13FodderElementENS5_9allocatorIS7_EEEERNS6_INS0_17ComprehensionSpecENS8_ISB_EEEEj:
  588|   276k|    {
  589|   276k|        if (current_depth >= MAX_PARSER_DEPTH) {
  ------------------
  |  Branch (589:13): [True: 0, False: 276k]
  ------------------
  590|      0|            throw StaticError(peek().location, "Exceeded maximum parse depth limit.");
  591|      0|        }
  592|       |
  593|   303k|        while (true) {
  ------------------
  |  Branch (593:16): [True: 302k, Folded]
  ------------------
  594|   302k|            LocationRange l;
  595|   302k|            Token id_token = popExpect(Token::IDENTIFIER);
  596|   302k|            const Identifier *id = alloc->makeIdentifier(id_token.data32());
  597|   302k|            Token in_token = popExpect(Token::IN);
  598|   302k|            AST *arr = parse(MAX_PRECEDENCE, current_depth + 1);
  599|   302k|            specs.emplace_back(
  600|   302k|                ComprehensionSpec::FOR, for_fodder, id_token.fodder, id, in_token.fodder, arr);
  601|       |
  602|   302k|            Token maybe_if = pop();
  603|   437k|            for (; maybe_if.kind == Token::IF; maybe_if = pop()) {
  ------------------
  |  Branch (603:20): [True: 134k, False: 302k]
  ------------------
  604|   134k|                AST *cond = parse(MAX_PRECEDENCE, current_depth + 1);
  605|   134k|                specs.emplace_back(
  606|   134k|                    ComprehensionSpec::IF, maybe_if.fodder, Fodder{}, nullptr, Fodder{}, cond);
  607|   134k|            }
  608|   302k|            if (maybe_if.kind == end) {
  ------------------
  |  Branch (608:17): [True: 275k, False: 26.8k]
  ------------------
  609|   275k|                return maybe_if;
  610|   275k|            }
  611|  26.8k|            if (maybe_if.kind != Token::FOR) {
  ------------------
  |  Branch (611:17): [True: 31, False: 26.8k]
  ------------------
  612|     31|                std::stringstream ss;
  613|     31|                ss << "expected for, if or " << end << " after for clause, got: " << maybe_if;
  614|     31|                throw StaticError(maybe_if.location, ss.str());
  615|     31|            }
  616|  26.8k|            for_fodder = maybe_if.fodder;
  617|  26.8k|        }
  618|   276k|    }
parser.cpp:_ZN7jsonnet8internal12_GLOBAL__N_14spanERKNS0_5TokenE:
   84|  33.1M|{
   85|  33.1M|    return LocationRange(begin.location.file, begin.location.begin, begin.location.end);
   86|  33.1M|}
parser.cpp:_ZN7jsonnet8internal12_GLOBAL__N_16Parser10parseInfixEPNS0_3ASTERKNS0_5TokenEjj:
 1009|  35.4M|    {
 1010|  35.4M|        if (current_depth >= MAX_PARSER_DEPTH) {
  ------------------
  |  Branch (1010:13): [True: 0, False: 35.4M]
  ------------------
 1011|      0|            throw StaticError(peek().location, "Exceeded maximum parse depth limit.");
 1012|      0|        }
 1013|       |
 1014|  54.9M|        while (true) {
  ------------------
  |  Branch (1014:16): [True: 54.9M, Folded]
  ------------------
 1015|       |
 1016|  54.9M|            BinaryOp bop = BOP_PLUS;
 1017|  54.9M|            unsigned op_precedence = 0;
 1018|       |
 1019|  54.9M|            switch (peek().kind) {
 1020|       |                // Logical / arithmetic binary operator.
 1021|  1.53k|                case Token::IN:
  ------------------
  |  Branch (1021:17): [True: 1.53k, False: 54.9M]
  ------------------
 1022|  8.35M|                case Token::OPERATOR:
  ------------------
  |  Branch (1022:17): [True: 8.35M, False: 46.6M]
  ------------------
 1023|       |                    // These occur if the outer statement was an assert or array slice.
 1024|       |                    // Either way, we terminate the parsing here.
 1025|  8.35M|                    if (peek().data == ":" || peek().data == "::") {
  ------------------
  |  Branch (1025:25): [True: 622k, False: 7.73M]
  |  Branch (1025:47): [True: 653, False: 7.73M]
  ------------------
 1026|   622k|                        return lhs;
 1027|   622k|                    }
 1028|  7.73M|                    if (!op_is_binary(peek().data, bop)) {
  ------------------
  |  Branch (1028:25): [True: 132, False: 7.73M]
  ------------------
 1029|    132|                        std::stringstream ss;
 1030|    132|                        ss << "not a binary operator: " << peek().data;
 1031|    132|                        throw StaticError(peek().location, ss.str());
 1032|    132|                    }
 1033|  7.73M|                    op_precedence = precedence_map[bop];
 1034|  7.73M|                    break;
 1035|       |
 1036|       |                // Index, Apply
 1037|  5.43M|                case Token::DOT:
  ------------------
  |  Branch (1037:17): [True: 5.43M, False: 49.5M]
  ------------------
 1038|  6.74M|                case Token::BRACKET_L:
  ------------------
  |  Branch (1038:17): [True: 1.30M, False: 53.6M]
  ------------------
 1039|  12.8M|                case Token::PAREN_L:
  ------------------
  |  Branch (1039:17): [True: 6.14M, False: 48.8M]
  ------------------
 1040|  12.9M|                case Token::BRACE_L:
  ------------------
  |  Branch (1040:17): [True: 100k, False: 54.8M]
  ------------------
 1041|  12.9M|                    op_precedence = APPLY_PRECEDENCE;
 1042|  12.9M|                    break;
 1043|       |
 1044|  33.6M|                default:
  ------------------
  |  Branch (1044:17): [True: 33.6M, False: 21.3M]
  ------------------
 1045|       |                    // This happens when we reach EOF or the terminating token of an outer context.
 1046|  33.6M|                    return lhs;
 1047|  54.9M|            }
 1048|       |
 1049|       |            // If higher precedence than the outer recursive call, let that handle it.
 1050|  20.7M|            if (op_precedence >= max_precedence)
  ------------------
  |  Branch (1050:17): [True: 1.17M, False: 19.5M]
  ------------------
 1051|  1.17M|                return lhs;
 1052|       |
 1053|  19.5M|            Token op = pop();
 1054|       |
 1055|  19.5M|            switch (op.kind) {
 1056|  1.30M|                case Token::BRACKET_L: {
  ------------------
  |  Branch (1056:17): [True: 1.30M, False: 18.2M]
  ------------------
 1057|  1.30M|                    bool is_slice;
 1058|  1.30M|                    AST *first = nullptr;
 1059|  1.30M|                    Fodder second_fodder;
 1060|  1.30M|                    AST *second = nullptr;
 1061|  1.30M|                    Fodder third_fodder;
 1062|  1.30M|                    AST *third = nullptr;
 1063|       |
 1064|  1.30M|                    if (peek().kind == Token::BRACKET_R)
  ------------------
  |  Branch (1064:25): [True: 2, False: 1.30M]
  ------------------
 1065|      2|                        throw unexpected(pop(), "parsing index");
 1066|       |
 1067|  1.30M|                    if (peek().data != ":" && peek().data != "::") {
  ------------------
  |  Branch (1067:25): [True: 1.29M, False: 18.0k]
  |  Branch (1067:47): [True: 1.29M, False: 963]
  ------------------
 1068|  1.29M|                        first = parse(MAX_PRECEDENCE, current_depth + 1);
 1069|  1.29M|                    }
 1070|       |
 1071|  1.30M|                    if (peek().kind == Token::OPERATOR && peek().data == "::") {
  ------------------
  |  Branch (1071:25): [True: 140k, False: 1.16M]
  |  Branch (1071:59): [True: 1.06k, False: 139k]
  ------------------
 1072|       |                        // Handle ::
 1073|  1.06k|                        is_slice = true;
 1074|  1.06k|                        Token joined = pop();
 1075|  1.06k|                        second_fodder = joined.fodder;
 1076|       |
 1077|  1.06k|                        if (peek().kind != Token::BRACKET_R)
  ------------------
  |  Branch (1077:29): [True: 763, False: 304]
  ------------------
 1078|    763|                            third = parse(MAX_PRECEDENCE, current_depth + 1);
 1079|       |
 1080|  1.30M|                    } else if (peek().kind != Token::BRACKET_R) {
  ------------------
  |  Branch (1080:32): [True: 139k, False: 1.16M]
  ------------------
 1081|   139k|                        is_slice = true;
 1082|   139k|                        Token delim = pop();
 1083|   139k|                        if (delim.data != ":")
  ------------------
  |  Branch (1083:29): [True: 124, False: 139k]
  ------------------
 1084|    124|                            throw unexpected(delim, "parsing slice");
 1085|       |
 1086|   139k|                        second_fodder = delim.fodder;
 1087|       |
 1088|   139k|                        if (peek().data != ":" && peek().kind != Token::BRACKET_R)
  ------------------
  |  Branch (1088:29): [True: 139k, False: 139]
  |  Branch (1088:51): [True: 62.3k, False: 77.2k]
  ------------------
 1089|  62.3k|                            second = parse(MAX_PRECEDENCE, current_depth + 1);
 1090|       |
 1091|   139k|                        if (peek().kind != Token::BRACKET_R) {
  ------------------
  |  Branch (1091:29): [True: 8.42k, False: 131k]
  ------------------
 1092|  8.42k|                            Token delim = pop();
 1093|  8.42k|                            if (delim.data != ":")
  ------------------
  |  Branch (1093:33): [True: 40, False: 8.38k]
  ------------------
 1094|     40|                                throw unexpected(delim, "parsing slice");
 1095|       |
 1096|  8.38k|                            third_fodder = delim.fodder;
 1097|       |
 1098|  8.38k|                            if (peek().kind != Token::BRACKET_R)
  ------------------
  |  Branch (1098:33): [True: 8.15k, False: 231]
  ------------------
 1099|  8.15k|                                third = parse(MAX_PRECEDENCE, current_depth + 1);
 1100|  8.38k|                        }
 1101|  1.16M|                    } else {
 1102|  1.16M|                        is_slice = false;
 1103|  1.16M|                    }
 1104|  1.30M|                    Token end = popExpect(Token::BRACKET_R);
 1105|  1.30M|                    lhs = alloc->make<Index>(span(begin, end),
 1106|  1.30M|                                             EMPTY_FODDER,
 1107|  1.30M|                                             lhs,
 1108|  1.30M|                                             op.fodder,
 1109|  1.30M|                                             is_slice,
 1110|  1.30M|                                             first,
 1111|  1.30M|                                             second_fodder,
 1112|  1.30M|                                             second,
 1113|  1.30M|                                             third_fodder,
 1114|  1.30M|                                             third,
 1115|  1.30M|                                             end.fodder);
 1116|  1.30M|                    break;
 1117|  1.30M|                }
 1118|  5.43M|                case Token::DOT: {
  ------------------
  |  Branch (1118:17): [True: 5.43M, False: 14.1M]
  ------------------
 1119|  5.43M|                    Token field_id = popExpect(Token::IDENTIFIER);
 1120|  5.43M|                    const Identifier *id = alloc->makeIdentifier(field_id.data32());
 1121|  5.43M|                    lhs = alloc->make<Index>(span(begin, field_id),
 1122|  5.43M|                                             EMPTY_FODDER,
 1123|  5.43M|                                             lhs,
 1124|  5.43M|                                             op.fodder,
 1125|  5.43M|                                             field_id.fodder,
 1126|  5.43M|                                             id);
 1127|  5.43M|                    break;
 1128|  1.30M|                }
 1129|  6.14M|                case Token::PAREN_L: {
  ------------------
  |  Branch (1129:17): [True: 6.14M, False: 13.4M]
  ------------------
 1130|  6.14M|                    ArgParams args;
 1131|  6.14M|                    bool got_comma;
 1132|  6.14M|                    Token end = parseArgs(args, "function argument", got_comma, current_depth);
 1133|  6.14M|                    bool got_named = false;
 1134|  10.3M|                    for (const auto& arg : args) {
  ------------------
  |  Branch (1134:42): [True: 10.3M, False: 6.14M]
  ------------------
 1135|  10.3M|                        if (arg.id != nullptr) {
  ------------------
  |  Branch (1135:29): [True: 23.0k, False: 10.3M]
  ------------------
 1136|  23.0k|                            got_named = true;
 1137|  10.3M|                        } else {
 1138|  10.3M|                            if (got_named) {
  ------------------
  |  Branch (1138:33): [True: 6, False: 10.3M]
  ------------------
 1139|      6|                                throw StaticError(arg.expr->location, "Positional argument after a named argument is not allowed");
 1140|      6|                            }
 1141|  10.3M|                        }
 1142|  10.3M|                    }
 1143|  6.14M|                    bool tailstrict = false;
 1144|  6.14M|                    Fodder tailstrict_fodder;
 1145|  6.14M|                    if (peek().kind == Token::TAILSTRICT) {
  ------------------
  |  Branch (1145:25): [True: 302k, False: 5.84M]
  ------------------
 1146|   302k|                        Token tailstrict_token = pop();
 1147|   302k|                        tailstrict_fodder = tailstrict_token.fodder;
 1148|   302k|                        tailstrict = true;
 1149|   302k|                    }
 1150|  6.14M|                    lhs = alloc->make<Apply>(span(begin, end),
 1151|  6.14M|                                             EMPTY_FODDER,
 1152|  6.14M|                                             lhs,
 1153|  6.14M|                                             op.fodder,
 1154|  6.14M|                                             args,
 1155|  6.14M|                                             got_comma,
 1156|  6.14M|                                             end.fodder,
 1157|  6.14M|                                             tailstrict_fodder,
 1158|  6.14M|                                             tailstrict);
 1159|  6.14M|                    break;
 1160|  6.14M|                }
 1161|   100k|                case Token::BRACE_L: {
  ------------------
  |  Branch (1161:17): [True: 100k, False: 19.4M]
  ------------------
 1162|   100k|                    AST *obj;
 1163|   100k|                    Token end = parseObjectRemainder(obj, op, current_depth + 1);
 1164|   100k|                    lhs = alloc->make<ApplyBrace>(span(begin, end), EMPTY_FODDER, lhs, obj);
 1165|   100k|                    break;
 1166|  6.14M|                }
 1167|       |
 1168|  1.32k|                case Token::IN: {
  ------------------
  |  Branch (1168:17): [True: 1.32k, False: 19.5M]
  ------------------
 1169|  1.32k|                    if (peek().kind == Token::SUPER) {
  ------------------
  |  Branch (1169:25): [True: 338, False: 986]
  ------------------
 1170|    338|                        Token super = pop();
 1171|    338|                        lhs = alloc->make<InSuper>(
 1172|    338|                            span(begin, super), EMPTY_FODDER, lhs, op.fodder, super.fodder);
 1173|    986|                    } else {
 1174|    986|                        AST *rhs = parse(op_precedence, current_depth + 1);
 1175|    986|                        lhs = alloc->make<Binary>(
 1176|    986|                            span(begin, rhs), EMPTY_FODDER, lhs, op.fodder, bop, rhs);
 1177|    986|                    }
 1178|  1.32k|                    break;
 1179|  6.14M|                }
 1180|       |
 1181|  6.55M|                case Token::OPERATOR: {
  ------------------
  |  Branch (1181:17): [True: 6.55M, False: 12.9M]
  ------------------
 1182|  6.55M|                    AST *rhs = parse(op_precedence, current_depth + 1);
 1183|  6.55M|                    lhs = alloc->make<Binary>(
 1184|  6.55M|                        span(begin, rhs), EMPTY_FODDER, lhs, op.fodder, bop, rhs);
 1185|  6.55M|                    break;
 1186|  6.14M|                }
 1187|       |
 1188|      0|                default: {
  ------------------
  |  Branch (1188:17): [True: 0, False: 19.5M]
  ------------------
 1189|      0|                    std::cerr << "Should not be here." << std::endl;
 1190|      0|                    abort();
 1191|  6.14M|                }
 1192|  19.5M|            }
 1193|  19.5M|        }
 1194|       |
 1195|       |        // (1 & ((1 + (1 * 1)) + 1)) & 1
 1196|       |        //
 1197|       |        //
 1198|       |
 1199|       |/*
 1200|       |        // Allocate this on the heap to control stack growth.
 1201|       |        std::unique_ptr<Token> begin_(new Token(peek()));
 1202|       |        const Token &begin = *begin_;
 1203|       |*/
 1204|  35.4M|    }
parser.cpp:_ZN7jsonnet8internal12_GLOBAL__N_112op_is_binaryERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEERNS0_8BinaryOpE:
   75|  7.73M|{
   76|  7.73M|    auto it = binary_map.find(op);
   77|  7.73M|    if (it == binary_map.end())
  ------------------
  |  Branch (77:9): [True: 132, False: 7.73M]
  ------------------
   78|    132|        return false;
   79|  7.73M|    bop = it->second;
   80|  7.73M|    return true;
   81|  7.73M|}

_ZN7jsonnet8internal12CompilerPass6fodderERNSt3__16vectorINS0_13FodderElementENS2_9allocatorIS4_EEEE:
   22|  22.3M|{
   23|  22.3M|    for (auto &f : fodder)
  ------------------
  |  Branch (23:18): [True: 149k, False: 22.3M]
  ------------------
   24|   149k|        fodderElement(f);
   25|  22.3M|}
_ZN7jsonnet8internal12CompilerPass6paramsERNSt3__16vectorINS0_13FodderElementENS2_9allocatorIS4_EEEERNS3_INS0_8ArgParamENS5_IS9_EEEES8_:
   43|   444k|{
   44|   444k|    fodder(fodder_l);
   45|   979k|    for (auto &param : params) {
  ------------------
  |  Branch (45:22): [True: 979k, False: 444k]
  ------------------
   46|   979k|        fodder(param.idFodder);
   47|   979k|        if (param.expr) {
  ------------------
  |  Branch (47:13): [True: 553k, False: 426k]
  ------------------
   48|   553k|            fodder(param.eqFodder);
   49|   553k|            expr(param.expr);
   50|   553k|        }
   51|   979k|        fodder(param.commaFodder);
   52|   979k|    }
   53|   444k|    fodder(fodder_r);
   54|   444k|}
_ZN7jsonnet8internal12CompilerPass4exprERPNS0_3ASTE:
  110|  10.8M|{
  111|  10.8M|    fodder(ast_->openFodder);
  112|  10.8M|    visitExpr(ast_);
  113|  10.8M|}
_ZN7jsonnet8internal12CompilerPass5visitEPNS0_5ApplyE:
  116|   305k|{
  117|   305k|    expr(ast->target);
  118|   305k|    params(ast->fodderL, ast->args, ast->fodderR);
  119|   305k|    if (ast->tailstrict) {
  ------------------
  |  Branch (119:9): [True: 173k, False: 131k]
  ------------------
  120|   173k|        fodder(ast->tailstrictFodder);
  121|   173k|    }
  122|   305k|}
_ZN7jsonnet8internal12CompilerPass5visitEPNS0_5ArrayE:
  131|   175k|{
  132|   188k|    for (auto &element : ast->elements) {
  ------------------
  |  Branch (132:24): [True: 188k, False: 175k]
  ------------------
  133|   188k|        expr(element.expr);
  134|   188k|        fodder(element.commaFodder);
  135|   188k|    }
  136|   175k|    fodder(ast->closeFodder);
  137|   175k|}
_ZN7jsonnet8internal12CompilerPass5visitEPNS0_6BinaryE:
  159|   930k|{
  160|   930k|    expr(ast->left);
  161|   930k|    fodder(ast->opFodder);
  162|   930k|    expr(ast->right);
  163|   930k|}
_ZN7jsonnet8internal12CompilerPass5visitEPNS0_11ConditionalE:
  166|   538k|{
  167|   538k|    expr(ast->cond);
  168|   538k|    fodder(ast->thenFodder);
  169|   538k|    if (ast->branchFalse != nullptr) {
  ------------------
  |  Branch (169:9): [True: 538k, False: 0]
  ------------------
  170|   538k|        expr(ast->branchTrue);
  171|   538k|        fodder(ast->elseFodder);
  172|   538k|        expr(ast->branchFalse);
  173|   538k|    } else {
  174|      0|        expr(ast->branchTrue);
  175|      0|    }
  176|   538k|}
_ZN7jsonnet8internal12CompilerPass5visitEPNS0_5ErrorE:
  179|  84.4k|{
  180|  84.4k|    expr(ast->expr);
  181|  84.4k|}
_ZN7jsonnet8internal12CompilerPass5visitEPNS0_8FunctionE:
  184|   139k|{
  185|   139k|    params(ast->parenLeftFodder, ast->params, ast->parenRightFodder);
  186|   139k|    expr(ast->body);
  187|   139k|}
_ZN7jsonnet8internal12CompilerPass5visitEPNS0_6ImportE:
  190|  1.99k|{
  191|  1.99k|    visit(ast->file);
  192|  1.99k|}
_ZN7jsonnet8internal12CompilerPass5visitEPNS0_9ImportstrE:
  195|  4.07k|{
  196|  4.07k|    visit(ast->file);
  197|  4.07k|}
_ZN7jsonnet8internal12CompilerPass5visitEPNS0_9ImportbinE:
  200|  1.62k|{
  201|  1.62k|    visit(ast->file);
  202|  1.62k|}
_ZN7jsonnet8internal12CompilerPass5visitEPNS0_7InSuperE:
  205|   228k|{
  206|   228k|    expr(ast->element);
  207|   228k|}
_ZN7jsonnet8internal12CompilerPass5visitEPNS0_5IndexE:
  210|   343k|{
  211|   343k|    expr(ast->target);
  212|   343k|    if (ast->id != nullptr) {
  ------------------
  |  Branch (212:9): [True: 0, False: 343k]
  ------------------
  213|   343k|    } else {
  214|   343k|        if (ast->isSlice) {
  ------------------
  |  Branch (214:13): [True: 0, False: 343k]
  ------------------
  215|      0|            if (ast->index != nullptr)
  ------------------
  |  Branch (215:17): [True: 0, False: 0]
  ------------------
  216|      0|                expr(ast->index);
  217|      0|            if (ast->end != nullptr)
  ------------------
  |  Branch (217:17): [True: 0, False: 0]
  ------------------
  218|      0|                expr(ast->end);
  219|      0|            if (ast->step != nullptr)
  ------------------
  |  Branch (219:17): [True: 0, False: 0]
  ------------------
  220|      0|                expr(ast->step);
  221|   343k|        } else {
  222|   343k|            expr(ast->index);
  223|   343k|        }
  224|   343k|    }
  225|   343k|}
_ZN7jsonnet8internal12CompilerPass5visitEPNS0_5LocalE:
  228|   306k|{
  229|   306k|    assert(ast->binds.size() > 0);
  ------------------
  |  Branch (229:5): [True: 306k, False: 0]
  ------------------
  230|  1.82M|    for (auto &bind : ast->binds) {
  ------------------
  |  Branch (230:21): [True: 1.82M, False: 306k]
  ------------------
  231|  1.82M|        fodder(bind.varFodder);
  232|  1.82M|        if (bind.functionSugar) {
  ------------------
  |  Branch (232:13): [True: 0, False: 1.82M]
  ------------------
  233|      0|            params(bind.parenLeftFodder, bind.params, bind.parenRightFodder);
  234|      0|        }
  235|  1.82M|        fodder(bind.opFodder);
  236|  1.82M|        expr(bind.body);
  237|  1.82M|        fodder(bind.closeFodder);
  238|  1.82M|    }
  239|   306k|    expr(ast->body);
  240|   306k|}
_ZN7jsonnet8internal12CompilerPass5visitEPNS0_15DesugaredObjectE:
  249|  1.02M|{
  250|  1.02M|    for (AST *assert : ast->asserts) {
  ------------------
  |  Branch (250:22): [True: 14.2k, False: 1.02M]
  ------------------
  251|  14.2k|        expr(assert);
  252|  14.2k|    }
  253|  1.02M|    for (auto &field : ast->fields) {
  ------------------
  |  Branch (253:22): [True: 741k, False: 1.02M]
  ------------------
  254|   741k|        expr(field.name);
  255|   741k|        expr(field.body);
  256|   741k|    }
  257|  1.02M|}
_ZN7jsonnet8internal12CompilerPass5visitEPNS0_25ObjectComprehensionSimpleE:
  267|  30.5k|{
  268|  30.5k|    expr(ast->field);
  269|  30.5k|    expr(ast->value);
  270|  30.5k|    expr(ast->array);
  271|  30.5k|}
_ZN7jsonnet8internal12CompilerPass5visitEPNS0_10SuperIndexE:
  280|   230k|{
  281|   230k|    if (ast->id != nullptr) {
  ------------------
  |  Branch (281:9): [True: 0, False: 230k]
  ------------------
  282|   230k|    } else {
  283|   230k|        expr(ast->index);
  284|   230k|    }
  285|   230k|}
_ZN7jsonnet8internal12CompilerPass5visitEPNS0_5UnaryE:
  288|  1.21M|{
  289|  1.21M|    expr(ast->expr);
  290|  1.21M|}
_ZN7jsonnet8internal12CompilerPass9visitExprERPNS0_3ASTE:
  300|  10.8M|{
  301|  10.8M|    switch(ast_->type) {
  302|   305k|        VISIT(ast_, AST_APPLY, Apply);
  ------------------
  |  |  293|   305k|   case astType: { \
  |  |  ------------------
  |  |  |  Branch (293:4): [True: 305k, False: 10.5M]
  |  |  ------------------
  |  |  294|   305k|     assert(dynamic_cast<astClass *>(var)); \
  |  |  295|   305k|     auto *ast = static_cast<astClass *>(var); \
  |  |  296|   305k|     visit(ast); \
  |  |  297|   305k|   } break
  ------------------
  |  Branch (302:9): [True: 305k, False: 0]
  ------------------
  303|      0|        VISIT(ast_, AST_APPLY_BRACE, ApplyBrace);
  ------------------
  |  |  293|      0|   case astType: { \
  |  |  ------------------
  |  |  |  Branch (293:4): [True: 0, False: 10.8M]
  |  |  ------------------
  |  |  294|      0|     assert(dynamic_cast<astClass *>(var)); \
  |  |  295|      0|     auto *ast = static_cast<astClass *>(var); \
  |  |  296|      0|     visit(ast); \
  |  |  297|      0|   } break
  ------------------
  |  Branch (303:9): [True: 0, False: 0]
  ------------------
  304|   175k|        VISIT(ast_, AST_ARRAY, Array);
  ------------------
  |  |  293|   175k|   case astType: { \
  |  |  ------------------
  |  |  |  Branch (293:4): [True: 175k, False: 10.7M]
  |  |  ------------------
  |  |  294|   175k|     assert(dynamic_cast<astClass *>(var)); \
  |  |  295|   175k|     auto *ast = static_cast<astClass *>(var); \
  |  |  296|   175k|     visit(ast); \
  |  |  297|   175k|   } break
  ------------------
  |  Branch (304:9): [True: 175k, False: 0]
  ------------------
  305|      0|        VISIT(ast_, AST_ARRAY_COMPREHENSION, ArrayComprehension);
  ------------------
  |  |  293|      0|   case astType: { \
  |  |  ------------------
  |  |  |  Branch (293:4): [True: 0, False: 10.8M]
  |  |  ------------------
  |  |  294|      0|     assert(dynamic_cast<astClass *>(var)); \
  |  |  295|      0|     auto *ast = static_cast<astClass *>(var); \
  |  |  296|      0|     visit(ast); \
  |  |  297|      0|   } break
  ------------------
  |  Branch (305:9): [True: 0, False: 0]
  ------------------
  306|       |        // VISIT(ast_, AST_ARRAY_COMPREHENSION, ArrayComprehensionSimple);
  307|      0|        VISIT(ast_, AST_ASSERT, Assert);
  ------------------
  |  |  293|      0|   case astType: { \
  |  |  ------------------
  |  |  |  Branch (293:4): [True: 0, False: 10.8M]
  |  |  ------------------
  |  |  294|      0|     assert(dynamic_cast<astClass *>(var)); \
  |  |  295|      0|     auto *ast = static_cast<astClass *>(var); \
  |  |  296|      0|     visit(ast); \
  |  |  297|      0|   } break
  ------------------
  |  Branch (307:9): [True: 0, False: 0]
  ------------------
  308|   930k|        VISIT(ast_, AST_BINARY, Binary);
  ------------------
  |  |  293|   930k|   case astType: { \
  |  |  ------------------
  |  |  |  Branch (293:4): [True: 930k, False: 9.95M]
  |  |  ------------------
  |  |  294|   930k|     assert(dynamic_cast<astClass *>(var)); \
  |  |  295|   930k|     auto *ast = static_cast<astClass *>(var); \
  |  |  296|   930k|     visit(ast); \
  |  |  297|   930k|   } break
  ------------------
  |  Branch (308:9): [True: 930k, False: 0]
  ------------------
  309|      0|        VISIT(ast_, AST_BUILTIN_FUNCTION, BuiltinFunction);
  ------------------
  |  |  293|      0|   case astType: { \
  |  |  ------------------
  |  |  |  Branch (293:4): [True: 0, False: 10.8M]
  |  |  ------------------
  |  |  294|      0|     assert(dynamic_cast<astClass *>(var)); \
  |  |  295|      0|     auto *ast = static_cast<astClass *>(var); \
  |  |  296|      0|     visit(ast); \
  |  |  297|      0|   } break
  ------------------
  |  Branch (309:9): [True: 0, False: 0]
  ------------------
  310|      0|        VISIT(ast_, AST_BUILTIN_FUNCTION_BODY, BuiltinFunctionBody);
  ------------------
  |  |  293|      0|   case astType: { \
  |  |  ------------------
  |  |  |  Branch (293:4): [True: 0, False: 10.8M]
  |  |  ------------------
  |  |  294|      0|     assert(dynamic_cast<astClass *>(var)); \
  |  |  295|      0|     auto *ast = static_cast<astClass *>(var); \
  |  |  296|      0|     visit(ast); \
  |  |  297|      0|   } break
  ------------------
  |  Branch (310:9): [True: 0, False: 0]
  ------------------
  311|   538k|        VISIT(ast_, AST_CONDITIONAL, Conditional);
  ------------------
  |  |  293|   538k|   case astType: { \
  |  |  ------------------
  |  |  |  Branch (293:4): [True: 538k, False: 10.3M]
  |  |  ------------------
  |  |  294|   538k|     assert(dynamic_cast<astClass *>(var)); \
  |  |  295|   538k|     auto *ast = static_cast<astClass *>(var); \
  |  |  296|   538k|     visit(ast); \
  |  |  297|   538k|   } break
  ------------------
  |  Branch (311:9): [True: 538k, False: 0]
  ------------------
  312|  1.02M|        VISIT(ast_, AST_DESUGARED_OBJECT, DesugaredObject);
  ------------------
  |  |  293|  1.02M|   case astType: { \
  |  |  ------------------
  |  |  |  Branch (293:4): [True: 1.02M, False: 9.86M]
  |  |  ------------------
  |  |  294|  1.02M|     assert(dynamic_cast<astClass *>(var)); \
  |  |  295|  1.02M|     auto *ast = static_cast<astClass *>(var); \
  |  |  296|  1.02M|     visit(ast); \
  |  |  297|  1.02M|   } break
  ------------------
  |  Branch (312:9): [True: 1.02M, False: 0]
  ------------------
  313|      0|        VISIT(ast_, AST_DOLLAR, Dollar);
  ------------------
  |  |  293|      0|   case astType: { \
  |  |  ------------------
  |  |  |  Branch (293:4): [True: 0, False: 10.8M]
  |  |  ------------------
  |  |  294|      0|     assert(dynamic_cast<astClass *>(var)); \
  |  |  295|      0|     auto *ast = static_cast<astClass *>(var); \
  |  |  296|      0|     visit(ast); \
  |  |  297|      0|   } break
  ------------------
  |  Branch (313:9): [True: 0, False: 0]
  ------------------
  314|  84.4k|        VISIT(ast_, AST_ERROR, Error);
  ------------------
  |  |  293|  84.4k|   case astType: { \
  |  |  ------------------
  |  |  |  Branch (293:4): [True: 84.4k, False: 10.7M]
  |  |  ------------------
  |  |  294|  84.4k|     assert(dynamic_cast<astClass *>(var)); \
  |  |  295|  84.4k|     auto *ast = static_cast<astClass *>(var); \
  |  |  296|  84.4k|     visit(ast); \
  |  |  297|  84.4k|   } break
  ------------------
  |  Branch (314:9): [True: 84.4k, False: 0]
  ------------------
  315|   139k|        VISIT(ast_, AST_FUNCTION, Function);
  ------------------
  |  |  293|   139k|   case astType: { \
  |  |  ------------------
  |  |  |  Branch (293:4): [True: 139k, False: 10.7M]
  |  |  ------------------
  |  |  294|   139k|     assert(dynamic_cast<astClass *>(var)); \
  |  |  295|   139k|     auto *ast = static_cast<astClass *>(var); \
  |  |  296|   139k|     visit(ast); \
  |  |  297|   139k|   } break
  ------------------
  |  Branch (315:9): [True: 139k, False: 0]
  ------------------
  316|  1.99k|        VISIT(ast_, AST_IMPORT, Import);
  ------------------
  |  |  293|  1.99k|   case astType: { \
  |  |  ------------------
  |  |  |  Branch (293:4): [True: 1.99k, False: 10.8M]
  |  |  ------------------
  |  |  294|  1.99k|     assert(dynamic_cast<astClass *>(var)); \
  |  |  295|  1.99k|     auto *ast = static_cast<astClass *>(var); \
  |  |  296|  1.99k|     visit(ast); \
  |  |  297|  1.99k|   } break
  ------------------
  |  Branch (316:9): [True: 1.99k, False: 0]
  ------------------
  317|  4.07k|        VISIT(ast_, AST_IMPORTSTR, Importstr);
  ------------------
  |  |  293|  4.07k|   case astType: { \
  |  |  ------------------
  |  |  |  Branch (293:4): [True: 4.07k, False: 10.8M]
  |  |  ------------------
  |  |  294|  4.07k|     assert(dynamic_cast<astClass *>(var)); \
  |  |  295|  4.07k|     auto *ast = static_cast<astClass *>(var); \
  |  |  296|  4.07k|     visit(ast); \
  |  |  297|  4.07k|   } break
  ------------------
  |  Branch (317:9): [True: 4.07k, False: 0]
  ------------------
  318|  1.62k|        VISIT(ast_, AST_IMPORTBIN, Importbin);
  ------------------
  |  |  293|  1.62k|   case astType: { \
  |  |  ------------------
  |  |  |  Branch (293:4): [True: 1.62k, False: 10.8M]
  |  |  ------------------
  |  |  294|  1.62k|     assert(dynamic_cast<astClass *>(var)); \
  |  |  295|  1.62k|     auto *ast = static_cast<astClass *>(var); \
  |  |  296|  1.62k|     visit(ast); \
  |  |  297|  1.62k|   } break
  ------------------
  |  Branch (318:9): [True: 1.62k, False: 0]
  ------------------
  319|   343k|        VISIT(ast_, AST_INDEX, Index);
  ------------------
  |  |  293|   343k|   case astType: { \
  |  |  ------------------
  |  |  |  Branch (293:4): [True: 343k, False: 10.5M]
  |  |  ------------------
  |  |  294|   343k|     assert(dynamic_cast<astClass *>(var)); \
  |  |  295|   343k|     auto *ast = static_cast<astClass *>(var); \
  |  |  296|   343k|     visit(ast); \
  |  |  297|   343k|   } break
  ------------------
  |  Branch (319:9): [True: 343k, False: 0]
  ------------------
  320|   228k|        VISIT(ast_, AST_IN_SUPER, InSuper);
  ------------------
  |  |  293|   228k|   case astType: { \
  |  |  ------------------
  |  |  |  Branch (293:4): [True: 228k, False: 10.6M]
  |  |  ------------------
  |  |  294|   228k|     assert(dynamic_cast<astClass *>(var)); \
  |  |  295|   228k|     auto *ast = static_cast<astClass *>(var); \
  |  |  296|   228k|     visit(ast); \
  |  |  297|   228k|   } break
  ------------------
  |  Branch (320:9): [True: 228k, False: 0]
  ------------------
  321|  14.6k|        VISIT(ast_, AST_LITERAL_BOOLEAN, LiteralBoolean);
  ------------------
  |  |  293|  14.6k|   case astType: { \
  |  |  ------------------
  |  |  |  Branch (293:4): [True: 14.6k, False: 10.8M]
  |  |  ------------------
  |  |  294|  14.6k|     assert(dynamic_cast<astClass *>(var)); \
  |  |  295|  14.6k|     auto *ast = static_cast<astClass *>(var); \
  |  |  296|  14.6k|     visit(ast); \
  |  |  297|  14.6k|   } break
  ------------------
  |  Branch (321:9): [True: 14.6k, False: 0]
  ------------------
  322|  9.43k|        VISIT(ast_, AST_LITERAL_NULL, LiteralNull);
  ------------------
  |  |  293|  9.43k|   case astType: { \
  |  |  ------------------
  |  |  |  Branch (293:4): [True: 9.43k, False: 10.8M]
  |  |  ------------------
  |  |  294|  9.43k|     assert(dynamic_cast<astClass *>(var)); \
  |  |  295|  9.43k|     auto *ast = static_cast<astClass *>(var); \
  |  |  296|  9.43k|     visit(ast); \
  |  |  297|  9.43k|   } break
  ------------------
  |  Branch (322:9): [True: 9.43k, False: 0]
  ------------------
  323|   539k|        VISIT(ast_, AST_LITERAL_NUMBER, LiteralNumber);
  ------------------
  |  |  293|   539k|   case astType: { \
  |  |  ------------------
  |  |  |  Branch (293:4): [True: 539k, False: 10.3M]
  |  |  ------------------
  |  |  294|   539k|     assert(dynamic_cast<astClass *>(var)); \
  |  |  295|   539k|     auto *ast = static_cast<astClass *>(var); \
  |  |  296|   539k|     visit(ast); \
  |  |  297|   539k|   } break
  ------------------
  |  Branch (323:9): [True: 539k, False: 0]
  ------------------
  324|  1.72M|        VISIT(ast_, AST_LITERAL_STRING, LiteralString);
  ------------------
  |  |  293|  1.72M|   case astType: { \
  |  |  ------------------
  |  |  |  Branch (293:4): [True: 1.72M, False: 9.16M]
  |  |  ------------------
  |  |  294|  1.72M|     assert(dynamic_cast<astClass *>(var)); \
  |  |  295|  1.72M|     auto *ast = static_cast<astClass *>(var); \
  |  |  296|  1.72M|     visit(ast); \
  |  |  297|  1.72M|   } break
  ------------------
  |  Branch (324:9): [True: 1.72M, False: 0]
  ------------------
  325|   306k|        VISIT(ast_, AST_LOCAL, Local);
  ------------------
  |  |  293|   306k|   case astType: { \
  |  |  ------------------
  |  |  |  Branch (293:4): [True: 306k, False: 10.5M]
  |  |  ------------------
  |  |  294|   306k|     assert(dynamic_cast<astClass *>(var)); \
  |  |  295|   306k|     auto *ast = static_cast<astClass *>(var); \
  |  |  296|   306k|     visit(ast); \
  |  |  297|   306k|   } break
  ------------------
  |  Branch (325:9): [True: 306k, False: 0]
  ------------------
  326|      0|        VISIT(ast_, AST_OBJECT, Object);
  ------------------
  |  |  293|      0|   case astType: { \
  |  |  ------------------
  |  |  |  Branch (293:4): [True: 0, False: 10.8M]
  |  |  ------------------
  |  |  294|      0|     assert(dynamic_cast<astClass *>(var)); \
  |  |  295|      0|     auto *ast = static_cast<astClass *>(var); \
  |  |  296|      0|     visit(ast); \
  |  |  297|      0|   } break
  ------------------
  |  Branch (326:9): [True: 0, False: 0]
  ------------------
  327|      0|        VISIT(ast_, AST_OBJECT_COMPREHENSION, ObjectComprehension);
  ------------------
  |  |  293|      0|   case astType: { \
  |  |  ------------------
  |  |  |  Branch (293:4): [True: 0, False: 10.8M]
  |  |  ------------------
  |  |  294|      0|     assert(dynamic_cast<astClass *>(var)); \
  |  |  295|      0|     auto *ast = static_cast<astClass *>(var); \
  |  |  296|      0|     visit(ast); \
  |  |  297|      0|   } break
  ------------------
  |  Branch (327:9): [True: 0, False: 0]
  ------------------
  328|  30.5k|        VISIT(ast_, AST_OBJECT_COMPREHENSION_SIMPLE, ObjectComprehensionSimple);
  ------------------
  |  |  293|  30.5k|   case astType: { \
  |  |  ------------------
  |  |  |  Branch (293:4): [True: 30.5k, False: 10.8M]
  |  |  ------------------
  |  |  294|  30.5k|     assert(dynamic_cast<astClass *>(var)); \
  |  |  295|  30.5k|     auto *ast = static_cast<astClass *>(var); \
  |  |  296|  30.5k|     visit(ast); \
  |  |  297|  30.5k|   } break
  ------------------
  |  Branch (328:9): [True: 30.5k, False: 0]
  ------------------
  329|      0|        VISIT(ast_, AST_PARENS, Parens);
  ------------------
  |  |  293|      0|   case astType: { \
  |  |  ------------------
  |  |  |  Branch (293:4): [True: 0, False: 10.8M]
  |  |  ------------------
  |  |  294|      0|     assert(dynamic_cast<astClass *>(var)); \
  |  |  295|      0|     auto *ast = static_cast<astClass *>(var); \
  |  |  296|      0|     visit(ast); \
  |  |  297|      0|   } break
  ------------------
  |  Branch (329:9): [True: 0, False: 0]
  ------------------
  330|  9.31k|        VISIT(ast_, AST_SELF, Self);
  ------------------
  |  |  293|  9.31k|   case astType: { \
  |  |  ------------------
  |  |  |  Branch (293:4): [True: 9.31k, False: 10.8M]
  |  |  ------------------
  |  |  294|  9.31k|     assert(dynamic_cast<astClass *>(var)); \
  |  |  295|  9.31k|     auto *ast = static_cast<astClass *>(var); \
  |  |  296|  9.31k|     visit(ast); \
  |  |  297|  9.31k|   } break
  ------------------
  |  Branch (330:9): [True: 9.31k, False: 0]
  ------------------
  331|   230k|        VISIT(ast_, AST_SUPER_INDEX, SuperIndex);
  ------------------
  |  |  293|   230k|   case astType: { \
  |  |  ------------------
  |  |  |  Branch (293:4): [True: 230k, False: 10.6M]
  |  |  ------------------
  |  |  294|   230k|     assert(dynamic_cast<astClass *>(var)); \
  |  |  295|   230k|     auto *ast = static_cast<astClass *>(var); \
  |  |  296|   230k|     visit(ast); \
  |  |  297|   230k|   } break
  ------------------
  |  Branch (331:9): [True: 230k, False: 0]
  ------------------
  332|  1.21M|        VISIT(ast_, AST_UNARY, Unary);
  ------------------
  |  |  293|  1.21M|   case astType: { \
  |  |  ------------------
  |  |  |  Branch (293:4): [True: 1.21M, False: 9.67M]
  |  |  ------------------
  |  |  294|  1.21M|     assert(dynamic_cast<astClass *>(var)); \
  |  |  295|  1.21M|     auto *ast = static_cast<astClass *>(var); \
  |  |  296|  1.21M|     visit(ast); \
  |  |  297|  1.21M|   } break
  ------------------
  |  Branch (332:9): [True: 1.21M, False: 0]
  ------------------
  333|  3.03M|        VISIT(ast_, AST_VAR, Var);
  ------------------
  |  |  293|  3.03M|   case astType: { \
  |  |  ------------------
  |  |  |  Branch (293:4): [True: 3.03M, False: 7.84M]
  |  |  ------------------
  |  |  294|  3.03M|     assert(dynamic_cast<astClass *>(var)); \
  |  |  295|  3.03M|     auto *ast = static_cast<astClass *>(var); \
  |  |  296|  3.03M|     visit(ast); \
  |  |  297|  3.03M|   } break
  ------------------
  |  Branch (333:9): [True: 3.03M, False: 0]
  ------------------
  334|      0|        default:
  ------------------
  |  Branch (334:9): [True: 0, False: 10.8M]
  ------------------
  335|      0|            std::cerr << "INTERNAL ERROR: Unknown AST: " << ast_ << std::endl;
  336|      0|            std::abort();
  337|      0|            break;
  338|  10.8M|    }
  339|  10.8M|}
_ZN7jsonnet8internal9ClonePass4exprERPNS0_3ASTE:
  362|  9.72M|{
  363|  9.72M|    switch(ast_->type) {
  364|   267k|        CLONE(ast_, AST_APPLY, Apply);
  ------------------
  |  |  355|   267k|   case astType: { \
  |  |  ------------------
  |  |  |  Branch (355:4): [True: 267k, False: 9.45M]
  |  |  ------------------
  |  |  356|   267k|     assert(dynamic_cast<astClass *>(var)); \
  |  |  357|   267k|     auto *ast = static_cast<astClass *>(var); \
  |  |  358|   267k|     var = alloc.clone(ast); \
  |  |  359|   267k|   } break
  ------------------
  |  Branch (364:9): [True: 267k, False: 0]
  ------------------
  365|      0|        CLONE(ast_, AST_APPLY_BRACE, ApplyBrace);
  ------------------
  |  |  355|      0|   case astType: { \
  |  |  ------------------
  |  |  |  Branch (355:4): [True: 0, False: 9.72M]
  |  |  ------------------
  |  |  356|      0|     assert(dynamic_cast<astClass *>(var)); \
  |  |  357|      0|     auto *ast = static_cast<astClass *>(var); \
  |  |  358|      0|     var = alloc.clone(ast); \
  |  |  359|      0|   } break
  ------------------
  |  Branch (365:9): [True: 0, False: 0]
  ------------------
  366|   159k|        CLONE(ast_, AST_ARRAY, Array);
  ------------------
  |  |  355|   159k|   case astType: { \
  |  |  ------------------
  |  |  |  Branch (355:4): [True: 159k, False: 9.56M]
  |  |  ------------------
  |  |  356|   159k|     assert(dynamic_cast<astClass *>(var)); \
  |  |  357|   159k|     auto *ast = static_cast<astClass *>(var); \
  |  |  358|   159k|     var = alloc.clone(ast); \
  |  |  359|   159k|   } break
  ------------------
  |  Branch (366:9): [True: 159k, False: 0]
  ------------------
  367|      0|        CLONE(ast_, AST_ARRAY_COMPREHENSION, ArrayComprehension);
  ------------------
  |  |  355|      0|   case astType: { \
  |  |  ------------------
  |  |  |  Branch (355:4): [True: 0, False: 9.72M]
  |  |  ------------------
  |  |  356|      0|     assert(dynamic_cast<astClass *>(var)); \
  |  |  357|      0|     auto *ast = static_cast<astClass *>(var); \
  |  |  358|      0|     var = alloc.clone(ast); \
  |  |  359|      0|   } break
  ------------------
  |  Branch (367:9): [True: 0, False: 0]
  ------------------
  368|       |        // CLONE(ast_, AST_ARRAY_COMPREHENSION, ArrayComprehensionSimple);
  369|      0|        CLONE(ast_, AST_ASSERT, Assert);
  ------------------
  |  |  355|      0|   case astType: { \
  |  |  ------------------
  |  |  |  Branch (355:4): [True: 0, False: 9.72M]
  |  |  ------------------
  |  |  356|      0|     assert(dynamic_cast<astClass *>(var)); \
  |  |  357|      0|     auto *ast = static_cast<astClass *>(var); \
  |  |  358|      0|     var = alloc.clone(ast); \
  |  |  359|      0|   } break
  ------------------
  |  Branch (369:9): [True: 0, False: 0]
  ------------------
  370|   832k|        CLONE(ast_, AST_BINARY, Binary);
  ------------------
  |  |  355|   832k|   case astType: { \
  |  |  ------------------
  |  |  |  Branch (355:4): [True: 832k, False: 8.89M]
  |  |  ------------------
  |  |  356|   832k|     assert(dynamic_cast<astClass *>(var)); \
  |  |  357|   832k|     auto *ast = static_cast<astClass *>(var); \
  |  |  358|   832k|     var = alloc.clone(ast); \
  |  |  359|   832k|   } break
  ------------------
  |  Branch (370:9): [True: 832k, False: 0]
  ------------------
  371|      0|        CLONE(ast_, AST_BUILTIN_FUNCTION, BuiltinFunction);
  ------------------
  |  |  355|      0|   case astType: { \
  |  |  ------------------
  |  |  |  Branch (355:4): [True: 0, False: 9.72M]
  |  |  ------------------
  |  |  356|      0|     assert(dynamic_cast<astClass *>(var)); \
  |  |  357|      0|     auto *ast = static_cast<astClass *>(var); \
  |  |  358|      0|     var = alloc.clone(ast); \
  |  |  359|      0|   } break
  ------------------
  |  Branch (371:9): [True: 0, False: 0]
  ------------------
  372|   496k|        CLONE(ast_, AST_CONDITIONAL, Conditional);
  ------------------
  |  |  355|   496k|   case astType: { \
  |  |  ------------------
  |  |  |  Branch (355:4): [True: 496k, False: 9.22M]
  |  |  ------------------
  |  |  356|   496k|     assert(dynamic_cast<astClass *>(var)); \
  |  |  357|   496k|     auto *ast = static_cast<astClass *>(var); \
  |  |  358|   496k|     var = alloc.clone(ast); \
  |  |  359|   496k|   } break
  ------------------
  |  Branch (372:9): [True: 496k, False: 0]
  ------------------
  373|   929k|        CLONE(ast_, AST_DESUGARED_OBJECT, DesugaredObject);
  ------------------
  |  |  355|   929k|   case astType: { \
  |  |  ------------------
  |  |  |  Branch (355:4): [True: 929k, False: 8.79M]
  |  |  ------------------
  |  |  356|   929k|     assert(dynamic_cast<astClass *>(var)); \
  |  |  357|   929k|     auto *ast = static_cast<astClass *>(var); \
  |  |  358|   929k|     var = alloc.clone(ast); \
  |  |  359|   929k|   } break
  ------------------
  |  Branch (373:9): [True: 929k, False: 0]
  ------------------
  374|      0|        CLONE(ast_, AST_DOLLAR, Dollar);
  ------------------
  |  |  355|      0|   case astType: { \
  |  |  ------------------
  |  |  |  Branch (355:4): [True: 0, False: 9.72M]
  |  |  ------------------
  |  |  356|      0|     assert(dynamic_cast<astClass *>(var)); \
  |  |  357|      0|     auto *ast = static_cast<astClass *>(var); \
  |  |  358|      0|     var = alloc.clone(ast); \
  |  |  359|      0|   } break
  ------------------
  |  Branch (374:9): [True: 0, False: 0]
  ------------------
  375|  75.4k|        CLONE(ast_, AST_ERROR, Error);
  ------------------
  |  |  355|  75.4k|   case astType: { \
  |  |  ------------------
  |  |  |  Branch (355:4): [True: 75.4k, False: 9.64M]
  |  |  ------------------
  |  |  356|  75.4k|     assert(dynamic_cast<astClass *>(var)); \
  |  |  357|  75.4k|     auto *ast = static_cast<astClass *>(var); \
  |  |  358|  75.4k|     var = alloc.clone(ast); \
  |  |  359|  75.4k|   } break
  ------------------
  |  Branch (375:9): [True: 75.4k, False: 0]
  ------------------
  376|   116k|        CLONE(ast_, AST_FUNCTION, Function);
  ------------------
  |  |  355|   116k|   case astType: { \
  |  |  ------------------
  |  |  |  Branch (355:4): [True: 116k, False: 9.60M]
  |  |  ------------------
  |  |  356|   116k|     assert(dynamic_cast<astClass *>(var)); \
  |  |  357|   116k|     auto *ast = static_cast<astClass *>(var); \
  |  |  358|   116k|     var = alloc.clone(ast); \
  |  |  359|   116k|   } break
  ------------------
  |  Branch (376:9): [True: 116k, False: 0]
  ------------------
  377|  1.76k|        CLONE(ast_, AST_IMPORT, Import);
  ------------------
  |  |  355|  1.76k|   case astType: { \
  |  |  ------------------
  |  |  |  Branch (355:4): [True: 1.76k, False: 9.72M]
  |  |  ------------------
  |  |  356|  1.76k|     assert(dynamic_cast<astClass *>(var)); \
  |  |  357|  1.76k|     auto *ast = static_cast<astClass *>(var); \
  |  |  358|  1.76k|     var = alloc.clone(ast); \
  |  |  359|  1.76k|   } break
  ------------------
  |  Branch (377:9): [True: 1.76k, False: 0]
  ------------------
  378|  3.24k|        CLONE(ast_, AST_IMPORTSTR, Importstr);
  ------------------
  |  |  355|  3.24k|   case astType: { \
  |  |  ------------------
  |  |  |  Branch (355:4): [True: 3.24k, False: 9.72M]
  |  |  ------------------
  |  |  356|  3.24k|     assert(dynamic_cast<astClass *>(var)); \
  |  |  357|  3.24k|     auto *ast = static_cast<astClass *>(var); \
  |  |  358|  3.24k|     var = alloc.clone(ast); \
  |  |  359|  3.24k|   } break
  ------------------
  |  Branch (378:9): [True: 3.24k, False: 0]
  ------------------
  379|  1.09k|        CLONE(ast_, AST_IMPORTBIN, Importbin);
  ------------------
  |  |  355|  1.09k|   case astType: { \
  |  |  ------------------
  |  |  |  Branch (355:4): [True: 1.09k, False: 9.72M]
  |  |  ------------------
  |  |  356|  1.09k|     assert(dynamic_cast<astClass *>(var)); \
  |  |  357|  1.09k|     auto *ast = static_cast<astClass *>(var); \
  |  |  358|  1.09k|     var = alloc.clone(ast); \
  |  |  359|  1.09k|   } break
  ------------------
  |  Branch (379:9): [True: 1.09k, False: 0]
  ------------------
  380|   300k|        CLONE(ast_, AST_INDEX, Index);
  ------------------
  |  |  355|   300k|   case astType: { \
  |  |  ------------------
  |  |  |  Branch (355:4): [True: 300k, False: 9.42M]
  |  |  ------------------
  |  |  356|   300k|     assert(dynamic_cast<astClass *>(var)); \
  |  |  357|   300k|     auto *ast = static_cast<astClass *>(var); \
  |  |  358|   300k|     var = alloc.clone(ast); \
  |  |  359|   300k|   } break
  ------------------
  |  Branch (380:9): [True: 300k, False: 0]
  ------------------
  381|   228k|        CLONE(ast_, AST_IN_SUPER, InSuper);
  ------------------
  |  |  355|   228k|   case astType: { \
  |  |  ------------------
  |  |  |  Branch (355:4): [True: 228k, False: 9.49M]
  |  |  ------------------
  |  |  356|   228k|     assert(dynamic_cast<astClass *>(var)); \
  |  |  357|   228k|     auto *ast = static_cast<astClass *>(var); \
  |  |  358|   228k|     var = alloc.clone(ast); \
  |  |  359|   228k|   } break
  ------------------
  |  Branch (381:9): [True: 228k, False: 0]
  ------------------
  382|  13.8k|        CLONE(ast_, AST_LITERAL_BOOLEAN, LiteralBoolean);
  ------------------
  |  |  355|  13.8k|   case astType: { \
  |  |  ------------------
  |  |  |  Branch (355:4): [True: 13.8k, False: 9.71M]
  |  |  ------------------
  |  |  356|  13.8k|     assert(dynamic_cast<astClass *>(var)); \
  |  |  357|  13.8k|     auto *ast = static_cast<astClass *>(var); \
  |  |  358|  13.8k|     var = alloc.clone(ast); \
  |  |  359|  13.8k|   } break
  ------------------
  |  Branch (382:9): [True: 13.8k, False: 0]
  ------------------
  383|  7.35k|        CLONE(ast_, AST_LITERAL_NULL, LiteralNull);
  ------------------
  |  |  355|  7.35k|   case astType: { \
  |  |  ------------------
  |  |  |  Branch (355:4): [True: 7.35k, False: 9.71M]
  |  |  ------------------
  |  |  356|  7.35k|     assert(dynamic_cast<astClass *>(var)); \
  |  |  357|  7.35k|     auto *ast = static_cast<astClass *>(var); \
  |  |  358|  7.35k|     var = alloc.clone(ast); \
  |  |  359|  7.35k|   } break
  ------------------
  |  Branch (383:9): [True: 7.35k, False: 0]
  ------------------
  384|   469k|        CLONE(ast_, AST_LITERAL_NUMBER, LiteralNumber);
  ------------------
  |  |  355|   469k|   case astType: { \
  |  |  ------------------
  |  |  |  Branch (355:4): [True: 469k, False: 9.25M]
  |  |  ------------------
  |  |  356|   469k|     assert(dynamic_cast<astClass *>(var)); \
  |  |  357|   469k|     auto *ast = static_cast<astClass *>(var); \
  |  |  358|   469k|     var = alloc.clone(ast); \
  |  |  359|   469k|   } break
  ------------------
  |  Branch (384:9): [True: 469k, False: 0]
  ------------------
  385|  1.58M|        CLONE(ast_, AST_LITERAL_STRING, LiteralString);
  ------------------
  |  |  355|  1.58M|   case astType: { \
  |  |  ------------------
  |  |  |  Branch (355:4): [True: 1.58M, False: 8.14M]
  |  |  ------------------
  |  |  356|  1.58M|     assert(dynamic_cast<astClass *>(var)); \
  |  |  357|  1.58M|     auto *ast = static_cast<astClass *>(var); \
  |  |  358|  1.58M|     var = alloc.clone(ast); \
  |  |  359|  1.58M|   } break
  ------------------
  |  Branch (385:9): [True: 1.58M, False: 0]
  ------------------
  386|   288k|        CLONE(ast_, AST_LOCAL, Local);
  ------------------
  |  |  355|   288k|   case astType: { \
  |  |  ------------------
  |  |  |  Branch (355:4): [True: 288k, False: 9.43M]
  |  |  ------------------
  |  |  356|   288k|     assert(dynamic_cast<astClass *>(var)); \
  |  |  357|   288k|     auto *ast = static_cast<astClass *>(var); \
  |  |  358|   288k|     var = alloc.clone(ast); \
  |  |  359|   288k|   } break
  ------------------
  |  Branch (386:9): [True: 288k, False: 0]
  ------------------
  387|      0|        CLONE(ast_, AST_OBJECT, Object);
  ------------------
  |  |  355|      0|   case astType: { \
  |  |  ------------------
  |  |  |  Branch (355:4): [True: 0, False: 9.72M]
  |  |  ------------------
  |  |  356|      0|     assert(dynamic_cast<astClass *>(var)); \
  |  |  357|      0|     auto *ast = static_cast<astClass *>(var); \
  |  |  358|      0|     var = alloc.clone(ast); \
  |  |  359|      0|   } break
  ------------------
  |  Branch (387:9): [True: 0, False: 0]
  ------------------
  388|      0|        CLONE(ast_, AST_OBJECT_COMPREHENSION, ObjectComprehension);
  ------------------
  |  |  355|      0|   case astType: { \
  |  |  ------------------
  |  |  |  Branch (355:4): [True: 0, False: 9.72M]
  |  |  ------------------
  |  |  356|      0|     assert(dynamic_cast<astClass *>(var)); \
  |  |  357|      0|     auto *ast = static_cast<astClass *>(var); \
  |  |  358|      0|     var = alloc.clone(ast); \
  |  |  359|      0|   } break
  ------------------
  |  Branch (388:9): [True: 0, False: 0]
  ------------------
  389|  26.2k|        CLONE(ast_, AST_OBJECT_COMPREHENSION_SIMPLE, ObjectComprehensionSimple);
  ------------------
  |  |  355|  26.2k|   case astType: { \
  |  |  ------------------
  |  |  |  Branch (355:4): [True: 26.2k, False: 9.69M]
  |  |  ------------------
  |  |  356|  26.2k|     assert(dynamic_cast<astClass *>(var)); \
  |  |  357|  26.2k|     auto *ast = static_cast<astClass *>(var); \
  |  |  358|  26.2k|     var = alloc.clone(ast); \
  |  |  359|  26.2k|   } break
  ------------------
  |  Branch (389:9): [True: 26.2k, False: 0]
  ------------------
  390|      0|        CLONE(ast_, AST_PARENS, Parens);
  ------------------
  |  |  355|      0|   case astType: { \
  |  |  ------------------
  |  |  |  Branch (355:4): [True: 0, False: 9.72M]
  |  |  ------------------
  |  |  356|      0|     assert(dynamic_cast<astClass *>(var)); \
  |  |  357|      0|     auto *ast = static_cast<astClass *>(var); \
  |  |  358|      0|     var = alloc.clone(ast); \
  |  |  359|      0|   } break
  ------------------
  |  Branch (390:9): [True: 0, False: 0]
  ------------------
  391|  9.31k|        CLONE(ast_, AST_SELF, Self);
  ------------------
  |  |  355|  9.31k|   case astType: { \
  |  |  ------------------
  |  |  |  Branch (355:4): [True: 9.31k, False: 9.71M]
  |  |  ------------------
  |  |  356|  9.31k|     assert(dynamic_cast<astClass *>(var)); \
  |  |  357|  9.31k|     auto *ast = static_cast<astClass *>(var); \
  |  |  358|  9.31k|     var = alloc.clone(ast); \
  |  |  359|  9.31k|   } break
  ------------------
  |  Branch (391:9): [True: 9.31k, False: 0]
  ------------------
  392|   230k|        CLONE(ast_, AST_SUPER_INDEX, SuperIndex);
  ------------------
  |  |  355|   230k|   case astType: { \
  |  |  ------------------
  |  |  |  Branch (355:4): [True: 230k, False: 9.49M]
  |  |  ------------------
  |  |  356|   230k|     assert(dynamic_cast<astClass *>(var)); \
  |  |  357|   230k|     auto *ast = static_cast<astClass *>(var); \
  |  |  358|   230k|     var = alloc.clone(ast); \
  |  |  359|   230k|   } break
  ------------------
  |  Branch (392:9): [True: 230k, False: 0]
  ------------------
  393|  1.05M|        CLONE(ast_, AST_UNARY, Unary);
  ------------------
  |  |  355|  1.05M|   case astType: { \
  |  |  ------------------
  |  |  |  Branch (355:4): [True: 1.05M, False: 8.67M]
  |  |  ------------------
  |  |  356|  1.05M|     assert(dynamic_cast<astClass *>(var)); \
  |  |  357|  1.05M|     auto *ast = static_cast<astClass *>(var); \
  |  |  358|  1.05M|     var = alloc.clone(ast); \
  |  |  359|  1.05M|   } break
  ------------------
  |  Branch (393:9): [True: 1.05M, False: 0]
  ------------------
  394|  2.63M|        CLONE(ast_, AST_VAR, Var);
  ------------------
  |  |  355|  2.63M|   case astType: { \
  |  |  ------------------
  |  |  |  Branch (355:4): [True: 2.63M, False: 7.09M]
  |  |  ------------------
  |  |  356|  2.63M|     assert(dynamic_cast<astClass *>(var)); \
  |  |  357|  2.63M|     auto *ast = static_cast<astClass *>(var); \
  |  |  358|  2.63M|     var = alloc.clone(ast); \
  |  |  359|  2.63M|   } break
  ------------------
  |  Branch (394:9): [True: 2.63M, False: 0]
  ------------------
  395|      0|        default:
  ------------------
  |  Branch (395:9): [True: 0, False: 9.72M]
  ------------------
  396|      0|            std::cerr << "INTERNAL ERROR: Unknown AST: " << ast_ << std::endl;
  397|      0|            std::abort();
  398|      0|            break;
  399|  9.72M|    }
  400|       |
  401|  9.72M|    CompilerPass::expr(ast_);
  402|  9.72M|}
_ZN7jsonnet8internal9clone_astERNS0_9AllocatorEPNS0_3ASTE:
  405|  40.5k|{
  406|  40.5k|    AST *r = ast;
  407|  40.5k|    ClonePass(alloc).expr(r);
  408|  40.5k|    return r;
  409|  40.5k|}
_ZN7jsonnet8internal9ClonePassC2ERNS0_9AllocatorE:
  350|  40.5k|    ClonePass(Allocator &alloc) : CompilerPass(alloc) {}

_ZN7jsonnet8internal12CompilerPassC2ERNS0_9AllocatorE:
   32|  54.0k|    CompilerPass(Allocator &alloc) : alloc(alloc) {}
_ZN7jsonnet8internal12CompilerPass13fodderElementERNS0_13FodderElementE:
   34|   149k|    virtual void fodderElement(FodderElement &) {}
_ZN7jsonnet8internal12CompilerPass5visitEPNS0_14LiteralBooleanE:
   84|  14.6k|    virtual void visit(LiteralBoolean *) {}
_ZN7jsonnet8internal12CompilerPass5visitEPNS0_13LiteralNumberE:
   86|   539k|    virtual void visit(LiteralNumber *) {}
_ZN7jsonnet8internal12CompilerPass5visitEPNS0_11LiteralNullE:
   90|  9.43k|    virtual void visit(LiteralNull *) {}
_ZN7jsonnet8internal12CompilerPass5visitEPNS0_4SelfE:
  102|  9.31k|    virtual void visit(Self *) {}
_ZN7jsonnet8internal12CompilerPass5visitEPNS0_3VarE:
  108|  3.03M|    virtual void visit(Var *) {}
_ZN7jsonnet8internal12CompilerPass5visitEPNS0_13LiteralStringE:
   88|  1.72M|    virtual void visit(LiteralString *) {}

_ZN7jsonnet8internal32path_dir_with_trailing_separatorERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
   31|     50|std::string path_dir_with_trailing_separator(const std::string &path) {
   32|     50|    size_t last_slash = path.find_last_of(DIR_SEPARATORS);
   33|     50|    if (last_slash != std::string::npos) {
  ------------------
  |  Branch (33:9): [True: 0, False: 50]
  ------------------
   34|      0|        return path.substr(0, last_slash + 1);
   35|      0|    }
   36|     50|    return "";
   37|     50|}

vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_14HeapC2Ejd:
  346|  3.48k|        : gcTuneMinObjects(gc_tune_min_objects),
  347|  3.48k|          gcTuneGrowthTrigger(gc_tune_growth_trigger),
  348|  3.48k|          lastMark(0),
  349|  3.48k|          lastNumEntities(0),
  350|  3.48k|          numEntities(0)
  351|  3.48k|    {
  352|  3.48k|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_18type_strENS1_5Value4TypeE:
   76|  1.31k|{
   77|  1.31k|    switch (t) {
   78|      3|        case Value::NULL_TYPE: return "null";
  ------------------
  |  Branch (78:9): [True: 3, False: 1.31k]
  ------------------
   79|    234|        case Value::BOOLEAN: return "boolean";
  ------------------
  |  Branch (79:9): [True: 234, False: 1.08k]
  ------------------
   80|    281|        case Value::NUMBER: return "number";
  ------------------
  |  Branch (80:9): [True: 281, False: 1.03k]
  ------------------
   81|     81|        case Value::ARRAY: return "array";
  ------------------
  |  Branch (81:9): [True: 81, False: 1.23k]
  ------------------
   82|      2|        case Value::FUNCTION: return "function";
  ------------------
  |  Branch (82:9): [True: 2, False: 1.31k]
  ------------------
   83|    157|        case Value::OBJECT: return "object";
  ------------------
  |  Branch (83:9): [True: 157, False: 1.15k]
  ------------------
   84|    556|        case Value::STRING: return "string";
  ------------------
  |  Branch (84:9): [True: 556, False: 758]
  ------------------
   85|      0|        default:
  ------------------
  |  Branch (85:9): [True: 0, False: 1.31k]
  ------------------
   86|      0|            std::cerr << "INTERNAL ERROR: Unknown type: " << t << std::endl;
   87|      0|            std::abort();
   88|      0|            return "";  // Quiet, compiler.
   89|  1.31k|    }
   90|  1.31k|}
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_18type_strERKNS1_5ValueE:
   94|    428|{
   95|    428|    return type_str(v.t);
   96|    428|}
vm.cpp:_ZNK7jsonnet8internal12_GLOBAL__N_15Value6isHeapEv:
   69|  51.5M|    {
   70|  51.5M|        return t & 0x10;
   71|  51.5M|    }
vm.cpp:_ZNK7jsonnet8internal12_GLOBAL__N_111HeapClosure9isBuiltinEv:
  293|  23.6M|    bool isBuiltin() const { return !this->body || this->body->type == AST_BUILTIN_FUNCTION_BODY; }
  ------------------
  |  Branch (293:37): [True: 0, False: 23.6M]
  |  Branch (293:52): [True: 17.5M, False: 6.06M]
  ------------------
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_19HeapThunkC2EPKNS0_10IdentifierEPNS1_10HeapObjectEjPKNS0_3ASTE:
  140|  39.7M|        : HeapEntity(THUNK), filled(false), name(name), self(self), offset(offset), body(body)
  141|  39.7M|    {
  142|  39.7M|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_110HeapEntityC2ENS2_4TypeE:
   43|  83.8M|    HeapEntity(Type type_) : type(type_) {}
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_110HeapEntityD2Ev:
   44|  83.8M|    virtual ~HeapEntity() {}
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_14Heap9checkHeapEv:
  489|  83.8M|    {
  490|  83.8M|        return numEntities > gcTuneMinObjects &&
  ------------------
  |  Branch (490:16): [True: 33.5M, False: 50.3M]
  ------------------
  491|  33.5M|               numEntities > gcTuneGrowthTrigger * lastNumEntities;
  ------------------
  |  Branch (491:16): [True: 95.3k, False: 33.4M]
  ------------------
  492|  83.8M|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_14Heap8markFromEPNS1_10HeapEntityE:
  369|  82.1M|    {
  370|  82.1M|        assert(from != nullptr);
  ------------------
  |  Branch (370:9): [True: 82.1M, False: 0]
  ------------------
  371|  82.1M|        const GarbageCollectionMark thisMark = lastMark + 1;
  372|  82.1M|        struct State {
  373|  82.1M|            HeapEntity *ent;
  374|  82.1M|            std::vector<HeapEntity *> children;
  375|  82.1M|            State(HeapEntity *ent) : ent(ent) {}
  376|  82.1M|        };
  377|       |
  378|  82.1M|        std::vector<State> stack;
  379|  82.1M|        stack.emplace_back(from);
  380|       |
  381|   335M|        while (stack.size() > 0) {
  ------------------
  |  Branch (381:16): [True: 253M, False: 82.1M]
  ------------------
  382|   253M|            size_t curr_index = stack.size() - 1;
  383|   253M|            State &s = stack[curr_index];
  384|   253M|            HeapEntity *curr = s.ent;
  385|   253M|            if (curr->mark != thisMark) {
  ------------------
  |  Branch (385:17): [True: 65.0M, False: 188M]
  ------------------
  386|  65.0M|                curr->mark = thisMark;
  387|       |
  388|  65.0M|                switch(curr->type) {
  389|  10.3M|                    case HeapEntity::SIMPLE_OBJECT: {
  ------------------
  |  Branch (389:21): [True: 10.3M, False: 54.7M]
  ------------------
  390|  10.3M|                        assert(dynamic_cast<HeapSimpleObject *>(curr));
  ------------------
  |  Branch (390:25): [True: 10.3M, False: 0]
  ------------------
  391|  10.3M|                        auto *obj = static_cast<HeapSimpleObject *>(curr);
  392|  10.3M|                        for (auto upv : obj->upValues)
  ------------------
  |  Branch (392:39): [True: 8.22M, False: 10.3M]
  ------------------
  393|  8.22M|                            addIfHeapEntity(upv.second, s.children);
  394|  10.3M|                        break;
  395|  10.3M|                    }
  396|  6.97M|                    case HeapEntity::EXTENDED_OBJECT: {
  ------------------
  |  Branch (396:21): [True: 6.97M, False: 58.0M]
  ------------------
  397|  6.97M|                        assert(dynamic_cast<HeapExtendedObject *>(curr));
  ------------------
  |  Branch (397:25): [True: 6.97M, False: 0]
  ------------------
  398|  6.97M|                        auto *obj = static_cast<HeapExtendedObject *>(curr);
  399|  6.97M|                        addIfHeapEntity(obj->left, s.children);
  400|  6.97M|                        addIfHeapEntity(obj->right, s.children);
  401|  6.97M|                        break;
  402|  6.97M|                    }
  403|      0|                    case HeapEntity::RESTRICTED_OBJECT: {
  ------------------
  |  Branch (403:21): [True: 0, False: 65.0M]
  ------------------
  404|      0|                        assert(dynamic_cast<HeapRestrictedObject *>(curr));
  ------------------
  |  Branch (404:25): [True: 0, False: 0]
  ------------------
  405|      0|                        auto *obj = static_cast<HeapRestrictedObject *>(curr);
  406|      0|                        addIfHeapEntity(obj->obj, s.children);
  407|      0|                        break;
  408|      0|                    }
  409|      0|                    case HeapEntity::COMPREHENSION_OBJECT: {
  ------------------
  |  Branch (409:21): [True: 0, False: 65.0M]
  ------------------
  410|      0|                        assert(dynamic_cast<HeapComprehensionObject *>(curr));
  ------------------
  |  Branch (410:25): [True: 0, False: 0]
  ------------------
  411|      0|                        auto *obj = static_cast<HeapComprehensionObject *>(curr);
  412|      0|                        for (auto upv : obj->upValues)
  ------------------
  |  Branch (412:39): [True: 0, False: 0]
  ------------------
  413|      0|                            addIfHeapEntity(upv.second, s.children);
  414|      0|                        for (auto upv : obj->compValues)
  ------------------
  |  Branch (414:39): [True: 0, False: 0]
  ------------------
  415|      0|                            addIfHeapEntity(upv.second, s.children);
  416|      0|                        break;
  417|      0|                    }
  418|  1.96M|                    case HeapEntity::ARRAY: {
  ------------------
  |  Branch (418:21): [True: 1.96M, False: 63.0M]
  ------------------
  419|  1.96M|                        assert(dynamic_cast<HeapArray *>(curr));
  ------------------
  |  Branch (419:25): [True: 1.96M, False: 0]
  ------------------
  420|  1.96M|                        auto *arr = static_cast<HeapArray *>(curr);
  421|  1.96M|                        for (auto el : arr->elements)
  ------------------
  |  Branch (421:38): [True: 14.0M, False: 1.96M]
  ------------------
  422|  14.0M|                            addIfHeapEntity(el, s.children);
  423|  1.96M|                        break;
  424|  1.96M|                    }
  425|  1.50M|                    case HeapEntity::CLOSURE: {
  ------------------
  |  Branch (425:21): [True: 1.50M, False: 63.5M]
  ------------------
  426|  1.50M|                        assert(dynamic_cast<HeapClosure *>(curr));
  ------------------
  |  Branch (426:25): [True: 1.50M, False: 0]
  ------------------
  427|  1.50M|                        auto *func = static_cast<HeapClosure *>(curr);
  428|  1.50M|                        for (auto upv : func->upValues)
  ------------------
  |  Branch (428:39): [True: 3.36M, False: 1.50M]
  ------------------
  429|  3.36M|                            addIfHeapEntity(upv.second, s.children);
  430|  1.50M|                        if (func->self)
  ------------------
  |  Branch (430:29): [True: 1.30M, False: 197k]
  ------------------
  431|  1.30M|                            addIfHeapEntity(func->self, s.children);
  432|  1.50M|                        break;
  433|  1.50M|                    }
  434|  43.1M|                    case HeapEntity::THUNK: {
  ------------------
  |  Branch (434:21): [True: 43.1M, False: 21.9M]
  ------------------
  435|  43.1M|                        assert(dynamic_cast<HeapThunk *>(curr));
  ------------------
  |  Branch (435:25): [True: 43.1M, False: 0]
  ------------------
  436|  43.1M|                        auto *thunk = static_cast<HeapThunk *>(curr);
  437|  43.1M|                        if (thunk->filled) {
  ------------------
  |  Branch (437:29): [True: 8.06M, False: 35.0M]
  ------------------
  438|  8.06M|                            if (thunk->content.isHeap())
  ------------------
  |  Branch (438:33): [True: 5.81M, False: 2.25M]
  ------------------
  439|  5.81M|                                addIfHeapEntity(thunk->content.v.h, s.children);
  440|  35.0M|                        } else {
  441|  35.0M|                            for (auto upv : thunk->upValues)
  ------------------
  |  Branch (441:43): [True: 6.09M, False: 35.0M]
  ------------------
  442|  6.09M|                                addIfHeapEntity(upv.second, s.children);
  443|  35.0M|                            if (thunk->self)
  ------------------
  |  Branch (443:33): [True: 32.7M, False: 2.27M]
  ------------------
  444|  32.7M|                                addIfHeapEntity(thunk->self, s.children);
  445|  35.0M|                        }
  446|  43.1M|                        break;
  447|  43.1M|                    }
  448|  1.17M|                    case HeapEntity::STRING:
  ------------------
  |  Branch (448:21): [True: 1.17M, False: 63.8M]
  ------------------
  449|  1.17M|                        assert(dynamic_cast<HeapString *>(curr));
  ------------------
  |  Branch (449:25): [True: 1.17M, False: 0]
  ------------------
  450|  1.17M|                        break;
  451|  1.17M|                    default:
  ------------------
  |  Branch (451:21): [True: 0, False: 65.0M]
  ------------------
  452|      0|                        assert(false);
  ------------------
  |  Branch (452:25): [Folded, False: 0]
  ------------------
  453|      0|                        break;
  454|  65.0M|                }
  455|  65.0M|            }
  456|       |
  457|   253M|            if (s.children.size() > 0) {
  ------------------
  |  Branch (457:17): [True: 85.5M, False: 167M]
  ------------------
  458|  85.5M|                HeapEntity *next = s.children[s.children.size() - 1];
  459|  85.5M|                s.children.pop_back();
  460|  85.5M|                stack.emplace_back(next);  // CAUTION: s invalidated here
  461|   167M|            } else {
  462|   167M|                stack.pop_back();  // CAUTION: s invalidated here
  463|   167M|            }
  464|   253M|        }
  465|  82.1M|    }
vm.cpp:_ZZN7jsonnet8internal12_GLOBAL__N_14Heap8markFromEPNS1_10HeapEntityEEN5StateC2ES4_:
  375|   167M|            State(HeapEntity *ent) : ent(ent) {}
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_14Heap15addIfHeapEntityEPNS1_10HeapEntityERNSt3__16vectorIS4_NS5_9allocatorIS4_EEEE:
  340|  85.5M|    {
  341|  85.5M|        vec.push_back(v);
  342|  85.5M|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_14Heap8markFromENS1_5ValueE:
  362|  43.0M|    {
  363|  43.0M|        if (v.isHeap())
  ------------------
  |  Branch (363:13): [True: 12.1M, False: 30.9M]
  ------------------
  364|  12.1M|            markFrom(v.v.h);
  365|  43.0M|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_14Heap5sweepEv:
  469|  98.8k|    {
  470|  98.8k|        lastMark++;
  471|       |        // Heap shrinks during this loop.  Do not cache entities.size().
  472|   149M|        for (unsigned long i = 0; i < entities.size(); ++i) {
  ------------------
  |  Branch (472:35): [True: 148M, False: 98.8k]
  ------------------
  473|   148M|            HeapEntity *x = entities[i];
  474|   148M|            if (x->mark != lastMark) {
  ------------------
  |  Branch (474:17): [True: 83.8M, False: 65.0M]
  ------------------
  475|  83.8M|                delete x;
  476|  83.8M|                if (i != entities.size() - 1) {
  ------------------
  |  Branch (476:21): [True: 83.7M, False: 83.1k]
  ------------------
  477|       |                    // Swap it with the back.
  478|  83.7M|                    entities[i] = entities[entities.size() - 1];
  479|  83.7M|                }
  480|  83.8M|                entities.pop_back();
  481|  83.8M|                --i;
  482|  83.8M|            }
  483|   148M|        }
  484|  98.8k|        lastNumEntities = numEntities = entities.size();
  485|  98.8k|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_19HeapThunk4fillERKNS1_5ValueE:
  145|  19.9M|    {
  146|  19.9M|        content = v;
  147|  19.9M|        filled = true;
  148|  19.9M|        self = nullptr;
  149|  19.9M|        upValues.clear();
  150|  19.9M|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_14Heap10makeEntityINS1_9HeapArrayEJRKNSt3__16vectorIPNS1_9HeapThunkENS5_9allocatorIS8_EEEEEEEPT_DpOT0_:
  501|  1.61M|    {
  502|  1.61M|        T *r = new T(std::forward<Args>(args)...);
  503|  1.61M|        entities.push_back(r);
  504|  1.61M|        r->mark = lastMark;
  505|  1.61M|        numEntities = entities.size();
  506|  1.61M|        return r;
  507|  1.61M|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_19HeapArrayC2ERKNSt3__16vectorIPNS1_9HeapThunkENS3_9allocatorIS6_EEEE:
  159|  1.61M|        : HeapEntity(ARRAY), elements(elements)
  160|  1.61M|    {
  161|  1.61M|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_14Heap10makeEntityINS1_10HeapStringEJRKNSt3__112basic_stringIDiNS5_11char_traitsIDiEENS5_9allocatorIDiEEEEEEEPT_DpOT0_:
  501|  31.0M|    {
  502|  31.0M|        T *r = new T(std::forward<Args>(args)...);
  503|  31.0M|        entities.push_back(r);
  504|  31.0M|        r->mark = lastMark;
  505|  31.0M|        numEntities = entities.size();
  506|  31.0M|        return r;
  507|  31.0M|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_110HeapStringC2ERKNSt3__112basic_stringIDiNS3_11char_traitsIDiEENS3_9allocatorIDiEEEE:
  299|  31.0M|    HeapString(const UString &value) : HeapEntity(STRING), value(value) {}
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_14Heap10makeEntityINS1_9HeapThunkEJRPKNS0_10IdentifierEDniDnEEEPT_DpOT0_:
  501|   655k|    {
  502|   655k|        T *r = new T(std::forward<Args>(args)...);
  503|   655k|        entities.push_back(r);
  504|   655k|        r->mark = lastMark;
  505|   655k|        numEntities = entities.size();
  506|   655k|        return r;
  507|   655k|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_114HeapLeafObjectC2ENS1_10HeapEntity4TypeE:
  166|  1.73M|    HeapLeafObject(Type type) : HeapObject(type) {}
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_110HeapObjectC2ENS1_10HeapEntity4TypeE:
  109|  3.02M|    HeapObject(Type type) : HeapEntity(type) {}
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_111HeapClosure5ParamC2EPKNS0_10IdentifierEPKNS0_3ASTE:
  275|  13.9M|        Param(const Identifier *id, const AST *def) : id(id), def(def) {}
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_14Heap10makeEntityINS1_11HeapClosureEJNSt3__13mapIPKNS0_10IdentifierEPNS1_9HeapThunkENS5_4lessIS9_EENS5_9allocatorINS5_4pairIKS9_SB_EEEEEEDniRNS5_6vectorINS4_5ParamENSE_ISL_EEEERPKNS0_19BuiltinFunctionBodyERKNS5_12basic_stringIcNS5_11char_traitsIcEENSE_IcEEEEEEEPT_DpOT0_:
  501|  6.79M|    {
  502|  6.79M|        T *r = new T(std::forward<Args>(args)...);
  503|  6.79M|        entities.push_back(r);
  504|  6.79M|        r->mark = lastMark;
  505|  6.79M|        numEntities = entities.size();
  506|  6.79M|        return r;
  507|  6.79M|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_111HeapClosureC2ERKNSt3__13mapIPKNS0_10IdentifierEPNS1_9HeapThunkENS3_4lessIS7_EENS3_9allocatorINS3_4pairIKS7_S9_EEEEEEPNS1_10HeapObjectEjRKNS3_6vectorINS2_5ParamENSC_ISN_EEEEPKNS0_3ASTERKNS3_12basic_stringIcNS3_11char_traitsIcEENSC_IcEEEE:
  283|  8.46M|        : HeapEntity(CLOSURE),
  284|  8.46M|          upValues(up_values),
  285|  8.46M|          self(self),
  286|  8.46M|          offset(offset),
  287|  8.46M|          params(params),
  288|  8.46M|          body(body),
  289|  8.46M|          builtinName(builtin_name)
  290|  8.46M|    {
  291|  8.46M|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_14Heap10makeEntityINS1_9HeapThunkEJDnDniPKNS0_3ASTEEEEPT_DpOT0_:
  501|  3.48k|    {
  502|  3.48k|        T *r = new T(std::forward<Args>(args)...);
  503|  3.48k|        entities.push_back(r);
  504|  3.48k|        r->mark = lastMark;
  505|  3.48k|        numEntities = entities.size();
  506|  3.48k|        return r;
  507|  3.48k|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_14Heap10makeEntityINS1_9HeapThunkEJPNS0_10IdentifierERPNS1_10HeapObjectEiRKPNS0_3ASTEEEEPT_DpOT0_:
  501|   561k|    {
  502|   561k|        T *r = new T(std::forward<Args>(args)...);
  503|   561k|        entities.push_back(r);
  504|   561k|        r->mark = lastMark;
  505|   561k|        numEntities = entities.size();
  506|   561k|        return r;
  507|   561k|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_14HeapD2Ev:
  355|  3.48k|    {
  356|       |        // Nothing is marked, everything will be collected.
  357|  3.48k|        sweep();
  358|  3.48k|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_14Heap10makeEntityINS1_9HeapThunkEJRPKNS0_10IdentifierERPNS1_10HeapObjectERjRKPNS0_3ASTEEEEPT_DpOT0_:
  501|  20.8M|    {
  502|  20.8M|        T *r = new T(std::forward<Args>(args)...);
  503|  20.8M|        entities.push_back(r);
  504|  20.8M|        r->mark = lastMark;
  505|  20.8M|        numEntities = entities.size();
  506|  20.8M|        return r;
  507|  20.8M|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_14Heap10makeEntityINS1_11HeapClosureEJRKNSt3__13mapIPKNS0_10IdentifierEPNS1_9HeapThunkENS5_4lessIS9_EENS5_9allocatorINS5_4pairIKS9_SB_EEEEEERPNS1_10HeapObjectERjRKNS5_6vectorINS4_5ParamENSE_ISR_EEEERPNS0_3ASTERA1_KcEEEPT_DpOT0_:
  501|  1.66M|    {
  502|  1.66M|        T *r = new T(std::forward<Args>(args)...);
  503|  1.66M|        entities.push_back(r);
  504|  1.66M|        r->mark = lastMark;
  505|  1.66M|        numEntities = entities.size();
  506|  1.66M|        return r;
  507|  1.66M|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_14Heap10makeEntityINS1_9HeapThunkEJRKPKNS0_10IdentifierERPNS1_10HeapObjectERjRKPNS0_3ASTEEEEPT_DpOT0_:
  501|  15.1M|    {
  502|  15.1M|        T *r = new T(std::forward<Args>(args)...);
  503|  15.1M|        entities.push_back(r);
  504|  15.1M|        r->mark = lastMark;
  505|  15.1M|        numEntities = entities.size();
  506|  15.1M|        return r;
  507|  15.1M|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_14Heap10makeEntityINS1_16HeapSimpleObjectEJRNSt3__13mapIPKNS0_10IdentifierEPNS1_9HeapThunkENS5_4lessIS9_EENS5_9allocatorINS5_4pairIKS9_SB_EEEEEERNS6_IS9_NS4_5FieldESD_NSE_INSF_ISG_SL_EEEEEERNS5_4listIPNS0_3ASTENSE_ISS_EEEEEEEPT_DpOT0_:
  501|  1.73M|    {
  502|  1.73M|        T *r = new T(std::forward<Args>(args)...);
  503|  1.73M|        entities.push_back(r);
  504|  1.73M|        r->mark = lastMark;
  505|  1.73M|        numEntities = entities.size();
  506|  1.73M|        return r;
  507|  1.73M|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_116HeapSimpleObjectC2ERKNSt3__13mapIPKNS0_10IdentifierEPNS1_9HeapThunkENS3_4lessIS7_EENS3_9allocatorINS3_4pairIKS7_S9_EEEEEENS4_IS7_NS2_5FieldESB_NSC_INSD_ISE_SK_EEEEEENS3_4listIPNS0_3ASTENSC_ISQ_EEEE:
  196|  1.73M|        : HeapLeafObject(SIMPLE_OBJECT), upValues(up_values), fields(fields), asserts(asserts)
  197|  1.73M|    {
  198|  1.73M|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_14Heap10makeEntityINS1_9HeapThunkEJRPKNS0_10IdentifierERPNS1_10HeapObjectERjRKPKNS0_3ASTEEEEPT_DpOT0_:
  501|    135|    {
  502|    135|        T *r = new T(std::forward<Args>(args)...);
  503|    135|        entities.push_back(r);
  504|    135|        r->mark = lastMark;
  505|    135|        numEntities = entities.size();
  506|    135|        return r;
  507|    135|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_14Heap10makeEntityINS1_18HeapExtendedObjectEJRPNS1_10HeapObjectES7_EEEPT_DpOT0_:
  501|  1.29M|    {
  502|  1.29M|        T *r = new T(std::forward<Args>(args)...);
  503|  1.29M|        entities.push_back(r);
  504|  1.29M|        r->mark = lastMark;
  505|  1.29M|        numEntities = entities.size();
  506|  1.29M|        return r;
  507|  1.29M|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_118HeapExtendedObjectC2EPNS1_10HeapObjectES4_:
  210|  1.29M|        : HeapObject(EXTENDED_OBJECT), left(left), right(right)
  211|  1.29M|    {
  212|  1.29M|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_14Heap10makeEntityINS1_9HeapThunkEJRPKNS0_10IdentifierERPNS1_10HeapObjectERjRPNS0_3ASTEEEEPT_DpOT0_:
  501|  2.46M|    {
  502|  2.46M|        T *r = new T(std::forward<Args>(args)...);
  503|  2.46M|        entities.push_back(r);
  504|  2.46M|        r->mark = lastMark;
  505|  2.46M|        numEntities = entities.size();
  506|  2.46M|        return r;
  507|  2.46M|    }

_ZN7jsonnet8internal23jsonnet_static_analysisEPNS0_3ASTE:
  228|  7.57k|{
  229|  7.57k|    static_analysis(ast, false, IdSet{});
  230|  7.57k|}
static_analysis.cpp:_ZN7jsonnet8internalL15static_analysisEPNS0_3ASTEbRKNSt3__13setIPKNS0_10IdentifierENS3_4lessIS7_EENS3_9allocatorIS7_EEEE:
   41|   239M|{
   42|   239M|    IdSet r;
   43|       |
   44|   239M|    switch (ast_->type) {
   45|  21.3M|    case AST_APPLY: {
  ------------------
  |  Branch (45:5): [True: 21.3M, False: 218M]
  ------------------
   46|  21.3M|        assert(dynamic_cast<Apply *>(ast_));
  ------------------
  |  Branch (46:9): [True: 21.3M, False: 0]
  ------------------
   47|  21.3M|        auto* ast = static_cast<Apply *>(ast_);
   48|  21.3M|        append(r, static_analysis(ast->target, in_object, vars));
   49|  21.3M|        for (const auto &arg : ast->args)
  ------------------
  |  Branch (49:30): [True: 35.0M, False: 21.3M]
  ------------------
   50|  35.0M|            append(r, static_analysis(arg.expr, in_object, vars));
   51|  21.3M|    } break;
   52|      0|    case AST_APPLY_BRACE: {
  ------------------
  |  Branch (52:5): [True: 0, False: 239M]
  ------------------
   53|      0|        assert(dynamic_cast<ApplyBrace *>(ast_));
  ------------------
  |  Branch (53:9): [True: 0, False: 0]
  ------------------
   54|       |        // Nothing to do.
   55|      0|    } break;
   56|  4.95M|    case AST_ARRAY: {
  ------------------
  |  Branch (56:5): [True: 4.95M, False: 234M]
  ------------------
   57|  4.95M|        assert(dynamic_cast<Array *>(ast_));
  ------------------
  |  Branch (57:9): [True: 4.95M, False: 0]
  ------------------
   58|  4.95M|        auto* ast = static_cast<Array *>(ast_);
   59|  4.95M|        for (auto &el : ast->elements)
  ------------------
  |  Branch (59:23): [True: 7.35M, False: 4.95M]
  ------------------
   60|  7.35M|            append(r, static_analysis(el.expr, in_object, vars));
   61|  4.95M|    } break;
   62|  21.9M|    case AST_BINARY: {
  ------------------
  |  Branch (62:5): [True: 21.9M, False: 217M]
  ------------------
   63|  21.9M|        assert(dynamic_cast<Binary *>(ast_));
  ------------------
  |  Branch (63:9): [True: 21.9M, False: 0]
  ------------------
   64|  21.9M|        auto* ast = static_cast<Binary *>(ast_);
   65|  21.9M|        append(r, static_analysis(ast->left, in_object, vars));
   66|  21.9M|        append(r, static_analysis(ast->right, in_object, vars));
   67|  21.9M|    } break;
   68|   318k|    case AST_BUILTIN_FUNCTION: {
  ------------------
  |  Branch (68:5): [True: 318k, False: 239M]
  ------------------
   69|   318k|        assert(dynamic_cast<BuiltinFunction *>(ast_));
  ------------------
  |  Branch (69:9): [True: 318k, False: 0]
  ------------------
   70|       |        // Nothing to do.
   71|   318k|    } break;
   72|  8.79M|    case AST_CONDITIONAL: {
  ------------------
  |  Branch (72:5): [True: 8.79M, False: 230M]
  ------------------
   73|  8.79M|        assert(dynamic_cast<Conditional *>(ast_));
  ------------------
  |  Branch (73:9): [True: 8.79M, False: 0]
  ------------------
   74|  8.79M|        auto* ast = static_cast<Conditional *>(ast_);
   75|  8.79M|        append(r, static_analysis(ast->cond, in_object, vars));
   76|  8.79M|        append(r, static_analysis(ast->branchTrue, in_object, vars));
   77|  8.79M|        append(r, static_analysis(ast->branchFalse, in_object, vars));
   78|  8.79M|    } break;
   79|  4.60M|    case AST_ERROR: {
  ------------------
  |  Branch (79:5): [True: 4.60M, False: 234M]
  ------------------
   80|  4.60M|        assert(dynamic_cast<Error *>(ast_));
  ------------------
  |  Branch (80:9): [True: 4.60M, False: 0]
  ------------------
   81|  4.60M|        auto* ast = static_cast<Error *>(ast_);
   82|  4.60M|        append(r, static_analysis(ast->expr, in_object, vars));
   83|  4.60M|    } break;
   84|  5.48M|    case AST_FUNCTION: {
  ------------------
  |  Branch (84:5): [True: 5.48M, False: 234M]
  ------------------
   85|  5.48M|        assert(dynamic_cast<Function *>(ast_));
  ------------------
  |  Branch (85:9): [True: 5.48M, False: 0]
  ------------------
   86|  5.48M|        auto* ast = static_cast<Function *>(ast_);
   87|  5.48M|        auto new_vars = vars;
   88|  5.48M|        IdSet params;
   89|  10.1M|        for (const auto &p : ast->params) {
  ------------------
  |  Branch (89:28): [True: 10.1M, False: 5.48M]
  ------------------
   90|  10.1M|            if (params.find(p.id) != params.end()) {
  ------------------
  |  Branch (90:17): [True: 3, False: 10.1M]
  ------------------
   91|      3|                std::string msg = "Duplicate function parameter: " + encode_utf8(p.id->name);
   92|      3|                throw StaticError(ast_->location, msg);
   93|      3|            }
   94|  10.1M|            params.insert(p.id);
   95|  10.1M|            new_vars.insert(p.id);
   96|  10.1M|        }
   97|       |
   98|  5.48M|        auto fv = static_analysis(ast->body, in_object, new_vars);
   99|  10.1M|        for (const auto &p : ast->params) {
  ------------------
  |  Branch (99:28): [True: 10.1M, False: 5.48M]
  ------------------
  100|  10.1M|            if (p.expr != nullptr)
  ------------------
  |  Branch (100:17): [True: 162k, False: 9.94M]
  ------------------
  101|   162k|                append(fv, static_analysis(p.expr, in_object, new_vars));
  102|  10.1M|        }
  103|  5.48M|        for (const auto &p : ast->params)
  ------------------
  |  Branch (103:28): [True: 10.1M, False: 5.48M]
  ------------------
  104|  10.1M|            fv.erase(p.id);
  105|  5.48M|        append(r, fv);
  106|  5.48M|    } break;
  107|    333|    case AST_IMPORT: {
  ------------------
  |  Branch (107:5): [True: 333, False: 239M]
  ------------------
  108|    333|        assert(dynamic_cast<Import *>(ast_));
  ------------------
  |  Branch (108:9): [True: 333, False: 0]
  ------------------
  109|       |        // Nothing to do.
  110|    333|    } break;
  111|  1.21k|    case AST_IMPORTSTR: {
  ------------------
  |  Branch (111:5): [True: 1.21k, False: 239M]
  ------------------
  112|  1.21k|        assert(dynamic_cast<Importstr *>(ast_));
  ------------------
  |  Branch (112:9): [True: 1.21k, False: 0]
  ------------------
  113|       |        // Nothing to do.
  114|  1.21k|    } break;
  115|  1.21k|    case AST_IMPORTBIN: {
  ------------------
  |  Branch (115:5): [True: 550, False: 239M]
  ------------------
  116|    550|        assert(dynamic_cast<Importbin *>(ast_));
  ------------------
  |  Branch (116:9): [True: 550, False: 0]
  ------------------
  117|       |        // Nothing to do.
  118|    550|    } break;
  119|  81.1k|    case AST_IN_SUPER: {
  ------------------
  |  Branch (119:5): [True: 81.1k, False: 239M]
  ------------------
  120|  81.1k|        assert(dynamic_cast<const InSuper *>(ast_));
  ------------------
  |  Branch (120:9): [True: 81.1k, False: 0]
  ------------------
  121|  81.1k|        auto* ast = static_cast<const InSuper *>(ast_);
  122|  81.1k|        if (!in_object)
  ------------------
  |  Branch (122:13): [True: 22, False: 81.1k]
  ------------------
  123|     22|            throw StaticError(ast_->location, "Can't use super outside of an object.");
  124|  81.1k|        append(r, static_analysis(ast->element, in_object, vars));
  125|  81.1k|    } break;
  126|  23.3M|    case AST_INDEX: {
  ------------------
  |  Branch (126:5): [True: 23.3M, False: 216M]
  ------------------
  127|  23.3M|        assert(dynamic_cast<const Index *>(ast_));
  ------------------
  |  Branch (127:9): [True: 23.3M, False: 0]
  ------------------
  128|  23.3M|        auto* ast = static_cast<const Index *>(ast_);
  129|  23.3M|        append(r, static_analysis(ast->target, in_object, vars));
  130|  23.3M|        append(r, static_analysis(ast->index, in_object, vars));
  131|  23.3M|    } break;
  132|  11.3M|    case AST_LOCAL: {
  ------------------
  |  Branch (132:5): [True: 11.3M, False: 228M]
  ------------------
  133|  11.3M|        assert(dynamic_cast<const Local *>(ast_));
  ------------------
  |  Branch (133:9): [True: 11.3M, False: 0]
  ------------------
  134|  11.3M|        auto* ast = static_cast<const Local *>(ast_);
  135|  11.3M|        IdSet ast_vars;
  136|  19.4M|        for (const auto &bind : ast->binds) {
  ------------------
  |  Branch (136:31): [True: 19.4M, False: 11.3M]
  ------------------
  137|  19.4M|            ast_vars.insert(bind.var);
  138|  19.4M|        }
  139|  11.3M|        auto new_vars = vars;
  140|  11.3M|        append(new_vars, ast_vars);
  141|  11.3M|        IdSet fvs;
  142|  19.4M|        for (const auto &bind : ast->binds) {
  ------------------
  |  Branch (142:31): [True: 19.4M, False: 11.3M]
  ------------------
  143|  19.4M|            append(fvs, static_analysis(bind.body, in_object, new_vars));
  144|  19.4M|        }
  145|       |
  146|  11.3M|        append(fvs, static_analysis(ast->body, in_object, new_vars));
  147|       |
  148|  11.3M|        for (const auto &bind : ast->binds)
  ------------------
  |  Branch (148:31): [True: 19.4M, False: 11.3M]
  ------------------
  149|  19.4M|            fvs.erase(bind.var);
  150|       |
  151|  11.3M|        append(r, fvs);
  152|  11.3M|    } break;
  153|   650k|    case AST_LITERAL_BOOLEAN: {
  ------------------
  |  Branch (153:5): [True: 650k, False: 238M]
  ------------------
  154|   650k|        assert(dynamic_cast<const LiteralBoolean *>(ast_));
  ------------------
  |  Branch (154:9): [True: 650k, False: 0]
  ------------------
  155|       |        // Nothing to do.
  156|   650k|    } break;
  157|  15.9M|    case AST_LITERAL_NUMBER: {
  ------------------
  |  Branch (157:5): [True: 15.9M, False: 223M]
  ------------------
  158|  15.9M|        assert(dynamic_cast<const LiteralNumber *>(ast_));
  ------------------
  |  Branch (158:9): [True: 15.9M, False: 0]
  ------------------
  159|       |        // Nothing to do.
  160|  15.9M|    } break;
  161|  41.8M|    case AST_LITERAL_STRING: {
  ------------------
  |  Branch (161:5): [True: 41.8M, False: 197M]
  ------------------
  162|  41.8M|        assert(dynamic_cast<const LiteralString *>(ast_));
  ------------------
  |  Branch (162:9): [True: 41.8M, False: 0]
  ------------------
  163|       |        // Nothing to do.
  164|  41.8M|    } break;
  165|  41.8M|    case AST_LITERAL_NULL: {
  ------------------
  |  Branch (165:5): [True: 368k, False: 239M]
  ------------------
  166|   368k|        assert(dynamic_cast<const LiteralNull *>(ast_));
  ------------------
  |  Branch (166:9): [True: 368k, False: 0]
  ------------------
  167|       |        // Nothing to do.
  168|   368k|    } break;
  169|  1.79M|    case AST_DESUGARED_OBJECT: {
  ------------------
  |  Branch (169:5): [True: 1.79M, False: 237M]
  ------------------
  170|  1.79M|        assert(dynamic_cast<DesugaredObject *>(ast_));
  ------------------
  |  Branch (170:9): [True: 1.79M, False: 0]
  ------------------
  171|  1.79M|        auto* ast = static_cast<DesugaredObject *>(ast_);
  172|  6.83M|        for (auto &field : ast->fields) {
  ------------------
  |  Branch (172:26): [True: 6.83M, False: 1.79M]
  ------------------
  173|  6.83M|            append(r, static_analysis(field.name, in_object, vars));
  174|  6.83M|            append(r, static_analysis(field.body, true, vars));
  175|  6.83M|        }
  176|  1.79M|        for (AST *assert : ast->asserts) {
  ------------------
  |  Branch (176:26): [True: 37.0k, False: 1.79M]
  ------------------
  177|  37.0k|            append(r, static_analysis(assert, true, vars));
  178|  37.0k|        }
  179|  1.79M|    } break;
  180|   932k|    case AST_OBJECT_COMPREHENSION_SIMPLE: {
  ------------------
  |  Branch (180:5): [True: 932k, False: 238M]
  ------------------
  181|   932k|        assert(dynamic_cast<ObjectComprehensionSimple *>(ast_));
  ------------------
  |  Branch (181:9): [True: 932k, False: 0]
  ------------------
  182|   932k|        auto* ast = static_cast<ObjectComprehensionSimple *>(ast_);
  183|   932k|        auto new_vars = vars;
  184|   932k|        new_vars.insert(ast->id);
  185|   932k|        append(r, static_analysis(ast->field, false, new_vars));
  186|   932k|        append(r, static_analysis(ast->value, true, new_vars));
  187|   932k|        r.erase(ast->id);
  188|   932k|        append(r, static_analysis(ast->array, in_object, vars));
  189|   932k|    } break;
  190|  1.88M|    case AST_SELF: {
  ------------------
  |  Branch (190:5): [True: 1.88M, False: 237M]
  ------------------
  191|  1.88M|        assert(dynamic_cast<const Self *>(ast_));
  ------------------
  |  Branch (191:9): [True: 1.88M, False: 0]
  ------------------
  192|  1.88M|        if (!in_object)
  ------------------
  |  Branch (192:13): [True: 17, False: 1.88M]
  ------------------
  193|     17|            throw StaticError(ast_->location, "Can't use self outside of an object.");
  194|  1.88M|    } break;
  195|  1.88M|    case AST_SUPER_INDEX: {
  ------------------
  |  Branch (195:5): [True: 81.0k, False: 239M]
  ------------------
  196|  81.0k|        assert(dynamic_cast<const SuperIndex *>(ast_));
  ------------------
  |  Branch (196:9): [True: 81.0k, False: 0]
  ------------------
  197|  81.0k|        auto* ast = static_cast<const SuperIndex *>(ast_);
  198|  81.0k|        if (!in_object)
  ------------------
  |  Branch (198:13): [True: 7, False: 81.0k]
  ------------------
  199|      7|            throw StaticError(ast_->location, "Can't use super outside of an object.");
  200|  81.0k|        append(r, static_analysis(ast->index, in_object, vars));
  201|  81.0k|    } break;
  202|  1.09M|    case AST_UNARY: {
  ------------------
  |  Branch (202:5): [True: 1.09M, False: 238M]
  ------------------
  203|  1.09M|        assert(dynamic_cast<const Unary *>(ast_));
  ------------------
  |  Branch (203:9): [True: 1.09M, False: 0]
  ------------------
  204|  1.09M|        auto* ast = static_cast<const Unary *>(ast_);
  205|  1.09M|        append(r, static_analysis(ast->expr, in_object, vars));
  206|  1.09M|    } break;
  207|  72.7M|    case AST_VAR: {
  ------------------
  |  Branch (207:5): [True: 72.7M, False: 166M]
  ------------------
  208|  72.7M|        assert(dynamic_cast<const Var *>(ast_));
  ------------------
  |  Branch (208:9): [True: 72.7M, False: 0]
  ------------------
  209|  72.7M|        auto* ast = static_cast<const Var *>(ast_);
  210|  72.7M|        if (vars.find(ast->id) == vars.end()) {
  ------------------
  |  Branch (210:13): [True: 554, False: 72.7M]
  ------------------
  211|    554|            throw StaticError(ast->location, "Unknown variable: " + encode_utf8(ast->id->name));
  212|    554|        }
  213|  72.7M|        r.insert(ast->id);
  214|  72.7M|    } break;
  215|      0|    default:
  ------------------
  |  Branch (215:5): [True: 0, False: 239M]
  ------------------
  216|      0|        std::cerr << "INTERNAL ERROR: Unknown AST: " << ast_ << std::endl;
  217|      0|        std::abort();
  218|      0|        break;
  219|   239M|    }
  220|       |
  221|   239M|    for (auto *id : r)
  ------------------
  |  Branch (221:19): [True: 330M, False: 239M]
  ------------------
  222|   330M|        ast_->freeVariables.push_back(id);
  223|       |
  224|   239M|    return r;
  225|   239M|}
static_analysis.cpp:_ZN7jsonnet8internalL6appendERNSt3__13setIPKNS0_10IdentifierENS1_4lessIS5_EENS1_9allocatorIS5_EEEERKSA_:
   29|   262M|{
   30|   262M|    r.insert(s.begin(), s.end());
   31|   262M|}

libjsonnet.cpp:_ZN7jsonnet8internallsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS0_11StaticErrorE:
  108|  3.92k|{
  109|  3.92k|    o << err.toString();
  110|  3.92k|    return o;
  111|  3.92k|}
_ZNK7jsonnet8internal11StaticError8toStringEv:
   97|  3.92k|    {
   98|  3.92k|        std::stringstream ss;
   99|  3.92k|        if (location.isSet()) {
  ------------------
  |  Branch (99:13): [True: 3.91k, False: 15]
  ------------------
  100|  3.91k|            ss << location << ":";
  101|  3.91k|        }
  102|  3.92k|        ss << " " << msg;
  103|  3.92k|        return ss.str();
  104|  3.92k|    }
_ZNK7jsonnet8internal13LocationRange5isSetEv:
   58|   388k|    {
   59|   388k|        return begin.isSet();
   60|   388k|    }
_ZNK7jsonnet8internal8Location5isSetEv:
   31|   388k|    {
   32|   388k|        return line != 0;
   33|   388k|    }
libjsonnet.cpp:_ZN7jsonnet8internallsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS0_13LocationRangeE:
   64|  25.6k|{
   65|  25.6k|    if (loc.file.length() > 0)
  ------------------
  |  Branch (65:9): [True: 10.3k, False: 15.3k]
  ------------------
   66|  10.3k|        o << loc.file;
   67|  25.6k|    if (loc.isSet()) {
  ------------------
  |  Branch (67:9): [True: 23.8k, False: 1.78k]
  ------------------
   68|  23.8k|        if (loc.file.length() > 0)
  ------------------
  |  Branch (68:13): [True: 8.67k, False: 15.2k]
  ------------------
   69|  8.67k|            o << ":";
   70|  23.8k|        if (loc.begin.line == loc.end.line) {
  ------------------
  |  Branch (70:13): [True: 20.6k, False: 3.24k]
  ------------------
   71|  20.6k|            if (loc.begin.column == loc.end.column - 1) {
  ------------------
  |  Branch (71:17): [True: 4.46k, False: 16.1k]
  ------------------
   72|  4.46k|                o << loc.begin;
   73|  16.1k|            } else {
   74|  16.1k|                o << loc.begin << "-" << loc.end.column;
   75|  16.1k|            }
   76|  20.6k|        } else {
   77|  3.24k|            o << "(" << loc.begin << ")-(" << loc.end << ")";
   78|  3.24k|        }
   79|  23.8k|    }
   80|  25.6k|    return o;
   81|  25.6k|}
libjsonnet.cpp:_ZN7jsonnet8internallsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS0_8LocationE:
   41|  27.1k|{
   42|  27.1k|    o << loc.line << ":" << loc.column;
   43|  27.1k|    return o;
   44|  27.1k|}
_ZN7jsonnet8internal8LocationC2Ev:
   28|  4.56M|    Location(void) : line(0), column(0) {}
_ZN7jsonnet8internal8LocationC2Emm:
   29|   214M|    Location(unsigned long line, unsigned long column) : line(line), column(column) {}
_ZNK7jsonnet8internal8Location9successorEv:
   35|    521|    {
   36|    521|        return Location(this->line, this->column + 1);
   37|    521|    }
_ZN7jsonnet8internal13LocationRangeC2Ev:
   50|  2.27M|    LocationRange(void) {}
_ZN7jsonnet8internal13LocationRangeC2ERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
   52|  6.24k|    LocationRange(const std::string &msg) : file(msg) {}
_ZN7jsonnet8internal13LocationRangeC2ERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEERKNS0_8LocationESD_:
   54|   165M|        : file(file), begin(begin), end(end)
   55|   165M|    {
   56|   165M|    }
_ZN7jsonnet8internal11StaticErrorC2ERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEERKNS0_8LocationESA_:
   88|    521|        : location(filename, location, location.successor()), msg(msg)
   89|    521|    {
   90|    521|    }
_ZN7jsonnet8internal11StaticErrorC2ERKNS0_13LocationRangeERKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEE:
   92|  3.40k|        : location(location), msg(msg)
   93|  3.40k|    {
   94|  3.40k|    }

_ZN7jsonnet8internal22jsonnet_string_unparseERKNSt3__112basic_stringIDiNS1_11char_traitsIDiEENS1_9allocatorIDiEEEEb:
   25|   514k|{
   26|   514k|    UStringStream ss;
   27|   514k|    ss << (single ? U'\'' : U'\"');
  ------------------
  |  Branch (27:12): [True: 0, False: 514k]
  ------------------
   28|   514k|    ss << jsonnet_string_escape(str, single);
   29|   514k|    ss << (single ? U'\'' : U'\"');
  ------------------
  |  Branch (29:12): [True: 0, False: 514k]
  ------------------
   30|   514k|    return ss.str();
   31|   514k|}
_ZN7jsonnet8internal21jsonnet_string_escapeERKNSt3__112basic_stringIDiNS1_11char_traitsIDiEENS1_9allocatorIDiEEEEb:
   34|   515k|{
   35|   515k|    UStringStream ss;
   36|   772M|    for (std::size_t i = 0; i < str.length(); ++i) {
  ------------------
  |  Branch (36:29): [True: 771M, False: 515k]
  ------------------
   37|   771M|        char32_t c = str[i];
   38|   771M|        switch (c) {
   39|   435k|            case U'\"': ss << (single ? U"\"" : U"\\\""); break;
  ------------------
  |  Branch (39:13): [True: 435k, False: 771M]
  |  Branch (39:32): [True: 0, False: 435k]
  ------------------
   40|   905k|            case U'\'': ss << (single ? U"\\\'" : U"\'"); break;
  ------------------
  |  Branch (40:13): [True: 905k, False: 770M]
  |  Branch (40:32): [True: 0, False: 905k]
  ------------------
   41|   693M|            case U'\\': ss << U"\\\\"; break;
  ------------------
  |  Branch (41:13): [True: 693M, False: 78.7M]
  ------------------
   42|  1.13M|            case U'\b': ss << U"\\b"; break;
  ------------------
  |  Branch (42:13): [True: 1.13M, False: 770M]
  ------------------
   43|   201k|            case U'\f': ss << U"\\f"; break;
  ------------------
  |  Branch (43:13): [True: 201k, False: 771M]
  ------------------
   44|  10.9M|            case U'\n': ss << U"\\n"; break;
  ------------------
  |  Branch (44:13): [True: 10.9M, False: 760M]
  ------------------
   45|   113k|            case U'\r': ss << U"\\r"; break;
  ------------------
  |  Branch (45:13): [True: 113k, False: 771M]
  ------------------
   46|  1.06M|            case U'\t': ss << U"\\t"; break;
  ------------------
  |  Branch (46:13): [True: 1.06M, False: 770M]
  ------------------
   47|  39.3k|            case U'\0': ss << U"\\u0000"; break;
  ------------------
  |  Branch (47:13): [True: 39.3k, False: 771M]
  ------------------
   48|  63.9M|            default: {
  ------------------
  |  Branch (48:13): [True: 63.9M, False: 707M]
  ------------------
   49|  63.9M|                if (c < 0x20 || (c >= 0x7f && c <= 0x9f)) {
  ------------------
  |  Branch (49:21): [True: 5.71M, False: 58.2M]
  |  Branch (49:34): [True: 20.6M, False: 37.5M]
  |  Branch (49:47): [True: 1.22M, False: 19.4M]
  ------------------
   50|       |                    // Unprintable, use \u
   51|  6.93M|                    std::stringstream ss8;
   52|  6.93M|                    ss8 << "\\u" << std::hex << std::setfill('0') << std::setw(4)
   53|  6.93M|                        << (unsigned long)(c);
   54|  6.93M|                    ss << decode_utf8(ss8.str());
   55|  56.9M|                } else {
   56|       |                    // Printable, write verbatim
   57|  56.9M|                    ss << c;
   58|  56.9M|                }
   59|  63.9M|            }
   60|   771M|        }
   61|   771M|    }
   62|   515k|    return ss.str();
   63|   515k|}
_ZN7jsonnet8internal28jsonnet_string_parse_unicodeERKNS0_13LocationRangeEPKDi:
   66|  28.2k|{
   67|  28.2k|    unsigned long codepoint = 0;
   68|       |    // Expect 4 hex digits.
   69|   141k|    for (unsigned i = 0; i < 4; ++i) {
  ------------------
  |  Branch (69:26): [True: 112k, False: 28.2k]
  ------------------
   70|   112k|        auto x = (unsigned char)(c[i]);
   71|   112k|        unsigned digit;
   72|   112k|        if (x == '\0') {
  ------------------
  |  Branch (72:13): [True: 15, False: 112k]
  ------------------
   73|     15|            auto msg = "Truncated unicode escape sequence in string literal.";
   74|     15|            throw StaticError(loc, msg);
   75|   112k|        } else if (x >= '0' && x <= '9') {
  ------------------
  |  Branch (75:20): [True: 112k, False: 11]
  |  Branch (75:32): [True: 98.8k, False: 14.0k]
  ------------------
   76|  98.8k|            digit = x - '0';
   77|  98.8k|        } else if (x >= 'a' && x <= 'f') {
  ------------------
  |  Branch (77:20): [True: 2.47k, False: 11.6k]
  |  Branch (77:32): [True: 2.46k, False: 10]
  ------------------
   78|  2.46k|            digit = x - 'a' + 10;
   79|  11.6k|        } else if (x >= 'A' && x <= 'F') {
  ------------------
  |  Branch (79:20): [True: 11.6k, False: 16]
  |  Branch (79:32): [True: 11.6k, False: 20]
  ------------------
   80|  11.6k|            digit = x - 'A' + 10;
   81|  11.6k|        } else {
   82|     36|            std::stringstream ss;
   83|     36|            ss << "Malformed unicode escape character, "
   84|     36|               << "should be hex: '" << x << "'";
   85|     36|            throw StaticError(loc, ss.str());
   86|     36|        }
   87|   112k|        codepoint *= 16;
   88|   112k|        codepoint += digit;
   89|   112k|    }
   90|  28.2k|    return codepoint;
   91|  28.2k|}
_ZN7jsonnet8internal16is_bmp_codepointEm:
   94|  28.0k|{
   95|  28.0k|    return codepoint < 0xd800 || (codepoint >= 0xe000 && codepoint < 0x10000);
  ------------------
  |  Branch (95:12): [True: 27.1k, False: 873]
  |  Branch (95:35): [True: 706, False: 167]
  |  Branch (95:58): [True: 706, False: 0]
  ------------------
   96|  28.0k|}
_ZN7jsonnet8internal23decode_utf16_surrogatesERKNS0_13LocationRangeEmm:
   99|    141|{
  100|    141|    if (high >= 0xd800 && high < 0xdc00 && low >= 0xdc00 && low < 0xe000) {
  ------------------
  |  Branch (100:9): [True: 141, False: 0]
  |  Branch (100:27): [True: 139, False: 2]
  |  Branch (100:44): [True: 132, False: 7]
  |  Branch (100:61): [True: 130, False: 2]
  ------------------
  101|    130|        return 0x10000 + ((high & 0x03ff) << 10) + (low & 0x03ff);
  102|    130|    } else {
  103|     11|        std::stringstream ss;
  104|     11|        ss << "Invalid UTF-16 bytes";
  105|     11|        throw StaticError(loc, ss.str());
  106|     11|    }
  107|    141|}
_ZN7jsonnet8internal23jsonnet_string_unescapeERKNS0_13LocationRangeERKNSt3__112basic_stringIDiNS4_11char_traitsIDiEENS4_9allocatorIDiEEEE:
  110|  3.69M|{
  111|  3.69M|    UString r;
  112|  3.69M|    const char32_t *s_ptr = s.c_str();
  113|  76.0M|    for (const char32_t *c = s_ptr; *c != U'\0'; ++c) {
  ------------------
  |  Branch (113:37): [True: 72.3M, False: 3.69M]
  ------------------
  114|  72.3M|        switch (*c) {
  115|   455k|            case '\\':
  ------------------
  |  Branch (115:13): [True: 455k, False: 71.9M]
  ------------------
  116|   455k|                switch (*(++c)) {
  117|  16.6k|                    case '"':
  ------------------
  |  Branch (117:21): [True: 16.6k, False: 438k]
  ------------------
  118|  25.3k|                    case '\'': r += *c; break;
  ------------------
  |  Branch (118:21): [True: 8.68k, False: 446k]
  ------------------
  119|       |
  120|  84.5k|                    case '\\': r += *c; break;
  ------------------
  |  Branch (120:21): [True: 84.5k, False: 370k]
  ------------------
  121|       |
  122|    489|                    case '/': r += *c; break;
  ------------------
  |  Branch (122:21): [True: 489, False: 455k]
  ------------------
  123|       |
  124|  10.0k|                    case 'b': r += '\b'; break;
  ------------------
  |  Branch (124:21): [True: 10.0k, False: 445k]
  ------------------
  125|       |
  126|  39.6k|                    case 'f': r += '\f'; break;
  ------------------
  |  Branch (126:21): [True: 39.6k, False: 415k]
  ------------------
  127|       |
  128|   214k|                    case 'n': r += '\n'; break;
  ------------------
  |  Branch (128:21): [True: 214k, False: 240k]
  ------------------
  129|       |
  130|  15.8k|                    case 'r': r += '\r'; break;
  ------------------
  |  Branch (130:21): [True: 15.8k, False: 439k]
  ------------------
  131|       |
  132|  36.5k|                    case 't': r += '\t'; break;
  ------------------
  |  Branch (132:21): [True: 36.5k, False: 418k]
  ------------------
  133|       |
  134|  28.1k|                    case 'u': {
  ------------------
  |  Branch (134:21): [True: 28.1k, False: 427k]
  ------------------
  135|  28.1k|                        ++c;  // Consume the 'u'.
  136|  28.1k|                        unsigned long codepoint = jsonnet_string_parse_unicode(loc, c);
  137|       |
  138|       |                        // Leave us on the last char, ready for the ++c at
  139|       |                        // the outer for loop.
  140|  28.1k|                        c += 3;
  141|  28.1k|                        if (!is_bmp_codepoint(codepoint)) {
  ------------------
  |  Branch (141:29): [True: 167, False: 27.9k]
  ------------------
  142|    167|                           if (*(++c) != '\\') {
  ------------------
  |  Branch (142:32): [True: 15, False: 152]
  ------------------
  143|     15|                                std::stringstream ss;
  144|     15|                                ss << "Invalid non-BMP Unicode escape in string literal";
  145|     15|                                throw StaticError(loc, ss.str());
  146|     15|                           }
  147|    152|                           if (*(++c) != 'u') {
  ------------------
  |  Branch (147:32): [True: 5, False: 147]
  ------------------
  148|      5|                                std::stringstream ss;
  149|      5|                                ss << "Invalid non-BMP Unicode escape in string literal";
  150|      5|                                throw StaticError(loc, ss.str());
  151|      5|                           }
  152|    147|                           ++c;
  153|    147|                           unsigned long codepoint2 = jsonnet_string_parse_unicode(loc, c);
  154|    147|                           c += 3;
  155|    147|                           codepoint = decode_utf16_surrogates(loc, codepoint, codepoint2);
  156|    147|                       }
  157|  28.0k|                       r += codepoint;
  158|  28.0k|                    } break;
  159|       |
  160|      2|                    case '\0': {
  ------------------
  |  Branch (160:21): [True: 2, False: 455k]
  ------------------
  161|      2|                        auto msg = "Truncated escape sequence in string literal.";
  162|      2|                        throw StaticError(loc, msg);
  163|  28.1k|                    }
  164|       |
  165|    143|                    default: {
  ------------------
  |  Branch (165:21): [True: 143, False: 455k]
  ------------------
  166|    143|                        std::stringstream ss;
  167|    143|                        std::string utf8;
  168|    143|                        encode_utf8(*c, utf8);
  169|    143|                        ss << "Unknown escape sequence in string literal: '" << utf8 << "'";
  170|    143|                        throw StaticError(loc, ss.str());
  171|  28.1k|                    }
  172|   455k|                }
  173|   455k|                break;
  174|       |
  175|  71.9M|            default:
  ------------------
  |  Branch (175:13): [True: 71.9M, False: 455k]
  ------------------
  176|       |                // Just a regular letter.
  177|  71.9M|                r += *c;
  178|  72.3M|        }
  179|  72.3M|    }
  180|  3.69M|    return r;
  181|  3.69M|}

_ZN7jsonnet8internal13UStringStreamlsERKNSt3__112basic_stringIDiNS2_11char_traitsIDiEENS2_9allocatorIDiEEEE:
  155|  18.2M|    {
  156|  18.2M|        buf.append(s);
  157|  18.2M|        return *this;
  158|  18.2M|    }
_ZN7jsonnet8internal13UStringStreamlsEPKDi:
  160|   713M|    {
  161|   713M|        buf.append(s);
  162|   713M|        return *this;
  163|   713M|    }
_ZN7jsonnet8internal13UStringStreamlsEDi:
  165|  58.0M|    {
  166|  58.0M|        buf.push_back(c);
  167|  58.0M|        return *this;
  168|  58.0M|    }
_ZN7jsonnet8internal13UStringStream3strEv:
  179|  5.78M|    {
  180|  5.78M|        return buf;
  181|  5.78M|    }
parser.cpp:_ZN7jsonnet8internalL11decode_utf8ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  140|  36.9M|{
  141|  36.9M|    UString r;
  142|   264M|    for (size_t i = 0; i < s.length(); ++i)
  ------------------
  |  Branch (142:24): [True: 227M, False: 36.9M]
  ------------------
  143|   227M|        r.push_back(decode_utf8(s, i));
  144|  36.9M|    return r;
  145|  36.9M|}
parser.cpp:_ZN7jsonnet8internalL11decode_utf8ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERm:
   75|   227M|{
   76|   227M|    char c0 = str[i];
   77|   227M|    if ((c0 & 0x80) == 0) {  // 0xxxxxxx
  ------------------
  |  Branch (77:9): [True: 220M, False: 7.00M]
  ------------------
   78|   220M|        return c0;
   79|   220M|    } else if ((c0 & 0xE0) == 0xC0) {  // 110yyyxx 10xxxxxx
  ------------------
  |  Branch (79:16): [True: 350k, False: 6.65M]
  ------------------
   80|   350k|        if (i + 1 >= str.length()) {
  ------------------
  |  Branch (80:13): [True: 3.25k, False: 347k]
  ------------------
   81|  3.25k|            return JSONNET_CODEPOINT_ERROR;
  ------------------
  |  |   21|  3.25k|#define JSONNET_CODEPOINT_ERROR 0xfffd
  ------------------
   82|  3.25k|        }
   83|   347k|        char c1 = str[++i];
   84|   347k|        if ((c1 & 0xC0) != 0x80) {
  ------------------
  |  Branch (84:13): [True: 284k, False: 62.5k]
  ------------------
   85|   284k|            return JSONNET_CODEPOINT_ERROR;
  ------------------
  |  |   21|   284k|#define JSONNET_CODEPOINT_ERROR 0xfffd
  ------------------
   86|   284k|        }
   87|  62.5k|        return ((c0 & 0x1F) << 6ul) | (c1 & 0x3F);
   88|  6.65M|    } else if ((c0 & 0xF0) == 0xE0) {  // 1110yyyy 10yyyyxx 10xxxxxx
  ------------------
  |  Branch (88:16): [True: 906k, False: 5.74M]
  ------------------
   89|   906k|        if (i + 2 >= str.length()) {
  ------------------
  |  Branch (89:13): [True: 1.26k, False: 904k]
  ------------------
   90|  1.26k|            return JSONNET_CODEPOINT_ERROR;
  ------------------
  |  |   21|  1.26k|#define JSONNET_CODEPOINT_ERROR 0xfffd
  ------------------
   91|  1.26k|        }
   92|   904k|        char c1 = str[++i];
   93|   904k|        if ((c1 & 0xC0) != 0x80) {
  ------------------
  |  Branch (93:13): [True: 839k, False: 65.5k]
  ------------------
   94|   839k|            return JSONNET_CODEPOINT_ERROR;
  ------------------
  |  |   21|   839k|#define JSONNET_CODEPOINT_ERROR 0xfffd
  ------------------
   95|   839k|        }
   96|  65.5k|        char c2 = str[++i];
   97|  65.5k|        if ((c2 & 0xC0) != 0x80) {
  ------------------
  |  Branch (97:13): [True: 22.0k, False: 43.4k]
  ------------------
   98|  22.0k|            return JSONNET_CODEPOINT_ERROR;
  ------------------
  |  |   21|  22.0k|#define JSONNET_CODEPOINT_ERROR 0xfffd
  ------------------
   99|  22.0k|        }
  100|  43.4k|        return ((c0 & 0xF) << 12ul) | ((c1 & 0x3F) << 6) | (c2 & 0x3F);
  101|  5.74M|    } else if ((c0 & 0xF8) == 0xF0) {  // 11110zzz 10zzyyyy 10yyyyxx 10xxxxxx
  ------------------
  |  Branch (101:16): [True: 217k, False: 5.52M]
  ------------------
  102|   217k|        if (i + 3 >= str.length()) {
  ------------------
  |  Branch (102:13): [True: 1.82k, False: 215k]
  ------------------
  103|  1.82k|            return JSONNET_CODEPOINT_ERROR;
  ------------------
  |  |   21|  1.82k|#define JSONNET_CODEPOINT_ERROR 0xfffd
  ------------------
  104|  1.82k|        }
  105|   215k|        char c1 = str[++i];
  106|   215k|        if ((c1 & 0xC0) != 0x80) {
  ------------------
  |  Branch (106:13): [True: 167k, False: 48.3k]
  ------------------
  107|   167k|            return JSONNET_CODEPOINT_ERROR;
  ------------------
  |  |   21|   167k|#define JSONNET_CODEPOINT_ERROR 0xfffd
  ------------------
  108|   167k|        }
  109|  48.3k|        char c2 = str[++i];
  110|  48.3k|        if ((c2 & 0xC0) != 0x80) {
  ------------------
  |  Branch (110:13): [True: 4.09k, False: 44.2k]
  ------------------
  111|  4.09k|            return JSONNET_CODEPOINT_ERROR;
  ------------------
  |  |   21|  4.09k|#define JSONNET_CODEPOINT_ERROR 0xfffd
  ------------------
  112|  4.09k|        }
  113|  44.2k|        char c3 = str[++i];
  114|  44.2k|        if ((c3 & 0xC0) != 0x80) {
  ------------------
  |  Branch (114:13): [True: 13.6k, False: 30.6k]
  ------------------
  115|  13.6k|            return JSONNET_CODEPOINT_ERROR;
  ------------------
  |  |   21|  13.6k|#define JSONNET_CODEPOINT_ERROR 0xfffd
  ------------------
  116|  13.6k|        }
  117|  30.6k|        return ((c0 & 0x7) << 18ul) | ((c1 & 0x3F) << 12ul) | ((c2 & 0x3F) << 6) | (c3 & 0x3F);
  118|  5.52M|    } else {
  119|  5.52M|        return JSONNET_CODEPOINT_ERROR;
  ------------------
  |  |   21|  5.52M|#define JSONNET_CODEPOINT_ERROR 0xfffd
  ------------------
  120|  5.52M|    }
  121|   227M|}
static_analysis.cpp:_ZN7jsonnet8internalL11encode_utf8ERKNSt3__112basic_stringIDiNS1_11char_traitsIDiEENS1_9allocatorIDiEEEE:
  133|    557|{
  134|    557|    std::string r;
  135|    557|    encode_utf8(s, r);
  136|    557|    return r;
  137|    557|}
static_analysis.cpp:_ZN7jsonnet8internalL11encode_utf8ERKNSt3__112basic_stringIDiNS1_11char_traitsIDiEENS1_9allocatorIDiEEEERNS2_IcNS3_IcEENS5_IcEEEE:
  127|    557|{
  128|    557|    for (char32_t cp : s)
  ------------------
  |  Branch (128:22): [True: 10.0M, False: 557]
  ------------------
  129|  10.0M|        encode_utf8(cp, r);
  130|    557|}
static_analysis.cpp:_ZN7jsonnet8internalL11encode_utf8EDiRNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
   33|  10.0M|{
   34|  10.0M|    if (x >= JSONNET_CODEPOINT_MAX)
  ------------------
  |  |   22|  10.0M|#define JSONNET_CODEPOINT_MAX 0x110000
  ------------------
  |  Branch (34:9): [True: 0, False: 10.0M]
  ------------------
   35|      0|        x = JSONNET_CODEPOINT_ERROR;
  ------------------
  |  |   21|      0|#define JSONNET_CODEPOINT_ERROR 0xfffd
  ------------------
   36|       |
   37|       |    // 00ZZZzzz 00zzYYYY 00Yyyyxx 00xxxxxx
   38|  10.0M|    long bytes = ((x & 0x1C0000) << 6) | ((x & 0x03F000) << 4) | ((x & 0x0FC0) << 2) | (x & 0x3F);
   39|       |
   40|  10.0M|    if (x < 0x80) {
  ------------------
  |  Branch (40:9): [True: 10.0M, False: 0]
  ------------------
   41|  10.0M|        s.push_back((char)x);
   42|  10.0M|        return 1;
   43|  10.0M|    } else if (x < 0x800) {  // note that capital 'Y' bits must be 0
  ------------------
  |  Branch (43:16): [True: 0, False: 0]
  ------------------
   44|      0|        bytes |= 0xC080;
   45|      0|        s.push_back((bytes >> 8) & 0xFF);
   46|      0|        s.push_back((bytes >> 0) & 0xFF);
   47|      0|        return 2;
   48|      0|    } else if (x < 0x10000) {  // note that 'z' bits must be 0
  ------------------
  |  Branch (48:16): [True: 0, False: 0]
  ------------------
   49|      0|        bytes |= 0xE08080;
   50|      0|        s.push_back((bytes >> 16) & 0xFF);
   51|      0|        s.push_back((bytes >> 8) & 0xFF);
   52|      0|        s.push_back((bytes >> 0) & 0xFF);
   53|      0|        return 3;
   54|      0|    } else if (x < 0x110000) {  // note that capital 'Z' bits must be 0
  ------------------
  |  Branch (54:16): [True: 0, False: 0]
  ------------------
   55|      0|        bytes |= 0xF0808080;
   56|      0|        s.push_back((bytes >> 24) & 0xFF);
   57|      0|        s.push_back((bytes >> 16) & 0xFF);
   58|      0|        s.push_back((bytes >> 8) & 0xFF);
   59|      0|        s.push_back((bytes >> 0) & 0xFF);
   60|      0|        return 4;
   61|      0|    } else {
   62|      0|        std::cerr << "Should never get here." << std::endl;
   63|      0|        abort();
   64|      0|    }
   65|  10.0M|}
string_utils.cpp:_ZN7jsonnet8internalL11decode_utf8ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  140|  6.93M|{
  141|  6.93M|    UString r;
  142|  48.5M|    for (size_t i = 0; i < s.length(); ++i)
  ------------------
  |  Branch (142:24): [True: 41.6M, False: 6.93M]
  ------------------
  143|  41.6M|        r.push_back(decode_utf8(s, i));
  144|  6.93M|    return r;
  145|  6.93M|}
string_utils.cpp:_ZN7jsonnet8internalL11decode_utf8ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERm:
   75|  41.6M|{
   76|  41.6M|    char c0 = str[i];
   77|  41.6M|    if ((c0 & 0x80) == 0) {  // 0xxxxxxx
  ------------------
  |  Branch (77:9): [True: 41.6M, False: 0]
  ------------------
   78|  41.6M|        return c0;
   79|  41.6M|    } else if ((c0 & 0xE0) == 0xC0) {  // 110yyyxx 10xxxxxx
  ------------------
  |  Branch (79:16): [True: 0, False: 0]
  ------------------
   80|      0|        if (i + 1 >= str.length()) {
  ------------------
  |  Branch (80:13): [True: 0, False: 0]
  ------------------
   81|      0|            return JSONNET_CODEPOINT_ERROR;
  ------------------
  |  |   21|      0|#define JSONNET_CODEPOINT_ERROR 0xfffd
  ------------------
   82|      0|        }
   83|      0|        char c1 = str[++i];
   84|      0|        if ((c1 & 0xC0) != 0x80) {
  ------------------
  |  Branch (84:13): [True: 0, False: 0]
  ------------------
   85|      0|            return JSONNET_CODEPOINT_ERROR;
  ------------------
  |  |   21|      0|#define JSONNET_CODEPOINT_ERROR 0xfffd
  ------------------
   86|      0|        }
   87|      0|        return ((c0 & 0x1F) << 6ul) | (c1 & 0x3F);
   88|      0|    } else if ((c0 & 0xF0) == 0xE0) {  // 1110yyyy 10yyyyxx 10xxxxxx
  ------------------
  |  Branch (88:16): [True: 0, False: 0]
  ------------------
   89|      0|        if (i + 2 >= str.length()) {
  ------------------
  |  Branch (89:13): [True: 0, False: 0]
  ------------------
   90|      0|            return JSONNET_CODEPOINT_ERROR;
  ------------------
  |  |   21|      0|#define JSONNET_CODEPOINT_ERROR 0xfffd
  ------------------
   91|      0|        }
   92|      0|        char c1 = str[++i];
   93|      0|        if ((c1 & 0xC0) != 0x80) {
  ------------------
  |  Branch (93:13): [True: 0, False: 0]
  ------------------
   94|      0|            return JSONNET_CODEPOINT_ERROR;
  ------------------
  |  |   21|      0|#define JSONNET_CODEPOINT_ERROR 0xfffd
  ------------------
   95|      0|        }
   96|      0|        char c2 = str[++i];
   97|      0|        if ((c2 & 0xC0) != 0x80) {
  ------------------
  |  Branch (97:13): [True: 0, False: 0]
  ------------------
   98|      0|            return JSONNET_CODEPOINT_ERROR;
  ------------------
  |  |   21|      0|#define JSONNET_CODEPOINT_ERROR 0xfffd
  ------------------
   99|      0|        }
  100|      0|        return ((c0 & 0xF) << 12ul) | ((c1 & 0x3F) << 6) | (c2 & 0x3F);
  101|      0|    } else if ((c0 & 0xF8) == 0xF0) {  // 11110zzz 10zzyyyy 10yyyyxx 10xxxxxx
  ------------------
  |  Branch (101:16): [True: 0, False: 0]
  ------------------
  102|      0|        if (i + 3 >= str.length()) {
  ------------------
  |  Branch (102:13): [True: 0, False: 0]
  ------------------
  103|      0|            return JSONNET_CODEPOINT_ERROR;
  ------------------
  |  |   21|      0|#define JSONNET_CODEPOINT_ERROR 0xfffd
  ------------------
  104|      0|        }
  105|      0|        char c1 = str[++i];
  106|      0|        if ((c1 & 0xC0) != 0x80) {
  ------------------
  |  Branch (106:13): [True: 0, False: 0]
  ------------------
  107|      0|            return JSONNET_CODEPOINT_ERROR;
  ------------------
  |  |   21|      0|#define JSONNET_CODEPOINT_ERROR 0xfffd
  ------------------
  108|      0|        }
  109|      0|        char c2 = str[++i];
  110|      0|        if ((c2 & 0xC0) != 0x80) {
  ------------------
  |  Branch (110:13): [True: 0, False: 0]
  ------------------
  111|      0|            return JSONNET_CODEPOINT_ERROR;
  ------------------
  |  |   21|      0|#define JSONNET_CODEPOINT_ERROR 0xfffd
  ------------------
  112|      0|        }
  113|      0|        char c3 = str[++i];
  114|      0|        if ((c3 & 0xC0) != 0x80) {
  ------------------
  |  Branch (114:13): [True: 0, False: 0]
  ------------------
  115|      0|            return JSONNET_CODEPOINT_ERROR;
  ------------------
  |  |   21|      0|#define JSONNET_CODEPOINT_ERROR 0xfffd
  ------------------
  116|      0|        }
  117|      0|        return ((c0 & 0x7) << 18ul) | ((c1 & 0x3F) << 12ul) | ((c2 & 0x3F) << 6) | (c3 & 0x3F);
  118|      0|    } else {
  119|      0|        return JSONNET_CODEPOINT_ERROR;
  ------------------
  |  |   21|      0|#define JSONNET_CODEPOINT_ERROR 0xfffd
  ------------------
  120|      0|    }
  121|  41.6M|}
string_utils.cpp:_ZN7jsonnet8internalL11encode_utf8EDiRNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
   33|    143|{
   34|    143|    if (x >= JSONNET_CODEPOINT_MAX)
  ------------------
  |  |   22|    143|#define JSONNET_CODEPOINT_MAX 0x110000
  ------------------
  |  Branch (34:9): [True: 1, False: 142]
  ------------------
   35|      1|        x = JSONNET_CODEPOINT_ERROR;
  ------------------
  |  |   21|      1|#define JSONNET_CODEPOINT_ERROR 0xfffd
  ------------------
   36|       |
   37|       |    // 00ZZZzzz 00zzYYYY 00Yyyyxx 00xxxxxx
   38|    143|    long bytes = ((x & 0x1C0000) << 6) | ((x & 0x03F000) << 4) | ((x & 0x0FC0) << 2) | (x & 0x3F);
   39|       |
   40|    143|    if (x < 0x80) {
  ------------------
  |  Branch (40:9): [True: 83, False: 60]
  ------------------
   41|     83|        s.push_back((char)x);
   42|     83|        return 1;
   43|     83|    } else if (x < 0x800) {  // note that capital 'Y' bits must be 0
  ------------------
  |  Branch (43:16): [True: 8, False: 52]
  ------------------
   44|      8|        bytes |= 0xC080;
   45|      8|        s.push_back((bytes >> 8) & 0xFF);
   46|      8|        s.push_back((bytes >> 0) & 0xFF);
   47|      8|        return 2;
   48|     52|    } else if (x < 0x10000) {  // note that 'z' bits must be 0
  ------------------
  |  Branch (48:16): [True: 38, False: 14]
  ------------------
   49|     38|        bytes |= 0xE08080;
   50|     38|        s.push_back((bytes >> 16) & 0xFF);
   51|     38|        s.push_back((bytes >> 8) & 0xFF);
   52|     38|        s.push_back((bytes >> 0) & 0xFF);
   53|     38|        return 3;
   54|     38|    } else if (x < 0x110000) {  // note that capital 'Z' bits must be 0
  ------------------
  |  Branch (54:16): [True: 14, False: 0]
  ------------------
   55|     14|        bytes |= 0xF0808080;
   56|     14|        s.push_back((bytes >> 24) & 0xFF);
   57|     14|        s.push_back((bytes >> 16) & 0xFF);
   58|     14|        s.push_back((bytes >> 8) & 0xFF);
   59|     14|        s.push_back((bytes >> 0) & 0xFF);
   60|     14|        return 4;
   61|     14|    } else {
   62|      0|        std::cerr << "Should never get here." << std::endl;
   63|      0|        abort();
   64|      0|    }
   65|    143|}
vm.cpp:_ZN7jsonnet8internalL11decode_utf8ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  140|  3.09M|{
  141|  3.09M|    UString r;
  142|  11.6M|    for (size_t i = 0; i < s.length(); ++i)
  ------------------
  |  Branch (142:24): [True: 8.60M, False: 3.09M]
  ------------------
  143|  8.60M|        r.push_back(decode_utf8(s, i));
  144|  3.09M|    return r;
  145|  3.09M|}
vm.cpp:_ZN7jsonnet8internalL11decode_utf8ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERm:
   75|  8.60M|{
   76|  8.60M|    char c0 = str[i];
   77|  8.60M|    if ((c0 & 0x80) == 0) {  // 0xxxxxxx
  ------------------
  |  Branch (77:9): [True: 8.60M, False: 0]
  ------------------
   78|  8.60M|        return c0;
   79|  8.60M|    } else if ((c0 & 0xE0) == 0xC0) {  // 110yyyxx 10xxxxxx
  ------------------
  |  Branch (79:16): [True: 0, False: 0]
  ------------------
   80|      0|        if (i + 1 >= str.length()) {
  ------------------
  |  Branch (80:13): [True: 0, False: 0]
  ------------------
   81|      0|            return JSONNET_CODEPOINT_ERROR;
  ------------------
  |  |   21|      0|#define JSONNET_CODEPOINT_ERROR 0xfffd
  ------------------
   82|      0|        }
   83|      0|        char c1 = str[++i];
   84|      0|        if ((c1 & 0xC0) != 0x80) {
  ------------------
  |  Branch (84:13): [True: 0, False: 0]
  ------------------
   85|      0|            return JSONNET_CODEPOINT_ERROR;
  ------------------
  |  |   21|      0|#define JSONNET_CODEPOINT_ERROR 0xfffd
  ------------------
   86|      0|        }
   87|      0|        return ((c0 & 0x1F) << 6ul) | (c1 & 0x3F);
   88|      0|    } else if ((c0 & 0xF0) == 0xE0) {  // 1110yyyy 10yyyyxx 10xxxxxx
  ------------------
  |  Branch (88:16): [True: 0, False: 0]
  ------------------
   89|      0|        if (i + 2 >= str.length()) {
  ------------------
  |  Branch (89:13): [True: 0, False: 0]
  ------------------
   90|      0|            return JSONNET_CODEPOINT_ERROR;
  ------------------
  |  |   21|      0|#define JSONNET_CODEPOINT_ERROR 0xfffd
  ------------------
   91|      0|        }
   92|      0|        char c1 = str[++i];
   93|      0|        if ((c1 & 0xC0) != 0x80) {
  ------------------
  |  Branch (93:13): [True: 0, False: 0]
  ------------------
   94|      0|            return JSONNET_CODEPOINT_ERROR;
  ------------------
  |  |   21|      0|#define JSONNET_CODEPOINT_ERROR 0xfffd
  ------------------
   95|      0|        }
   96|      0|        char c2 = str[++i];
   97|      0|        if ((c2 & 0xC0) != 0x80) {
  ------------------
  |  Branch (97:13): [True: 0, False: 0]
  ------------------
   98|      0|            return JSONNET_CODEPOINT_ERROR;
  ------------------
  |  |   21|      0|#define JSONNET_CODEPOINT_ERROR 0xfffd
  ------------------
   99|      0|        }
  100|      0|        return ((c0 & 0xF) << 12ul) | ((c1 & 0x3F) << 6) | (c2 & 0x3F);
  101|      0|    } else if ((c0 & 0xF8) == 0xF0) {  // 11110zzz 10zzyyyy 10yyyyxx 10xxxxxx
  ------------------
  |  Branch (101:16): [True: 0, False: 0]
  ------------------
  102|      0|        if (i + 3 >= str.length()) {
  ------------------
  |  Branch (102:13): [True: 0, False: 0]
  ------------------
  103|      0|            return JSONNET_CODEPOINT_ERROR;
  ------------------
  |  |   21|      0|#define JSONNET_CODEPOINT_ERROR 0xfffd
  ------------------
  104|      0|        }
  105|      0|        char c1 = str[++i];
  106|      0|        if ((c1 & 0xC0) != 0x80) {
  ------------------
  |  Branch (106:13): [True: 0, False: 0]
  ------------------
  107|      0|            return JSONNET_CODEPOINT_ERROR;
  ------------------
  |  |   21|      0|#define JSONNET_CODEPOINT_ERROR 0xfffd
  ------------------
  108|      0|        }
  109|      0|        char c2 = str[++i];
  110|      0|        if ((c2 & 0xC0) != 0x80) {
  ------------------
  |  Branch (110:13): [True: 0, False: 0]
  ------------------
  111|      0|            return JSONNET_CODEPOINT_ERROR;
  ------------------
  |  |   21|      0|#define JSONNET_CODEPOINT_ERROR 0xfffd
  ------------------
  112|      0|        }
  113|      0|        char c3 = str[++i];
  114|      0|        if ((c3 & 0xC0) != 0x80) {
  ------------------
  |  Branch (114:13): [True: 0, False: 0]
  ------------------
  115|      0|            return JSONNET_CODEPOINT_ERROR;
  ------------------
  |  |   21|      0|#define JSONNET_CODEPOINT_ERROR 0xfffd
  ------------------
  116|      0|        }
  117|      0|        return ((c0 & 0x7) << 18ul) | ((c1 & 0x3F) << 12ul) | ((c2 & 0x3F) << 6) | (c3 & 0x3F);
  118|      0|    } else {
  119|      0|        return JSONNET_CODEPOINT_ERROR;
  ------------------
  |  |   21|      0|#define JSONNET_CODEPOINT_ERROR 0xfffd
  ------------------
  120|      0|    }
  121|  8.60M|}
vm.cpp:_ZN7jsonnet8internalL11encode_utf8ERKNSt3__112basic_stringIDiNS1_11char_traitsIDiEENS1_9allocatorIDiEEEE:
  133|   675k|{
  134|   675k|    std::string r;
  135|   675k|    encode_utf8(s, r);
  136|   675k|    return r;
  137|   675k|}
vm.cpp:_ZN7jsonnet8internalL11encode_utf8ERKNSt3__112basic_stringIDiNS1_11char_traitsIDiEENS1_9allocatorIDiEEEERNS2_IcNS3_IcEENS5_IcEEEE:
  127|   675k|{
  128|   675k|    for (char32_t cp : s)
  ------------------
  |  Branch (128:22): [True: 572M, False: 675k]
  ------------------
  129|   572M|        encode_utf8(cp, r);
  130|   675k|}
vm.cpp:_ZN7jsonnet8internalL11encode_utf8EDiRNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
   33|   572M|{
   34|   572M|    if (x >= JSONNET_CODEPOINT_MAX)
  ------------------
  |  |   22|   572M|#define JSONNET_CODEPOINT_MAX 0x110000
  ------------------
  |  Branch (34:9): [True: 1.27k, False: 572M]
  ------------------
   35|  1.27k|        x = JSONNET_CODEPOINT_ERROR;
  ------------------
  |  |   21|  1.27k|#define JSONNET_CODEPOINT_ERROR 0xfffd
  ------------------
   36|       |
   37|       |    // 00ZZZzzz 00zzYYYY 00Yyyyxx 00xxxxxx
   38|   572M|    long bytes = ((x & 0x1C0000) << 6) | ((x & 0x03F000) << 4) | ((x & 0x0FC0) << 2) | (x & 0x3F);
   39|       |
   40|   572M|    if (x < 0x80) {
  ------------------
  |  Branch (40:9): [True: 570M, False: 1.90M]
  ------------------
   41|   570M|        s.push_back((char)x);
   42|   570M|        return 1;
   43|   570M|    } else if (x < 0x800) {  // note that capital 'Y' bits must be 0
  ------------------
  |  Branch (43:16): [True: 7.11k, False: 1.89M]
  ------------------
   44|  7.11k|        bytes |= 0xC080;
   45|  7.11k|        s.push_back((bytes >> 8) & 0xFF);
   46|  7.11k|        s.push_back((bytes >> 0) & 0xFF);
   47|  7.11k|        return 2;
   48|  1.89M|    } else if (x < 0x10000) {  // note that 'z' bits must be 0
  ------------------
  |  Branch (48:16): [True: 1.88M, False: 7.78k]
  ------------------
   49|  1.88M|        bytes |= 0xE08080;
   50|  1.88M|        s.push_back((bytes >> 16) & 0xFF);
   51|  1.88M|        s.push_back((bytes >> 8) & 0xFF);
   52|  1.88M|        s.push_back((bytes >> 0) & 0xFF);
   53|  1.88M|        return 3;
   54|  1.88M|    } else if (x < 0x110000) {  // note that capital 'Z' bits must be 0
  ------------------
  |  Branch (54:16): [True: 7.78k, False: 0]
  ------------------
   55|  7.78k|        bytes |= 0xF0808080;
   56|  7.78k|        s.push_back((bytes >> 24) & 0xFF);
   57|  7.78k|        s.push_back((bytes >> 16) & 0xFF);
   58|  7.78k|        s.push_back((bytes >> 8) & 0xFF);
   59|  7.78k|        s.push_back((bytes >> 0) & 0xFF);
   60|  7.78k|        return 4;
   61|  7.78k|    } else {
   62|      0|        std::cerr << "Should never get here." << std::endl;
   63|      0|        abort();
   64|      0|    }
   65|   572M|}
_ZN7jsonnet8internal13UStringStreamlsIiEERS1_T_:
  171|   828k|    {
  172|   828k|        std::stringstream ss;
  173|   828k|        ss << c;
  174|   828k|        for (char c : ss.str())
  ------------------
  |  Branch (174:21): [True: 1.17M, False: 828k]
  ------------------
  175|  1.17M|            buf.push_back(char32_t(c));
  176|   828k|        return *this;
  177|   828k|    }
_ZN7jsonnet8internal13UStringStreamlsIjEERS1_T_:
  171|   272k|    {
  172|   272k|        std::stringstream ss;
  173|   272k|        ss << c;
  174|   272k|        for (char c : ss.str())
  ------------------
  |  Branch (174:21): [True: 863k, False: 272k]
  ------------------
  175|   863k|            buf.push_back(char32_t(c));
  176|   272k|        return *this;
  177|   272k|    }
desugarer.cpp:_ZN7jsonnet8internalL11encode_utf8ERKNSt3__112basic_stringIDiNS1_11char_traitsIDiEENS1_9allocatorIDiEEEE:
  133|   318k|{
  134|   318k|    std::string r;
  135|   318k|    encode_utf8(s, r);
  136|   318k|    return r;
  137|   318k|}
desugarer.cpp:_ZN7jsonnet8internalL11encode_utf8ERKNSt3__112basic_stringIDiNS1_11char_traitsIDiEENS1_9allocatorIDiEEEERNS2_IcNS3_IcEENS5_IcEEEE:
  127|   318k|{
  128|   318k|    for (char32_t cp : s)
  ------------------
  |  Branch (128:22): [True: 2.12M, False: 318k]
  ------------------
  129|  2.12M|        encode_utf8(cp, r);
  130|   318k|}
desugarer.cpp:_ZN7jsonnet8internalL11encode_utf8EDiRNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
   33|  2.12M|{
   34|  2.12M|    if (x >= JSONNET_CODEPOINT_MAX)
  ------------------
  |  |   22|  2.12M|#define JSONNET_CODEPOINT_MAX 0x110000
  ------------------
  |  Branch (34:9): [True: 0, False: 2.12M]
  ------------------
   35|      0|        x = JSONNET_CODEPOINT_ERROR;
  ------------------
  |  |   21|      0|#define JSONNET_CODEPOINT_ERROR 0xfffd
  ------------------
   36|       |
   37|       |    // 00ZZZzzz 00zzYYYY 00Yyyyxx 00xxxxxx
   38|  2.12M|    long bytes = ((x & 0x1C0000) << 6) | ((x & 0x03F000) << 4) | ((x & 0x0FC0) << 2) | (x & 0x3F);
   39|       |
   40|  2.12M|    if (x < 0x80) {
  ------------------
  |  Branch (40:9): [True: 2.12M, False: 0]
  ------------------
   41|  2.12M|        s.push_back((char)x);
   42|  2.12M|        return 1;
   43|  2.12M|    } else if (x < 0x800) {  // note that capital 'Y' bits must be 0
  ------------------
  |  Branch (43:16): [True: 0, False: 0]
  ------------------
   44|      0|        bytes |= 0xC080;
   45|      0|        s.push_back((bytes >> 8) & 0xFF);
   46|      0|        s.push_back((bytes >> 0) & 0xFF);
   47|      0|        return 2;
   48|      0|    } else if (x < 0x10000) {  // note that 'z' bits must be 0
  ------------------
  |  Branch (48:16): [True: 0, False: 0]
  ------------------
   49|      0|        bytes |= 0xE08080;
   50|      0|        s.push_back((bytes >> 16) & 0xFF);
   51|      0|        s.push_back((bytes >> 8) & 0xFF);
   52|      0|        s.push_back((bytes >> 0) & 0xFF);
   53|      0|        return 3;
   54|      0|    } else if (x < 0x110000) {  // note that capital 'Z' bits must be 0
  ------------------
  |  Branch (54:16): [True: 0, False: 0]
  ------------------
   55|      0|        bytes |= 0xF0808080;
   56|      0|        s.push_back((bytes >> 24) & 0xFF);
   57|      0|        s.push_back((bytes >> 16) & 0xFF);
   58|      0|        s.push_back((bytes >> 8) & 0xFF);
   59|      0|        s.push_back((bytes >> 0) & 0xFF);
   60|      0|        return 4;
   61|      0|    } else {
   62|      0|        std::cerr << "Should never get here." << std::endl;
   63|      0|        abort();
   64|      0|    }
   65|  2.12M|}
desugarer.cpp:_ZN7jsonnet8internalL11decode_utf8ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  140|  7.57k|{
  141|  7.57k|    UString r;
  142|  49.3k|    for (size_t i = 0; i < s.length(); ++i)
  ------------------
  |  Branch (142:24): [True: 41.8k, False: 7.57k]
  ------------------
  143|  41.8k|        r.push_back(decode_utf8(s, i));
  144|  7.57k|    return r;
  145|  7.57k|}
desugarer.cpp:_ZN7jsonnet8internalL11decode_utf8ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERm:
   75|  41.8k|{
   76|  41.8k|    char c0 = str[i];
   77|  41.8k|    if ((c0 & 0x80) == 0) {  // 0xxxxxxx
  ------------------
  |  Branch (77:9): [True: 41.8k, False: 0]
  ------------------
   78|  41.8k|        return c0;
   79|  41.8k|    } else if ((c0 & 0xE0) == 0xC0) {  // 110yyyxx 10xxxxxx
  ------------------
  |  Branch (79:16): [True: 0, False: 0]
  ------------------
   80|      0|        if (i + 1 >= str.length()) {
  ------------------
  |  Branch (80:13): [True: 0, False: 0]
  ------------------
   81|      0|            return JSONNET_CODEPOINT_ERROR;
  ------------------
  |  |   21|      0|#define JSONNET_CODEPOINT_ERROR 0xfffd
  ------------------
   82|      0|        }
   83|      0|        char c1 = str[++i];
   84|      0|        if ((c1 & 0xC0) != 0x80) {
  ------------------
  |  Branch (84:13): [True: 0, False: 0]
  ------------------
   85|      0|            return JSONNET_CODEPOINT_ERROR;
  ------------------
  |  |   21|      0|#define JSONNET_CODEPOINT_ERROR 0xfffd
  ------------------
   86|      0|        }
   87|      0|        return ((c0 & 0x1F) << 6ul) | (c1 & 0x3F);
   88|      0|    } else if ((c0 & 0xF0) == 0xE0) {  // 1110yyyy 10yyyyxx 10xxxxxx
  ------------------
  |  Branch (88:16): [True: 0, False: 0]
  ------------------
   89|      0|        if (i + 2 >= str.length()) {
  ------------------
  |  Branch (89:13): [True: 0, False: 0]
  ------------------
   90|      0|            return JSONNET_CODEPOINT_ERROR;
  ------------------
  |  |   21|      0|#define JSONNET_CODEPOINT_ERROR 0xfffd
  ------------------
   91|      0|        }
   92|      0|        char c1 = str[++i];
   93|      0|        if ((c1 & 0xC0) != 0x80) {
  ------------------
  |  Branch (93:13): [True: 0, False: 0]
  ------------------
   94|      0|            return JSONNET_CODEPOINT_ERROR;
  ------------------
  |  |   21|      0|#define JSONNET_CODEPOINT_ERROR 0xfffd
  ------------------
   95|      0|        }
   96|      0|        char c2 = str[++i];
   97|      0|        if ((c2 & 0xC0) != 0x80) {
  ------------------
  |  Branch (97:13): [True: 0, False: 0]
  ------------------
   98|      0|            return JSONNET_CODEPOINT_ERROR;
  ------------------
  |  |   21|      0|#define JSONNET_CODEPOINT_ERROR 0xfffd
  ------------------
   99|      0|        }
  100|      0|        return ((c0 & 0xF) << 12ul) | ((c1 & 0x3F) << 6) | (c2 & 0x3F);
  101|      0|    } else if ((c0 & 0xF8) == 0xF0) {  // 11110zzz 10zzyyyy 10yyyyxx 10xxxxxx
  ------------------
  |  Branch (101:16): [True: 0, False: 0]
  ------------------
  102|      0|        if (i + 3 >= str.length()) {
  ------------------
  |  Branch (102:13): [True: 0, False: 0]
  ------------------
  103|      0|            return JSONNET_CODEPOINT_ERROR;
  ------------------
  |  |   21|      0|#define JSONNET_CODEPOINT_ERROR 0xfffd
  ------------------
  104|      0|        }
  105|      0|        char c1 = str[++i];
  106|      0|        if ((c1 & 0xC0) != 0x80) {
  ------------------
  |  Branch (106:13): [True: 0, False: 0]
  ------------------
  107|      0|            return JSONNET_CODEPOINT_ERROR;
  ------------------
  |  |   21|      0|#define JSONNET_CODEPOINT_ERROR 0xfffd
  ------------------
  108|      0|        }
  109|      0|        char c2 = str[++i];
  110|      0|        if ((c2 & 0xC0) != 0x80) {
  ------------------
  |  Branch (110:13): [True: 0, False: 0]
  ------------------
  111|      0|            return JSONNET_CODEPOINT_ERROR;
  ------------------
  |  |   21|      0|#define JSONNET_CODEPOINT_ERROR 0xfffd
  ------------------
  112|      0|        }
  113|      0|        char c3 = str[++i];
  114|      0|        if ((c3 & 0xC0) != 0x80) {
  ------------------
  |  Branch (114:13): [True: 0, False: 0]
  ------------------
  115|      0|            return JSONNET_CODEPOINT_ERROR;
  ------------------
  |  |   21|      0|#define JSONNET_CODEPOINT_ERROR 0xfffd
  ------------------
  116|      0|        }
  117|      0|        return ((c0 & 0x7) << 18ul) | ((c1 & 0x3F) << 12ul) | ((c2 & 0x3F) << 6) | (c3 & 0x3F);
  118|      0|    } else {
  119|      0|        return JSONNET_CODEPOINT_ERROR;
  ------------------
  |  |   21|      0|#define JSONNET_CODEPOINT_ERROR 0xfffd
  ------------------
  120|      0|    }
  121|  41.8k|}

_ZN7jsonnet8internal24jsonnet_vm_execute_multiEPNS0_9AllocatorEPKNS0_3ASTERKNSt3__13mapINS6_12basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEENS0_5VmExtENS6_4lessISD_EENSB_INS6_4pairIKSD_SE_EEEEEEjddRKNS7_ISD_NS0_16VmNativeCallbackESG_NSB_INSH_ISI_SO_EEEEEEPFiPvPKcSW_PPcSY_PmESU_b:
 3520|  3.48k|{
 3521|  3.48k|    Interpreter vm(alloc,
 3522|  3.48k|                   ext_vars,
 3523|  3.48k|                   max_stack,
 3524|  3.48k|                   gc_min_objects,
 3525|  3.48k|                   gc_growth_trigger,
 3526|  3.48k|                   natives,
 3527|  3.48k|                   import_callback,
 3528|  3.48k|                   ctx);
 3529|  3.48k|    vm.evaluate(ast, 0);
 3530|  3.48k|    return vm.manifestMulti(string_output);
 3531|  3.48k|}
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_111InterpreterC2EPNS0_9AllocatorERKNSt3__13mapINS5_12basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEENS0_5VmExtENS5_4lessISC_EENSA_INS5_4pairIKSC_SD_EEEEEEjddRKNS6_ISC_NS0_16VmNativeCallbackESF_NSA_INSG_ISH_SN_EEEEEEPFiPvPKcSV_PPcSX_PmEST_:
  945|  3.48k|        : heap(gc_min_objects, gc_growth_trigger),
  946|  3.48k|          stack(max_stack),
  947|  3.48k|          alloc(alloc),
  948|  3.48k|          idImport(alloc->makeIdentifier(U"import")),
  949|  3.48k|          idArrayElement(alloc->makeIdentifier(U"array_element")),
  950|  3.48k|          idInvariant(alloc->makeIdentifier(U"object_assert")),
  951|  3.48k|          idInternal(alloc->makeIdentifier(U"__internal__")),
  952|  3.48k|          idJsonObjVar(alloc->makeIdentifier(U"_")),
  953|  3.48k|          idEmpty(alloc->makeIdentifier(U"")),
  954|  3.48k|          jsonObjVar(alloc->make<Var>(LocationRange(), Fodder{}, idJsonObjVar)),
  955|  3.48k|          externalVars(ext_vars),
  956|  3.48k|          importCallback(import_callback),
  957|  3.48k|          importCallbackContext(import_callback_context)
  958|  3.48k|    {
  959|  3.48k|        scratch = makeNull();
  960|       |        // Add a prefix to avoid conflicting with names from `native_callbacks`.
  961|  3.48k|        builtins["std:makeArray"] = &Interpreter::builtinMakeArray;
  962|  3.48k|        builtins["std:pow"] = &Interpreter::builtinPow;
  963|  3.48k|        builtins["std:floor"] = &Interpreter::builtinFloor;
  964|  3.48k|        builtins["std:ceil"] = &Interpreter::builtinCeil;
  965|  3.48k|        builtins["std:sqrt"] = &Interpreter::builtinSqrt;
  966|  3.48k|        builtins["std:sin"] = &Interpreter::builtinSin;
  967|  3.48k|        builtins["std:cos"] = &Interpreter::builtinCos;
  968|  3.48k|        builtins["std:tan"] = &Interpreter::builtinTan;
  969|  3.48k|        builtins["std:asin"] = &Interpreter::builtinAsin;
  970|  3.48k|        builtins["std:acos"] = &Interpreter::builtinAcos;
  971|  3.48k|        builtins["std:atan"] = &Interpreter::builtinAtan;
  972|  3.48k|        builtins["std:type"] = &Interpreter::builtinType;
  973|  3.48k|        builtins["std:filter"] = &Interpreter::builtinFilter;
  974|  3.48k|        builtins["std:objectHasEx"] = &Interpreter::builtinObjectHasEx;
  975|  3.48k|        builtins["std:length"] = &Interpreter::builtinLength;
  976|  3.48k|        builtins["std:objectFieldsEx"] = &Interpreter::builtinObjectFieldsEx;
  977|  3.48k|        builtins["std:objectRemoveKey"] = &Interpreter::builtinObjectRemoveKey;
  978|  3.48k|        builtins["std:codepoint"] = &Interpreter::builtinCodepoint;
  979|  3.48k|        builtins["std:char"] = &Interpreter::builtinChar;
  980|  3.48k|        builtins["std:log"] = &Interpreter::builtinLog;
  981|  3.48k|        builtins["std:exp"] = &Interpreter::builtinExp;
  982|  3.48k|        builtins["std:mantissa"] = &Interpreter::builtinMantissa;
  983|  3.48k|        builtins["std:exponent"] = &Interpreter::builtinExponent;
  984|  3.48k|        builtins["std:modulo"] = &Interpreter::builtinModulo;
  985|  3.48k|        builtins["std:extVar"] = &Interpreter::builtinExtVar;
  986|  3.48k|        builtins["std:primitiveEquals"] = &Interpreter::builtinPrimitiveEquals;
  987|  3.48k|        builtins["std:native"] = &Interpreter::builtinNative;
  988|  3.48k|        builtins["std:md5"] = &Interpreter::builtinMd5;
  989|  3.48k|        builtins["std:trace"] = &Interpreter::builtinTrace;
  990|  3.48k|        builtins["std:splitLimit"] = &Interpreter::builtinSplitLimit;
  991|  3.48k|        builtins["std:substr"] = &Interpreter::builtinSubstr;
  992|  3.48k|        builtins["std:range"] = &Interpreter::builtinRange;
  993|  3.48k|        builtins["std:strReplace"] = &Interpreter::builtinStrReplace;
  994|  3.48k|        builtins["std:asciiLower"] = &Interpreter::builtinAsciiLower;
  995|  3.48k|        builtins["std:asciiUpper"] = &Interpreter::builtinAsciiUpper;
  996|  3.48k|        builtins["std:join"] = &Interpreter::builtinJoin;
  997|  3.48k|        builtins["std:parseJson"] = &Interpreter::builtinParseJson;
  998|  3.48k|        builtins["std:parseYaml"] = &Interpreter::builtinParseYaml;
  999|  3.48k|        builtins["std:encodeUTF8"] = &Interpreter::builtinEncodeUTF8;
 1000|  3.48k|        builtins["std:decodeUTF8"] = &Interpreter::builtinDecodeUTF8;
 1001|  3.48k|        builtins["std:atan2"] = &Interpreter::builtinAtan2;
 1002|  3.48k|        builtins["std:hypot"] = &Interpreter::builtinHypot;
 1003|       |
 1004|       |        // Add a prefix `native:` to names of provided callbacks to ensure they can't clash with the builtins above.
 1005|       |        // Although we have separate lookup tables for them, the HeapClosure and BuiltinFunctionBody types just hold
 1006|       |        // function "name" as a std::string to identify the function.
 1007|  3.48k|        for (const auto& [name, cb] : native_callbacks) {
  ------------------
  |  Branch (1007:37): [True: 0, False: 3.48k]
  ------------------
 1008|      0|            nativeCallbacks.emplace("native:" + name, cb);
 1009|      0|        }
 1010|       |
 1011|  3.48k|        DesugaredObject *stdlib = makeStdlibAST(alloc, "__internal__");
 1012|  3.48k|        jsonnet_static_analysis(stdlib);
 1013|  3.48k|        stdlibAST = stdlib; // stdlibAST is const, so we need to do analysis before this assignment
 1014|  3.48k|        auto stdThunk = makeHeap<HeapThunk>(nullptr, nullptr, 0, static_cast<const AST*>(stdlibAST));
 1015|  3.48k|        stack.newCall(stdThunk->body->location, stdThunk, stdThunk->self, stdThunk->offset, stdThunk->upValues);
 1016|  3.48k|        evaluate(stdThunk->body, 0);
 1017|  3.48k|        stdObject = dynamic_cast<HeapObject*>(scratch.v.h);
 1018|  3.48k|        prepareSourceValThunks();
 1019|  3.48k|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_15StackC2Ej:
  258|  3.48k|    Stack(unsigned limit) : calls(0), limit(limit) {}
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_111Interpreter8makeNullEv:
  634|  31.6k|    {
  635|  31.6k|        Value r;
  636|  31.6k|        r.t = Value::NULL_TYPE;
  637|  31.6k|        return r;
  638|  31.6k|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_15Stack3topEv:
  291|   466M|    {
  292|   466M|        return stack.back();
  293|   466M|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_111Interpreter19validateBuiltinArgsERKNS0_13LocationRangeERKNSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEERKNS6_6vectorINS1_5ValueENSA_ISG_EEEENSF_INSG_4TypeENSA_ISL_EEEE:
 1043|   179k|    {
 1044|   179k|        if (args.size() == params.size()) {
  ------------------
  |  Branch (1044:13): [True: 179k, False: 0]
  ------------------
 1045|   507k|            for (std::size_t i = 0; i < args.size(); ++i) {
  ------------------
  |  Branch (1045:37): [True: 328k, False: 179k]
  ------------------
 1046|   328k|                if (args[i].t != params[i])
  ------------------
  |  Branch (1046:21): [True: 0, False: 328k]
  ------------------
 1047|      0|                    goto bad;
 1048|   328k|            }
 1049|   179k|            return;
 1050|   179k|        }
 1051|      0|    bad:;
 1052|      0|        std::stringstream ss;
 1053|      0|        ss << "Builtin function " + name + " expected (";
 1054|      0|        const char *prefix = "";
 1055|      0|        for (auto p : params) {
  ------------------
  |  Branch (1055:21): [True: 0, False: 0]
  ------------------
 1056|      0|            ss << prefix << type_str(p);
 1057|      0|            prefix = ", ";
 1058|      0|        }
 1059|      0|        ss << ") but got (";
 1060|      0|        prefix = "";
 1061|      0|        for (auto a : args) {
  ------------------
  |  Branch (1061:21): [True: 0, False: 0]
  ------------------
 1062|      0|            ss << prefix << type_str(a);
 1063|      0|            prefix = ", ";
 1064|      0|        }
 1065|      0|        ss << ")";
 1066|      0|        throw makeError(loc, ss.str());
 1067|   179k|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_111Interpreter9makeErrorERKNS0_13LocationRangeERKNSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEE:
  567|  2.28k|    {
  568|  2.28k|        return stack.makeError(loc, msg);
  569|  2.28k|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_15Stack9makeErrorERKNS0_13LocationRangeERKNSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEE:
  368|  2.96k|    {
  369|  2.96k|        std::vector<TraceFrame> stack_trace;
  370|  2.96k|        stack_trace.push_back(TraceFrame(loc));
  371|  1.05M|        for (int i = stack.size() - 1; i >= 0; --i) {
  ------------------
  |  Branch (371:40): [True: 1.05M, False: 2.96k]
  ------------------
  372|  1.05M|            const auto &f = stack[i];
  373|  1.05M|            if (f.isCall()) {
  ------------------
  |  Branch (373:17): [True: 358k, False: 696k]
  ------------------
  374|   358k|                if (f.context != nullptr) {
  ------------------
  |  Branch (374:21): [True: 358k, False: 0]
  ------------------
  375|       |                    // Give the last line a name.
  376|   358k|                    stack_trace[stack_trace.size() - 1].name = getName(i, f.context);
  377|   358k|                }
  378|   358k|                if (f.location.isSet() || f.location.file.length() > 0)
  ------------------
  |  Branch (378:21): [True: 288k, False: 69.7k]
  |  Branch (378:43): [True: 765, False: 69.0k]
  ------------------
  379|   289k|                    stack_trace.push_back(TraceFrame(f.location));
  380|   358k|            }
  381|  1.05M|        }
  382|  2.96k|        return RuntimeError(stack_trace, msg);
  383|  2.96k|    }
vm.cpp:_ZNK7jsonnet8internal12_GLOBAL__N_15Frame6isCallEv:
  241|   526M|    {
  242|   526M|        return kind == FRAME_CALL;
  243|   526M|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_15Stack7getNameEjPKNS1_10HeapEntityE:
  313|   358k|    {
  314|   358k|        std::string name;
  315|  1.04M|        for (int i = from_here - 1; i >= 0; --i) {
  ------------------
  |  Branch (315:37): [True: 1.04M, False: 2.07k]
  ------------------
  316|  1.04M|            const auto &f = stack[i];
  317|  1.04M|            for (const auto &pair : f.bindings) {
  ------------------
  |  Branch (317:35): [True: 563k, False: 1.04M]
  ------------------
  318|   563k|                HeapThunk *thunk = pair.second;
  319|   563k|                if (!thunk->filled)
  ------------------
  |  Branch (319:21): [True: 170k, False: 392k]
  ------------------
  320|   170k|                    continue;
  321|   392k|                if (!thunk->content.isHeap())
  ------------------
  |  Branch (321:21): [True: 50.7k, False: 342k]
  ------------------
  322|  50.7k|                    continue;
  323|   342k|                if (e != thunk->content.v.h)
  ------------------
  |  Branch (323:21): [True: 304k, False: 37.8k]
  ------------------
  324|   304k|                    continue;
  325|  37.8k|                name = encode_utf8(pair.first->name);
  326|  37.8k|            }
  327|       |            // Do not go into the next call frame, keep local reasoning.
  328|  1.04M|            if (f.isCall())
  ------------------
  |  Branch (328:17): [True: 356k, False: 686k]
  ------------------
  329|   356k|                break;
  330|  1.04M|        }
  331|       |
  332|   358k|        if (name == "")
  ------------------
  |  Branch (332:13): [True: 320k, False: 37.8k]
  ------------------
  333|   320k|            name = "anonymous";
  334|   358k|        if (dynamic_cast<const HeapObject *>(e)) {
  ------------------
  |  Branch (334:13): [True: 233k, False: 125k]
  ------------------
  335|   233k|            return "object <" + name + ">";
  336|   233k|        } else if (auto *thunk = dynamic_cast<const HeapThunk *>(e)) {
  ------------------
  |  Branch (336:26): [True: 72.4k, False: 53.0k]
  ------------------
  337|  72.4k|            if (thunk->name == nullptr) {
  ------------------
  |  Branch (337:17): [True: 7.51k, False: 64.9k]
  ------------------
  338|  7.51k|                return "";  // Argument of builtin, or root (since top level functions).
  339|  64.9k|            } else {
  340|  64.9k|                return "thunk <" + encode_utf8(thunk->name->name) + ">";
  341|  64.9k|            }
  342|  72.4k|        } else {
  343|  53.0k|            const auto *func = static_cast<const HeapClosure *>(e);
  344|  53.0k|            if (func->isBuiltin()) {
  ------------------
  |  Branch (344:17): [True: 0, False: 53.0k]
  ------------------
  345|      0|                return "builtin function <" + func->builtinName + ">";
  346|      0|            }
  347|  53.0k|            return "function <" + name + ">";
  348|  53.0k|        }
  349|   358k|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_15Stack4markERNS1_4HeapE:
  284|  95.3k|    {
  285|  21.4M|        for (const auto &f : stack) {
  ------------------
  |  Branch (285:28): [True: 21.4M, False: 95.3k]
  ------------------
  286|  21.4M|            f.mark(heap);
  287|  21.4M|        }
  288|  95.3k|    }
vm.cpp:_ZNK7jsonnet8internal12_GLOBAL__N_15Frame4markERNS1_4HeapE:
  225|  21.4M|    {
  226|  21.4M|        heap.markFrom(val);
  227|  21.4M|        heap.markFrom(val2);
  228|  21.4M|        if (context)
  ------------------
  |  Branch (228:13): [True: 15.4M, False: 6.07M]
  ------------------
  229|  15.4M|            heap.markFrom(context);
  230|  21.4M|        if (self)
  ------------------
  |  Branch (230:13): [True: 15.3M, False: 6.13M]
  ------------------
  231|  15.3M|            heap.markFrom(self);
  232|  21.4M|        for (const auto &bind : bindings)
  ------------------
  |  Branch (232:31): [True: 19.2M, False: 21.4M]
  ------------------
  233|  19.2M|            heap.markFrom(bind.second);
  234|  21.4M|        for (const auto &el : elements)
  ------------------
  |  Branch (234:29): [True: 0, False: 21.4M]
  ------------------
  235|      0|            heap.markFrom(el.second);
  236|  21.4M|        for (const auto &th : thunks)
  ------------------
  |  Branch (236:29): [True: 4.46M, False: 21.4M]
  ------------------
  237|  4.46M|            heap.markFrom(th);
  238|  21.4M|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_111Interpreter10makeNumberEd:
  615|  4.77M|    {
  616|  4.77M|        Value r;
  617|  4.77M|        r.t = Value::NUMBER;
  618|  4.77M|        r.v.d = v;
  619|  4.77M|        return r;
  620|  4.77M|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_111Interpreter9makeArrayERKNSt3__16vectorIPNS1_9HeapThunkENS3_9allocatorIS6_EEEE:
  641|  1.61M|    {
  642|  1.61M|        Value r;
  643|  1.61M|        r.t = Value::ARRAY;
  644|  1.61M|        r.v.h = makeHeap<HeapArray>(v);
  645|  1.61M|        return r;
  646|  1.61M|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_111Interpreter8makeHeapINS1_9HeapArrayEJRKNSt3__16vectorIPNS1_9HeapThunkENS5_9allocatorIS8_EEEEEEEPT_DpOT0_:
  577|  1.61M|    {
  578|  1.61M|        T *r = heap.makeEntity<T, Args...>(std::forward<Args>(args)...);
  579|  1.61M|        if (heap.checkHeap()) {  // Do a GC cycle?
  ------------------
  |  Branch (579:13): [True: 2.74k, False: 1.61M]
  ------------------
  580|       |            // Avoid the object we just made being collected.
  581|  2.74k|            heap.markFrom(r);
  582|       |
  583|       |            // Mark from the stack.
  584|  2.74k|            stack.mark(heap);
  585|       |
  586|       |            // Mark from the scratch register
  587|  2.74k|            heap.markFrom(scratch);
  588|       |
  589|       |            // Mark from cached imports
  590|  2.74k|            for (const auto &pair : cachedImports) {
  ------------------
  |  Branch (590:35): [True: 0, False: 2.74k]
  ------------------
  591|      0|                HeapThunk *thunk = pair.second->thunk;
  592|      0|                if (thunk != nullptr)
  ------------------
  |  Branch (592:21): [True: 0, False: 0]
  ------------------
  593|      0|                    heap.markFrom(thunk);
  594|      0|            }
  595|       |
  596|   442k|            for (const auto &sourceVal : sourceVals) {
  ------------------
  |  Branch (596:40): [True: 442k, False: 2.74k]
  ------------------
  597|   442k|                heap.markFrom(sourceVal.second);
  598|   442k|            }
  599|       |
  600|       |            // Delete unreachable objects.
  601|  2.74k|            heap.sweep();
  602|  2.74k|        }
  603|  1.61M|        return r;
  604|  1.61M|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_111Interpreter10builtinPowERKNS0_13LocationRangeERKNSt3__16vectorINS1_5ValueENS6_9allocatorIS8_EEEE:
 1103|  2.58k|    {
 1104|  2.58k|        validateBuiltinArgs(loc, "pow", args, {Value::NUMBER, Value::NUMBER});
 1105|  2.58k|        scratch = makeNumberCheck(loc, std::pow(args[0].v.d, args[1].v.d));
 1106|  2.58k|        return nullptr;
 1107|  2.58k|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_111Interpreter15makeNumberCheckERKNS0_13LocationRangeEd:
  623|  4.13M|    {
  624|  4.13M|        if (std::isnan(v)) {
  ------------------
  |  Branch (624:13): [True: 0, False: 4.13M]
  ------------------
  625|      0|            throw makeError(loc, "not a number");
  626|      0|        }
  627|  4.13M|        if (std::isinf(v)) {
  ------------------
  |  Branch (627:13): [True: 25, False: 4.13M]
  ------------------
  628|     25|            throw makeError(loc, "overflow");
  629|     25|        }
  630|  4.13M|        return makeNumber(v);
  631|  4.13M|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_111Interpreter12builtinFloorERKNS0_13LocationRangeERKNSt3__16vectorINS1_5ValueENS6_9allocatorIS8_EEEE:
 1110|  25.9k|    {
 1111|  25.9k|        validateBuiltinArgs(loc, "floor", args, {Value::NUMBER});
 1112|  25.9k|        scratch = makeNumberCheck(loc, std::floor(args[0].v.d));
 1113|  25.9k|        return nullptr;
 1114|  25.9k|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_111Interpreter11builtinTypeERKNS0_13LocationRangeERKNSt3__16vectorINS1_5ValueENS6_9allocatorIS8_EEEE:
 1187|  2.30M|    {
 1188|  2.30M|        switch (args[0].t) {
  ------------------
  |  Branch (1188:17): [True: 2.30M, False: 0]
  ------------------
 1189|  23.6k|            case Value::NULL_TYPE: scratch = makeString(U"null"); return nullptr;
  ------------------
  |  Branch (1189:13): [True: 23.6k, False: 2.28M]
  ------------------
 1190|       |
 1191|   120k|            case Value::BOOLEAN: scratch = makeString(U"boolean"); return nullptr;
  ------------------
  |  Branch (1191:13): [True: 120k, False: 2.18M]
  ------------------
 1192|       |
 1193|   331k|            case Value::NUMBER: scratch = makeString(U"number"); return nullptr;
  ------------------
  |  Branch (1193:13): [True: 331k, False: 1.97M]
  ------------------
 1194|       |
 1195|   175k|            case Value::ARRAY: scratch = makeString(U"array"); return nullptr;
  ------------------
  |  Branch (1195:13): [True: 175k, False: 2.13M]
  ------------------
 1196|       |
 1197|     34|            case Value::FUNCTION: scratch = makeString(U"function"); return nullptr;
  ------------------
  |  Branch (1197:13): [True: 34, False: 2.30M]
  ------------------
 1198|       |
 1199|   117k|            case Value::OBJECT: scratch = makeString(U"object"); return nullptr;
  ------------------
  |  Branch (1199:13): [True: 117k, False: 2.18M]
  ------------------
 1200|       |
 1201|  1.53M|            case Value::STRING: scratch = makeString(U"string"); return nullptr;
  ------------------
  |  Branch (1201:13): [True: 1.53M, False: 768k]
  ------------------
 1202|  2.30M|        }
 1203|      0|        return nullptr;  // Quiet, compiler.
 1204|  2.30M|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_111Interpreter10makeStringERKNSt3__112basic_stringIDiNS3_11char_traitsIDiEENS3_9allocatorIDiEEEE:
  679|  31.0M|    {
  680|  31.0M|        Value r;
  681|  31.0M|        r.t = Value::STRING;
  682|  31.0M|        r.v.h = makeHeap<HeapString>(v);
  683|  31.0M|        return r;
  684|  31.0M|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_111Interpreter8makeHeapINS1_10HeapStringEJRKNSt3__112basic_stringIDiNS5_11char_traitsIDiEENS5_9allocatorIDiEEEEEEEPT_DpOT0_:
  577|  31.0M|    {
  578|  31.0M|        T *r = heap.makeEntity<T, Args...>(std::forward<Args>(args)...);
  579|  31.0M|        if (heap.checkHeap()) {  // Do a GC cycle?
  ------------------
  |  Branch (579:13): [True: 37.0k, False: 31.0M]
  ------------------
  580|       |            // Avoid the object we just made being collected.
  581|  37.0k|            heap.markFrom(r);
  582|       |
  583|       |            // Mark from the stack.
  584|  37.0k|            stack.mark(heap);
  585|       |
  586|       |            // Mark from the scratch register
  587|  37.0k|            heap.markFrom(scratch);
  588|       |
  589|       |            // Mark from cached imports
  590|  37.0k|            for (const auto &pair : cachedImports) {
  ------------------
  |  Branch (590:35): [True: 0, False: 37.0k]
  ------------------
  591|      0|                HeapThunk *thunk = pair.second->thunk;
  592|      0|                if (thunk != nullptr)
  ------------------
  |  Branch (592:21): [True: 0, False: 0]
  ------------------
  593|      0|                    heap.markFrom(thunk);
  594|      0|            }
  595|       |
  596|  5.96M|            for (const auto &sourceVal : sourceVals) {
  ------------------
  |  Branch (596:40): [True: 5.96M, False: 37.0k]
  ------------------
  597|  5.96M|                heap.markFrom(sourceVal.second);
  598|  5.96M|            }
  599|       |
  600|       |            // Delete unreachable objects.
  601|  37.0k|            heap.sweep();
  602|  37.0k|        }
  603|  31.0M|        return r;
  604|  31.0M|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_111Interpreter12objectFieldsEPKNS1_10HeapObjectEb:
  773|   586k|    {
  774|   586k|        std::set<const Identifier *> r;
  775|  1.38M|        for (const auto &pair : objectFieldsAux(obj_)) {
  ------------------
  |  Branch (775:31): [True: 1.38M, False: 586k]
  ------------------
  776|  1.38M|            if (!manifesting || pair.second != ObjectField::HIDDEN)
  ------------------
  |  Branch (776:17): [True: 0, False: 1.38M]
  |  Branch (776:33): [True: 1.38M, False: 2.03k]
  ------------------
  777|  1.38M|                r.insert(pair.first);
  778|  1.38M|        }
  779|   586k|        return r;
  780|   586k|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_111Interpreter15objectFieldsAuxEPKNS1_10HeapObjectE:
  740|  29.9M|    {
  741|  29.9M|        IdHideMap r;
  742|  29.9M|        if (auto *obj = dynamic_cast<const HeapSimpleObject *>(obj_)) {
  ------------------
  |  Branch (742:19): [True: 15.2M, False: 14.6M]
  ------------------
  743|  15.2M|            for (const auto &f : obj->fields) {
  ------------------
  |  Branch (743:32): [True: 9.26M, False: 15.2M]
  ------------------
  744|  9.26M|                r[f.first] = f.second.hide;
  745|  9.26M|            }
  746|       |
  747|  15.2M|        } else if (auto *obj = dynamic_cast<const HeapRestrictedObject *>(obj_)) {
  ------------------
  |  Branch (747:26): [True: 0, False: 14.6M]
  ------------------
  748|      0|            return obj->retainedKeys;
  749|       |
  750|  14.6M|        } else if (auto *obj = dynamic_cast<const HeapExtendedObject *>(obj_)) {
  ------------------
  |  Branch (750:26): [True: 14.6M, False: 0]
  ------------------
  751|  14.6M|            r = objectFieldsAux(obj->right);
  752|  30.6M|            for (const auto &pair : objectFieldsAux(obj->left)) {
  ------------------
  |  Branch (752:35): [True: 30.6M, False: 14.6M]
  ------------------
  753|  30.6M|                auto it = r.find(pair.first);
  754|  30.6M|                if (it == r.end()) {
  ------------------
  |  Branch (754:21): [True: 22.8M, False: 7.88M]
  ------------------
  755|       |                    // First time it is seen
  756|  22.8M|                    r[pair.first] = pair.second;
  757|  22.8M|                } else if (it->second == ObjectField::INHERIT) {
  ------------------
  |  Branch (757:28): [True: 7.55M, False: 325k]
  ------------------
  758|       |                    // Seen before, but with inherited visibility so use new visibility
  759|  7.55M|                    r[pair.first] = pair.second;
  760|  7.55M|                }
  761|  30.6M|            }
  762|       |
  763|  14.6M|        } else if (auto *obj = dynamic_cast<const HeapComprehensionObject *>(obj_)) {
  ------------------
  |  Branch (763:26): [True: 0, False: 0]
  ------------------
  764|      0|            for (const auto &f : obj->compValues)
  ------------------
  |  Branch (764:32): [True: 0, False: 0]
  ------------------
  765|      0|                r[f.first] = ObjectField::INHERIT;
  766|      0|        }
  767|  29.9M|        return r;
  768|  29.9M|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_111Interpreter11makeBooleanEb:
  607|  8.46M|    {
  608|  8.46M|        Value r;
  609|  8.46M|        r.t = Value::BOOLEAN;
  610|  8.46M|        r.v.b = v;
  611|  8.46M|        return r;
  612|  8.46M|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_111Interpreter13builtinLengthERKNS0_13LocationRangeERKNSt3__16vectorINS1_5ValueENS6_9allocatorIS8_EEEE:
 1252|   502k|    {
 1253|   502k|        if (args.size() != 1) {
  ------------------
  |  Branch (1253:13): [True: 0, False: 502k]
  ------------------
 1254|      0|            throw makeError(loc, "length takes 1 parameter.");
 1255|      0|        }
 1256|   502k|        HeapEntity *e = args[0].v.h;
 1257|   502k|        switch (args[0].t) {
 1258|      0|            case Value::OBJECT: {
  ------------------
  |  Branch (1258:13): [True: 0, False: 502k]
  ------------------
 1259|      0|                auto fields = objectFields(static_cast<HeapObject *>(e), true);
 1260|      0|                scratch = makeNumber(fields.size());
 1261|      0|            } break;
 1262|       |
 1263|   285k|            case Value::ARRAY:
  ------------------
  |  Branch (1263:13): [True: 285k, False: 217k]
  ------------------
 1264|   285k|                scratch = makeNumber(static_cast<HeapArray *>(e)->elements.size());
 1265|   285k|                break;
 1266|       |
 1267|   217k|            case Value::STRING:
  ------------------
  |  Branch (1267:13): [True: 217k, False: 285k]
  ------------------
 1268|   217k|                scratch = makeNumber(static_cast<HeapString *>(e)->value.length());
 1269|   217k|                break;
 1270|       |
 1271|      0|            case Value::FUNCTION:
  ------------------
  |  Branch (1271:13): [True: 0, False: 502k]
  ------------------
 1272|      0|                scratch = makeNumber(static_cast<HeapClosure *>(e)->params.size());
 1273|      0|                break;
 1274|       |
 1275|      9|            default:
  ------------------
  |  Branch (1275:13): [True: 9, False: 502k]
  ------------------
 1276|      9|                throw makeError(loc,
 1277|      9|                                "length operates on strings, objects, "
 1278|      9|                                "and arrays, got " +
 1279|      9|                                    type_str(args[0]));
 1280|   502k|        }
 1281|   502k|        return nullptr;
 1282|   502k|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_111Interpreter21builtinObjectFieldsExERKNS0_13LocationRangeERKNSt3__16vectorINS1_5ValueENS6_9allocatorIS8_EEEE:
 1285|   107k|    {
 1286|   107k|        validateBuiltinArgs(loc, "objectFieldsEx", args, {Value::OBJECT, Value::BOOLEAN});
 1287|   107k|        const auto *obj = static_cast<HeapObject *>(args[0].v.h);
 1288|   107k|        bool include_hidden = args[1].v.b;
 1289|       |        // Stash in a set first to sort them.
 1290|   107k|        std::set<UString> fields;
 1291|   655k|        for (const auto &field : objectFields(obj, !include_hidden)) {
  ------------------
  |  Branch (1291:32): [True: 655k, False: 107k]
  ------------------
 1292|   655k|            fields.insert(field->name);
 1293|   655k|        }
 1294|   107k|        scratch = makeArray({});
 1295|   107k|        auto &elements = static_cast<HeapArray *>(scratch.v.h)->elements;
 1296|   655k|        for (const auto &field : fields) {
  ------------------
  |  Branch (1296:32): [True: 655k, False: 107k]
  ------------------
 1297|   655k|            auto *th = makeHeap<HeapThunk>(idArrayElement, nullptr, 0, nullptr);
 1298|   655k|            elements.push_back(th);
 1299|   655k|            th->fill(makeString(field));
 1300|   655k|        }
 1301|   107k|        return nullptr;
 1302|   107k|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_111Interpreter8makeHeapINS1_9HeapThunkEJRPKNS0_10IdentifierEDniDnEEEPT_DpOT0_:
  577|   655k|    {
  578|   655k|        T *r = heap.makeEntity<T, Args...>(std::forward<Args>(args)...);
  579|   655k|        if (heap.checkHeap()) {  // Do a GC cycle?
  ------------------
  |  Branch (579:13): [True: 876, False: 654k]
  ------------------
  580|       |            // Avoid the object we just made being collected.
  581|    876|            heap.markFrom(r);
  582|       |
  583|       |            // Mark from the stack.
  584|    876|            stack.mark(heap);
  585|       |
  586|       |            // Mark from the scratch register
  587|    876|            heap.markFrom(scratch);
  588|       |
  589|       |            // Mark from cached imports
  590|    876|            for (const auto &pair : cachedImports) {
  ------------------
  |  Branch (590:35): [True: 0, False: 876]
  ------------------
  591|      0|                HeapThunk *thunk = pair.second->thunk;
  592|      0|                if (thunk != nullptr)
  ------------------
  |  Branch (592:21): [True: 0, False: 0]
  ------------------
  593|      0|                    heap.markFrom(thunk);
  594|      0|            }
  595|       |
  596|   141k|            for (const auto &sourceVal : sourceVals) {
  ------------------
  |  Branch (596:40): [True: 141k, False: 876]
  ------------------
  597|   141k|                heap.markFrom(sourceVal.second);
  598|   141k|            }
  599|       |
  600|       |            // Delete unreachable objects.
  601|    876|            heap.sweep();
  602|    876|        }
  603|   655k|        return r;
  604|   655k|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_111Interpreter11builtinCharERKNS0_13LocationRangeERKNSt3__16vectorINS1_5ValueENS6_9allocatorIS8_EEEE:
 1335|  1.38k|    {
 1336|  1.38k|        validateBuiltinArgs(loc, "char", args, {Value::NUMBER});
 1337|  1.38k|        long l = long(args[0].v.d);
 1338|  1.38k|        if (l < 0) {
  ------------------
  |  Branch (1338:13): [True: 56, False: 1.33k]
  ------------------
 1339|     56|            std::stringstream ss;
 1340|     56|            ss << "codepoints must be >= 0, got " << l;
 1341|     56|            throw makeError(loc, ss.str());
 1342|     56|        }
 1343|  1.33k|        if (l >= JSONNET_CODEPOINT_MAX) {
  ------------------
  |  |   22|  1.33k|#define JSONNET_CODEPOINT_MAX 0x110000
  ------------------
  |  Branch (1343:13): [True: 34, False: 1.29k]
  ------------------
 1344|     34|            std::stringstream ss;
 1345|     34|            ss << "invalid unicode codepoint, got " << l;
 1346|     34|            throw makeError(loc, ss.str());
 1347|     34|        }
 1348|  1.29k|        char32_t c = l;
 1349|  1.29k|        scratch = makeString(UString(&c, 1));
 1350|  1.29k|        return nullptr;
 1351|  1.33k|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_111Interpreter10builtinLogERKNS0_13LocationRangeERKNSt3__16vectorINS1_5ValueENS6_9allocatorIS8_EEEE:
 1354|  2.86k|    {
 1355|  2.86k|        validateBuiltinArgs(loc, "log", args, {Value::NUMBER});
 1356|  2.86k|        scratch = makeNumberCheck(loc, std::log(args[0].v.d));
 1357|  2.86k|        return nullptr;
 1358|  2.86k|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_111Interpreter13builtinModuloERKNS0_13LocationRangeERKNSt3__16vectorINS1_5ValueENS6_9allocatorIS8_EEEE:
 1386|  37.7k|    {
 1387|  37.7k|        validateBuiltinArgs(loc, "modulo", args, {Value::NUMBER, Value::NUMBER});
 1388|  37.7k|        double a = args[0].v.d;
 1389|  37.7k|        double b = args[1].v.d;
 1390|  37.7k|        if (b == 0)
  ------------------
  |  Branch (1390:13): [True: 24, False: 37.7k]
  ------------------
 1391|     24|            throw makeError(loc, "division by zero.");
 1392|  37.7k|        scratch = makeNumberCheck(loc, std::fmod(a, b));
 1393|  37.7k|        return nullptr;
 1394|  37.7k|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_15Stack3popEv:
  301|  89.3M|    {
  302|  89.3M|        if (top().isCall())
  ------------------
  |  Branch (302:13): [True: 34.8M, False: 54.4M]
  ------------------
  303|  34.8M|            calls--;
  304|  89.3M|        stack.pop_back();
  305|  89.3M|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_111Interpreter22builtinPrimitiveEqualsERKNS0_13LocationRangeERKNSt3__16vectorINS1_5ValueENS6_9allocatorIS8_EEEE:
 1422|  3.80M|    {
 1423|  3.80M|        if (args.size() != 2) {
  ------------------
  |  Branch (1423:13): [True: 0, False: 3.80M]
  ------------------
 1424|      0|            std::stringstream ss;
 1425|      0|            ss << "primitiveEquals takes 2 parameters, got " << args.size();
 1426|      0|            throw makeError(loc, ss.str());
 1427|      0|        }
 1428|  3.80M|        if (args[0].t != args[1].t) {
  ------------------
  |  Branch (1428:13): [True: 0, False: 3.80M]
  ------------------
 1429|      0|            scratch = makeBoolean(false);
 1430|      0|            return nullptr;
 1431|      0|        }
 1432|  3.80M|        bool r;
 1433|  3.80M|        switch (args[0].t) {
 1434|  39.2k|            case Value::BOOLEAN: r = args[0].v.b == args[1].v.b; break;
  ------------------
  |  Branch (1434:13): [True: 39.2k, False: 3.76M]
  ------------------
 1435|       |
 1436|   134k|            case Value::NUMBER: r = args[0].v.d == args[1].v.d; break;
  ------------------
  |  Branch (1436:13): [True: 134k, False: 3.66M]
  ------------------
 1437|       |
 1438|  3.62M|            case Value::STRING:
  ------------------
  |  Branch (1438:13): [True: 3.62M, False: 181k]
  ------------------
 1439|  3.62M|                r = static_cast<HeapString *>(args[0].v.h)->value ==
 1440|  3.62M|                    static_cast<HeapString *>(args[1].v.h)->value;
 1441|  3.62M|                break;
 1442|       |
 1443|  8.09k|            case Value::NULL_TYPE: r = true; break;
  ------------------
  |  Branch (1443:13): [True: 8.09k, False: 3.79M]
  ------------------
 1444|       |
 1445|      2|            case Value::FUNCTION: throw makeError(loc, "cannot test equality of functions"); break;
  ------------------
  |  Branch (1445:13): [True: 2, False: 3.80M]
  ------------------
 1446|       |
 1447|      0|            default:
  ------------------
  |  Branch (1447:13): [True: 0, False: 3.80M]
  ------------------
 1448|      0|                throw makeError(loc,
 1449|      0|                                "primitiveEquals operates on primitive "
 1450|      0|                                "types, got " +
 1451|      0|                                    type_str(args[0]));
 1452|  3.80M|        }
 1453|  3.80M|        scratch = makeBoolean(r);
 1454|  3.80M|        return nullptr;
 1455|  3.80M|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_111Interpreter18makeBuiltinFromASTEPKNS0_19BuiltinFunctionBodyE:
  658|  6.79M|    {
  659|  6.79M|        HeapClosure::Params hc_params;
  660|  10.7M|        for (const auto p : body->params) {
  ------------------
  |  Branch (660:27): [True: 10.7M, False: 6.79M]
  ------------------
  661|  10.7M|            hc_params.emplace_back(p, nullptr);
  662|  10.7M|        }
  663|  6.79M|        Value r;
  664|  6.79M|        r.t = Value::FUNCTION;
  665|  6.79M|        r.v.h = makeHeap<HeapClosure>(BindingFrame(), nullptr, 0, hc_params, body, body->name);
  666|  6.79M|        return r;
  667|  6.79M|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_111Interpreter8makeHeapINS1_11HeapClosureEJNSt3__13mapIPKNS0_10IdentifierEPNS1_9HeapThunkENS5_4lessIS9_EENS5_9allocatorINS5_4pairIKS9_SB_EEEEEEDniRNS5_6vectorINS4_5ParamENSE_ISL_EEEERPKNS0_19BuiltinFunctionBodyERKNS5_12basic_stringIcNS5_11char_traitsIcEENSE_IcEEEEEEEPT_DpOT0_:
  577|  6.79M|    {
  578|  6.79M|        T *r = heap.makeEntity<T, Args...>(std::forward<Args>(args)...);
  579|  6.79M|        if (heap.checkHeap()) {  // Do a GC cycle?
  ------------------
  |  Branch (579:13): [True: 7.78k, False: 6.78M]
  ------------------
  580|       |            // Avoid the object we just made being collected.
  581|  7.78k|            heap.markFrom(r);
  582|       |
  583|       |            // Mark from the stack.
  584|  7.78k|            stack.mark(heap);
  585|       |
  586|       |            // Mark from the scratch register
  587|  7.78k|            heap.markFrom(scratch);
  588|       |
  589|       |            // Mark from cached imports
  590|  7.78k|            for (const auto &pair : cachedImports) {
  ------------------
  |  Branch (590:35): [True: 0, False: 7.78k]
  ------------------
  591|      0|                HeapThunk *thunk = pair.second->thunk;
  592|      0|                if (thunk != nullptr)
  ------------------
  |  Branch (592:21): [True: 0, False: 0]
  ------------------
  593|      0|                    heap.markFrom(thunk);
  594|      0|            }
  595|       |
  596|  1.25M|            for (const auto &sourceVal : sourceVals) {
  ------------------
  |  Branch (596:40): [True: 1.25M, False: 7.78k]
  ------------------
  597|  1.25M|                heap.markFrom(sourceVal.second);
  598|  1.25M|            }
  599|       |
  600|       |            // Delete unreachable objects.
  601|  7.78k|            heap.sweep();
  602|  7.78k|        }
  603|  6.79M|        return r;
  604|  6.79M|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_111Interpreter13builtinSubstrERKNS0_13LocationRangeERKNSt3__16vectorINS1_5ValueENS6_9allocatorIS8_EEEE:
 1599|    953|    {
 1600|    953|        validateBuiltinArgs(loc, "substr", args, {Value::STRING, Value::NUMBER, Value::NUMBER});
 1601|    953|        const auto *str = static_cast<const HeapString *>(args[0].v.h);
 1602|    953|        long from = long(args[1].v.d);
 1603|    953|        long len = long(args[2].v.d);
 1604|    953|        if (from < 0) {
  ------------------
  |  Branch (1604:13): [True: 0, False: 953]
  ------------------
 1605|      0|            std::stringstream ss;
 1606|      0|            ss << "substr second parameter should be greater than zero, got " << from;
 1607|      0|            throw makeError(loc, ss.str());
 1608|      0|        }
 1609|    953|        if (len < 0) {
  ------------------
  |  Branch (1609:13): [True: 0, False: 953]
  ------------------
 1610|      0|            std::stringstream ss;
 1611|      0|            ss << "substr third parameter should be greater than zero, got " << len;
 1612|      0|            throw makeError(loc, ss.str());
 1613|      0|        }
 1614|    953|        if (static_cast<unsigned long>(from) > str->value.size()) {
  ------------------
  |  Branch (1614:13): [True: 0, False: 953]
  ------------------
 1615|      0|            scratch = makeString(UString());
 1616|      0|            return nullptr;
 1617|      0|        }
 1618|    953|        if (size_t(len + from) > str->value.size()) {
  ------------------
  |  Branch (1618:13): [True: 0, False: 953]
  ------------------
 1619|      0|          len = str->value.size() - from;
 1620|      0|        }
 1621|    953|        scratch = makeString(str->value.substr(from, len));
 1622|    953|        return nullptr;
 1623|    953|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_111Interpreter8makeHeapINS1_9HeapThunkEJDnDniPKNS0_3ASTEEEEPT_DpOT0_:
  577|  3.48k|    {
  578|  3.48k|        T *r = heap.makeEntity<T, Args...>(std::forward<Args>(args)...);
  579|  3.48k|        if (heap.checkHeap()) {  // Do a GC cycle?
  ------------------
  |  Branch (579:13): [True: 0, False: 3.48k]
  ------------------
  580|       |            // Avoid the object we just made being collected.
  581|      0|            heap.markFrom(r);
  582|       |
  583|       |            // Mark from the stack.
  584|      0|            stack.mark(heap);
  585|       |
  586|       |            // Mark from the scratch register
  587|      0|            heap.markFrom(scratch);
  588|       |
  589|       |            // Mark from cached imports
  590|      0|            for (const auto &pair : cachedImports) {
  ------------------
  |  Branch (590:35): [True: 0, False: 0]
  ------------------
  591|      0|                HeapThunk *thunk = pair.second->thunk;
  592|      0|                if (thunk != nullptr)
  ------------------
  |  Branch (592:21): [True: 0, False: 0]
  ------------------
  593|      0|                    heap.markFrom(thunk);
  594|      0|            }
  595|       |
  596|      0|            for (const auto &sourceVal : sourceVals) {
  ------------------
  |  Branch (596:40): [True: 0, False: 0]
  ------------------
  597|      0|                heap.markFrom(sourceVal.second);
  598|      0|            }
  599|       |
  600|       |            // Delete unreachable objects.
  601|      0|            heap.sweep();
  602|      0|        }
  603|  3.48k|        return r;
  604|  3.48k|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_15Stack7newCallERKNS0_13LocationRangeEPNS1_10HeapEntityEPNS1_10HeapObjectEjRKNSt3__13mapIPKNS0_10IdentifierEPNS1_9HeapThunkENSA_4lessISE_EENSA_9allocatorINSA_4pairIKSE_SG_EEEEEE:
  418|  35.4M|    {
  419|  35.4M|        tailCallTrimStack();
  420|  35.4M|        if (calls >= limit) {
  ------------------
  |  Branch (420:13): [True: 681, False: 35.4M]
  ------------------
  421|    681|            throw makeError(loc, "max stack frames exceeded.");
  422|    681|        }
  423|  35.4M|        stack.emplace_back(FRAME_CALL, loc);
  424|  35.4M|        calls++;
  425|  35.4M|        top().context = context;
  426|  35.4M|        top().self = self;
  427|  35.4M|        top().offset = offset;
  428|  35.4M|        top().bindings = up_values;
  429|  35.4M|        top().tailCall = false;
  430|       |
  431|  35.4M|#ifndef NDEBUG
  432|  35.4M|        for (const auto &bind : up_values) {
  ------------------
  |  Branch (432:31): [True: 34.6M, False: 35.4M]
  ------------------
  433|  34.6M|            if (bind.second == nullptr) {
  ------------------
  |  Branch (433:17): [True: 0, False: 34.6M]
  ------------------
  434|      0|                std::cerr << "INTERNAL ERROR: No binding for variable "
  435|      0|                          << encode_utf8(bind.first->name) << std::endl;
  436|      0|                std::abort();
  437|      0|            }
  438|  34.6M|        }
  439|  35.4M|#endif
  440|  35.4M|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_15Stack17tailCallTrimStackEv:
  394|  35.4M|    {
  395|  36.2M|        for (int i = stack.size() - 1; i >= 0; --i) {
  ------------------
  |  Branch (395:40): [True: 36.2M, False: 9.64k]
  ------------------
  396|  36.2M|            switch (stack[i].kind) {
  397|  10.9M|                case FRAME_CALL: {
  ------------------
  |  Branch (397:17): [True: 10.9M, False: 25.3M]
  ------------------
  398|  10.9M|                    if (!stack[i].tailCall || stack[i].thunks.size() > 0) {
  ------------------
  |  Branch (398:25): [True: 7.80M, False: 3.12M]
  |  Branch (398:47): [True: 2.85M, False: 266k]
  ------------------
  399|  10.6M|                        return;
  400|  10.6M|                    }
  401|       |                    // Remove all stack frames including this one.
  402|  1.08M|                    while (stack.size() > unsigned(i))
  ------------------
  |  Branch (402:28): [True: 818k, False: 266k]
  ------------------
  403|   818k|                        stack.pop_back();
  404|   266k|                    calls--;
  405|   266k|                    return;
  406|  10.9M|                } break;
  407|       |
  408|   817k|                case FRAME_LOCAL: break;
  ------------------
  |  Branch (408:17): [True: 817k, False: 35.4M]
  ------------------
  409|       |
  410|  24.5M|                default: return;
  ------------------
  |  Branch (410:17): [True: 24.5M, False: 11.7M]
  ------------------
  411|  36.2M|            }
  412|  36.2M|        }
  413|  35.4M|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_15FrameC2ERKNS1_9FrameKindERKNS0_13LocationRangeE:
  209|  44.4M|        : kind(kind),
  210|  44.4M|          ast(nullptr),
  211|  44.4M|          location(location),
  212|  44.4M|          tailCall(false),
  213|  44.4M|          elementId(0),
  214|  44.4M|          first(false),
  215|  44.4M|          context(NULL),
  216|  44.4M|          self(NULL),
  217|  44.4M|          offset(0)
  218|  44.4M|    {
  219|  44.4M|        val.t = Value::NULL_TYPE;
  220|  44.4M|        val2.t = Value::NULL_TYPE;
  221|  44.4M|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_111Interpreter22prepareSourceValThunksEv:
  887|  3.48k|    void prepareSourceValThunks() {
  888|   561k|        for (const auto &field : stdlibAST->fields) {
  ------------------
  |  Branch (888:32): [True: 561k, False: 3.48k]
  ------------------
  889|   561k|            AST *nameAST = field.name;
  890|   561k|            if (nameAST->type != AST_LITERAL_STRING) {
  ------------------
  |  Branch (890:17): [True: 0, False: 561k]
  ------------------
  891|       |                // Skip any fields without a known name.
  892|      0|                continue;
  893|      0|            }
  894|   561k|            UString name = dynamic_cast<LiteralString *>(nameAST)->value;
  895|       |
  896|   561k|            sourceFuncIds.emplace_back(new Identifier(name));
  897|   561k|            auto *th = makeHeap<HeapThunk>(sourceFuncIds.back().get(), stdObject, 0, field.body);
  898|   561k|            sourceVals[encode_utf8(name)] = th;
  899|   561k|        }
  900|  3.48k|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_111Interpreter8makeHeapINS1_9HeapThunkEJPNS0_10IdentifierERPNS1_10HeapObjectEiRKPNS0_3ASTEEEEPT_DpOT0_:
  577|   561k|    {
  578|   561k|        T *r = heap.makeEntity<T, Args...>(std::forward<Args>(args)...);
  579|   561k|        if (heap.checkHeap()) {  // Do a GC cycle?
  ------------------
  |  Branch (579:13): [True: 0, False: 561k]
  ------------------
  580|       |            // Avoid the object we just made being collected.
  581|      0|            heap.markFrom(r);
  582|       |
  583|       |            // Mark from the stack.
  584|      0|            stack.mark(heap);
  585|       |
  586|       |            // Mark from the scratch register
  587|      0|            heap.markFrom(scratch);
  588|       |
  589|       |            // Mark from cached imports
  590|      0|            for (const auto &pair : cachedImports) {
  ------------------
  |  Branch (590:35): [True: 0, False: 0]
  ------------------
  591|      0|                HeapThunk *thunk = pair.second->thunk;
  592|      0|                if (thunk != nullptr)
  ------------------
  |  Branch (592:21): [True: 0, False: 0]
  ------------------
  593|      0|                    heap.markFrom(thunk);
  594|      0|            }
  595|       |
  596|      0|            for (const auto &sourceVal : sourceVals) {
  ------------------
  |  Branch (596:40): [True: 0, False: 0]
  ------------------
  597|      0|                heap.markFrom(sourceVal.second);
  598|      0|            }
  599|       |
  600|       |            // Delete unreachable objects.
  601|      0|            heap.sweep();
  602|      0|        }
  603|   561k|        return r;
  604|   561k|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_15StackD2Ev:
  260|  3.48k|    ~Stack(void) {}
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_111Interpreter8evaluateEPKNS0_3ASTEj:
 2096|  3.68M|    {
 2097|   104M|    recurse:
 2098|       |
 2099|   104M|        switch (ast_->type) {
 2100|  8.72M|            case AST_APPLY: {
  ------------------
  |  Branch (2100:13): [True: 8.72M, False: 95.9M]
  ------------------
 2101|  8.72M|                const auto &ast = *static_cast<const Apply *>(ast_);
 2102|  8.72M|                stack.newFrame(FRAME_APPLY_TARGET, ast_);
 2103|  8.72M|                ast_ = ast.target;
 2104|  8.72M|                goto recurse;
 2105|      0|            } break;
 2106|       |
 2107|   896k|            case AST_ARRAY: {
  ------------------
  |  Branch (2107:13): [True: 896k, False: 103M]
  ------------------
 2108|   896k|                const auto &ast = *static_cast<const Array *>(ast_);
 2109|   896k|                HeapObject *self;
 2110|   896k|                unsigned offset;
 2111|   896k|                stack.getSelfBinding(self, offset);
 2112|   896k|                scratch = makeArray({});
 2113|   896k|                auto &elements = static_cast<HeapArray *>(scratch.v.h)->elements;
 2114|  6.00M|                for (const auto &el : ast.elements) {
  ------------------
  |  Branch (2114:37): [True: 6.00M, False: 896k]
  ------------------
 2115|  6.00M|                    auto *el_th = makeHeap<HeapThunk>(idArrayElement, self, offset, el.expr);
 2116|  6.00M|                    el_th->upValues = capture(el.expr->freeVariables);
 2117|  6.00M|                    elements.push_back(el_th);
 2118|  6.00M|                }
 2119|   896k|            } break;
 2120|       |
 2121|  4.29M|            case AST_BINARY: {
  ------------------
  |  Branch (2121:13): [True: 4.29M, False: 100M]
  ------------------
 2122|  4.29M|                const auto &ast = *static_cast<const Binary *>(ast_);
 2123|  4.29M|                stack.newFrame(FRAME_BINARY_LEFT, ast_);
 2124|  4.29M|                ast_ = ast.left;
 2125|  4.29M|                goto recurse;
 2126|      0|            } break;
 2127|       |
 2128|  6.79M|            case AST_BUILTIN_FUNCTION: {
  ------------------
  |  Branch (2128:13): [True: 6.79M, False: 97.8M]
  ------------------
 2129|  6.79M|                const auto &ast = *static_cast<const BuiltinFunction *>(ast_);
 2130|  6.79M|                scratch = makeBuiltinFromAST(ast.body);
 2131|  6.79M|            } break;
 2132|       |
 2133|      0|            case AST_BUILTIN_FUNCTION_BODY: {
  ------------------
  |  Branch (2133:13): [True: 0, False: 104M]
  ------------------
 2134|       |                // We can reach here if we end up evaluating a HeapThunk that was constructed
 2135|       |                // from a built-in function. Synthesize a FRAME_BUILTIN_FORCE_THUNKS to call it.
 2136|      0|                assert(stack.top().isCall());
  ------------------
  |  Branch (2136:17): [True: 0, False: 0]
  ------------------
 2137|      0|                const auto fbody = static_cast<const BuiltinFunctionBody*>(ast_);
 2138|       |
 2139|      0|                const BindingFrame up_values = stack.top().bindings;
 2140|      0|                std::vector<HeapThunk*> arg_thunks;
 2141|      0|                for (const auto &p : fbody->params) {
  ------------------
  |  Branch (2141:36): [True: 0, False: 0]
  ------------------
 2142|      0|                    const auto it = up_values.find(p);
 2143|      0|                    if (it != up_values.end()) {
  ------------------
  |  Branch (2143:25): [True: 0, False: 0]
  ------------------
 2144|      0|                        arg_thunks.push_back(it->second);
 2145|      0|                    } else {
 2146|      0|                        JSONNET_UNREACHABLE();
  ------------------
  |  |   53|      0|  do {                                                             \
  |  |   54|      0|    std::cerr << __FILE__ << ":" << __LINE__                       \
  |  |   55|      0|              << ": INTERNAL ERROR: reached unreachable code path" \
  |  |   56|      0|              << std::endl;                                        \
  |  |   57|      0|    abort();                                                       \
  |  |   58|      0|  } while (0)
  |  |  ------------------
  |  |  |  Branch (58:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2147|      0|                    }
 2148|      0|                }
 2149|      0|                const LocationRange &loc = stack.top().location;
 2150|       |
 2151|      0|                stack.newFrame(FRAME_BUILTIN_FORCE_THUNKS, loc);
 2152|      0|                stack.top().bindings = up_values;
 2153|      0|                stack.top().thunks = arg_thunks;
 2154|      0|                stack.top().val = makeBuiltinFromAST(fbody);
 2155|      0|            } break;
 2156|       |
 2157|  6.46M|            case AST_CONDITIONAL: {
  ------------------
  |  Branch (2157:13): [True: 6.46M, False: 98.1M]
  ------------------
 2158|  6.46M|                const auto &ast = *static_cast<const Conditional *>(ast_);
 2159|  6.46M|                stack.newFrame(FRAME_IF, ast_);
 2160|  6.46M|                ast_ = ast.cond;
 2161|  6.46M|                goto recurse;
 2162|      0|            } break;
 2163|       |
 2164|  5.10k|            case AST_ERROR: {
  ------------------
  |  Branch (2164:13): [True: 5.10k, False: 104M]
  ------------------
 2165|  5.10k|                const auto &ast = *static_cast<const Error *>(ast_);
 2166|  5.10k|                stack.newFrame(FRAME_ERROR, ast_);
 2167|  5.10k|                ast_ = ast.expr;
 2168|  5.10k|                goto recurse;
 2169|      0|            } break;
 2170|       |
 2171|  1.66M|            case AST_FUNCTION: {
  ------------------
  |  Branch (2171:13): [True: 1.66M, False: 102M]
  ------------------
 2172|  1.66M|                const auto &ast = *static_cast<const Function *>(ast_);
 2173|  1.66M|                auto env = capture(ast.freeVariables);
 2174|  1.66M|                HeapObject *self;
 2175|  1.66M|                unsigned offset;
 2176|  1.66M|                stack.getSelfBinding(self, offset);
 2177|  1.66M|                HeapClosure::Params params;
 2178|  1.66M|                params.reserve(ast.params.size());
 2179|  3.16M|                for (const auto &p : ast.params) {
  ------------------
  |  Branch (2179:36): [True: 3.16M, False: 1.66M]
  ------------------
 2180|  3.16M|                    params.emplace_back(p.id, p.expr);
 2181|  3.16M|                }
 2182|  1.66M|                scratch = makeClosure(env, self, offset, params, ast.body);
 2183|  1.66M|            } break;
 2184|       |
 2185|     29|            case AST_IMPORT: {
  ------------------
  |  Branch (2185:13): [True: 29, False: 104M]
  ------------------
 2186|     29|                const auto &ast = *static_cast<const Import *>(ast_);
 2187|     29|                HeapThunk *thunk = import(ast.location, ast.file);
 2188|     29|                if (thunk->filled) {
  ------------------
  |  Branch (2188:21): [True: 0, False: 29]
  ------------------
 2189|      0|                    scratch = thunk->content;
 2190|     29|                } else {
 2191|     29|                    stack.newCall(ast.location, thunk, thunk->self, thunk->offset, thunk->upValues);
 2192|     29|                    ast_ = thunk->body;
 2193|     29|                    goto recurse;
 2194|     29|                }
 2195|     29|            } break;
 2196|       |
 2197|     16|            case AST_IMPORTSTR: {
  ------------------
  |  Branch (2197:13): [True: 16, False: 104M]
  ------------------
 2198|     16|                const auto &ast = *static_cast<const Importstr *>(ast_);
 2199|     16|                const ImportCacheValue *value = importData(ast.location, ast.file);
 2200|     16|                scratch = makeString(decode_utf8(value->content));
 2201|     16|            } break;
 2202|       |
 2203|      5|            case AST_IMPORTBIN: {
  ------------------
  |  Branch (2203:13): [True: 5, False: 104M]
  ------------------
 2204|      5|                const auto &ast = *static_cast<const Importbin *>(ast_);
 2205|      5|                const ImportCacheValue *value = importData(ast.location, ast.file);
 2206|      5|                scratch = makeArray({});
 2207|      5|                auto &elements = static_cast<HeapArray *>(scratch.v.h)->elements;
 2208|      5|                elements.reserve(value->content.size());
 2209|      5|                for (const auto c : value->content) {
  ------------------
  |  Branch (2209:35): [True: 0, False: 5]
  ------------------
 2210|      0|                    auto *th = makeHeap<HeapThunk>(idArrayElement, nullptr, 0, nullptr);
 2211|      0|                    elements.push_back(th);
 2212|      0|                    th->fill(makeNumber(uint8_t(c)));
 2213|      0|                }
 2214|      5|            } break;
 2215|       |
 2216|  2.19M|            case AST_IN_SUPER: {
  ------------------
  |  Branch (2216:13): [True: 2.19M, False: 102M]
  ------------------
 2217|  2.19M|                const auto &ast = *static_cast<const InSuper *>(ast_);
 2218|  2.19M|                stack.newFrame(FRAME_IN_SUPER_ELEMENT, ast_);
 2219|  2.19M|                ast_ = ast.element;
 2220|  2.19M|                goto recurse;
 2221|     29|            } break;
 2222|       |
 2223|  8.83M|            case AST_INDEX: {
  ------------------
  |  Branch (2223:13): [True: 8.83M, False: 95.8M]
  ------------------
 2224|  8.83M|                const auto &ast = *static_cast<const Index *>(ast_);
 2225|  8.83M|                stack.newFrame(FRAME_INDEX_TARGET, ast_);
 2226|  8.83M|                ast_ = ast.target;
 2227|  8.83M|                goto recurse;
 2228|     29|            } break;
 2229|       |
 2230|  4.69M|            case AST_LOCAL: {
  ------------------
  |  Branch (2230:13): [True: 4.69M, False: 99.9M]
  ------------------
 2231|  4.69M|                const auto &ast = *static_cast<const Local *>(ast_);
 2232|  4.69M|                stack.newFrame(FRAME_LOCAL, ast_);
 2233|  4.69M|                Frame &f = stack.top();
 2234|       |                // First build all the thunks and bind them.
 2235|  4.69M|                HeapObject *self;
 2236|  4.69M|                unsigned offset;
 2237|  4.69M|                stack.getSelfBinding(self, offset);
 2238|  15.1M|                for (const auto &bind : ast.binds) {
  ------------------
  |  Branch (2238:39): [True: 15.1M, False: 4.69M]
  ------------------
 2239|       |                    // Note that these 2 lines must remain separate to avoid the GC running
 2240|       |                    // when bindings has a nullptr for key bind.first.
 2241|  15.1M|                    auto *th = makeHeap<HeapThunk>(bind.var, self, offset, bind.body);
 2242|  15.1M|                    f.bindings[bind.var] = th;
 2243|  15.1M|                }
 2244|       |                // Now capture the environment (including the new thunks, to make cycles).
 2245|  15.1M|                for (const auto &bind : ast.binds) {
  ------------------
  |  Branch (2245:39): [True: 15.1M, False: 4.69M]
  ------------------
 2246|  15.1M|                    auto *thunk = f.bindings[bind.var];
 2247|  15.1M|                    thunk->upValues = capture(bind.body->freeVariables);
 2248|  15.1M|                }
 2249|  4.69M|                ast_ = ast.body;
 2250|  4.69M|                goto recurse;
 2251|     29|            } break;
 2252|       |
 2253|   322k|            case AST_LITERAL_BOOLEAN: {
  ------------------
  |  Branch (2253:13): [True: 322k, False: 104M]
  ------------------
 2254|   322k|                const auto &ast = *static_cast<const LiteralBoolean *>(ast_);
 2255|   322k|                scratch = makeBoolean(ast.value);
 2256|   322k|            } break;
 2257|       |
 2258|  3.72M|            case AST_LITERAL_NUMBER: {
  ------------------
  |  Branch (2258:13): [True: 3.72M, False: 100M]
  ------------------
 2259|  3.72M|                const auto &ast = *static_cast<const LiteralNumber *>(ast_);
 2260|  3.72M|                scratch = makeNumberCheck(ast_->location, ast.value);
 2261|  3.72M|            } break;
 2262|       |
 2263|  26.7M|            case AST_LITERAL_STRING: {
  ------------------
  |  Branch (2263:13): [True: 26.7M, False: 77.9M]
  ------------------
 2264|  26.7M|                const auto &ast = *static_cast<const LiteralString *>(ast_);
 2265|  26.7M|                scratch = makeString(ast.value);
 2266|  26.7M|            } break;
 2267|       |
 2268|  28.1k|            case AST_LITERAL_NULL: {
  ------------------
  |  Branch (2268:13): [True: 28.1k, False: 104M]
  ------------------
 2269|  28.1k|                scratch = makeNull();
 2270|  28.1k|            } break;
 2271|       |
 2272|  1.73M|            case AST_DESUGARED_OBJECT: {
  ------------------
  |  Branch (2272:13): [True: 1.73M, False: 102M]
  ------------------
 2273|  1.73M|                const auto &ast = *static_cast<const DesugaredObject *>(ast_);
 2274|  1.73M|                if (ast.fields.empty()) {
  ------------------
  |  Branch (2274:21): [True: 1.02M, False: 704k]
  ------------------
 2275|  1.02M|                    auto env = capture(ast.freeVariables);
 2276|  1.02M|                    std::map<const Identifier *, HeapSimpleObject::Field> fields;
 2277|  1.02M|                    scratch = makeObject<HeapSimpleObject>(env, fields, ast.asserts);
 2278|  1.02M|                } else {
 2279|   704k|                    auto env = capture(ast.freeVariables);
 2280|   704k|                    stack.newFrame(FRAME_OBJECT, ast_);
 2281|   704k|                    auto fit = ast.fields.begin();
 2282|   704k|                    stack.top().fit = fit;
 2283|   704k|                    ast_ = fit->name;
 2284|   704k|                    goto recurse;
 2285|   704k|                }
 2286|  1.73M|            } break;
 2287|       |
 2288|  1.02M|            case AST_OBJECT_COMPREHENSION_SIMPLE: {
  ------------------
  |  Branch (2288:13): [True: 50, False: 104M]
  ------------------
 2289|     50|                const auto &ast = *static_cast<const ObjectComprehensionSimple *>(ast_);
 2290|     50|                stack.newFrame(FRAME_OBJECT_COMP_ARRAY, ast_);
 2291|     50|                ast_ = ast.array;
 2292|     50|                goto recurse;
 2293|  1.73M|            } break;
 2294|       |
 2295|  1.62M|            case AST_SELF: {
  ------------------
  |  Branch (2295:13): [True: 1.62M, False: 103M]
  ------------------
 2296|  1.62M|                scratch.t = Value::OBJECT;
 2297|  1.62M|                HeapObject *self;
 2298|  1.62M|                unsigned offset;
 2299|  1.62M|                stack.getSelfBinding(self, offset);
 2300|  1.62M|                scratch.v.h = self;
 2301|  1.62M|            } break;
 2302|       |
 2303|  2.02M|            case AST_SUPER_INDEX: {
  ------------------
  |  Branch (2303:13): [True: 2.02M, False: 102M]
  ------------------
 2304|  2.02M|                const auto &ast = *static_cast<const SuperIndex *>(ast_);
 2305|  2.02M|                stack.newFrame(FRAME_SUPER_INDEX, ast_);
 2306|  2.02M|                ast_ = ast.index;
 2307|  2.02M|                goto recurse;
 2308|  1.73M|            } break;
 2309|       |
 2310|  2.04M|            case AST_UNARY: {
  ------------------
  |  Branch (2310:13): [True: 2.04M, False: 102M]
  ------------------
 2311|  2.04M|                const auto &ast = *static_cast<const Unary *>(ast_);
 2312|  2.04M|                stack.newFrame(FRAME_UNARY, ast_);
 2313|  2.04M|                ast_ = ast.expr;
 2314|  2.04M|                goto recurse;
 2315|  1.73M|            } break;
 2316|       |
 2317|  21.8M|            case AST_VAR: {
  ------------------
  |  Branch (2317:13): [True: 21.8M, False: 82.8M]
  ------------------
 2318|  21.8M|                const auto &ast = *static_cast<const Var *>(ast_);
 2319|  21.8M|                auto *thunk = stack.lookUpVar(ast.id);
 2320|  21.8M|                if (thunk == nullptr) {
  ------------------
  |  Branch (2320:21): [True: 0, False: 21.8M]
  ------------------
 2321|      0|                    std::cerr << "INTERNAL ERROR: Could not bind variable: "
 2322|      0|                              << encode_utf8(ast.id->name) << " at "
 2323|      0|                              << ast.location << std::endl;
 2324|      0|                    std::abort();
 2325|      0|                }
 2326|  21.8M|                if (thunk->filled) {
  ------------------
  |  Branch (2326:21): [True: 16.2M, False: 5.60M]
  ------------------
 2327|  16.2M|                    scratch = thunk->content;
 2328|  16.2M|                } else {
 2329|  5.60M|                    stack.newCall(ast.location, thunk, thunk->self, thunk->offset, thunk->upValues);
 2330|  5.60M|                    ast_ = thunk->body;
 2331|  5.60M|                    goto recurse;
 2332|  5.60M|                }
 2333|  21.8M|            } break;
 2334|       |
 2335|  16.2M|            default:
  ------------------
  |  Branch (2335:13): [True: 0, False: 104M]
  ------------------
 2336|      0|                std::cerr << "INTERNAL ERROR: Unknown AST: " << ast_->type << std::endl;
 2337|      0|                std::abort();
 2338|   104M|        }
 2339|       |
 2340|       |        // To evaluate another AST, set ast to it, then goto recurse.
 2341|       |        // To pop, exit the switch or goto popframe
 2342|       |        // To change the frame and re-enter the switch, goto replaceframe
 2343|   119M|        while (stack.size() > initial_stack_size) {
  ------------------
  |  Branch (2343:16): [True: 115M, False: 3.66M]
  ------------------
 2344|   115M|            Frame &f = stack.top();
 2345|   115M|            switch (f.kind) {
 2346|  8.72M|                case FRAME_APPLY_TARGET: {
  ------------------
  |  Branch (2346:17): [True: 8.72M, False: 106M]
  ------------------
 2347|  8.72M|                    const auto &ast = *static_cast<const Apply *>(f.ast);
 2348|  8.72M|                    if (scratch.t != Value::FUNCTION) {
  ------------------
  |  Branch (2348:25): [True: 14, False: 8.72M]
  ------------------
 2349|     14|                        throw makeError(ast.location,
 2350|     14|                                        "only functions can be called, got " + type_str(scratch));
 2351|     14|                    }
 2352|  8.72M|                    auto *func = static_cast<HeapClosure *>(scratch.v.h);
 2353|       |
 2354|  8.72M|                    std::set<const Identifier *> params_needed;
 2355|  14.8M|                    for (const auto &param : func->params) {
  ------------------
  |  Branch (2355:44): [True: 14.8M, False: 8.72M]
  ------------------
 2356|  14.8M|                        params_needed.insert(param.id);
 2357|  14.8M|                    }
 2358|       |
 2359|       |                    // Create thunks for arguments.
 2360|  8.72M|                    std::vector<HeapThunk *> positional_args;
 2361|  8.72M|                    BindingFrame args;
 2362|  8.72M|                    bool got_named = false;
 2363|  23.5M|                    for (std::size_t i = 0; i < ast.args.size(); ++i) {
  ------------------
  |  Branch (2363:45): [True: 14.8M, False: 8.72M]
  ------------------
 2364|  14.8M|                        const auto &arg = ast.args[i];
 2365|       |
 2366|  14.8M|                        const Identifier *name;
 2367|  14.8M|                        if (arg.id != nullptr) {
  ------------------
  |  Branch (2367:29): [True: 0, False: 14.8M]
  ------------------
 2368|      0|                            got_named = true;
 2369|      0|                            name = arg.id;
 2370|  14.8M|                        } else {
 2371|  14.8M|                            if (got_named) {
  ------------------
  |  Branch (2371:33): [True: 0, False: 14.8M]
  ------------------
 2372|      0|                                std::stringstream ss;
 2373|      0|                                ss << "internal error: got positional param after named at index "
 2374|      0|                                   << i;
 2375|      0|                                throw makeError(ast.location, ss.str());
 2376|      0|                            }
 2377|  14.8M|                            if (i >= func->params.size()) {
  ------------------
  |  Branch (2377:33): [True: 0, False: 14.8M]
  ------------------
 2378|      0|                                std::stringstream ss;
 2379|      0|                                ss << "too many args, function has " << func->params.size()
 2380|      0|                                   << " parameter(s)";
 2381|      0|                                throw makeError(ast.location, ss.str());
 2382|      0|                            }
 2383|  14.8M|                            name = func->params[i].id;
 2384|  14.8M|                        }
 2385|       |                        // Special case for builtin functions -- leave identifier blank for
 2386|       |                        // them in the thunk.  This removes the thunk frame from the stacktrace.
 2387|  14.8M|                        const Identifier *name_ = func->isBuiltin() ? nullptr : name;
  ------------------
  |  Branch (2387:51): [True: 10.7M, False: 4.07M]
  ------------------
 2388|  14.8M|                        HeapObject *self;
 2389|  14.8M|                        unsigned offset;
 2390|  14.8M|                        stack.getSelfBinding(self, offset);
 2391|  14.8M|                        auto *thunk = makeHeap<HeapThunk>(name_, self, offset, arg.expr);
 2392|  14.8M|                        thunk->upValues = capture(arg.expr->freeVariables);
 2393|       |                        // While making the thunks, keep them in a frame to avoid premature garbage
 2394|       |                        // collection.
 2395|  14.8M|                        f.thunks.push_back(thunk);
 2396|  14.8M|                        if (args.find(name) != args.end()) {
  ------------------
  |  Branch (2396:29): [True: 0, False: 14.8M]
  ------------------
 2397|      0|                            std::stringstream ss;
 2398|      0|                            ss << "binding parameter a second time: " << encode_utf8(name->name);
 2399|      0|                            throw makeError(ast.location, ss.str());
 2400|      0|                        }
 2401|  14.8M|                        args[name] = thunk;
 2402|  14.8M|                        if (params_needed.find(name) == params_needed.end()) {
  ------------------
  |  Branch (2402:29): [True: 0, False: 14.8M]
  ------------------
 2403|      0|                            std::stringstream ss;
 2404|      0|                            ss << "function has no parameter " << encode_utf8(name->name);
 2405|      0|                            throw makeError(ast.location, ss.str());
 2406|      0|                        }
 2407|  14.8M|                    }
 2408|       |
 2409|       |                    // For any func params for which there was no arg, create a thunk for those and
 2410|       |                    // bind the default argument.  Allow default thunks to see other params.  If no
 2411|       |                    // default argument than raise an error.
 2412|       |
 2413|       |                    // Raise errors for unbound params, create thunks (but don't fill in upvalues).
 2414|       |                    // This is a subset of f.thunks, so will not get garbage collected.
 2415|  8.72M|                    std::vector<HeapThunk *> def_arg_thunks;
 2416|  14.8M|                    for (const auto &param : func->params) {
  ------------------
  |  Branch (2416:44): [True: 14.8M, False: 8.72M]
  ------------------
 2417|  14.8M|                        if (args.find(param.id) != args.end())
  ------------------
  |  Branch (2417:29): [True: 14.8M, False: 142]
  ------------------
 2418|  14.8M|                            continue;
 2419|    142|                        if (param.def == nullptr) {
  ------------------
  |  Branch (2419:29): [True: 7, False: 135]
  ------------------
 2420|      7|                            std::stringstream ss;
 2421|      7|                            ss << "function parameter " << encode_utf8(param.id->name)
 2422|      7|                               << " not bound in call.";
 2423|      7|                            throw makeError(ast.location, ss.str());
 2424|      7|                        }
 2425|       |
 2426|       |                        // Special case for builtin functions -- leave identifier blank for
 2427|       |                        // them in the thunk.  This removes the thunk frame from the stacktrace.
 2428|    135|                        const Identifier *name_ = func->isBuiltin() ? nullptr : param.id;
  ------------------
  |  Branch (2428:51): [True: 0, False: 135]
  ------------------
 2429|    135|                        auto *thunk =
 2430|    135|                            makeHeap<HeapThunk>(name_, func->self, func->offset, param.def);
 2431|    135|                        f.thunks.push_back(thunk);
 2432|    135|                        def_arg_thunks.push_back(thunk);
 2433|    135|                        args[param.id] = thunk;
 2434|    135|                    }
 2435|       |
 2436|  8.72M|                    BindingFrame up_values = func->upValues;
 2437|  8.72M|                    up_values.insert(args.begin(), args.end());
 2438|       |
 2439|       |                    // Fill in upvalues
 2440|  8.72M|                    for (HeapThunk *thunk : def_arg_thunks) {
  ------------------
  |  Branch (2440:43): [True: 110, False: 8.72M]
  ------------------
 2441|    110|                        thunk->upValues = up_values;
 2442|    110|                    }
 2443|       |
 2444|       |                    // Cache these, because pop will invalidate them.
 2445|  8.72M|                    std::vector<HeapThunk *> thunks_copy = f.thunks;
 2446|       |
 2447|  8.72M|                    const AST *f_ast = f.ast;
 2448|  8.72M|                    stack.pop();
 2449|       |
 2450|  8.72M|                    if (func->isBuiltin()) {
  ------------------
  |  Branch (2450:25): [True: 6.79M, False: 1.92M]
  ------------------
 2451|       |                        // Built-in function.
 2452|       |                        // Give nullptr for self because no one looking at this frame will
 2453|       |                        // attempt to bind to self (it's native code).
 2454|  6.79M|                        stack.newFrame(FRAME_BUILTIN_FORCE_THUNKS, f_ast);
 2455|  6.79M|                        assert(func->upValues.empty());
  ------------------
  |  Branch (2455:25): [True: 6.79M, False: 0]
  ------------------
 2456|  6.79M|                        stack.top().bindings = up_values;
 2457|  6.79M|                        stack.top().thunks = thunks_copy;
 2458|  6.79M|                        stack.top().val = scratch;
 2459|  6.79M|                        goto replaceframe;
 2460|  6.79M|                    } else {
 2461|       |                        // User defined function.
 2462|  1.92M|                        stack.newCall(ast.location, func, func->self, func->offset, up_values);
 2463|  1.92M|                        if (ast.tailstrict) {
  ------------------
  |  Branch (2463:29): [True: 1.24M, False: 685k]
  ------------------
 2464|  1.24M|                            stack.top().tailCall = true;
 2465|  1.24M|                            if (thunks_copy.size() == 0) {
  ------------------
  |  Branch (2465:33): [True: 0, False: 1.24M]
  ------------------
 2466|       |                                // No need to force thunks, proceed straight to body.
 2467|      0|                                ast_ = func->body;
 2468|      0|                                goto recurse;
 2469|  1.24M|                            } else {
 2470|       |                                // The check for args.size() > 0
 2471|  1.24M|                                stack.top().thunks = thunks_copy;
 2472|  1.24M|                                stack.top().val = scratch;
 2473|  1.24M|                                goto replaceframe;
 2474|  1.24M|                            }
 2475|  1.24M|                        } else {
 2476|   685k|                            ast_ = func->body;
 2477|   685k|                            goto recurse;
 2478|   685k|                        }
 2479|  1.92M|                    }
 2480|  8.72M|                } break;
 2481|       |
 2482|  4.19M|                case FRAME_BINARY_LEFT: {
  ------------------
  |  Branch (2482:17): [True: 4.19M, False: 111M]
  ------------------
 2483|  4.19M|                    const auto &ast = *static_cast<const Binary *>(f.ast);
 2484|  4.19M|                    const Value &lhs = scratch;
 2485|  4.19M|                    if (lhs.t == Value::BOOLEAN) {
  ------------------
  |  Branch (2485:25): [True: 148k, False: 4.05M]
  ------------------
 2486|       |                        // Handle short-cut semantics
 2487|   148k|                        switch (ast.op) {
 2488|  51.1k|                            case BOP_AND: {
  ------------------
  |  Branch (2488:29): [True: 51.1k, False: 97.1k]
  ------------------
 2489|  51.1k|                                if (!lhs.v.b) {
  ------------------
  |  Branch (2489:37): [True: 8.10k, False: 42.9k]
  ------------------
 2490|  8.10k|                                    scratch = makeBoolean(false);
 2491|  8.10k|                                    goto popframe;
 2492|  8.10k|                                }
 2493|  51.1k|                            } break;
 2494|       |
 2495|  94.6k|                            case BOP_OR: {
  ------------------
  |  Branch (2495:29): [True: 94.6k, False: 53.5k]
  ------------------
 2496|  94.6k|                                if (lhs.v.b) {
  ------------------
  |  Branch (2496:37): [True: 3.64k, False: 91.0k]
  ------------------
 2497|  3.64k|                                    scratch = makeBoolean(true);
 2498|  3.64k|                                    goto popframe;
 2499|  3.64k|                                }
 2500|  94.6k|                            } break;
 2501|       |
 2502|  91.0k|                            default:;
  ------------------
  |  Branch (2502:29): [True: 2.42k, False: 145k]
  ------------------
 2503|   148k|                        }
 2504|   148k|                    }
 2505|  4.18M|                    stack.top().kind = FRAME_BINARY_RIGHT;
 2506|  4.18M|                    stack.top().val = lhs;
 2507|  4.18M|                    ast_ = ast.right;
 2508|  4.18M|                    goto recurse;
 2509|  4.19M|                } break;
 2510|       |
 2511|  4.18M|                case FRAME_BINARY_RIGHT: {
  ------------------
  |  Branch (2511:17): [True: 4.18M, False: 111M]
  ------------------
 2512|  4.18M|                    stack.top().val2 = scratch;
 2513|  4.18M|                    stack.top().kind = FRAME_BINARY_OP;
 2514|  4.18M|                }
 2515|  4.18M|                [[fallthrough]];
 2516|  4.18M|                case FRAME_BINARY_OP: {
  ------------------
  |  Branch (2516:17): [True: 271, False: 115M]
  ------------------
 2517|  4.18M|                    const auto &ast = *static_cast<const Binary *>(f.ast);
 2518|  4.18M|                    const Value &lhs = stack.top().val;
 2519|  4.18M|                    const Value &rhs = stack.top().val2;
 2520|       |
 2521|       |                    // Handle cases where the LHS and RHS are not the same type.
 2522|  4.18M|                    if (lhs.t == Value::STRING || rhs.t == Value::STRING) {
  ------------------
  |  Branch (2522:25): [True: 1.20M, False: 2.97M]
  |  Branch (2522:51): [True: 16.6k, False: 2.95M]
  ------------------
 2523|  1.22M|                        if (ast.op == BOP_PLUS) {
  ------------------
  |  Branch (2523:29): [True: 1.17M, False: 51.0k]
  ------------------
 2524|       |                            // Handle co-ercions for string processing.
 2525|  1.17M|                            stack.top().kind = FRAME_STRING_CONCAT;
 2526|  1.17M|                            stack.top().val2 = rhs;
 2527|  1.17M|                            goto replaceframe;
 2528|  1.17M|                        }
 2529|  1.22M|                    }
 2530|  3.00M|                    switch (ast.op) {
 2531|       |                        // Equality can be used when the types don't match.
 2532|      0|                        case BOP_MANIFEST_EQUAL:
  ------------------
  |  Branch (2532:25): [True: 0, False: 3.00M]
  ------------------
 2533|      0|                            std::cerr << "INTERNAL ERROR: Equals not desugared" << std::endl;
 2534|      0|                            abort();
 2535|       |
 2536|       |                        // Equality can be used when the types don't match.
 2537|      0|                        case BOP_MANIFEST_UNEQUAL:
  ------------------
  |  Branch (2537:25): [True: 0, False: 3.00M]
  ------------------
 2538|      0|                            std::cerr << "INTERNAL ERROR: Notequals not desugared" << std::endl;
 2539|      0|                            abort();
 2540|       |
 2541|       |                        // e in e
 2542|    422|                        case BOP_IN: {
  ------------------
  |  Branch (2542:25): [True: 422, False: 3.00M]
  ------------------
 2543|    422|                            if (lhs.t != Value::STRING) {
  ------------------
  |  Branch (2543:33): [True: 4, False: 418]
  ------------------
 2544|      4|                                throw makeError(ast.location,
 2545|      4|                                                "the left hand side of the 'in' operator should be "
 2546|      4|                                                "a string,  got " +
 2547|      4|                                                    type_str(lhs));
 2548|      4|                            }
 2549|    418|                            auto *field = static_cast<HeapString *>(lhs.v.h);
 2550|    418|                            switch (rhs.t) {
 2551|    416|                                case Value::OBJECT: {
  ------------------
  |  Branch (2551:33): [True: 416, False: 2]
  ------------------
 2552|    416|                                    auto *obj = static_cast<HeapObject *>(rhs.v.h);
 2553|    416|                                    auto *fid = alloc->makeIdentifier(field->value);
 2554|    416|                                    unsigned unused_found_at = 0;
 2555|    416|                                    bool in = findObject(fid, obj, 0, unused_found_at);
 2556|    416|                                    scratch = makeBoolean(in);
 2557|    416|                                } break;
 2558|       |
 2559|      2|                                default:
  ------------------
  |  Branch (2559:33): [True: 2, False: 416]
  ------------------
 2560|      2|                                    throw makeError(
 2561|      2|                                        ast.location,
 2562|      2|                                        "the right hand side of the 'in' operator should be"
 2563|      2|                                        " an object, got " +
 2564|      2|                                            type_str(rhs));
 2565|    418|                            }
 2566|    416|                            goto popframe;
 2567|    418|                        }
 2568|       |
 2569|  3.00M|                        default:;
  ------------------
  |  Branch (2569:25): [True: 3.00M, False: 422]
  ------------------
 2570|  3.00M|                    }
 2571|       |                    // Everything else requires matching types.
 2572|  3.00M|                    if (lhs.t != rhs.t) {
  ------------------
  |  Branch (2572:25): [True: 94, False: 3.00M]
  ------------------
 2573|     94|                        throw makeError(ast.location,
 2574|     94|                                        "binary operator " + bop_string(ast.op) +
 2575|     94|                                            " requires "
 2576|     94|                                            "matching types, got " +
 2577|     94|                                            type_str(lhs) + " and " + type_str(rhs) + ".");
 2578|     94|                    }
 2579|  3.00M|                    switch (lhs.t) {
  ------------------
  |  Branch (2579:29): [True: 3.00M, False: 0]
  ------------------
 2580|   645k|                        case Value::ARRAY:
  ------------------
  |  Branch (2580:25): [True: 645k, False: 2.36M]
  ------------------
 2581|   645k|                            if (ast.op == BOP_PLUS) {
  ------------------
  |  Branch (2581:33): [True: 614k, False: 30.9k]
  ------------------
 2582|   614k|                                auto *arr_l = static_cast<HeapArray *>(lhs.v.h);
 2583|   614k|                                auto *arr_r = static_cast<HeapArray *>(rhs.v.h);
 2584|   614k|                                std::vector<HeapThunk *> elements;
 2585|   614k|                                for (auto *el : arr_l->elements)
  ------------------
  |  Branch (2585:47): [True: 55.3M, False: 614k]
  ------------------
 2586|  55.3M|                                    elements.push_back(el);
 2587|   614k|                                for (auto *el : arr_r->elements)
  ------------------
  |  Branch (2587:47): [True: 1.43M, False: 614k]
  ------------------
 2588|  1.43M|                                    elements.push_back(el);
 2589|   614k|                                scratch = makeArray(elements);
 2590|   614k|                            } else if (ast.op == BOP_LESS || ast.op == BOP_LESS_EQ || ast.op == BOP_GREATER || ast.op == BOP_GREATER_EQ) {
  ------------------
  |  Branch (2590:40): [True: 8.13k, False: 22.8k]
  |  Branch (2590:62): [True: 14.9k, False: 7.83k]
  |  Branch (2590:87): [True: 2.15k, False: 5.68k]
  |  Branch (2590:112): [True: 5.67k, False: 7]
  ------------------
 2591|  30.9k|                                HeapThunk *func;
 2592|  30.9k|                                switch(ast.op) {
 2593|  8.13k|                                case BOP_LESS:
  ------------------
  |  Branch (2593:33): [True: 8.13k, False: 22.8k]
  ------------------
 2594|  8.13k|                                    func = sourceVals["__array_less"];
 2595|  8.13k|                                    break;
 2596|  14.9k|                                case BOP_LESS_EQ:
  ------------------
  |  Branch (2596:33): [True: 14.9k, False: 15.9k]
  ------------------
 2597|  14.9k|                                    func = sourceVals["__array_less_or_equal"];
 2598|  14.9k|                                    break;
 2599|  2.15k|                                case BOP_GREATER:
  ------------------
  |  Branch (2599:33): [True: 2.15k, False: 28.7k]
  ------------------
 2600|  2.15k|                                    func = sourceVals["__array_greater"];
 2601|  2.15k|                                    break;
 2602|  5.67k|                                case BOP_GREATER_EQ:
  ------------------
  |  Branch (2602:33): [True: 5.67k, False: 25.2k]
  ------------------
 2603|  5.67k|                                    func = sourceVals["__array_greater_or_equal"];
 2604|  5.67k|                                    break;
 2605|      0|                                default:
  ------------------
  |  Branch (2605:33): [True: 0, False: 30.9k]
  ------------------
 2606|      0|                                    JSONNET_UNREACHABLE();
  ------------------
  |  |   53|      0|  do {                                                             \
  |  |   54|      0|    std::cerr << __FILE__ << ":" << __LINE__                       \
  |  |   55|      0|              << ": INTERNAL ERROR: reached unreachable code path" \
  |  |   56|      0|              << std::endl;                                        \
  |  |   57|      0|    abort();                                                       \
  |  |   58|      0|  } while (0)
  |  |  ------------------
  |  |  |  Branch (58:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2607|  30.9k|                                }
 2608|  30.9k|                                if (!func->filled) {
  ------------------
  |  Branch (2608:37): [True: 271, False: 30.6k]
  ------------------
 2609|    271|                                    stack.newCall(ast.location, func, func->self, func->offset, func->upValues);
 2610|    271|                                    ast_ = func->body;
 2611|    271|                                    goto recurse;
 2612|    271|                                }
 2613|  30.6k|                                auto *lhs_th = makeHeap<HeapThunk>(idInternal, f.self, f.offset, ast.left);
 2614|  30.6k|                                lhs_th->fill(lhs);
 2615|  30.6k|                                f.thunks.push_back(lhs_th);
 2616|  30.6k|                                auto *rhs_th = makeHeap<HeapThunk>(idInternal, f.self, f.offset, ast.right);
 2617|  30.6k|                                rhs_th->fill(rhs);
 2618|  30.6k|                                f.thunks.push_back(rhs_th);
 2619|  30.6k|                                const AST *orig_ast = ast_;
 2620|  30.6k|                                stack.pop();
 2621|  30.6k|                                ast_ = callSourceVal(orig_ast, func, {lhs_th, rhs_th});
 2622|  30.6k|                                goto recurse;
 2623|  30.9k|                            } else {
 2624|      7|                                throw makeError(ast.location,
 2625|      7|                                                "binary operator " + bop_string(ast.op) +
 2626|      7|                                                    " does not operate on arrays.");
 2627|      7|                            }
 2628|   614k|                            break;
 2629|       |
 2630|   614k|                        case Value::BOOLEAN:
  ------------------
  |  Branch (2630:25): [True: 133k, False: 2.87M]
  ------------------
 2631|   133k|                            switch (ast.op) {
 2632|  42.8k|                                case BOP_AND: scratch = makeBoolean(lhs.v.b && rhs.v.b); break;
  ------------------
  |  Branch (2632:33): [True: 42.8k, False: 91.0k]
  |  Branch (2632:69): [True: 42.8k, False: 0]
  |  Branch (2632:80): [True: 37.9k, False: 4.89k]
  ------------------
 2633|       |
 2634|  91.0k|                                case BOP_OR: scratch = makeBoolean(lhs.v.b || rhs.v.b); break;
  ------------------
  |  Branch (2634:33): [True: 91.0k, False: 42.8k]
  |  Branch (2634:68): [True: 0, False: 91.0k]
  |  Branch (2634:79): [True: 3.01k, False: 88.0k]
  ------------------
 2635|       |
 2636|     26|                                default:
  ------------------
  |  Branch (2636:33): [True: 26, False: 133k]
  ------------------
 2637|     26|                                    throw makeError(ast.location,
 2638|     26|                                                    "binary operator " + bop_string(ast.op) +
 2639|     26|                                                        " does not operate on booleans.");
 2640|   133k|                            }
 2641|   133k|                            break;
 2642|       |
 2643|   883k|                        case Value::NUMBER:
  ------------------
  |  Branch (2643:25): [True: 883k, False: 2.12M]
  ------------------
 2644|   883k|                            switch (ast.op) {
 2645|   236k|                                case BOP_PLUS:
  ------------------
  |  Branch (2645:33): [True: 236k, False: 647k]
  ------------------
 2646|   236k|                                    scratch = makeNumberCheck(ast.location, lhs.v.d + rhs.v.d);
 2647|   236k|                                    break;
 2648|       |
 2649|  36.6k|                                case BOP_MINUS:
  ------------------
  |  Branch (2649:33): [True: 36.6k, False: 846k]
  ------------------
 2650|  36.6k|                                    scratch = makeNumberCheck(ast.location, lhs.v.d - rhs.v.d);
 2651|  36.6k|                                    break;
 2652|       |
 2653|  5.93k|                                case BOP_MULT:
  ------------------
  |  Branch (2653:33): [True: 5.93k, False: 877k]
  ------------------
 2654|  5.93k|                                    scratch = makeNumberCheck(ast.location, lhs.v.d * rhs.v.d);
 2655|  5.93k|                                    break;
 2656|       |
 2657|  61.8k|                                case BOP_DIV:
  ------------------
  |  Branch (2657:33): [True: 61.8k, False: 821k]
  ------------------
 2658|  61.8k|                                    if (rhs.v.d == 0)
  ------------------
  |  Branch (2658:41): [True: 1, False: 61.8k]
  ------------------
 2659|      1|                                        throw makeError(ast.location, "division by zero.");
 2660|  61.8k|                                    scratch = makeNumberCheck(ast.location, lhs.v.d / rhs.v.d);
 2661|  61.8k|                                    break;
 2662|       |
 2663|       |                                    // No need to check doubles made from longs
 2664|       |
 2665|    509|                                case BOP_SHIFT_L: {
  ------------------
  |  Branch (2665:33): [True: 509, False: 882k]
  ------------------
 2666|    509|                                    if (rhs.v.d < 0)
  ------------------
  |  Branch (2666:41): [True: 1, False: 508]
  ------------------
 2667|      1|                                        throw makeError(ast.location, "shift by negative exponent.");
 2668|       |
 2669|    508|                                    int64_t long_l = safeDoubleToInt64(lhs.v.d, ast.location);
 2670|    508|                                    int64_t long_r = safeDoubleToInt64(rhs.v.d, ast.location);
 2671|    508|                                    long_r = long_r % 64;
 2672|       |
 2673|       |                                    // Additional safety check for left shifts to prevent undefined behavior.
 2674|       |                                    // Left-shift that would move the highest set bit into the sign bit position is undefined.
 2675|    508|                                    if (long_r >= 1 && abs(long_l) >= (1LL << (63 - long_r))) {
  ------------------
  |  Branch (2675:41): [True: 317, False: 191]
  |  Branch (2675:56): [True: 42, False: 275]
  ------------------
 2676|     42|                                        throw makeError(ast.location,
 2677|     42|                                            "numeric value outside safe integer range for bitwise operation.");
 2678|     42|                                    }
 2679|       |
 2680|       |                                    // Left-shift of a negative number is undefined until C++20.
 2681|       |                                    // Perform the shift on unsigned int to avoid that.
 2682|    466|                                    scratch = makeNumber(static_cast<int64_t>(static_cast<uint64_t>(long_l) << long_r));
 2683|    466|                                } break;
 2684|       |
 2685|     69|                                case BOP_SHIFT_R: {
  ------------------
  |  Branch (2685:33): [True: 69, False: 883k]
  ------------------
 2686|     69|                                    if (rhs.v.d < 0)
  ------------------
  |  Branch (2686:41): [True: 1, False: 68]
  ------------------
 2687|      1|                                        throw makeError(ast.location, "shift by negative exponent.");
 2688|       |
 2689|     68|                                    int64_t long_l = safeDoubleToInt64(lhs.v.d, ast.location);
 2690|     68|                                    int64_t long_r = safeDoubleToInt64(rhs.v.d, ast.location);
 2691|     68|                                    long_r = long_r % 64;
 2692|     68|                                    scratch = makeNumber(long_l >> long_r);
 2693|     68|                                } break;
 2694|       |
 2695|  13.2k|                                case BOP_BITWISE_AND: {
  ------------------
  |  Branch (2695:33): [True: 13.2k, False: 869k]
  ------------------
 2696|  13.2k|                                    int64_t long_l = safeDoubleToInt64(lhs.v.d, ast.location);
 2697|  13.2k|                                    int64_t long_r = safeDoubleToInt64(rhs.v.d, ast.location);
 2698|  13.2k|                                    scratch = makeNumber(long_l & long_r);
 2699|  13.2k|                                } break;
 2700|       |
 2701|  9.66k|                                case BOP_BITWISE_XOR: {
  ------------------
  |  Branch (2701:33): [True: 9.66k, False: 873k]
  ------------------
 2702|  9.66k|                                    int64_t long_l = safeDoubleToInt64(lhs.v.d, ast.location);
 2703|  9.66k|                                    int64_t long_r = safeDoubleToInt64(rhs.v.d, ast.location);
 2704|  9.66k|                                    scratch = makeNumber(long_l ^ long_r);
 2705|  9.66k|                                } break;
 2706|       |
 2707|  6.93k|                                case BOP_BITWISE_OR: {
  ------------------
  |  Branch (2707:33): [True: 6.93k, False: 876k]
  ------------------
 2708|  6.93k|                                    int64_t long_l = safeDoubleToInt64(lhs.v.d, ast.location);
 2709|  6.93k|                                    int64_t long_r = safeDoubleToInt64(rhs.v.d, ast.location);
 2710|  6.93k|                                    scratch = makeNumber(long_l | long_r);
 2711|  6.93k|                                } break;
 2712|       |
 2713|  35.8k|                                case BOP_LESS_EQ: scratch = makeBoolean(lhs.v.d <= rhs.v.d); break;
  ------------------
  |  Branch (2713:33): [True: 35.8k, False: 847k]
  ------------------
 2714|       |
 2715|   311k|                                case BOP_GREATER_EQ:
  ------------------
  |  Branch (2715:33): [True: 311k, False: 571k]
  ------------------
 2716|   311k|                                    scratch = makeBoolean(lhs.v.d >= rhs.v.d);
 2717|   311k|                                    break;
 2718|       |
 2719|   147k|                                case BOP_LESS: scratch = makeBoolean(lhs.v.d < rhs.v.d); break;
  ------------------
  |  Branch (2719:33): [True: 147k, False: 736k]
  ------------------
 2720|       |
 2721|  17.2k|                                case BOP_GREATER: scratch = makeBoolean(lhs.v.d > rhs.v.d); break;
  ------------------
  |  Branch (2721:33): [True: 17.2k, False: 865k]
  ------------------
 2722|       |
 2723|      8|                                default:
  ------------------
  |  Branch (2723:33): [True: 8, False: 883k]
  ------------------
 2724|      8|                                    throw makeError(ast.location,
 2725|      8|                                                    "binary operator " + bop_string(ast.op) +
 2726|      8|                                                        " does not operate on numbers.");
 2727|   883k|                            }
 2728|   883k|                            break;
 2729|       |
 2730|   883k|                        case Value::FUNCTION:
  ------------------
  |  Branch (2730:25): [True: 2, False: 3.00M]
  ------------------
 2731|      2|                            throw makeError(ast.location,
 2732|      2|                                            "binary operator " + bop_string(ast.op) +
 2733|      2|                                                " does not operate on functions.");
 2734|       |
 2735|      2|                        case Value::NULL_TYPE:
  ------------------
  |  Branch (2735:25): [True: 2, False: 3.00M]
  ------------------
 2736|      2|                            throw makeError(ast.location,
 2737|      2|                                            "binary operator " + bop_string(ast.op) +
 2738|      2|                                                " does not operate on null.");
 2739|       |
 2740|  1.29M|                        case Value::OBJECT: {
  ------------------
  |  Branch (2740:25): [True: 1.29M, False: 1.71M]
  ------------------
 2741|  1.29M|                            if (ast.op != BOP_PLUS) {
  ------------------
  |  Branch (2741:33): [True: 4, False: 1.29M]
  ------------------
 2742|      4|                                throw makeError(ast.location,
 2743|      4|                                                "binary operator " + bop_string(ast.op) +
 2744|      4|                                                    " does not operate on objects.");
 2745|      4|                            }
 2746|  1.29M|                            auto *lhs_obj = static_cast<HeapObject *>(lhs.v.h);
 2747|  1.29M|                            auto *rhs_obj = static_cast<HeapObject *>(rhs.v.h);
 2748|  1.29M|                            scratch = makeObject<HeapExtendedObject>(lhs_obj, rhs_obj);
 2749|  1.29M|                        } break;
 2750|       |
 2751|  50.5k|                        case Value::STRING: {
  ------------------
  |  Branch (2751:25): [True: 50.5k, False: 2.95M]
  ------------------
 2752|  50.5k|                            const UString &lhs_str = static_cast<HeapString *>(lhs.v.h)->value;
 2753|  50.5k|                            const UString &rhs_str = static_cast<HeapString *>(rhs.v.h)->value;
 2754|  50.5k|                            switch (ast.op) {
 2755|      0|                                case BOP_PLUS: scratch = makeString(lhs_str + rhs_str); break;
  ------------------
  |  Branch (2755:33): [True: 0, False: 50.5k]
  ------------------
 2756|       |
 2757|  10.6k|                                case BOP_LESS_EQ: scratch = makeBoolean(lhs_str <= rhs_str); break;
  ------------------
  |  Branch (2757:33): [True: 10.6k, False: 39.8k]
  ------------------
 2758|       |
 2759|  32.0k|                                case BOP_GREATER_EQ:
  ------------------
  |  Branch (2759:33): [True: 32.0k, False: 18.4k]
  ------------------
 2760|  32.0k|                                    scratch = makeBoolean(lhs_str >= rhs_str);
 2761|  32.0k|                                    break;
 2762|       |
 2763|  2.74k|                                case BOP_LESS: scratch = makeBoolean(lhs_str < rhs_str); break;
  ------------------
  |  Branch (2763:33): [True: 2.74k, False: 47.7k]
  ------------------
 2764|       |
 2765|  5.00k|                                case BOP_GREATER: scratch = makeBoolean(lhs_str > rhs_str); break;
  ------------------
  |  Branch (2765:33): [True: 5.00k, False: 45.5k]
  ------------------
 2766|       |
 2767|     28|                                default:
  ------------------
  |  Branch (2767:33): [True: 28, False: 50.4k]
  ------------------
 2768|     28|                                    throw makeError(ast.location,
 2769|     28|                                                    "binary operator " + bop_string(ast.op) +
 2770|     28|                                                        " does not operate on strings.");
 2771|  50.5k|                            }
 2772|  50.5k|                        } break;
 2773|  3.00M|                    }
 2774|  3.00M|                } break;
 2775|       |
 2776|  2.97M|                case FRAME_BUILTIN_FILTER: {
  ------------------
  |  Branch (2776:17): [True: 0, False: 115M]
  ------------------
 2777|      0|                    const auto &ast = *static_cast<const Apply *>(f.ast);
 2778|      0|                    auto *func = static_cast<HeapClosure *>(f.val.v.h);
 2779|      0|                    auto *arr = static_cast<HeapArray *>(f.val2.v.h);
 2780|      0|                    if (scratch.t != Value::BOOLEAN) {
  ------------------
  |  Branch (2780:25): [True: 0, False: 0]
  ------------------
 2781|      0|                        throw makeError(
 2782|      0|                            ast.location,
 2783|      0|                            "filter function must return boolean, got: " + type_str(scratch));
 2784|      0|                    }
 2785|      0|                    if (scratch.v.b)
  ------------------
  |  Branch (2785:25): [True: 0, False: 0]
  ------------------
 2786|      0|                        f.thunks.push_back(arr->elements[f.elementId]);
 2787|      0|                    f.elementId++;
 2788|       |                    // Iterate through arr, calling the function on each.
 2789|      0|                    if (f.elementId == arr->elements.size()) {
  ------------------
  |  Branch (2789:25): [True: 0, False: 0]
  ------------------
 2790|      0|                        scratch = makeArray(f.thunks);
 2791|      0|                    } else {
 2792|      0|                        auto *thunk = arr->elements[f.elementId];
 2793|      0|                        BindingFrame bindings = func->upValues;
 2794|      0|                        bindings[func->params[0].id] = thunk;
 2795|      0|                        stack.newCall(ast.location, func, func->self, func->offset, bindings);
 2796|      0|                        ast_ = func->body;
 2797|      0|                        goto recurse;
 2798|      0|                    }
 2799|      0|                } break;
 2800|       |
 2801|  17.5M|                case FRAME_BUILTIN_FORCE_THUNKS: {
  ------------------
  |  Branch (2801:17): [True: 17.5M, False: 98.1M]
  ------------------
 2802|  17.5M|                    const auto &location = f.location;
 2803|  17.5M|                    auto *func = static_cast<HeapClosure *>(f.val.v.h);
 2804|  17.5M|                    if (f.elementId == f.thunks.size()) {
  ------------------
  |  Branch (2804:25): [True: 6.78M, False: 10.7M]
  ------------------
 2805|       |                        // All thunks forced, now the builtin implementations.
 2806|  6.78M|                        const std::string &builtin_name = func->builtinName;
 2807|  6.78M|                        std::vector<Value> args;
 2808|  10.7M|                        for (const auto &p : func->params) {
  ------------------
  |  Branch (2808:44): [True: 10.7M, False: 6.78M]
  ------------------
 2809|  10.7M|                            const auto it = f.bindings.find(p.id);
 2810|  10.7M|                            if (it != f.bindings.end()) {
  ------------------
  |  Branch (2810:33): [True: 10.7M, False: 0]
  ------------------
 2811|  10.7M|                                assert(it->second->filled);
  ------------------
  |  Branch (2811:33): [True: 10.7M, False: 0]
  ------------------
 2812|  10.7M|                                args.push_back(it->second->content);
 2813|  10.7M|                            } else {
 2814|      0|                                std::stringstream ss;
 2815|      0|                                ss << "function parameter " << encode_utf8(p.id->name)
 2816|      0|                                    << " not bound in call.";
 2817|      0|                                throw makeError(location, ss.str());
 2818|      0|                            }
 2819|  10.7M|                        }
 2820|       |
 2821|  6.78M|                        BuiltinMap::const_iterator bit = builtins.find(builtin_name);
 2822|  6.78M|                        if (bit != builtins.end()) {
  ------------------
  |  Branch (2822:29): [True: 6.78M, False: 0]
  ------------------
 2823|  6.78M|                            const AST *new_ast = (this->*bit->second)(location, args);
 2824|  6.78M|                            if (new_ast != nullptr) {
  ------------------
  |  Branch (2824:33): [True: 0, False: 6.78M]
  ------------------
 2825|      0|                                ast_ = new_ast;
 2826|      0|                                goto recurse;
 2827|      0|                            }
 2828|  6.78M|                            break;
 2829|  6.78M|                        }
 2830|      0|                        VmNativeCallbackMap::const_iterator nit =
 2831|      0|                            nativeCallbacks.find(builtin_name);
 2832|       |                        // TODO(dcunnin): Support arrays.
 2833|       |                        // TODO(dcunnin): Support objects.
 2834|      0|                        std::vector<JsonnetJsonValue> args2;
 2835|      0|                        for (const Value &arg : args) {
  ------------------
  |  Branch (2835:47): [True: 0, False: 0]
  ------------------
 2836|      0|                            switch (arg.t) {
 2837|      0|                                case Value::STRING:
  ------------------
  |  Branch (2837:33): [True: 0, False: 0]
  ------------------
 2838|      0|                                    args2.emplace_back(
 2839|      0|                                        JsonnetJsonValue::STRING,
 2840|      0|                                        encode_utf8(static_cast<HeapString *>(arg.v.h)->value),
 2841|      0|                                        0);
 2842|      0|                                    break;
 2843|       |
 2844|      0|                                case Value::BOOLEAN:
  ------------------
  |  Branch (2844:33): [True: 0, False: 0]
  ------------------
 2845|      0|                                    args2.emplace_back(
 2846|      0|                                        JsonnetJsonValue::BOOL, "", arg.v.b ? 1.0 : 0.0);
  ------------------
  |  Branch (2846:69): [True: 0, False: 0]
  ------------------
 2847|      0|                                    break;
 2848|       |
 2849|      0|                                case Value::NUMBER:
  ------------------
  |  Branch (2849:33): [True: 0, False: 0]
  ------------------
 2850|      0|                                    args2.emplace_back(JsonnetJsonValue::NUMBER, "", arg.v.d);
 2851|      0|                                    break;
 2852|       |
 2853|      0|                                case Value::NULL_TYPE:
  ------------------
  |  Branch (2853:33): [True: 0, False: 0]
  ------------------
 2854|      0|                                    args2.emplace_back(JsonnetJsonValue::NULL_KIND, "", 0);
 2855|      0|                                    break;
 2856|       |
 2857|      0|                                default:
  ------------------
  |  Branch (2857:33): [True: 0, False: 0]
  ------------------
 2858|      0|                                    throw makeError(location,
 2859|      0|                                                    "native extensions can only take primitives.");
 2860|      0|                            }
 2861|      0|                        }
 2862|      0|                        std::vector<const JsonnetJsonValue *> args3;
 2863|      0|                        for (size_t i = 0; i < args2.size(); ++i) {
  ------------------
  |  Branch (2863:44): [True: 0, False: 0]
  ------------------
 2864|      0|                            args3.push_back(&args2[i]);
 2865|      0|                        }
 2866|      0|                        if (nit == nativeCallbacks.end()) {
  ------------------
  |  Branch (2866:29): [True: 0, False: 0]
  ------------------
 2867|      0|                            throw makeError(location,
 2868|      0|                                            "unrecognized builtin name: " + builtin_name);
 2869|      0|                        }
 2870|      0|                        const VmNativeCallback &cb = nit->second;
 2871|       |
 2872|      0|                        int succ;
 2873|      0|                        std::unique_ptr<JsonnetJsonValue> r(cb.cb(cb.ctx, args3.data(), &succ));
 2874|       |
 2875|      0|                        if (succ) {
  ------------------
  |  Branch (2875:29): [True: 0, False: 0]
  ------------------
 2876|      0|                            bool unused;
 2877|      0|                            jsonToHeap(r, unused, scratch);
 2878|      0|                        } else {
 2879|      0|                            if (r->kind != JsonnetJsonValue::STRING) {
  ------------------
  |  Branch (2879:33): [True: 0, False: 0]
  ------------------
 2880|      0|                                throw makeError(
 2881|      0|                                    location,
 2882|      0|                                    "native extension returned an error that was not a string.");
 2883|      0|                            }
 2884|      0|                            std::string rs = r->string;
 2885|      0|                            throw makeError(location, rs);
 2886|      0|                        }
 2887|       |
 2888|  10.7M|                    } else {
 2889|       |                        // Not all arguments forced yet.
 2890|  10.7M|                        HeapThunk *th = f.thunks[f.elementId++];
 2891|  10.7M|                        if (!th->filled) {
  ------------------
  |  Branch (2891:29): [True: 10.7M, False: 0]
  ------------------
 2892|  10.7M|                            stack.newCall(location, th, th->self, th->offset, th->upValues);
 2893|  10.7M|                            ast_ = th->body;
 2894|  10.7M|                            goto recurse;
 2895|  10.7M|                        } else {
 2896|       |                            // Otherwise loop back around to force the next thunk.
 2897|      0|                            goto replaceframe;
 2898|      0|                        }
 2899|  10.7M|                    }
 2900|  17.5M|                } break;
 2901|       |
 2902|  35.4M|                case FRAME_CALL: {
  ------------------
  |  Branch (2902:17): [True: 35.4M, False: 80.2M]
  ------------------
 2903|  35.4M|                    if (auto *thunk = dynamic_cast<HeapThunk *>(f.context)) {
  ------------------
  |  Branch (2903:31): [True: 19.2M, False: 16.1M]
  ------------------
 2904|       |                        // If we called a thunk, cache result.
 2905|  19.2M|                        thunk->fill(scratch);
 2906|  19.2M|                    } else if (auto *closure = dynamic_cast<HeapClosure *>(f.context)) {
  ------------------
  |  Branch (2906:38): [True: 5.72M, False: 10.4M]
  ------------------
 2907|  5.72M|                        if (f.elementId < f.thunks.size()) {
  ------------------
  |  Branch (2907:29): [True: 2.85M, False: 2.87M]
  ------------------
 2908|       |                            // If tailstrict, force thunks
 2909|  2.85M|                            HeapThunk *th = f.thunks[f.elementId++];
 2910|  2.85M|                            if (!th->filled) {
  ------------------
  |  Branch (2910:33): [True: 2.85M, False: 0]
  ------------------
 2911|  2.85M|                                stack.newCall(f.location, th, th->self, th->offset, th->upValues);
 2912|  2.85M|                                ast_ = th->body;
 2913|  2.85M|                                goto recurse;
 2914|  2.85M|                            }
 2915|  2.87M|                        } else if (f.thunks.size() == 0) {
  ------------------
  |  Branch (2915:36): [True: 1.64M, False: 1.22M]
  ------------------
 2916|       |                            // Body has now been executed
 2917|  1.64M|                        } else {
 2918|       |                            // Execute the body
 2919|  1.22M|                            f.thunks.clear();
 2920|  1.22M|                            f.elementId = 0;
 2921|  1.22M|                            ast_ = closure->body;
 2922|  1.22M|                            goto recurse;
 2923|  1.22M|                        }
 2924|  5.72M|                    }
 2925|       |                    // Result of call is in scratch, just pop.
 2926|  35.4M|                } break;
 2927|       |
 2928|  31.3M|                case FRAME_ERROR: {
  ------------------
  |  Branch (2928:17): [True: 3.10k, False: 115M]
  ------------------
 2929|  3.10k|                    const auto &ast = *static_cast<const Error *>(f.ast);
 2930|  3.10k|                    UString msg;
 2931|  3.10k|                    if (scratch.t == Value::STRING) {
  ------------------
  |  Branch (2931:25): [True: 371, False: 2.73k]
  ------------------
 2932|    371|                        msg = static_cast<HeapString *>(scratch.v.h)->value;
 2933|  2.73k|                    } else {
 2934|  2.73k|                        msg = toString(ast.location);
 2935|  2.73k|                    }
 2936|  3.10k|                    throw makeError(ast.location, encode_utf8(msg));
 2937|  35.4M|                } break;
 2938|       |
 2939|  6.43M|                case FRAME_IF: {
  ------------------
  |  Branch (2939:17): [True: 6.43M, False: 109M]
  ------------------
 2940|  6.43M|                    const auto &ast = *static_cast<const Conditional *>(f.ast);
 2941|  6.43M|                    if (scratch.t != Value::BOOLEAN) {
  ------------------
  |  Branch (2941:25): [True: 55, False: 6.43M]
  ------------------
 2942|     55|                        throw makeError(
 2943|     55|                            ast.location,
 2944|     55|                            "condition must be boolean, got " + type_str(scratch) + ".");
 2945|     55|                    }
 2946|  6.43M|                    ast_ = scratch.v.b ? ast.branchTrue : ast.branchFalse;
  ------------------
  |  Branch (2946:28): [True: 2.57M, False: 3.86M]
  ------------------
 2947|  6.43M|                    stack.pop();
 2948|  6.43M|                    goto recurse;
 2949|  6.43M|                } break;
 2950|       |
 2951|  2.02M|                case FRAME_SUPER_INDEX: {
  ------------------
  |  Branch (2951:17): [True: 2.02M, False: 113M]
  ------------------
 2952|  2.02M|                    const auto &ast = *static_cast<const SuperIndex *>(f.ast);
 2953|  2.02M|                    HeapObject *self;
 2954|  2.02M|                    unsigned offset;
 2955|  2.02M|                    stack.getSelfBinding(self, offset);
 2956|  2.02M|                    offset++;
 2957|  2.02M|                    if (offset >= countLeaves(self)) {
  ------------------
  |  Branch (2957:25): [True: 1, False: 2.02M]
  ------------------
 2958|      1|                        throw makeError(ast.location,
 2959|      1|                                        "attempt to use super when there is no super class.");
 2960|      1|                    }
 2961|  2.02M|                    if (scratch.t != Value::STRING) {
  ------------------
  |  Branch (2961:25): [True: 0, False: 2.02M]
  ------------------
 2962|      0|                        throw makeError(
 2963|      0|                            ast.location,
 2964|      0|                            "super index must be string, got " + type_str(scratch) + ".");
 2965|      0|                    }
 2966|       |
 2967|  2.02M|                    const UString &index_name = static_cast<HeapString *>(scratch.v.h)->value;
 2968|  2.02M|                    auto *fid = alloc->makeIdentifier(index_name);
 2969|  2.02M|                    stack.pop();
 2970|  2.02M|                    ast_ = objectIndex(ast.location, self, fid, offset);
 2971|  2.02M|                    goto recurse;
 2972|  2.02M|                } break;
 2973|       |
 2974|  2.19M|                case FRAME_IN_SUPER_ELEMENT: {
  ------------------
  |  Branch (2974:17): [True: 2.19M, False: 113M]
  ------------------
 2975|  2.19M|                    const auto &ast = *static_cast<const InSuper *>(f.ast);
 2976|  2.19M|                    HeapObject *self;
 2977|  2.19M|                    unsigned offset;
 2978|  2.19M|                    stack.getSelfBinding(self, offset);
 2979|  2.19M|                    offset++;
 2980|  2.19M|                    if (scratch.t != Value::STRING) {
  ------------------
  |  Branch (2980:25): [True: 2, False: 2.19M]
  ------------------
 2981|      2|                        throw makeError(ast.location,
 2982|      2|                                        "left hand side of e in super must be string, got " +
 2983|      2|                                            type_str(scratch) + ".");
 2984|      2|                    }
 2985|  2.19M|                    if (offset >= countLeaves(self)) {
  ------------------
  |  Branch (2985:25): [True: 130k, False: 2.06M]
  ------------------
 2986|       |                        // There is no super object.
 2987|   130k|                        scratch = makeBoolean(false);
 2988|  2.06M|                    } else {
 2989|  2.06M|                        const UString &element_name = static_cast<HeapString *>(scratch.v.h)->value;
 2990|  2.06M|                        auto *fid = alloc->makeIdentifier(element_name);
 2991|  2.06M|                        unsigned unused_found_at = 0;
 2992|  2.06M|                        bool in = findObject(fid, self, offset, unused_found_at);
 2993|  2.06M|                        scratch = makeBoolean(in);
 2994|  2.06M|                    }
 2995|  2.19M|                } break;
 2996|       |
 2997|  8.82M|                case FRAME_INDEX_INDEX: {
  ------------------
  |  Branch (2997:17): [True: 8.82M, False: 106M]
  ------------------
 2998|  8.82M|                    const auto &ast = *static_cast<const Index *>(f.ast);
 2999|  8.82M|                    const Value &target = f.val;
 3000|  8.82M|                    if (target.t == Value::ARRAY) {
  ------------------
  |  Branch (3000:25): [True: 143k, False: 8.68M]
  ------------------
 3001|   143k|                        const auto *array = static_cast<HeapArray *>(target.v.h);
 3002|   143k|                        if (scratch.t == Value::STRING) {
  ------------------
  |  Branch (3002:29): [True: 63, False: 143k]
  ------------------
 3003|     63|                            const UString &str = static_cast<HeapString *>(scratch.v.h)->value;
 3004|     63|                            throw makeError(
 3005|     63|                                ast.location,
 3006|     63|                                "attempted index an array with string \""
 3007|     63|                                + encode_utf8(jsonnet_string_escape(str, false)) + "\".");
 3008|     63|                        }
 3009|   143k|                        if (scratch.t != Value::NUMBER) {
  ------------------
  |  Branch (3009:29): [True: 9, False: 143k]
  ------------------
 3010|      9|                            throw makeError(
 3011|      9|                                ast.location,
 3012|      9|                                "array index must be number, got " + type_str(scratch) + ".");
 3013|      9|                        }
 3014|   143k|                        double index = ::floor(scratch.v.d);
 3015|   143k|                        long sz = array->elements.size();
 3016|   143k|                        if (index < 0 || index >= sz) {
  ------------------
  |  Branch (3016:29): [True: 1, False: 143k]
  |  Branch (3016:42): [True: 10, False: 143k]
  ------------------
 3017|     11|                            std::stringstream ss;
 3018|     11|                            ss << "array bounds error: " << index << " not within [0, " << sz
 3019|     11|                               << ")";
 3020|     11|                            throw makeError(ast.location, ss.str());
 3021|     11|                        }
 3022|   143k|                        if (scratch.v.d != index) {
  ------------------
  |  Branch (3022:29): [True: 1, False: 143k]
  ------------------
 3023|      1|                            std::stringstream ss;
 3024|      1|                            ss << "array index was not integer: " << scratch.v.d;
 3025|      1|                            throw makeError(ast.location, ss.str());
 3026|      1|                        }
 3027|       |                        // index < sz <= SIZE_T_MAX
 3028|   143k|                        auto *thunk = array->elements[size_t(index)];
 3029|   143k|                        if (thunk->filled) {
  ------------------
  |  Branch (3029:29): [True: 65.4k, False: 78.2k]
  ------------------
 3030|  65.4k|                            scratch = thunk->content;
 3031|  78.2k|                        } else {
 3032|  78.2k|                            stack.pop();
 3033|  78.2k|                            stack.newCall(
 3034|  78.2k|                                ast.location, thunk, thunk->self, thunk->offset, thunk->upValues);
 3035|  78.2k|                            ast_ = thunk->body;
 3036|  78.2k|                            goto recurse;
 3037|  78.2k|                        }
 3038|  8.68M|                    } else if (target.t == Value::OBJECT) {
  ------------------
  |  Branch (3038:32): [True: 8.48M, False: 200k]
  ------------------
 3039|  8.48M|                        auto *obj = static_cast<HeapObject *>(target.v.h);
 3040|  8.48M|                        assert(obj != nullptr);
  ------------------
  |  Branch (3040:25): [True: 8.48M, False: 0]
  ------------------
 3041|  8.48M|                        if (scratch.t != Value::STRING) {
  ------------------
  |  Branch (3041:29): [True: 3, False: 8.48M]
  ------------------
 3042|      3|                            throw makeError(
 3043|      3|                                ast.location,
 3044|      3|                                "object index must be string, got " + type_str(scratch) + ".");
 3045|      3|                        }
 3046|  8.48M|                        const UString &index_name = static_cast<HeapString *>(scratch.v.h)->value;
 3047|  8.48M|                        auto *fid = alloc->makeIdentifier(index_name);
 3048|  8.48M|                        stack.pop();
 3049|  8.48M|                        ast_ = objectIndex(ast.location, obj, fid, 0);
 3050|  8.48M|                        goto recurse;
 3051|  8.48M|                    } else if (target.t == Value::STRING) {
  ------------------
  |  Branch (3051:32): [True: 200k, False: 0]
  ------------------
 3052|   200k|                        auto *obj = static_cast<HeapString *>(target.v.h);
 3053|   200k|                        assert(obj != nullptr);
  ------------------
  |  Branch (3053:25): [True: 200k, False: 0]
  ------------------
 3054|   200k|                        if (scratch.t != Value::NUMBER) {
  ------------------
  |  Branch (3054:29): [True: 5, False: 200k]
  ------------------
 3055|      5|                            throw makeError(
 3056|      5|                                ast.location,
 3057|      5|                                "string index must be a number, got " + type_str(scratch) + ".");
 3058|      5|                        }
 3059|   200k|                        long sz = obj->value.length();
 3060|   200k|                        long i = (long)scratch.v.d;
 3061|   200k|                        if (i < 0 || i >= sz) {
  ------------------
  |  Branch (3061:29): [True: 54, False: 200k]
  |  Branch (3061:38): [True: 49, False: 200k]
  ------------------
 3062|    103|                            std::stringstream ss;
 3063|    103|                            ss << "string bounds error: " << i << " not within [0, " << sz << ")";
 3064|    103|                            throw makeError(ast.location, ss.str());
 3065|    103|                        }
 3066|   200k|                        char32_t ch[] = {obj->value[i], U'\0'};
 3067|   200k|                        scratch = makeString(ch);
 3068|   200k|                    } else {
 3069|      0|                        std::cerr << "INTERNAL ERROR: not object / array / string." << std::endl;
 3070|      0|                        abort();
 3071|      0|                    }
 3072|  8.82M|                } break;
 3073|       |
 3074|  8.82M|                case FRAME_INDEX_TARGET: {
  ------------------
  |  Branch (3074:17): [True: 8.82M, False: 106M]
  ------------------
 3075|  8.82M|                    const auto &ast = *static_cast<const Index *>(f.ast);
 3076|  8.82M|                    if (scratch.t != Value::ARRAY && scratch.t != Value::OBJECT &&
  ------------------
  |  Branch (3076:25): [True: 8.68M, False: 143k]
  |  Branch (3076:54): [True: 200k, False: 8.48M]
  ------------------
 3077|   200k|                        scratch.t != Value::STRING) {
  ------------------
  |  Branch (3077:25): [True: 8, False: 200k]
  ------------------
 3078|      8|                        throw makeError(ast.location,
 3079|      8|                                        "can only index objects, strings, and arrays, got " +
 3080|      8|                                            type_str(scratch) + ".");
 3081|      8|                    }
 3082|  8.82M|                    f.val = scratch;
 3083|  8.82M|                    f.kind = FRAME_INDEX_INDEX;
 3084|  8.82M|                    if (scratch.t == Value::OBJECT) {
  ------------------
  |  Branch (3084:25): [True: 8.48M, False: 344k]
  ------------------
 3085|  8.48M|                        auto *self = static_cast<HeapObject *>(scratch.v.h);
 3086|  8.48M|                        if (!stack.alreadyExecutingInvariants(self)) {
  ------------------
  |  Branch (3086:29): [True: 8.47M, False: 7.20k]
  ------------------
 3087|  8.47M|                            stack.newFrame(FRAME_INVARIANTS, ast.location);
 3088|  8.47M|                            Frame &f2 = stack.top();
 3089|  8.47M|                            f2.self = self;
 3090|  8.47M|                            unsigned counter = 0;
 3091|  8.47M|                            objectInvariants(self, self, counter, f2.thunks);
 3092|  8.47M|                            if (f2.thunks.size() > 0) {
  ------------------
  |  Branch (3092:33): [True: 176, False: 8.47M]
  ------------------
 3093|    176|                                auto *thunk = f2.thunks[0];
 3094|    176|                                f2.elementId = 1;
 3095|    176|                                stack.newCall(ast.location,
 3096|    176|                                              thunk,
 3097|    176|                                              thunk->self,
 3098|    176|                                              thunk->offset,
 3099|    176|                                              thunk->upValues);
 3100|    176|                                ast_ = thunk->body;
 3101|    176|                                goto recurse;
 3102|    176|                            }
 3103|  8.47M|                        }
 3104|  8.48M|                    }
 3105|  8.82M|                    ast_ = ast.index;
 3106|  8.82M|                    goto recurse;
 3107|  8.82M|                } break;
 3108|       |
 3109|  8.49M|                case FRAME_INVARIANTS: {
  ------------------
  |  Branch (3109:17): [True: 8.49M, False: 107M]
  ------------------
 3110|  8.49M|                    if (f.elementId >= f.thunks.size()) {
  ------------------
  |  Branch (3110:25): [True: 8.48M, False: 8.93k]
  ------------------
 3111|  8.48M|                        if (stack.size() == initial_stack_size + 1) {
  ------------------
  |  Branch (3111:29): [True: 7.18k, False: 8.47M]
  ------------------
 3112|       |                            // Just pop, evaluate was invoked by runInvariants.
 3113|  7.18k|                            break;
 3114|  7.18k|                        }
 3115|  8.47M|                        stack.pop();
 3116|  8.47M|                        Frame &f2 = stack.top();
 3117|  8.47M|                        const auto &ast = *static_cast<const Index *>(f2.ast);
 3118|  8.47M|                        ast_ = ast.index;
 3119|  8.47M|                        goto recurse;
 3120|  8.48M|                    }
 3121|  8.93k|                    auto *thunk = f.thunks[f.elementId++];
 3122|  8.93k|                    stack.newCall(f.location, thunk, thunk->self, thunk->offset, thunk->upValues);
 3123|  8.93k|                    ast_ = thunk->body;
 3124|  8.93k|                    goto recurse;
 3125|  8.49M|                } break;
 3126|       |
 3127|  4.10M|                case FRAME_LOCAL: {
  ------------------
  |  Branch (3127:17): [True: 4.10M, False: 111M]
  ------------------
 3128|       |                    // Result of execution is in scratch already.
 3129|  4.10M|                } break;
 3130|       |
 3131|  1.99M|                case FRAME_OBJECT: {
  ------------------
  |  Branch (3131:17): [True: 1.99M, False: 113M]
  ------------------
 3132|  1.99M|                    const auto &ast = *static_cast<const DesugaredObject *>(f.ast);
 3133|  1.99M|                    if (scratch.t != Value::NULL_TYPE) {
  ------------------
  |  Branch (3133:25): [True: 1.99M, False: 0]
  ------------------
 3134|  1.99M|                        if (scratch.t != Value::STRING) {
  ------------------
  |  Branch (3134:29): [True: 22, False: 1.99M]
  ------------------
 3135|     22|                            throw makeError(ast.location, "field name was not a string.");
 3136|     22|                        }
 3137|  1.99M|                        const auto &fname = static_cast<const HeapString *>(scratch.v.h)->value;
 3138|  1.99M|                        const Identifier *fid = alloc->makeIdentifier(fname);
 3139|  1.99M|                        if (f.objectFields.find(fid) != f.objectFields.end()) {
  ------------------
  |  Branch (3139:29): [True: 1, False: 1.99M]
  ------------------
 3140|      1|                            std::string msg =
 3141|      1|                                "duplicate field name: \"" + encode_utf8(fname) + "\"";
 3142|      1|                            throw makeError(ast.location, msg);
 3143|      1|                        }
 3144|  1.99M|                        f.objectFields[fid].hide = f.fit->hide;
 3145|  1.99M|                        f.objectFields[fid].body = f.fit->body;
 3146|  1.99M|                    }
 3147|  1.99M|                    f.fit++;
 3148|  1.99M|                    if (f.fit != ast.fields.end()) {
  ------------------
  |  Branch (3148:25): [True: 1.28M, False: 704k]
  ------------------
 3149|  1.28M|                        ast_ = f.fit->name;
 3150|  1.28M|                        goto recurse;
 3151|  1.28M|                    } else {
 3152|   704k|                        auto env = capture(ast.freeVariables);
 3153|   704k|                        scratch = makeObject<HeapSimpleObject>(env, f.objectFields, ast.asserts);
 3154|   704k|                    }
 3155|  1.99M|                } break;
 3156|       |
 3157|   704k|                case FRAME_OBJECT_COMP_ARRAY: {
  ------------------
  |  Branch (3157:17): [True: 0, False: 115M]
  ------------------
 3158|      0|                    const auto &ast = *static_cast<const ObjectComprehensionSimple *>(f.ast);
 3159|      0|                    const Value &arr_v = scratch;
 3160|      0|                    if (scratch.t != Value::ARRAY) {
  ------------------
  |  Branch (3160:25): [True: 0, False: 0]
  ------------------
 3161|      0|                        throw makeError(ast.location,
 3162|      0|                                        "object comprehension needs array, got " + type_str(arr_v));
 3163|      0|                    }
 3164|      0|                    const auto *arr = static_cast<const HeapArray *>(arr_v.v.h);
 3165|      0|                    if (arr->elements.size() == 0) {
  ------------------
  |  Branch (3165:25): [True: 0, False: 0]
  ------------------
 3166|       |                        // Degenerate case.  Just create the object now.
 3167|      0|                        scratch = makeObject<HeapComprehensionObject>(
 3168|      0|                            BindingFrame{}, ast.value, ast.id, BindingFrame{});
 3169|      0|                    } else {
 3170|      0|                        f.kind = FRAME_OBJECT_COMP_ELEMENT;
 3171|      0|                        f.val = scratch;
 3172|      0|                        f.bindings[ast.id] = arr->elements[0];
 3173|      0|                        f.elementId = 0;
 3174|      0|                        ast_ = ast.field;
 3175|      0|                        goto recurse;
 3176|      0|                    }
 3177|      0|                } break;
 3178|       |
 3179|      0|                case FRAME_OBJECT_COMP_ELEMENT: {
  ------------------
  |  Branch (3179:17): [True: 0, False: 115M]
  ------------------
 3180|      0|                    const auto &ast = *static_cast<const ObjectComprehensionSimple *>(f.ast);
 3181|      0|                    const auto *arr = static_cast<const HeapArray *>(f.val.v.h);
 3182|      0|                    if (scratch.t != Value::NULL_TYPE) {
  ------------------
  |  Branch (3182:25): [True: 0, False: 0]
  ------------------
 3183|      0|                        if (scratch.t != Value::STRING) {
  ------------------
  |  Branch (3183:29): [True: 0, False: 0]
  ------------------
 3184|      0|                            std::stringstream ss;
 3185|      0|                            ss << "field must be string, got: " << type_str(scratch);
 3186|      0|                            throw makeError(ast.location, ss.str());
 3187|      0|                        }
 3188|      0|                        const auto &fname = static_cast<const HeapString *>(scratch.v.h)->value;
 3189|      0|                        const Identifier *fid = alloc->makeIdentifier(fname);
 3190|      0|                        if (f.elements.find(fid) != f.elements.end()) {
  ------------------
  |  Branch (3190:29): [True: 0, False: 0]
  ------------------
 3191|      0|                            throw makeError(ast.location,
 3192|      0|                                            "duplicate field name: \"" + encode_utf8(fname) + "\"");
 3193|      0|                        }
 3194|      0|                        f.elements[fid] = arr->elements[f.elementId];
 3195|      0|                    }
 3196|      0|                    f.elementId++;
 3197|       |
 3198|      0|                    if (f.elementId == arr->elements.size()) {
  ------------------
  |  Branch (3198:25): [True: 0, False: 0]
  ------------------
 3199|      0|                        auto env = capture(ast.freeVariables);
 3200|      0|                        scratch =
 3201|      0|                            makeObject<HeapComprehensionObject>(env, ast.value, ast.id, f.elements);
 3202|      0|                    } else {
 3203|      0|                        f.bindings[ast.id] = arr->elements[f.elementId];
 3204|      0|                        ast_ = ast.field;
 3205|      0|                        goto recurse;
 3206|      0|                    }
 3207|      0|                } break;
 3208|       |
 3209|  1.17M|                case FRAME_STRING_CONCAT: {
  ------------------
  |  Branch (3209:17): [True: 1.17M, False: 114M]
  ------------------
 3210|  1.17M|                    const auto &ast = *static_cast<const Binary *>(f.ast);
 3211|  1.17M|                    const Value &lhs = stack.top().val;
 3212|  1.17M|                    UString output;
 3213|  1.17M|                    if (lhs.t == Value::STRING) {
  ------------------
  |  Branch (3213:25): [True: 1.15M, False: 16.6k]
  ------------------
 3214|  1.15M|                        output.append(static_cast<const HeapString *>(lhs.v.h)->value);
 3215|  1.15M|                    } else {
 3216|  16.6k|                        scratch = lhs;
 3217|  16.6k|                        output.append(toString(ast.left->location));
 3218|  16.6k|                    }
 3219|  1.17M|                    const Value &rhs = stack.top().val2;
 3220|  1.17M|                    if (rhs.t == Value::STRING) {
  ------------------
  |  Branch (3220:25): [True: 986k, False: 187k]
  ------------------
 3221|   986k|                        output.append(static_cast<const HeapString *>(rhs.v.h)->value);
 3222|   986k|                    } else {
 3223|   187k|                        scratch = rhs;
 3224|   187k|                        output.append(toString(ast.right->location));
 3225|   187k|                    }
 3226|  1.17M|                    scratch = makeString(output);
 3227|  1.17M|                } break;
 3228|       |
 3229|  1.55M|                case FRAME_UNARY: {
  ------------------
  |  Branch (3229:17): [True: 1.55M, False: 114M]
  ------------------
 3230|  1.55M|                    const auto &ast = *static_cast<const Unary *>(f.ast);
 3231|  1.55M|                    switch (scratch.t) {
 3232|  1.43M|                        case Value::BOOLEAN:
  ------------------
  |  Branch (3232:25): [True: 1.43M, False: 125k]
  ------------------
 3233|  1.43M|                            if (ast.op == UOP_NOT) {
  ------------------
  |  Branch (3233:33): [True: 1.43M, False: 1]
  ------------------
 3234|  1.43M|                                scratch = makeBoolean(!scratch.v.b);
 3235|  1.43M|                            } else {
 3236|      1|                                throw makeError(ast.location,
 3237|      1|                                                "unary operator " + uop_string(ast.op) +
 3238|      1|                                                    " does not operate on booleans.");
 3239|      1|                            }
 3240|  1.43M|                            break;
 3241|       |
 3242|  1.43M|                        case Value::NUMBER:
  ------------------
  |  Branch (3242:25): [True: 125k, False: 1.43M]
  ------------------
 3243|   125k|                            switch (ast.op) {
 3244|  14.1k|                                case UOP_PLUS: break;
  ------------------
  |  Branch (3244:33): [True: 14.1k, False: 110k]
  ------------------
 3245|       |
 3246|  95.1k|                                case UOP_MINUS: scratch = makeNumber(-scratch.v.d); break;
  ------------------
  |  Branch (3246:33): [True: 95.1k, False: 29.8k]
  ------------------
 3247|       |
 3248|  15.7k|                                case UOP_BITWISE_NOT:
  ------------------
  |  Branch (3248:33): [True: 15.7k, False: 109k]
  ------------------
 3249|  15.7k|                                    scratch = makeNumber(~(long)(scratch.v.d));
 3250|  15.7k|                                    break;
 3251|       |
 3252|     32|                                default:
  ------------------
  |  Branch (3252:33): [True: 32, False: 124k]
  ------------------
 3253|     32|                                    throw makeError(ast.location,
 3254|     32|                                                    "unary operator " + uop_string(ast.op) +
 3255|     32|                                                        " does not operate on numbers.");
 3256|   125k|                            }
 3257|   124k|                            break;
 3258|       |
 3259|   124k|                        default:
  ------------------
  |  Branch (3259:25): [True: 129, False: 1.55M]
  ------------------
 3260|    129|                            throw makeError(ast.location,
 3261|    129|                                            "unary operator " + uop_string(ast.op) +
 3262|    129|                                                " does not operate on type " + type_str(scratch));
 3263|  1.55M|                    }
 3264|  1.55M|                } break;
 3265|       |
 3266|  1.55M|                case FRAME_BUILTIN_JOIN_STRINGS: {
  ------------------
  |  Branch (3266:17): [True: 0, False: 115M]
  ------------------
 3267|      0|                    joinString(f.first, f.str, f.val, f.elementId, scratch);
 3268|      0|                    f.elementId++;
 3269|      0|                    auto *ast = joinStrings();
 3270|      0|                    if (ast != nullptr) {
  ------------------
  |  Branch (3270:25): [True: 0, False: 0]
  ------------------
 3271|      0|                        ast_ = ast;
 3272|      0|                        goto recurse;
 3273|      0|                    }
 3274|      0|                } break;
 3275|       |
 3276|      0|                case FRAME_BUILTIN_JOIN_ARRAYS: {
  ------------------
  |  Branch (3276:17): [True: 0, False: 115M]
  ------------------
 3277|      0|                    joinArray(f.first, f.thunks, f.val, f.elementId, scratch);
 3278|      0|                    f.elementId++;
 3279|      0|                    auto *ast = joinArrays();
 3280|      0|                    if (ast != nullptr) {
  ------------------
  |  Branch (3280:25): [True: 0, False: 0]
  ------------------
 3281|      0|                        ast_ = ast;
 3282|      0|                        goto recurse;
 3283|      0|                    }
 3284|      0|                } break;
 3285|       |
 3286|      0|                 case FRAME_BUILTIN_DECODE_UTF8: {
  ------------------
  |  Branch (3286:18): [True: 0, False: 115M]
  ------------------
 3287|      0|                    auto *ast = decodeUTF8();
 3288|      0|                    if (ast != nullptr) {
  ------------------
  |  Branch (3288:25): [True: 0, False: 0]
  ------------------
 3289|      0|                        ast_ = ast;
 3290|      0|                        goto recurse;
 3291|      0|                    }
 3292|      0|                } break;
 3293|       |
 3294|      0|                default:
  ------------------
  |  Branch (3294:17): [True: 0, False: 115M]
  ------------------
 3295|      0|                    std::cerr << "INTERNAL ERROR: Unknown FrameKind:  " << f.kind << std::endl;
 3296|      0|                    std::abort();
 3297|   115M|            }
 3298|       |
 3299|  51.1M|        popframe:;
 3300|       |
 3301|  51.1M|            stack.pop();
 3302|       |
 3303|  60.3M|        replaceframe:;
 3304|  60.3M|        }
 3305|  59.0M|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_15Stack8newFrameIJNS1_9FrameKindEPKNS0_3ASTEEEEvDpT_:
  388|  46.7M|    {
  389|  46.7M|        stack.emplace_back(args...);
  390|  46.7M|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_15FrameC2ERKNS1_9FrameKindEPKNS0_3ASTE:
  194|  46.7M|        : kind(kind),
  195|  46.7M|          ast(ast),
  196|  46.7M|          location(ast->location),
  197|  46.7M|          tailCall(false),
  198|  46.7M|          elementId(0),
  199|  46.7M|          first(false),
  200|  46.7M|          context(NULL),
  201|  46.7M|          self(NULL),
  202|  46.7M|          offset(0)
  203|  46.7M|    {
  204|  46.7M|        val.t = Value::NULL_TYPE;
  205|  46.7M|        val2.t = Value::NULL_TYPE;
  206|  46.7M|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_15Stack14getSelfBindingERPNS1_10HeapObjectERj:
  444|  27.9M|    {
  445|  27.9M|        self = nullptr;
  446|  27.9M|        offset = 0;
  447|  92.3M|        for (int i = stack.size() - 1; i >= 0; --i) {
  ------------------
  |  Branch (447:40): [True: 92.3M, False: 17.4k]
  ------------------
  448|  92.3M|            if (stack[i].isCall()) {
  ------------------
  |  Branch (448:17): [True: 27.9M, False: 64.4M]
  ------------------
  449|  27.9M|                self = stack[i].self;
  450|  27.9M|                offset = stack[i].offset;
  451|  27.9M|                return;
  452|  27.9M|            }
  453|  92.3M|        }
  454|  27.9M|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_111Interpreter8makeHeapINS1_9HeapThunkEJRPKNS0_10IdentifierERPNS1_10HeapObjectERjRKPNS0_3ASTEEEEPT_DpOT0_:
  577|  20.8M|    {
  578|  20.8M|        T *r = heap.makeEntity<T, Args...>(std::forward<Args>(args)...);
  579|  20.8M|        if (heap.checkHeap()) {  // Do a GC cycle?
  ------------------
  |  Branch (579:13): [True: 19.4k, False: 20.8M]
  ------------------
  580|       |            // Avoid the object we just made being collected.
  581|  19.4k|            heap.markFrom(r);
  582|       |
  583|       |            // Mark from the stack.
  584|  19.4k|            stack.mark(heap);
  585|       |
  586|       |            // Mark from the scratch register
  587|  19.4k|            heap.markFrom(scratch);
  588|       |
  589|       |            // Mark from cached imports
  590|  19.4k|            for (const auto &pair : cachedImports) {
  ------------------
  |  Branch (590:35): [True: 0, False: 19.4k]
  ------------------
  591|      0|                HeapThunk *thunk = pair.second->thunk;
  592|      0|                if (thunk != nullptr)
  ------------------
  |  Branch (592:21): [True: 0, False: 0]
  ------------------
  593|      0|                    heap.markFrom(thunk);
  594|      0|            }
  595|       |
  596|  3.13M|            for (const auto &sourceVal : sourceVals) {
  ------------------
  |  Branch (596:40): [True: 3.13M, False: 19.4k]
  ------------------
  597|  3.13M|                heap.markFrom(sourceVal.second);
  598|  3.13M|            }
  599|       |
  600|       |            // Delete unreachable objects.
  601|  19.4k|            heap.sweep();
  602|  19.4k|        }
  603|  20.8M|        return r;
  604|  20.8M|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_111Interpreter7captureERKNSt3__16vectorIPKNS0_10IdentifierENS3_9allocatorIS7_EEEE:
  861|  40.0M|    {
  862|  40.0M|        BindingFrame env;
  863|   807M|        for (auto fv : free_vars) {
  ------------------
  |  Branch (863:22): [True: 807M, False: 40.0M]
  ------------------
  864|   807M|            auto *th = stack.lookUpVar(fv);
  865|   807M|            env[fv] = th;
  866|   807M|        }
  867|  40.0M|        return env;
  868|  40.0M|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_15Stack8newFrameIJNS1_9FrameKindENS0_13LocationRangeEEEEvDpT_:
  388|  8.95M|    {
  389|  8.95M|        stack.emplace_back(args...);
  390|  8.95M|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_111Interpreter11makeClosureERKNSt3__13mapIPKNS0_10IdentifierEPNS1_9HeapThunkENS3_4lessIS7_EENS3_9allocatorINS3_4pairIKS7_S9_EEEEEEPNS1_10HeapObjectEjRKNS3_6vectorINS1_11HeapClosure5ParamENSC_ISO_EEEEPNS0_3ASTE:
  650|  1.66M|    {
  651|  1.66M|        Value r;
  652|  1.66M|        r.t = Value::FUNCTION;
  653|  1.66M|        r.v.h = makeHeap<HeapClosure>(env, self, offset, params, body, "");
  654|  1.66M|        return r;
  655|  1.66M|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_111Interpreter8makeHeapINS1_11HeapClosureEJRKNSt3__13mapIPKNS0_10IdentifierEPNS1_9HeapThunkENS5_4lessIS9_EENS5_9allocatorINS5_4pairIKS9_SB_EEEEEERPNS1_10HeapObjectERjRKNS5_6vectorINS4_5ParamENSE_ISR_EEEERPNS0_3ASTERA1_KcEEEPT_DpOT0_:
  577|  1.66M|    {
  578|  1.66M|        T *r = heap.makeEntity<T, Args...>(std::forward<Args>(args)...);
  579|  1.66M|        if (heap.checkHeap()) {  // Do a GC cycle?
  ------------------
  |  Branch (579:13): [True: 3.66k, False: 1.66M]
  ------------------
  580|       |            // Avoid the object we just made being collected.
  581|  3.66k|            heap.markFrom(r);
  582|       |
  583|       |            // Mark from the stack.
  584|  3.66k|            stack.mark(heap);
  585|       |
  586|       |            // Mark from the scratch register
  587|  3.66k|            heap.markFrom(scratch);
  588|       |
  589|       |            // Mark from cached imports
  590|  3.66k|            for (const auto &pair : cachedImports) {
  ------------------
  |  Branch (590:35): [True: 0, False: 3.66k]
  ------------------
  591|      0|                HeapThunk *thunk = pair.second->thunk;
  592|      0|                if (thunk != nullptr)
  ------------------
  |  Branch (592:21): [True: 0, False: 0]
  ------------------
  593|      0|                    heap.markFrom(thunk);
  594|      0|            }
  595|       |
  596|   589k|            for (const auto &sourceVal : sourceVals) {
  ------------------
  |  Branch (596:40): [True: 589k, False: 3.66k]
  ------------------
  597|   589k|                heap.markFrom(sourceVal.second);
  598|   589k|            }
  599|       |
  600|       |            // Delete unreachable objects.
  601|  3.66k|            heap.sweep();
  602|  3.66k|        }
  603|  1.66M|        return r;
  604|  1.66M|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_111Interpreter6importERKNS0_13LocationRangeEPKNS0_13LiteralStringE:
  792|     29|    {
  793|     29|        ImportCacheValue *input = importData(loc, file);
  794|     29|        if (input->thunk == nullptr) {
  ------------------
  |  Branch (794:13): [True: 0, False: 29]
  ------------------
  795|      0|            Tokens tokens = jsonnet_lex(input->foundHere, input->content.c_str());
  796|      0|            AST *expr = jsonnet_parse(alloc, tokens);
  797|      0|            jsonnet_desugar(alloc, expr, nullptr);
  798|      0|            jsonnet_static_analysis(expr);
  799|       |            // If no errors then populate cache.
  800|      0|            auto *thunk = makeHeap<HeapThunk>(idImport, nullptr, 0, expr);
  801|      0|            input->thunk = thunk;
  802|      0|        }
  803|     29|        return input->thunk;
  804|     29|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_111Interpreter10importDataERKNS0_13LocationRangeEPKNS0_13LiteralStringE:
  816|     50|    {
  817|       |        // `dir` is passed to the importCallback, which may be externally defined.
  818|       |        // For backwards compatibility, we need to keep the trailing directory separator.
  819|       |        // For example, the default callback in libjsonnet.cpp joins paths with simple
  820|       |        // string concatenation. Other (external) implementations might do the same.
  821|     50|        std::string dir = path_dir_with_trailing_separator(loc.file);
  822|       |
  823|     50|        const UString &path = file->value;
  824|       |
  825|     50|        std::pair<std::string, UString> key(dir, path);
  826|     50|        ImportCacheValue *cached_value = cachedImports[key];
  827|     50|        if (cached_value != nullptr)
  ------------------
  |  Branch (827:13): [True: 0, False: 50]
  ------------------
  828|      0|            return cached_value;
  829|       |
  830|     50|        char *found_here_cptr;
  831|     50|        char *buf = NULL;
  832|     50|        size_t buflen = 0;
  833|     50|        int result = importCallback(importCallbackContext,
  834|     50|                                    dir.c_str(),
  835|     50|                                    encode_utf8(path).c_str(),
  836|     50|                                    &found_here_cptr,
  837|     50|                                    &buf,
  838|     50|                                    &buflen);
  839|       |
  840|     50|        std::string input(buf, buflen);
  841|     50|        ::free(buf);
  842|       |
  843|     50|        if (result == 1) {  // failure
  ------------------
  |  Branch (843:13): [True: 50, False: 0]
  ------------------
  844|     50|            std::string epath = encode_utf8(jsonnet_string_escape(path, false));
  845|     50|            std::string msg = "couldn't open import \"" + epath + "\": ";
  846|     50|            msg += input;
  847|     50|            throw makeError(loc, msg);
  848|     50|        }
  849|       |
  850|      0|        auto *input_ptr = new ImportCacheValue();
  851|      0|        input_ptr->foundHere = found_here_cptr;
  852|      0|        input_ptr->content = input;
  853|      0|        input_ptr->thunk = nullptr;  // May be filled in later by import().
  854|      0|        ::free(found_here_cptr);
  855|      0|        cachedImports[key] = input_ptr;
  856|      0|        return input_ptr;
  857|     50|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_111Interpreter8makeHeapINS1_9HeapThunkEJRKPKNS0_10IdentifierERPNS1_10HeapObjectERjRKPNS0_3ASTEEEEPT_DpOT0_:
  577|  15.1M|    {
  578|  15.1M|        T *r = heap.makeEntity<T, Args...>(std::forward<Args>(args)...);
  579|  15.1M|        if (heap.checkHeap()) {  // Do a GC cycle?
  ------------------
  |  Branch (579:13): [True: 20.7k, False: 15.1M]
  ------------------
  580|       |            // Avoid the object we just made being collected.
  581|  20.7k|            heap.markFrom(r);
  582|       |
  583|       |            // Mark from the stack.
  584|  20.7k|            stack.mark(heap);
  585|       |
  586|       |            // Mark from the scratch register
  587|  20.7k|            heap.markFrom(scratch);
  588|       |
  589|       |            // Mark from cached imports
  590|  20.7k|            for (const auto &pair : cachedImports) {
  ------------------
  |  Branch (590:35): [True: 0, False: 20.7k]
  ------------------
  591|      0|                HeapThunk *thunk = pair.second->thunk;
  592|      0|                if (thunk != nullptr)
  ------------------
  |  Branch (592:21): [True: 0, False: 0]
  ------------------
  593|      0|                    heap.markFrom(thunk);
  594|      0|            }
  595|       |
  596|  3.34M|            for (const auto &sourceVal : sourceVals) {
  ------------------
  |  Branch (596:40): [True: 3.34M, False: 20.7k]
  ------------------
  597|  3.34M|                heap.markFrom(sourceVal.second);
  598|  3.34M|            }
  599|       |
  600|       |            // Delete unreachable objects.
  601|  20.7k|            heap.sweep();
  602|  20.7k|        }
  603|  15.1M|        return r;
  604|  15.1M|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_111Interpreter10makeObjectINS1_16HeapSimpleObjectEJNSt3__13mapIPKNS0_10IdentifierEPNS1_9HeapThunkENS5_4lessIS9_EENS5_9allocatorINS5_4pairIKS9_SB_EEEEEENS6_IS9_NS4_5FieldESD_NSE_INSF_ISG_SK_EEEEEENS5_4listIPNS0_3ASTENSE_ISQ_EEEEEEENS1_5ValueEDpT0_:
  671|  1.73M|    {
  672|  1.73M|        Value r;
  673|  1.73M|        r.t = Value::OBJECT;
  674|  1.73M|        r.v.h = makeHeap<T>(args...);
  675|  1.73M|        return r;
  676|  1.73M|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_111Interpreter8makeHeapINS1_16HeapSimpleObjectEJRNSt3__13mapIPKNS0_10IdentifierEPNS1_9HeapThunkENS5_4lessIS9_EENS5_9allocatorINS5_4pairIKS9_SB_EEEEEERNS6_IS9_NS4_5FieldESD_NSE_INSF_ISG_SL_EEEEEERNS5_4listIPNS0_3ASTENSE_ISS_EEEEEEEPT_DpOT0_:
  577|  1.73M|    {
  578|  1.73M|        T *r = heap.makeEntity<T, Args...>(std::forward<Args>(args)...);
  579|  1.73M|        if (heap.checkHeap()) {  // Do a GC cycle?
  ------------------
  |  Branch (579:13): [True: 1.84k, False: 1.73M]
  ------------------
  580|       |            // Avoid the object we just made being collected.
  581|  1.84k|            heap.markFrom(r);
  582|       |
  583|       |            // Mark from the stack.
  584|  1.84k|            stack.mark(heap);
  585|       |
  586|       |            // Mark from the scratch register
  587|  1.84k|            heap.markFrom(scratch);
  588|       |
  589|       |            // Mark from cached imports
  590|  1.84k|            for (const auto &pair : cachedImports) {
  ------------------
  |  Branch (590:35): [True: 0, False: 1.84k]
  ------------------
  591|      0|                HeapThunk *thunk = pair.second->thunk;
  592|      0|                if (thunk != nullptr)
  ------------------
  |  Branch (592:21): [True: 0, False: 0]
  ------------------
  593|      0|                    heap.markFrom(thunk);
  594|      0|            }
  595|       |
  596|   297k|            for (const auto &sourceVal : sourceVals) {
  ------------------
  |  Branch (596:40): [True: 297k, False: 1.84k]
  ------------------
  597|   297k|                heap.markFrom(sourceVal.second);
  598|   297k|            }
  599|       |
  600|       |            // Delete unreachable objects.
  601|  1.84k|            heap.sweep();
  602|  1.84k|        }
  603|  1.73M|        return r;
  604|  1.73M|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_15Stack9lookUpVarEPKNS0_10IdentifierE:
  269|   829M|    {
  270|  1.17G|        for (int i = stack.size() - 1; i >= 0; --i) {
  ------------------
  |  Branch (270:40): [True: 1.17G, False: 0]
  ------------------
  271|  1.17G|            const auto &binds = stack[i].bindings;
  272|  1.17G|            auto it = binds.find(id);
  273|  1.17G|            if (it != binds.end()) {
  ------------------
  |  Branch (273:17): [True: 829M, False: 342M]
  ------------------
  274|   829M|                return it->second;
  275|   829M|            }
  276|   342M|            if (stack[i].isCall())
  ------------------
  |  Branch (276:17): [True: 0, False: 342M]
  ------------------
  277|      0|                break;
  278|   342M|        }
  279|      0|        return nullptr;
  280|   829M|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_15Stack4sizeEv:
  263|   132M|    {
  264|   132M|        return stack.size();
  265|   132M|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_111Interpreter8makeHeapINS1_9HeapThunkEJRPKNS0_10IdentifierERPNS1_10HeapObjectERjRKPKNS0_3ASTEEEEPT_DpOT0_:
  577|    135|    {
  578|    135|        T *r = heap.makeEntity<T, Args...>(std::forward<Args>(args)...);
  579|    135|        if (heap.checkHeap()) {  // Do a GC cycle?
  ------------------
  |  Branch (579:13): [True: 0, False: 135]
  ------------------
  580|       |            // Avoid the object we just made being collected.
  581|      0|            heap.markFrom(r);
  582|       |
  583|       |            // Mark from the stack.
  584|      0|            stack.mark(heap);
  585|       |
  586|       |            // Mark from the scratch register
  587|      0|            heap.markFrom(scratch);
  588|       |
  589|       |            // Mark from cached imports
  590|      0|            for (const auto &pair : cachedImports) {
  ------------------
  |  Branch (590:35): [True: 0, False: 0]
  ------------------
  591|      0|                HeapThunk *thunk = pair.second->thunk;
  592|      0|                if (thunk != nullptr)
  ------------------
  |  Branch (592:21): [True: 0, False: 0]
  ------------------
  593|      0|                    heap.markFrom(thunk);
  594|      0|            }
  595|       |
  596|      0|            for (const auto &sourceVal : sourceVals) {
  ------------------
  |  Branch (596:40): [True: 0, False: 0]
  ------------------
  597|      0|                heap.markFrom(sourceVal.second);
  598|      0|            }
  599|       |
  600|       |            // Delete unreachable objects.
  601|      0|            heap.sweep();
  602|      0|        }
  603|    135|        return r;
  604|    135|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_111Interpreter10findObjectEPKNS0_10IdentifierEPNS1_10HeapObjectEjRj:
  698|   820M|    {
  699|   820M|        if (auto *ext = dynamic_cast<HeapExtendedObject *>(curr)) {
  ------------------
  |  Branch (699:19): [True: 406M, False: 414M]
  ------------------
  700|   406M|            auto *r = findObject(f, ext->right, start_from, counter);
  701|   406M|            if (r)
  ------------------
  |  Branch (701:17): [True: 4.86M, False: 401M]
  ------------------
  702|  4.86M|                return r;
  703|   401M|            auto *l = findObject(f, ext->left, start_from, counter);
  704|   401M|            if (l)
  ------------------
  |  Branch (704:17): [True: 306M, False: 94.7M]
  ------------------
  705|   306M|                return l;
  706|   414M|        } else if (auto *ext = dynamic_cast<HeapRestrictedObject *>(curr)) {
  ------------------
  |  Branch (706:26): [True: 0, False: 414M]
  ------------------
  707|       |            // The RestrictedObject is on the 'right', that is it is checked/counted first.
  708|      0|            if (counter >= start_from) {
  ------------------
  |  Branch (708:17): [True: 0, False: 0]
  ------------------
  709|      0|                if (ext->retainedKeys.find(f) == ext->retainedKeys.end()) {
  ------------------
  |  Branch (709:21): [True: 0, False: 0]
  ------------------
  710|      0|                    counter += 1 + countLeaves(ext->obj);
  711|      0|                    return nullptr;
  712|      0|                }
  713|      0|            }
  714|      0|            ++counter;
  715|      0|            return findObject(f, ext->obj, start_from, counter);
  716|   414M|        } else {
  717|   414M|            if (counter >= start_from) {
  ------------------
  |  Branch (717:17): [True: 30.7M, False: 383M]
  ------------------
  718|  30.7M|                if (auto *simp = dynamic_cast<HeapSimpleObject *>(curr)) {
  ------------------
  |  Branch (718:27): [True: 30.7M, False: 0]
  ------------------
  719|  30.7M|                    auto it = simp->fields.find(f);
  720|  30.7M|                    if (it != simp->fields.end()) {
  ------------------
  |  Branch (720:25): [True: 13.1M, False: 17.5M]
  ------------------
  721|  13.1M|                        return simp;
  722|  13.1M|                    }
  723|  30.7M|                } else if (auto *comp = dynamic_cast<HeapComprehensionObject *>(curr)) {
  ------------------
  |  Branch (723:34): [True: 0, False: 0]
  ------------------
  724|      0|                    auto it = comp->compValues.find(f);
  725|      0|                    if (it != comp->compValues.end()) {
  ------------------
  |  Branch (725:25): [True: 0, False: 0]
  ------------------
  726|      0|                        return comp;
  727|      0|                    }
  728|      0|                }
  729|  30.7M|            }
  730|   401M|            counter++;
  731|   401M|        }
  732|   496M|        return nullptr;
  733|   820M|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_111Interpreter13callSourceValEPKNS0_3ASTEPNS1_9HeapThunkENSt3__16vectorIS7_NS8_9allocatorIS7_EEEE:
 2070|  30.6k|    const AST *callSourceVal(const AST *ast, HeapThunk *sourceVal, std::vector<HeapThunk*> args) {
 2071|  30.6k|        assert(sourceVal != nullptr);
  ------------------
  |  Branch (2071:9): [True: 30.6k, False: 0]
  ------------------
 2072|  30.6k|        assert(sourceVal->filled);
  ------------------
  |  Branch (2072:9): [True: 30.6k, False: 0]
  ------------------
 2073|  30.6k|        assert(sourceVal->content.t == Value::FUNCTION);
  ------------------
  |  Branch (2073:9): [True: 30.6k, False: 0]
  ------------------
 2074|  30.6k|        auto *func = static_cast<HeapClosure *>(sourceVal->content.v.h);
 2075|  30.6k|        BindingFrame up_values = func->upValues;
 2076|  92.0k|        for (size_t i = 0; i < args.size(); ++i) {
  ------------------
  |  Branch (2076:28): [True: 61.3k, False: 30.6k]
  ------------------
 2077|  61.3k|            up_values.insert({func->params[i].id, args[i]});
 2078|  61.3k|        }
 2079|  30.6k|        stack.newCall(ast->location, func, func->self, func->offset, up_values);
 2080|  30.6k|        return func->body;
 2081|  30.6k|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_111Interpreter17safeDoubleToInt64EdRKNS0_13LocationRangeE:
  919|  60.9k|    int64_t safeDoubleToInt64(double value, const internal::LocationRange& loc) {
  920|  60.9k|        if (std::isnan(value) || std::isinf(value)) {
  ------------------
  |  Branch (920:13): [True: 0, False: 60.9k]
  |  Branch (920:34): [True: 0, False: 60.9k]
  ------------------
  921|      0|            throw internal::StaticError(loc, "numeric value is not finite");
  922|      0|        }
  923|       |
  924|       |        // Constants for safe double-to-int conversion
  925|       |        // Jsonnet uses IEEE 754 doubles, which precisely represent integers in the range [-2^53 + 1, 2^53 - 1].
  926|  60.9k|        constexpr int64_t DOUBLE_MAX_SAFE_INTEGER = (1LL << 53) - 1;
  927|  60.9k|        constexpr int64_t DOUBLE_MIN_SAFE_INTEGER = -((1LL << 53) - 1);
  928|       |
  929|       |        // Check if the value is within the safe integer range
  930|  60.9k|        if (value < DOUBLE_MIN_SAFE_INTEGER || value > DOUBLE_MAX_SAFE_INTEGER) {
  ------------------
  |  Branch (930:13): [True: 1, False: 60.9k]
  |  Branch (930:48): [True: 4, False: 60.9k]
  ------------------
  931|      5|            throw makeError(loc, "numeric value outside safe integer range for bitwise operation.");
  932|      5|        }
  933|  60.9k|        return static_cast<int64_t>(value);
  934|  60.9k|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_111Interpreter10makeObjectINS1_18HeapExtendedObjectEJPNS1_10HeapObjectES6_EEENS1_5ValueEDpT0_:
  671|  1.29M|    {
  672|  1.29M|        Value r;
  673|  1.29M|        r.t = Value::OBJECT;
  674|  1.29M|        r.v.h = makeHeap<T>(args...);
  675|  1.29M|        return r;
  676|  1.29M|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_111Interpreter8makeHeapINS1_18HeapExtendedObjectEJRPNS1_10HeapObjectES7_EEEPT_DpOT0_:
  577|  1.29M|    {
  578|  1.29M|        T *r = heap.makeEntity<T, Args...>(std::forward<Args>(args)...);
  579|  1.29M|        if (heap.checkHeap()) {  // Do a GC cycle?
  ------------------
  |  Branch (579:13): [True: 964, False: 1.29M]
  ------------------
  580|       |            // Avoid the object we just made being collected.
  581|    964|            heap.markFrom(r);
  582|       |
  583|       |            // Mark from the stack.
  584|    964|            stack.mark(heap);
  585|       |
  586|       |            // Mark from the scratch register
  587|    964|            heap.markFrom(scratch);
  588|       |
  589|       |            // Mark from cached imports
  590|    964|            for (const auto &pair : cachedImports) {
  ------------------
  |  Branch (590:35): [True: 0, False: 964]
  ------------------
  591|      0|                HeapThunk *thunk = pair.second->thunk;
  592|      0|                if (thunk != nullptr)
  ------------------
  |  Branch (592:21): [True: 0, False: 0]
  ------------------
  593|      0|                    heap.markFrom(thunk);
  594|      0|            }
  595|       |
  596|   155k|            for (const auto &sourceVal : sourceVals) {
  ------------------
  |  Branch (596:40): [True: 155k, False: 964]
  ------------------
  597|   155k|                heap.markFrom(sourceVal.second);
  598|   155k|            }
  599|       |
  600|       |            // Delete unreachable objects.
  601|    964|            heap.sweep();
  602|    964|        }
  603|  1.29M|        return r;
  604|  1.29M|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_111Interpreter8toStringERKNS0_13LocationRangeE:
 1979|   203k|    {
 1980|   203k|        return manifestJson(loc, false, U"");
 1981|   203k|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_111Interpreter11countLeavesEPNS1_10HeapObjectE:
  876|  1.96G|    {
  877|  1.96G|        if (auto *ext = dynamic_cast<HeapExtendedObject *>(obj)) {
  ------------------
  |  Branch (877:19): [True: 981M, False: 985M]
  ------------------
  878|   981M|            return countLeaves(ext->left) + countLeaves(ext->right);
  879|   985M|        } else if (auto *ext = dynamic_cast<HeapRestrictedObject *>(obj)) {
  ------------------
  |  Branch (879:26): [True: 0, False: 985M]
  ------------------
  880|      0|            return countLeaves(ext->obj) + 1;
  881|   985M|        } else {
  882|       |            // Must be a HeapLeafObject.
  883|   985M|            return 1;
  884|   985M|        }
  885|  1.96G|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_111Interpreter11objectIndexERKNS0_13LocationRangeEPNS1_10HeapObjectEPKNS0_10IdentifierEj:
 2018|  11.1M|    {
 2019|  11.1M|        unsigned found_at = 0;
 2020|  11.1M|        HeapObject *self = obj;
 2021|  11.1M|        HeapLeafObject *found = findObject(f, obj, offset, found_at);
 2022|  11.1M|        if (found == nullptr) {
  ------------------
  |  Branch (2022:13): [True: 9, False: 11.1M]
  ------------------
 2023|      9|            throw makeError(loc, "field does not exist: " + encode_utf8(f->name));
 2024|      9|        }
 2025|  11.1M|        if (auto *simp = dynamic_cast<HeapSimpleObject *>(found)) {
  ------------------
  |  Branch (2025:19): [True: 11.1M, False: 0]
  ------------------
 2026|  11.1M|            auto it = simp->fields.find(f);
 2027|  11.1M|            const AST *body = it->second.body;
 2028|       |
 2029|  11.1M|            stack.newCall(loc, simp, self, found_at, simp->upValues);
 2030|  11.1M|            return body;
 2031|  11.1M|        } else {
 2032|       |            // If a HeapLeafObject is not HeapSimpleObject, it must be HeapComprehensionObject.
 2033|      0|            auto *comp = static_cast<HeapComprehensionObject *>(found);
 2034|      0|            auto it = comp->compValues.find(f);
 2035|      0|            auto *th = it->second;
 2036|      0|            BindingFrame binds = comp->upValues;
 2037|      0|            binds[comp->id] = th;
 2038|      0|            stack.newCall(loc, comp, self, found_at, binds);
 2039|      0|            return comp->value;
 2040|      0|        }
 2041|  11.1M|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_15Stack26alreadyExecutingInvariantsEPNS1_10HeapObjectE:
  458|  8.96M|    {
  459|  2.30G|        for (int i = stack.size() - 1; i >= 0; --i) {
  ------------------
  |  Branch (459:40): [True: 2.29G, False: 8.95M]
  ------------------
  460|  2.29G|            if (stack[i].kind == FRAME_INVARIANTS) {
  ------------------
  |  Branch (460:17): [True: 9.97M, False: 2.28G]
  ------------------
  461|  9.97M|                if (stack[i].self == self)
  ------------------
  |  Branch (461:21): [True: 8.72k, False: 9.96M]
  ------------------
  462|  8.72k|                    return true;
  463|  9.97M|            }
  464|  2.29G|        }
  465|  8.95M|        return false;
  466|  8.96M|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_111Interpreter16objectInvariantsEPNS1_10HeapObjectES4_RjRNSt3__16vectorIPNS1_9HeapThunkENS6_9allocatorIS9_EEEE:
 1992|  39.4M|    {
 1993|  39.4M|        if (auto *ext = dynamic_cast<HeapExtendedObject *>(curr)) {
  ------------------
  |  Branch (1993:19): [True: 15.2M, False: 24.2M]
  ------------------
 1994|  15.2M|            objectInvariants(ext->right, self, counter, thunks);
 1995|  15.2M|            objectInvariants(ext->left, self, counter, thunks);
 1996|  24.2M|        } else if (auto *ext = dynamic_cast<HeapRestrictedObject *>(curr)) {
  ------------------
  |  Branch (1996:26): [True: 0, False: 24.2M]
  ------------------
 1997|      0|            objectInvariants(ext->obj, self, counter, thunks);
 1998|  24.2M|        } else {
 1999|  24.2M|            if (auto *simp = dynamic_cast<HeapSimpleObject *>(curr)) {
  ------------------
  |  Branch (1999:23): [True: 24.2M, False: 0]
  ------------------
 2000|  24.2M|                for (AST *assert : simp->asserts) {
  ------------------
  |  Branch (2000:34): [True: 2.46M, False: 24.2M]
  ------------------
 2001|  2.46M|                    auto *el_th = makeHeap<HeapThunk>(idInvariant, self, counter, assert);
 2002|  2.46M|                    el_th->upValues = simp->upValues;
 2003|  2.46M|                    thunks.push_back(el_th);
 2004|  2.46M|                }
 2005|  24.2M|            }
 2006|  24.2M|            counter++;
 2007|  24.2M|        }
 2008|  39.4M|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_111Interpreter8makeHeapINS1_9HeapThunkEJRPKNS0_10IdentifierERPNS1_10HeapObjectERjRPNS0_3ASTEEEEPT_DpOT0_:
  577|  2.46M|    {
  578|  2.46M|        T *r = heap.makeEntity<T, Args...>(std::forward<Args>(args)...);
  579|  2.46M|        if (heap.checkHeap()) {  // Do a GC cycle?
  ------------------
  |  Branch (579:13): [True: 177, False: 2.46M]
  ------------------
  580|       |            // Avoid the object we just made being collected.
  581|    177|            heap.markFrom(r);
  582|       |
  583|       |            // Mark from the stack.
  584|    177|            stack.mark(heap);
  585|       |
  586|       |            // Mark from the scratch register
  587|    177|            heap.markFrom(scratch);
  588|       |
  589|       |            // Mark from cached imports
  590|    177|            for (const auto &pair : cachedImports) {
  ------------------
  |  Branch (590:35): [True: 0, False: 177]
  ------------------
  591|      0|                HeapThunk *thunk = pair.second->thunk;
  592|      0|                if (thunk != nullptr)
  ------------------
  |  Branch (592:21): [True: 0, False: 0]
  ------------------
  593|      0|                    heap.markFrom(thunk);
  594|      0|            }
  595|       |
  596|  28.4k|            for (const auto &sourceVal : sourceVals) {
  ------------------
  |  Branch (596:40): [True: 28.4k, False: 177]
  ------------------
  597|  28.4k|                heap.markFrom(sourceVal.second);
  598|  28.4k|            }
  599|       |
  600|       |            // Delete unreachable objects.
  601|    177|            heap.sweep();
  602|    177|        }
  603|  2.46M|        return r;
  604|  2.46M|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_111Interpreter12manifestJsonERKNS0_13LocationRangeEbRKNSt3__112basic_stringIDiNS6_11char_traitsIDiEENS6_9allocatorIDiEEEE:
 3315|  3.85M|    {
 3316|       |        // Printing fields means evaluating and binding them, which can trigger
 3317|       |        // garbage collection.
 3318|       |
 3319|  3.85M|        UStringStream ss;
 3320|  3.85M|        switch (scratch.t) {
  ------------------
  |  Branch (3320:17): [True: 3.85M, False: 0]
  ------------------
 3321|   147k|            case Value::ARRAY: {
  ------------------
  |  Branch (3321:13): [True: 147k, False: 3.71M]
  ------------------
 3322|   147k|                HeapArray *arr = static_cast<HeapArray *>(scratch.v.h);
 3323|   147k|                if (arr->elements.size() == 0) {
  ------------------
  |  Branch (3323:21): [True: 33.3k, False: 114k]
  ------------------
 3324|  33.3k|                    ss << U"[ ]";
 3325|   114k|                } else {
 3326|   114k|                    const char32_t *prefix = multiline ? U"[\n" : U"[";
  ------------------
  |  Branch (3326:46): [True: 82.4k, False: 32.2k]
  ------------------
 3327|   114k|                    UString indent2 = multiline ? indent + U"   " : indent;
  ------------------
  |  Branch (3327:39): [True: 82.4k, False: 32.2k]
  ------------------
 3328|  3.02M|                    for (auto *thunk : arr->elements) {
  ------------------
  |  Branch (3328:38): [True: 3.02M, False: 114k]
  ------------------
 3329|  3.02M|                        LocationRange tloc = thunk->body == nullptr ? loc : thunk->body->location;
  ------------------
  |  Branch (3329:46): [True: 0, False: 3.02M]
  ------------------
 3330|  3.02M|                        if (thunk->filled) {
  ------------------
  |  Branch (3330:29): [True: 0, False: 3.02M]
  ------------------
 3331|      0|                            stack.newCall(loc, thunk, nullptr, 0, BindingFrame{});
 3332|       |                            // Keep arr alive when scratch is overwritten
 3333|      0|                            stack.top().val = scratch;
 3334|      0|                            scratch = thunk->content;
 3335|  3.02M|                        } else {
 3336|  3.02M|                            stack.newCall(loc, thunk, thunk->self, thunk->offset, thunk->upValues);
 3337|       |                            // Keep arr alive when scratch is overwritten
 3338|  3.02M|                            stack.top().val = scratch;
 3339|  3.02M|                            evaluate(thunk->body, stack.size());
 3340|  3.02M|                        }
 3341|  3.02M|                        auto element = manifestJson(tloc, multiline, indent2);
 3342|       |                        // Restore scratch
 3343|  3.02M|                        scratch = stack.top().val;
 3344|  3.02M|                        stack.pop();
 3345|  3.02M|                        ss << prefix << indent2 << element;
 3346|  3.02M|                        prefix = multiline ? U",\n" : U", ";
  ------------------
  |  Branch (3346:34): [True: 1.52M, False: 1.49M]
  ------------------
 3347|  3.02M|                    }
 3348|   114k|                    ss << (multiline ? U"\n" : U"") << indent << U"]";
  ------------------
  |  Branch (3348:28): [True: 63.8k, False: 50.8k]
  ------------------
 3349|   114k|                }
 3350|   147k|            } break;
 3351|       |
 3352|  80.7k|            case Value::BOOLEAN: ss << (scratch.v.b ? U"true" : U"false"); break;
  ------------------
  |  Branch (3352:13): [True: 80.7k, False: 3.77M]
  |  Branch (3352:41): [True: 29.3k, False: 51.3k]
  ------------------
 3353|       |
 3354|  3.09M|            case Value::NUMBER: ss << decode_utf8(jsonnet_unparse_number(scratch.v.d)); break;
  ------------------
  |  Branch (3354:13): [True: 3.09M, False: 769k]
  ------------------
 3355|       |
 3356|     22|            case Value::FUNCTION:
  ------------------
  |  Branch (3356:13): [True: 22, False: 3.85M]
  ------------------
 3357|     22|                throw makeError(loc, "couldn't manifest function in JSON output.");
 3358|       |
 3359|  8.84k|            case Value::NULL_TYPE: ss << U"null"; break;
  ------------------
  |  Branch (3359:13): [True: 8.84k, False: 3.85M]
  ------------------
 3360|       |
 3361|   482k|            case Value::OBJECT: {
  ------------------
  |  Branch (3361:13): [True: 482k, False: 3.37M]
  ------------------
 3362|   482k|                auto *obj = static_cast<HeapObject *>(scratch.v.h);
 3363|   482k|                runInvariants(loc, obj);
 3364|       |                // Using std::map has the useful side-effect of ordering the fields
 3365|       |                // alphabetically.
 3366|   482k|                std::map<UString, const Identifier *> fields;
 3367|   718k|                for (const auto &f : objectFields(obj, true)) {
  ------------------
  |  Branch (3367:36): [True: 718k, False: 482k]
  ------------------
 3368|   718k|                    fields[f->name] = f;
 3369|   718k|                }
 3370|   482k|                if (fields.size() == 0) {
  ------------------
  |  Branch (3370:21): [True: 101k, False: 381k]
  ------------------
 3371|   101k|                    ss << U"{ }";
 3372|   381k|                } else {
 3373|   381k|                    UString indent2 = multiline ? indent + U"   " : indent;
  ------------------
  |  Branch (3373:39): [True: 170k, False: 210k]
  ------------------
 3374|   381k|                    const char32_t *prefix = multiline ? U"{\n" : U"{";
  ------------------
  |  Branch (3374:46): [True: 170k, False: 210k]
  ------------------
 3375|   642k|                    for (const auto &f : fields) {
  ------------------
  |  Branch (3375:40): [True: 642k, False: 381k]
  ------------------
 3376|       |                        // pushes FRAME_CALL
 3377|   642k|                        const AST *body = objectIndex(loc, obj, f.second, 0);
 3378|   642k|                        stack.top().val = scratch;
 3379|   642k|                        evaluate(body, stack.size());
 3380|   642k|                        auto vstr = manifestJson(body->location, multiline, indent2);
 3381|       |                        // Reset scratch so that the object we're manifesting doesn't
 3382|       |                        // get GC'd.
 3383|   642k|                        scratch = stack.top().val;
 3384|   642k|                        stack.pop();
 3385|   642k|                        ss << prefix << indent2 << jsonnet_string_unparse(f.first, false) << U": "
 3386|   642k|                           << vstr;
 3387|   642k|                        prefix = multiline ? U",\n" : U", ";
  ------------------
  |  Branch (3387:34): [True: 268k, False: 374k]
  ------------------
 3388|   642k|                    }
 3389|   381k|                    ss << (multiline ? U"\n" : U"") << indent << U"}";
  ------------------
  |  Branch (3389:28): [True: 52.6k, False: 328k]
  ------------------
 3390|   381k|                }
 3391|   482k|            } break;
 3392|       |
 3393|  49.0k|            case Value::STRING: {
  ------------------
  |  Branch (3393:13): [True: 49.0k, False: 3.81M]
  ------------------
 3394|  49.0k|                const UString &str = static_cast<HeapString *>(scratch.v.h)->value;
 3395|  49.0k|                ss << jsonnet_string_unparse(str, false);
 3396|  49.0k|            } break;
 3397|  3.85M|        }
 3398|  3.65M|        return ss.str();
 3399|  3.85M|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_111Interpreter13runInvariantsERKNS0_13LocationRangeEPNS1_10HeapObjectE:
 2044|   483k|    {
 2045|   483k|        if (stack.alreadyExecutingInvariants(self))
  ------------------
  |  Branch (2045:13): [True: 1.51k, False: 482k]
  ------------------
 2046|  1.51k|            return;
 2047|       |
 2048|   482k|        unsigned counter = 0;
 2049|   482k|        unsigned initial_stack_size = stack.size();
 2050|   482k|        stack.newFrame(FRAME_INVARIANTS, loc);
 2051|   482k|        std::vector<HeapThunk *> &thunks = stack.top().thunks;
 2052|   482k|        objectInvariants(self, self, counter, thunks);
 2053|   482k|        if (thunks.size() == 0) {
  ------------------
  |  Branch (2053:13): [True: 470k, False: 12.0k]
  ------------------
 2054|   470k|            stack.pop();
 2055|   470k|            return;
 2056|   470k|        }
 2057|  12.0k|        HeapThunk *thunk = thunks[0];
 2058|  12.0k|        stack.top().elementId = 1;
 2059|  12.0k|        stack.top().self = self;
 2060|  12.0k|        stack.newCall(loc, thunk, thunk->self, thunk->offset, thunk->upValues);
 2061|  12.0k|        evaluate(thunk->body, initial_stack_size);
 2062|  12.0k|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_111InterpreterD2Ev:
 1024|  3.48k|    {
 1025|  3.48k|        for (const auto &pair : cachedImports) {
  ------------------
  |  Branch (1025:31): [True: 50, False: 3.48k]
  ------------------
 1026|     50|            delete pair.second;
 1027|     50|        }
 1028|  3.48k|    }
vm.cpp:_ZN7jsonnet8internal12_GLOBAL__N_111Interpreter13manifestMultiEb:
 3412|  2.15k|    {
 3413|  2.15k|        StrMap r;
 3414|  2.15k|        LocationRange loc("During manifestation");
 3415|  2.15k|        if (scratch.t != Value::OBJECT) {
  ------------------
  |  Branch (3415:13): [True: 886, False: 1.27k]
  ------------------
 3416|    886|            std::stringstream ss;
 3417|    886|            ss << "multi mode: top-level object was a " << type_str(scratch.t) << ", "
 3418|    886|               << "should be an object whose keys are filenames and values hold "
 3419|    886|               << "the JSON for that file.";
 3420|    886|            throw makeError(loc, ss.str());
 3421|    886|        }
 3422|  1.27k|        auto *obj = static_cast<HeapObject *>(scratch.v.h);
 3423|  1.27k|        runInvariants(loc, obj);
 3424|  1.27k|        std::map<UString, const Identifier *> fields;
 3425|  6.56k|        for (const auto &f : objectFields(obj, true)) {
  ------------------
  |  Branch (3425:28): [True: 6.56k, False: 1.27k]
  ------------------
 3426|  6.56k|            fields[f->name] = f;
 3427|  6.56k|        }
 3428|  6.14k|        for (const auto &f : fields) {
  ------------------
  |  Branch (3428:28): [True: 6.14k, False: 1.27k]
  ------------------
 3429|       |            // pushes FRAME_CALL
 3430|  6.14k|            const AST *body = objectIndex(loc, obj, f.second, 0);
 3431|  6.14k|            stack.top().val = scratch;
 3432|  6.14k|            evaluate(body, stack.size());
 3433|  6.14k|            auto vstr =
 3434|  6.14k|                string ? manifestString(body->location) : manifestJson(body->location, true, U"");
  ------------------
  |  Branch (3434:17): [True: 0, False: 6.14k]
  ------------------
 3435|       |            // Reset scratch so that the object we're manifesting doesn't
 3436|       |            // get GC'd.
 3437|  6.14k|            scratch = stack.top().val;
 3438|  6.14k|            stack.pop();
 3439|  6.14k|            r[encode_utf8(f.first)] = encode_utf8(vstr);
 3440|  6.14k|        }
 3441|  1.27k|        return r;
 3442|  2.15k|    }

_ZN7jsonnet8internal10TraceFrameC2ERKNS0_13LocationRangeERKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEE:
   33|   292k|        : location(location), name(name)
   34|   292k|    {
   35|   292k|    }
_ZN7jsonnet8internal12RuntimeErrorC2ENSt3__16vectorINS0_10TraceFrameENS2_9allocatorIS4_EEEERKNS2_12basic_stringIcNS2_11char_traitsIcEENS5_IcEEEE:
   45|  2.96k|        : stackTrace(stack_trace), msg(msg)
   46|  2.96k|    {
   47|  2.96k|    }

_ZN2c43yml9CallbacksC2Ev:
31979|      2|    m_user_data(nullptr),
31980|       |    #ifndef RYML_NO_DEFAULT_CALLBACKS
31981|      2|    m_allocate(allocate_impl),
31982|      2|    m_free(free_impl),
31983|      2|    m_error(error_impl)
31984|       |    #else
31985|       |    m_allocate(nullptr),
31986|       |    m_free(nullptr),
31987|       |    m_error(nullptr)
31988|       |    #endif
31989|      2|{
31990|      2|}

