LLVMFuzzerTestOneInput:
   62|  2.50k|extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
   63|  2.50k|  if (Size < 1 || Size > kMaxInputLength) {
  ------------------
  |  |   17|  2.50k|#define kMaxInputLength 65536
  ------------------
  |  Branch (63:7): [True: 0, False: 2.50k]
  |  Branch (63:19): [True: 5, False: 2.49k]
  ------------------
   64|      5|    return 0;
   65|      5|  }
   66|       |
   67|  2.49k|  const uint8_t selector = Data[0];
   68|  2.49k|  const char *body = reinterpret_cast<const char *>(Data + 1);
   69|  2.49k|  const size_t bodyLen = Size - 1;
   70|       |
   71|  2.49k|  FuzzRequest request;
   72|  2.49k|  request.in_.write(body, bodyLen);
   73|  2.49k|  request.contentLength_ = static_cast<int64_t>(bodyLen);
   74|       |
   75|  2.49k|  if ((selector & 1) == 0) {
  ------------------
  |  Branch (75:7): [True: 1.26k, False: 1.23k]
  ------------------
   76|  1.26k|    request.contentType_ = "multipart/form-data; boundary=AaB03x";
   77|  1.26k|  } else {
   78|  1.23k|    request.contentType_ = "application/x-www-form-urlencoded";
   79|  1.23k|  }
   80|       |
   81|  2.49k|  try {
   82|  2.49k|    Wt::CgiParser parser(/*maxRequestSize=*/1 << 20, /*maxFormData=*/1 << 20);
   83|  2.49k|    parser.parse(request, Wt::CgiParser::ReadDefault);
   84|  2.49k|  } catch (...) {
   85|  1.26k|  }
   86|       |
   87|  2.49k|  return 0;
   88|  2.49k|}
_ZN11FuzzRequest2inEv:
   26|  5.62k|  std::istream &in() override { return in_; }
_ZNK11FuzzRequest13requestMethodEv:
   42|  2.49k|  const char *requestMethod() const override { return requestMethod_.c_str(); }
_ZNK11FuzzRequest11queryStringB5cxx11Ev:
   43|  2.49k|  const std::string &queryString() const override { return s_; }
_ZNK11FuzzRequest11contentTypeEv:
   33|  2.49k|  const char *contentType() const override { return contentType_.c_str(); }
_ZNK11FuzzRequest13contentLengthEv:
   35|  2.49k|  int64_t contentLength() const override { return contentLength_; }

_ZN2Wt4Http12UploadedFileC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_S9_:
   47|  6.41k|{
   48|  6.41k|  fileInfo_.reset(new Impl());
   49|       |
   50|  6.41k|  fileInfo_->spoolFileName = spoolName;
   51|  6.41k|  fileInfo_->clientFileName = clientFileName;
   52|  6.41k|  fileInfo_->contentType = contentType;
   53|  6.41k|  fileInfo_->isStolen = false;
   54|  6.41k|}
_ZN2Wt4Http12UploadedFile4Impl7cleanupEv:
   57|  6.41k|{
   58|  6.41k|  if (!isStolen)
  ------------------
  |  Branch (58:7): [True: 6.41k, False: 0]
  ------------------
   59|  6.41k|    unlink(spoolFileName.c_str());
   60|  6.41k|}
_ZN2Wt4Http12UploadedFile4ImplD2Ev:
   63|  6.41k|{
   64|  6.41k|  cleanup();
   65|  6.41k|}
_ZN2Wt4Http7Request19parseFormUrlEncodedERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERSt3mapIS7_St6vectorIS7_SaIS7_EESt4lessIS7_ESaISt4pairIS8_SD_EEE:
  399|  1.28k|{
  400|   136k|  for (std::size_t pos = 0; pos < s.length();) {
  ------------------
  |  Branch (400:29): [True: 135k, False: 1.28k]
  ------------------
  401|   135k|    std::size_t next = s.find_first_of("&=", pos);
  402|       |
  403|   135k|    if (next == pos && s[next] == '&') {
  ------------------
  |  Branch (403:9): [True: 44.5k, False: 91.0k]
  |  Branch (403:24): [True: 7.26k, False: 37.3k]
  ------------------
  404|       |      // skip empty
  405|  7.26k|      pos = next + 1;
  406|  7.26k|      continue;
  407|  7.26k|    }
  408|       |
  409|   128k|    if (next == std::string::npos || s[next] == '&') {
  ------------------
  |  Branch (409:9): [True: 826, False: 127k]
  |  Branch (409:38): [True: 73.4k, False: 54.0k]
  ------------------
  410|  74.3k|      if (next == std::string::npos)
  ------------------
  |  Branch (410:11): [True: 826, False: 73.4k]
  ------------------
  411|    826|        next = s.length();
  412|  74.3k|      std::string key = s.substr(pos, next - pos);
  413|  74.3k|      Utils::inplaceUrlDecode(key);
  414|  74.3k|      parameters[key].push_back(std::string());
  415|  74.3k|      pos = next + 1;
  416|  74.3k|    } else {
  417|  54.0k|      std::size_t amp = s.find('&', next + 1);
  418|  54.0k|      if (amp == std::string::npos)
  ------------------
  |  Branch (418:11): [True: 353, False: 53.6k]
  ------------------
  419|    353|        amp = s.length();
  420|       |
  421|  54.0k|      std::string key = s.substr(pos, next - pos);
  422|  54.0k|      Utils::inplaceUrlDecode(key);
  423|       |
  424|  54.0k|      std::string value = s.substr(next + 1, amp - (next + 1));
  425|  54.0k|      Utils::inplaceUrlDecode(value);
  426|       |
  427|  54.0k|      parameters[key].push_back(value);
  428|  54.0k|      pos = amp + 1;
  429|  54.0k|    }
  430|   128k|  }
  431|  1.28k|}

_ZN2Wt4Json5ArrayC2Ev:
   15|      2|  : Impl()
   16|      2|{ }

_ZN2Wt4Json6ObjectC2Ev:
   17|      2|{ }

_ZN2Wt4Json5ValueC2Ev:
   87|      2|{ }
_ZN2Wt4Json5ValueC2Eb:
   90|      4|  : v_(value)
   91|      4|{ }

_ZN2Wt10WExceptionC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
   75|  1.25k|  : what_(what)
   76|       |#endif
   77|  1.25k|{ }
_ZN2Wt10WExceptionD2Ev:
   89|  1.25k|{ }

_ZN2WtorENS_11OrientationES0_:
  370|    354|inline Wt::WFlags<EnumType> operator|(EnumType l, EnumType r) {         \
  371|    354|  Wt::WFlags<EnumType> retval(l);                                       \
  372|    354|  retval |= r;                                                          \
  373|    354|  return retval;                                                        \
  374|    354|}                                                                       \
_ZN2Wt6WFlagsINS_11OrientationEEC2ES1_:
  187|    354|  flags_(static_cast<unsigned int>(flag))
  188|    354|{
  189|    354|}
_ZN2Wt6WFlagsINS_11OrientationEEoRES1_:
  327|    354|{
  328|    354|  flags_ |= static_cast<unsigned int>(other);
  329|    354|  return *this;
  330|    354|}
_ZN2WtorENS_4SideES0_:
  370|  1.06k|inline Wt::WFlags<EnumType> operator|(EnumType l, EnumType r) {         \
  371|  1.06k|  Wt::WFlags<EnumType> retval(l);                                       \
  372|  1.06k|  retval |= r;                                                          \
  373|  1.06k|  return retval;                                                        \
  374|  1.06k|}                                                                       \
_ZN2Wt6WFlagsINS_4SideEEC2ES1_:
  187|  1.06k|  flags_(static_cast<unsigned int>(flag))
  188|  1.06k|{
  189|  1.06k|}
_ZN2Wt6WFlagsINS_4SideEEoRES1_:
  327|  1.06k|{
  328|  1.06k|  flags_ |= static_cast<unsigned int>(other);
  329|  1.06k|  return *this;
  330|  1.06k|}
_ZN2WtorENS_13AlignmentFlagES0_:
  370|    708|inline Wt::WFlags<EnumType> operator|(EnumType l, EnumType r) {         \
  371|    708|  Wt::WFlags<EnumType> retval(l);                                       \
  372|    708|  retval |= r;                                                          \
  373|    708|  return retval;                                                        \
  374|    708|}                                                                       \
_ZN2Wt6WFlagsINS_13AlignmentFlagEEC2ES1_:
  187|    708|  flags_(static_cast<unsigned int>(flag))
  188|    708|{
  189|    708|}
_ZN2Wt6WFlagsINS_13AlignmentFlagEEoRES1_:
  327|    708|{
  328|    708|  flags_ |= static_cast<unsigned int>(other);
  329|    708|  return *this;
  330|    708|}
_ZN2WtorENS_9MatchFlagES0_:
  370|    354|inline Wt::WFlags<EnumType> operator|(EnumType l, EnumType r) {         \
  371|    354|  Wt::WFlags<EnumType> retval(l);                                       \
  372|    354|  retval |= r;                                                          \
  373|    354|  return retval;                                                        \
  374|    354|}                                                                       \
_ZN2Wt6WFlagsINS_9MatchFlagEEC2ES1_:
  187|    354|  flags_(static_cast<unsigned int>(flag))
  188|    354|{
  189|    354|}
_ZN2Wt6WFlagsINS_9MatchFlagEEoRES1_:
  327|    354|{
  328|    354|  flags_ |= static_cast<unsigned int>(other);
  329|    354|  return *this;
  330|    354|}
_ZNK2Wt6WFlagsINS_4SideEEorES1_:
  313|  1.41k|{
  314|  1.41k|  return WFlags<EnumType>::createFromInt
  315|  1.41k|    (flags_ | static_cast<unsigned int>(other));
  316|  1.41k|}
_ZN2Wt6WFlagsINS_4SideEE13createFromIntEi:
  173|  1.41k|  inline static WFlags<EnumType> createFromInt(int flags) {
  174|  1.41k|    return WFlags(flags, false);
  175|  1.41k|  }
_ZN2Wt6WFlagsINS_4SideEEC2Eib:
  172|  1.41k|  WFlags(int flags, bool): flags_(flags) {}
_ZNK2Wt6WFlagsINS_13AlignmentFlagEEorES1_:
  313|  2.83k|{
  314|  2.83k|  return WFlags<EnumType>::createFromInt
  315|  2.83k|    (flags_ | static_cast<unsigned int>(other));
  316|  2.83k|}
_ZN2Wt6WFlagsINS_13AlignmentFlagEE13createFromIntEi:
  173|  2.83k|  inline static WFlags<EnumType> createFromInt(int flags) {
  174|  2.83k|    return WFlags(flags, false);
  175|  2.83k|  }
_ZN2Wt6WFlagsINS_13AlignmentFlagEEC2Eib:
  172|  2.83k|  WFlags(int flags, bool): flags_(flags) {}
_ZNK2Wt6WFlagsINS_9MatchFlagEEorES1_:
  313|  1.41k|{
  314|  1.41k|  return WFlags<EnumType>::createFromInt
  315|  1.41k|    (flags_ | static_cast<unsigned int>(other));
  316|  1.41k|}
_ZN2Wt6WFlagsINS_9MatchFlagEE13createFromIntEi:
  173|  1.41k|  inline static WFlags<EnumType> createFromInt(int flags) {
  174|  1.41k|    return WFlags(flags, false);
  175|  1.41k|  }
_ZN2Wt6WFlagsINS_9MatchFlagEEC2Eib:
  172|  1.41k|  WFlags(int flags, bool): flags_(flags) {}
_ZN2WtorENS_19ValidationStyleFlagES0_:
  370|     60|inline Wt::WFlags<EnumType> operator|(EnumType l, EnumType r) {         \
  371|     60|  Wt::WFlags<EnumType> retval(l);                                       \
  372|     60|  retval |= r;                                                          \
  373|     60|  return retval;                                                        \
  374|     60|}                                                                       \
_ZN2Wt6WFlagsINS_19ValidationStyleFlagEEC2ES1_:
  187|     60|  flags_(static_cast<unsigned int>(flag))
  188|     60|{
  189|     60|}
_ZN2Wt6WFlagsINS_19ValidationStyleFlagEEoRES1_:
  327|     60|{
  328|     60|  flags_ |= static_cast<unsigned int>(other);
  329|     60|  return *this;
  330|     60|}
_ZN2WtorENS_7WSlider12TickPositionES1_:
  370|      2|inline Wt::WFlags<EnumType> operator|(EnumType l, EnumType r) {         \
  371|      2|  Wt::WFlags<EnumType> retval(l);                                       \
  372|      2|  retval |= r;                                                          \
  373|      2|  return retval;                                                        \
  374|      2|}                                                                       \
_ZN2Wt6WFlagsINS_7WSlider12TickPositionEEoRES2_:
  327|      2|{
  328|      2|  flags_ |= static_cast<unsigned int>(other);
  329|      2|  return *this;
  330|      2|}
_ZN2Wt6WFlagsINS_7WSlider12TickPositionEEC2ES2_:
  187|      2|  flags_(static_cast<unsigned int>(flag))
  188|      2|{
  189|      2|}
_ZN2Wt6WFlagsINS_7WSlider12TickPositionEEC2ENS_11NoFlagsTypeE:
  193|      2|  : flags_(0)
  194|      2|{ }

_ZN2Wt26WJavaScriptExposableObjectC2Ev:
   17|      2|  : clientBinding_(nullptr)
   18|      2|{ }
_ZNK2Wt26WJavaScriptExposableObject17isJavaScriptBoundEv:
   46|      2|{
   47|      2|  return clientBinding_;
   48|      2|}
_ZNK2Wt26WJavaScriptExposableObject15checkModifiableEv:
   93|      2|{
   94|      2|  if (isJavaScriptBound()) {
  ------------------
  |  Branch (94:7): [True: 0, False: 2]
  ------------------
   95|      0|    throw WException("Trying to modify a JavaScript bound object!");
   96|      0|  }
   97|      2|}

_ZN2Wt7WLengthC2Ev:
   24|      2|  : auto_(true),
   25|      2|    unit_(LengthUnit::Pixel),
   26|      2|    value_(-1)
   27|      2|{ }

_ZN2Wt7WLocaleC2Ev:
   16|      2|  : decimalPoint_("."),
   17|      2|    groupSeparator_(""),
   18|      2|    dateFormat_("yyyy-MM-dd"),
   19|      2|    timeFormat_("HH:mm:ss"),
   20|      2|    dateTimeFormat_("yyyy-MM-dd HH:mm:ss"),
   21|      2|    timeZone_(nullptr)
   22|      2|{ }

_ZN2Wt9WLogEntryD2Ev:
   38|  6.93k|{
   39|  6.93k|  if (impl_) {
  ------------------
  |  Branch (39:7): [True: 6.93k, False: 0]
  ------------------
   40|  6.93k|    impl_->finish();
   41|  6.93k|    if (impl_->logger_)
  ------------------
  |  Branch (41:9): [True: 6.93k, False: 0]
  ------------------
   42|  6.93k|      impl_->logger_->addLine(impl_->type_, impl_->scope_, impl_->line_);
   43|      0|    else if (impl_->customLogger_)
  ------------------
  |  Branch (43:14): [True: 0, False: 0]
  ------------------
   44|      0|      impl_->customLogger_->log(impl_->type_, impl_->scope_, impl_->line_.str());
   45|  6.93k|  }
   46|  6.93k|}
_ZN2Wt9WLogEntrylsEPKc:
   77|  27.9k|{
   78|  27.9k|  return *this << std::string(s);
   79|  27.9k|}
_ZN2Wt9WLogEntrylsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
   89|  27.9k|{
   90|  27.9k|  if (impl_) {
  ------------------
  |  Branch (90:7): [True: 27.9k, False: 0]
  ------------------
   91|  27.9k|    if (impl_->quote()) {
  ------------------
  |  Branch (91:9): [True: 0, False: 27.9k]
  ------------------
   92|      0|      startField();
   93|       |
   94|      0|      std::string ss(s);
   95|      0|      Utils::replace(ss, '"', "\"\"");
   96|       |
   97|      0|      impl_->line_ << ss;
   98|  27.9k|    } else {
   99|  27.9k|      if (!s.empty()) {
  ------------------
  |  Branch (99:11): [True: 27.9k, False: 0]
  ------------------
  100|  27.9k|        startField();
  101|  27.9k|        impl_->line_ << s;
  102|  27.9k|      }
  103|  27.9k|    }
  104|       |
  105|  27.9k|    if ((impl_->customLogger_ ||
  ------------------
  |  Branch (105:10): [True: 0, False: 27.9k]
  ------------------
  106|  27.9k|         impl_->field_ == (int)impl_->logger_->fields().size() - 1)
  ------------------
  |  Branch (106:10): [True: 0, False: 27.9k]
  ------------------
  107|      0|        && impl_->scope_.empty())
  ------------------
  |  Branch (107:12): [True: 0, False: 0]
  ------------------
  108|      0|      impl_->scope_ = s;
  109|  27.9k|  }
  110|       |
  111|  27.9k|  return *this;
  112|  27.9k|}
_ZN2Wt9WLogEntrylsEi:
  125|  4.43k|{
  126|  4.43k|  startField();
  127|       |
  128|  4.43k|  if (impl_)
  ------------------
  |  Branch (128:7): [True: 4.43k, False: 0]
  ------------------
  129|  4.43k|    impl_->line_ << v;
  130|       |
  131|  4.43k|  return *this;
  132|  4.43k|}
_ZN2Wt9WLogEntrylsEd:
  145|  2.49k|{
  146|  2.49k|  startField();
  147|       |
  148|  2.49k|  if (impl_)
  ------------------
  |  Branch (148:7): [True: 2.49k, False: 0]
  ------------------
  149|  2.49k|    impl_->line_ << v;
  150|       |
  151|  2.49k|  return *this;
  152|  2.49k|}
_ZN2Wt9WLogEntryC2ERKNS_7WLoggerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb:
  156|  6.93k|{
  157|  6.93k|  if (!mute)
  ------------------
  |  Branch (157:7): [True: 6.93k, False: 0]
  ------------------
  158|  6.93k|    impl_.reset(new Impl(logger, type));
  159|  6.93k|}
_ZN2Wt9WLogEntry10startFieldEv:
  168|  35.0k|{
  169|  35.0k|  if (impl_)
  ------------------
  |  Branch (169:7): [True: 35.0k, False: 0]
  ------------------
  170|  35.0k|    impl_->startField();
  171|  35.0k|}
_ZN2Wt9WLogEntry4ImplC2ERKNS_7WLoggerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
  174|  6.93k|  : logger_(&logger),
  175|  6.93k|    customLogger_(nullptr),
  176|  6.93k|    type_(type),
  177|  6.93k|    field_(0),
  178|  6.93k|    fieldStarted_(false)
  179|  6.93k|{ }
_ZN2Wt9WLogEntry4Impl10startFieldEv:
  191|  35.0k|{
  192|  35.0k|  if (!fieldStarted_) {
  ------------------
  |  Branch (192:7): [True: 6.93k, False: 28.0k]
  ------------------
  193|  6.93k|    if (quote())
  ------------------
  |  Branch (193:9): [True: 0, False: 6.93k]
  ------------------
  194|      0|      line_ << '"';
  195|  6.93k|    fieldStarted_ = true;
  196|  6.93k|  }
  197|  35.0k|}
_ZN2Wt9WLogEntry4Impl11finishFieldEv:
  200|  6.93k|{
  201|  6.93k|  if (fieldStarted_) {
  ------------------
  |  Branch (201:7): [True: 6.93k, False: 0]
  ------------------
  202|  6.93k|    if (quote())
  ------------------
  |  Branch (202:9): [True: 0, False: 6.93k]
  ------------------
  203|      0|      line_ << '"';
  204|  6.93k|  } else
  205|      0|    line_ << '-';
  206|  6.93k|}
_ZN2Wt9WLogEntry4Impl6finishEv:
  218|  6.93k|{
  219|  6.93k|  if (!customLogger_) {
  ------------------
  |  Branch (219:7): [True: 6.93k, False: 0]
  ------------------
  220|  6.93k|    while (field_ < (int)logger_->fields().size() - 1)
  ------------------
  |  Branch (220:12): [True: 0, False: 6.93k]
  ------------------
  221|      0|      nextField();
  222|  6.93k|  }
  223|       |
  224|  6.93k|  finishField();
  225|  6.93k|}
_ZNK2Wt9WLogEntry4Impl5quoteEv:
  228|  41.7k|{
  229|  41.7k|  if (customLogger_)
  ------------------
  |  Branch (229:7): [True: 0, False: 41.7k]
  ------------------
  230|      0|    return false;
  231|  41.7k|  else if (field_ < (int)logger_->fields().size())
  ------------------
  |  Branch (231:12): [True: 0, False: 41.7k]
  ------------------
  232|      0|    return logger_->fields()[field_].isString();
  233|  41.7k|  else
  234|  41.7k|    return false;
  235|  41.7k|}
_ZN2Wt7WLoggerC2Ev:
  247|      2|  : o_(&std::cerr),
  248|      2|    ownStream_(false),
  249|      2|    useLock_(true)
  250|      2|{
  251|      2|  Rule r;
  252|      2|  r.type = "*";
  253|      2|  r.scope = "*";
  254|      2|  r.include = true;
  255|      2|  rules_.push_back(r);
  256|      2|  r.type = "debug";
  257|      2|  r.include = false;
  258|      2|  rules_.push_back(r);
  259|      2|}
_ZNK2Wt7WLogger5entryERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
  322|  6.93k|{
  323|  6.93k|  return WLogEntry(*this, type, !logging(type));
  324|  6.93k|}
_ZNK2Wt7WLogger7addLineERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_RKNS_13WStringStreamE:
  328|  6.93k|{
  329|  6.93k|  if (logging(type, scope)) {
  ------------------
  |  Branch (329:7): [True: 6.93k, False: 0]
  ------------------
  330|  6.93k|    std::unique_lock<std::mutex> l;
  331|  6.93k|    if (useLock_) {
  ------------------
  |  Branch (331:9): [True: 6.93k, False: 0]
  ------------------
  332|  6.93k|      l = std::unique_lock<std::mutex>(addLineLock_);
  333|  6.93k|    }
  334|       |
  335|  6.93k|    if (o_) {
  ------------------
  |  Branch (335:9): [True: 6.93k, False: 0]
  ------------------
  336|  6.93k|      *o_ << s.str() << std::endl;
  337|  6.93k|    }
  338|  6.93k|  }
  339|  6.93k|}
_ZNK2Wt7WLogger7loggingERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
  374|  6.93k|{
  375|  6.93k|  return logging(type.c_str());
  376|  6.93k|}
_ZNK2Wt7WLogger7loggingEPKc:
  379|  6.93k|{
  380|  6.93k|  bool result = false;
  381|       |
  382|  20.8k|  for (unsigned i = 0; i < rules_.size(); ++i)
  ------------------
  |  Branch (382:24): [True: 13.8k, False: 6.93k]
  ------------------
  383|  13.8k|    if (rules_[i].type == "*" || rules_[i].type == type) {
  ------------------
  |  Branch (383:9): [True: 6.93k, False: 6.93k]
  |  Branch (383:34): [True: 0, False: 6.93k]
  ------------------
  384|  6.93k|      if (rules_[i].scope == "*")
  ------------------
  |  Branch (384:11): [True: 6.93k, False: 0]
  ------------------
  385|  6.93k|        result = rules_[i].include;
  386|      0|      else if (rules_[i].include)
  ------------------
  |  Branch (386:16): [True: 0, False: 0]
  ------------------
  387|      0|        result = true;
  388|  6.93k|    }
  389|       |
  390|  6.93k|  return result;
  391|  6.93k|}
_ZNK2Wt7WLogger7loggingERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_:
  394|  13.8k|{
  395|  13.8k|  bool result = false;
  396|       |
  397|  41.6k|  for (unsigned i = 0; i < rules_.size(); ++i)
  ------------------
  |  Branch (397:24): [True: 27.7k, False: 13.8k]
  ------------------
  398|  27.7k|    if (rules_[i].type == "*" || rules_[i].type == type)
  ------------------
  |  Branch (398:9): [True: 13.8k, False: 13.8k]
  |  Branch (398:34): [True: 0, False: 13.8k]
  ------------------
  399|  13.8k|      if (rules_[i].scope == "*" || rules_[i].scope == scope)
  ------------------
  |  Branch (399:11): [True: 13.8k, False: 0]
  |  Branch (399:37): [True: 0, False: 0]
  ------------------
  400|  13.8k|        result = rules_[i].include;
  401|       |
  402|  13.8k|  return result;
  403|  13.8k|}
_ZN2Wt7loggingERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_:
  432|  6.93k|{
  433|       |#ifdef WT_DBO_LOGGER
  434|       |  if (customLogger_)
  435|       |    return customLogger_->logging(type, scope);
  436|       |
  437|       |  return true;
  438|       |#else // WT_DBO_LOGGER
  439|  6.93k|  WebSession *session = WebSession::instance();
  440|       |
  441|  6.93k|  Wt::WServer *server = session ? session->controller()->server() : WServer::instance();
  ------------------
  |  Branch (441:25): [True: 0, False: 6.93k]
  ------------------
  442|  6.93k|  if (server) {
  ------------------
  |  Branch (442:7): [True: 0, False: 6.93k]
  ------------------
  443|      0|    if (server->customLogger())
  ------------------
  |  Branch (443:9): [True: 0, False: 0]
  ------------------
  444|      0|      return server->customLogger()->logging(type, scope);
  445|      0|    else
  446|      0|      return server->logger().logging(type, scope);
  447|  6.93k|  } else {
  448|  6.93k|    return defaultLogger.logging(type, scope);
  449|  6.93k|  }
  450|  6.93k|#endif // WT_DBO_LOGGER
  451|  6.93k|}
_ZN2Wt3logERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
  454|  6.93k|{
  455|       |#ifdef WT_DBO_LOGGER
  456|       |  if (customLogger_) {
  457|       |    return WLogEntry(*customLogger_, type);
  458|       |  }
  459|       |
  460|       |  return defaultLogger.entry(type);
  461|       |#else // WT_DBO_LOGGER
  462|  6.93k|  WebSession *session = WebSession::instance();
  463|       |
  464|  6.93k|  if (session)
  ------------------
  |  Branch (464:7): [True: 0, False: 6.93k]
  ------------------
  465|      0|    return session->log(type);
  466|  6.93k|  else {
  467|  6.93k|    WServer *server = WServer::instance();
  468|       |
  469|  6.93k|    if (server)
  ------------------
  |  Branch (469:9): [True: 0, False: 6.93k]
  ------------------
  470|      0|      return server->log(type);
  471|  6.93k|    else
  472|  6.93k|      return defaultLogger.entry(type);
  473|  6.93k|  }
  474|  6.93k|#endif // WT_DBO_LOGGER
  475|  6.93k|}

_ZN2Wt9WLogEntrylsImEERS0_T_:
  407|    181|  WLogEntry& operator<< (T t) {
  408|    181|    startField();
  409|    181|    if (impl_)
  ------------------
  |  Branch (409:9): [True: 181, False: 0]
  ------------------
  410|    181|    {
  411|    181|      using std::to_string;
  412|    181|      impl_->line_ << to_string(t);
  413|    181|    }
  414|    181|    return *this;
  415|    181|  }
_ZNK2Wt7WLogger6fieldsEv:
  231|  76.6k|  const std::vector<Field>& fields() const { return fields_; }

_ZN2Wt7WServer8instanceEv:
  236|  13.8k|  static WServer *instance() { return instance_; }

_ZN2Wt7WStringC2Ev:
   28|      2|  : impl_(nullptr)
   29|      2|{ }
_ZN2Wt7WStringC2EPKcNS_12CharEncodingE:
   71|      6|  : impl_(nullptr)
   72|      6|{
   73|      6|  if (value) {
  ------------------
  |  Branch (73:7): [True: 6, False: 0]
  ------------------
   74|      6|    if (realEncoding(encoding) == CharEncoding::UTF8)
  ------------------
  |  Branch (74:9): [True: 6, False: 0]
  ------------------
   75|      6|      utf8_ = value;
   76|      0|    else
   77|      0|      utf8_ = Wt::toUTF8(value);
   78|      6|  }
   79|      6|}
_ZN2Wt7WString12realEncodingENS_12CharEncodingE:
  613|      6|{
  614|      6|  return encoding == CharEncoding::Default
  ------------------
  |  Branch (614:10): [True: 6, False: 0]
  ------------------
  615|      6|    ? defaultEncoding_ : encoding;
  616|      6|}

_ZN2Wt13WStringStreamC2Ev:
   34|  6.93k|  : sink_(0),
   35|  6.93k|    buf_(static_buf_),
   36|  6.93k|    buf_i_(0)
   37|  6.93k|{ }
_ZN2Wt13WStringStreamD2Ev:
   53|  6.93k|{
   54|  6.93k|  flushSink();
   55|       |
   56|  6.93k|  clear();
   57|  6.93k|}
_ZN2Wt13WStringStream5clearEv:
   60|  6.93k|{
   61|  6.93k|  buf_i_ = 0;
   62|       |
   63|  6.93k|  for (unsigned int i = 0; i < bufs_.size(); ++i)
  ------------------
  |  Branch (63:28): [True: 0, False: 6.93k]
  ------------------
   64|      0|    if (bufs_[i].first != static_buf_)
  ------------------
  |  Branch (64:9): [True: 0, False: 0]
  ------------------
   65|      0|      delete[] bufs_[i].first;
   66|       |
   67|  6.93k|  bufs_.clear();
   68|       |
   69|  6.93k|  if (buf_ != static_buf_)
  ------------------
  |  Branch (69:7): [True: 0, False: 6.93k]
  ------------------
   70|      0|    delete[] buf_;
   71|       |
   72|  6.93k|  buf_ = static_buf_;
   73|  6.93k|}
_ZNK2Wt13WStringStream6lengthEv:
   81|  6.93k|{
   82|  6.93k|  std::size_t result = buf_i_;
   83|       |
   84|  6.93k|  for (unsigned int i = 0; i < bufs_.size(); ++i)
  ------------------
  |  Branch (84:28): [True: 0, False: 6.93k]
  ------------------
   85|      0|    result += bufs_[i].second;
   86|       |
   87|  6.93k|  return result;
   88|  6.93k|}
_ZN2Wt13WStringStream9flushSinkEv:
   91|  6.93k|{
   92|  6.93k|  if (sink_) {
  ------------------
  |  Branch (92:7): [True: 0, False: 6.93k]
  ------------------
   93|      0|    sink_->write(buf_, buf_i_);
   94|      0|    buf_i_ = 0;
   95|      0|  }
   96|  6.93k|}
_ZN2Wt13WStringStreamlsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
  124|  28.0k|{
  125|  28.0k|  append(s.data(), s.length());
  126|       |
  127|  28.0k|  return *this;
  128|  28.0k|}
_ZN2Wt13WStringStreamlsEi:
  131|  4.43k|{
  132|  4.43k|  char buf[20];
  133|  4.43k|  Utils::itoa(v, buf);
  134|  4.43k|  return *this << buf;
  135|  4.43k|}
_ZN2Wt13WStringStreamlsEd:
  160|  2.49k|{
  161|  2.49k|  char buf[50];
  162|  2.49k|  snprintf(buf, 50, "%g", d);
  163|  2.49k|  return *this << buf;
  164|  2.49k|}
_ZN2Wt13WStringStream6appendEPKci:
  167|  35.0k|{
  168|  35.0k|  if (buf_i_ + length > buf_len()) {
  ------------------
  |  Branch (168:7): [True: 0, False: 35.0k]
  ------------------
  169|      0|    pushBuf();
  170|       |
  171|      0|    if (length > buf_len()) {
  ------------------
  |  Branch (171:9): [True: 0, False: 0]
  ------------------
  172|      0|      if (sink_) {
  ------------------
  |  Branch (172:11): [True: 0, False: 0]
  ------------------
  173|      0|        sink_->write(s, length);
  174|      0|        return;
  175|      0|      } else {
  176|      0|        char *buf = new char[length];
  177|      0|        std::memcpy(buf, s, length);
  178|      0|        bufs_.push_back(std::make_pair(buf, length));
  179|      0|        return;
  180|      0|      }
  181|      0|    }
  182|      0|  }
  183|       |
  184|  35.0k|  std::memcpy(buf_ + buf_i_, s, length);
  185|  35.0k|  buf_i_ += length;
  186|  35.0k|}
_ZNK2Wt13WStringStream3strB5cxx11Ev:
  198|  6.93k|{
  199|  6.93k|  std::string result;
  200|  6.93k|  result.reserve(length());
  201|       |
  202|  6.93k|  for (unsigned int i = 0; i < bufs_.size(); ++i)
  ------------------
  |  Branch (202:28): [True: 0, False: 6.93k]
  ------------------
  203|      0|    result.append(bufs_[i].first, bufs_[i].second);
  204|       |
  205|  6.93k|  result.append(buf_, buf_i_);
  206|       |
  207|  6.93k|  return result;
  208|  6.93k|}

_ZN2Wt13WStringStreamlsEPKc:
  119|  6.93k|  {
  120|  6.93k|    append(s, std::strlen(s));
  121|       |
  122|  6.93k|    return *this;
  123|  6.93k|  }
_ZNK2Wt13WStringStream7buf_lenEv:
  219|  35.0k|    { return buf_ == static_buf_ ? static_cast<int>(S_LEN)
  ------------------
  |  Branch (219:14): [True: 35.0k, False: 0]
  ------------------
  220|  35.0k|        : static_cast<int>(D_LEN); }

_ZN2Wt10WTransformC2Ev:
   29|      2|{
   30|      2|  reset();
   31|      2|}
_ZN2Wt10WTransform5resetEv:
  105|      2|{
  106|      2|  checkModifiable();
  107|      2|  m_[M11] = m_[M22] = 1;
  108|      2|  m_[M21] = m_[M12] = m_[M13] = m_[M23] = 0;
  109|      2|}

_ZN2Wt9CgiParserC2Ell:
  214|  2.49k|  : maxFormData_(maxFormData),
  215|  2.49k|    maxRequestSize_(maxRequestSize)
  216|  2.49k|{ }
_ZN2Wt9CgiParser5parseERNS_10WebRequestENS0_10ReadOptionE:
  219|  2.49k|{
  220|       |  /*
  221|       |   * TODO: optimize this ...
  222|       |   */
  223|  2.49k|  request_ = &request;
  224|       |
  225|  2.49k|  ::int64_t len = request.contentLength();
  226|  2.49k|  const char *type = request.contentType();
  227|  2.49k|  const char *meth = request.requestMethod();
  228|       |
  229|  2.49k|  request.postDataExceeded_ = (len > maxRequestSize_ ? len : 0);
  ------------------
  |  Branch (229:32): [True: 0, False: 2.49k]
  ------------------
  230|       |
  231|  2.49k|  std::string queryString = request.queryString();
  232|       |
  233|  2.49k|  LOG_DEBUG("queryString (len=" << len << "): " << queryString);
  234|       |
  235|  2.49k|  if (!queryString.empty() && request_->parameters_.empty()) {
  ------------------
  |  Branch (235:7): [True: 0, False: 2.49k]
  |  Branch (235:31): [True: 0, False: 0]
  ------------------
  236|      0|    Http::Request::parseFormUrlEncoded(queryString, request_->parameters_);
  237|      0|  }
  238|       |
  239|       |  // XDomainRequest cannot set a contentType header, we therefore pass it
  240|       |  // as a request parameter
  241|  2.49k|  if (readOption != ReadHeadersOnly &&
  ------------------
  |  Branch (241:7): [True: 2.49k, False: 0]
  ------------------
  242|  2.49k|      strcmp(meth, "POST") == 0 &&
  ------------------
  |  Branch (242:7): [True: 2.49k, False: 0]
  ------------------
  243|  2.49k|      ((type && strstr(type, "application/x-www-form-urlencoded") == type) ||
  ------------------
  |  Branch (243:9): [True: 2.49k, False: 0]
  |  Branch (243:17): [True: 1.23k, False: 1.26k]
  ------------------
  244|  1.26k|       (queryString.find("&contentType=x-www-form-urlencoded") !=
  ------------------
  |  Branch (244:8): [True: 0, False: 1.26k]
  ------------------
  245|  1.26k|        std::string::npos))) {
  246|       |    /*
  247|       |     * TODO: parse this stream-based to avoid the malloc here. For now
  248|       |     * we protect the maximum that can be POST'ed as form data.
  249|       |     */
  250|  1.23k|    if (len > maxFormData_)
  ------------------
  |  Branch (250:9): [True: 0, False: 1.23k]
  ------------------
  251|      0|      throw WException("Oversized application/x-www-form-urlencoded ("
  252|      0|                       + std::to_string(len) + ")");
  253|       |
  254|  1.23k|    auto buf = std::unique_ptr<char[]>(new char[len + 1]);
  255|       |
  256|  1.23k|    request.in().read(buf.get(), len);
  257|       |
  258|  1.23k|    if (request.in().gcount() != (int)len) {
  ------------------
  |  Branch (258:9): [True: 0, False: 1.23k]
  ------------------
  259|      0|      throw WException("Unexpected short read.");
  260|      0|    }
  261|       |
  262|  1.23k|    buf[len] = 0;
  263|       |
  264|       |    // This is a special Wt feature, I do not think it standard.
  265|       |    // For POST, parameters in url-encoded URL are still parsed.
  266|       |
  267|  1.23k|    std::string formQueryString = buf.get();
  268|       |
  269|  1.23k|    LOG_DEBUG("formQueryString (len=" << len << "): " << formQueryString);
  270|  1.23k|    if (!formQueryString.empty()) {
  ------------------
  |  Branch (270:9): [True: 1.22k, False: 6]
  ------------------
  271|  1.22k|      Http::Request::parseFormUrlEncoded(formQueryString, request_->parameters_);
  272|  1.22k|    }
  273|  1.23k|    Http::ParameterMap::const_iterator it = request_->parameters_.find("Wt-params");
  274|  1.23k|    if (it != request_->parameters_.end() && it->second.size() == 1) {
  ------------------
  |  Branch (274:9): [True: 71, False: 1.16k]
  |  Branch (274:9): [True: 56, False: 1.17k]
  |  Branch (274:46): [True: 56, False: 15]
  ------------------
  275|       |      // We need a copy here in case of unexpected second "Wt-params"
  276|       |      // see issue#14616.
  277|     56|      std::string wtParams = it->second[0];
  278|     56|      Http::Request::parseFormUrlEncoded(wtParams, request_->parameters_);
  279|     56|    }
  280|  1.23k|  }
  281|       |
  282|  2.49k|  if (readOption != ReadHeadersOnly &&
  ------------------
  |  Branch (282:7): [True: 2.49k, False: 0]
  ------------------
  283|  2.49k|      type && strstr(type, "multipart/form-data") == type) {
  ------------------
  |  Branch (283:7): [True: 2.49k, False: 0]
  |  Branch (283:15): [True: 1.26k, False: 1.23k]
  ------------------
  284|  1.26k|    if (strcmp(meth, "POST") != 0) {
  ------------------
  |  Branch (284:9): [True: 0, False: 1.26k]
  ------------------
  285|      0|      throw WException("Invalid method for multipart/form-data: "
  286|      0|                       + std::string(meth));
  287|      0|    }
  288|       |
  289|  1.26k|    if (!request.postDataExceeded_)
  ------------------
  |  Branch (289:9): [True: 1.26k, False: 0]
  ------------------
  290|  1.26k|      readMultipartData(request, type, len);
  291|      0|    else if (readOption == ReadBodyAnyway) {
  ------------------
  |  Branch (291:14): [True: 0, False: 0]
  ------------------
  292|      0|      for (;len > 0;) {
  ------------------
  |  Branch (292:13): [True: 0, False: 0]
  ------------------
  293|      0|        ::int64_t toRead = std::min(::int64_t(BUFSIZE), len);
  294|      0|        request.in().read(buf_, toRead);
  295|      0|        if (request.in().gcount() != (::int64_t)toRead)
  ------------------
  |  Branch (295:13): [True: 0, False: 0]
  ------------------
  296|      0|          throw WException("CgiParser: short read");
  297|      0|        len -= toRead;
  298|      0|      }
  299|      0|    }
  300|  1.26k|  }
  301|  2.49k|}
_ZN2Wt9CgiParser17readMultipartDataERNS_10WebRequestENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEl:
  305|  1.26k|{
  306|  1.26k|  std::string boundary;
  307|       |
  308|  1.26k|  if (!fishBoundaryValue(type, boundary))
  ------------------
  |  Branch (308:7): [True: 0, False: 1.26k]
  ------------------
  309|      0|    throw WException("Could not find a boundary for multipart data.");
  310|       |
  311|  1.26k|  boundary = "--" + boundary;
  312|       |
  313|  1.26k|  buflen_ = 0;
  314|  1.26k|  left_ = len;
  315|  1.26k|  spoolStream_.reset();
  316|  1.26k|  currentKey_.clear();
  317|       |
  318|  1.26k|  if (!parseBody(request, boundary))
  ------------------
  |  Branch (318:7): [True: 2, False: 1.26k]
  ------------------
  319|      2|    return;
  320|       |
  321|  42.6k|  for (;;) {
  322|  42.6k|    if (!parseHead(request))
  ------------------
  |  Branch (322:9): [True: 0, False: 42.6k]
  ------------------
  323|      0|      break;
  324|  42.6k|    if (!parseBody(request,boundary))
  ------------------
  |  Branch (324:9): [True: 4, False: 42.6k]
  ------------------
  325|      4|      break;
  326|  42.6k|  }
  327|  1.26k|}
_ZN2Wt9CgiParser17readUntilBoundaryERNS_10WebRequestENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiiPS8_PSo:
  346|  86.2k|{
  347|  86.2k|  int bpos;
  348|  86.2k|  int totalSaved = 0;
  349|       |
  350|  87.8k|  while ((bpos = index(boundary)) == -1) {
  ------------------
  |  Branch (350:10): [True: 2.81k, False: 85.0k]
  ------------------
  351|       |    /*
  352|       |     * If we couldn't find it. We need to wind the buffer, but only save
  353|       |     * not including the boundary length.
  354|       |     */
  355|  2.81k|    if (left_ == 0)
  ------------------
  |  Branch (355:9): [True: 1.22k, False: 1.59k]
  ------------------
  356|  1.22k|      throw WException("CgiParser: reached end of input while seeking end of "
  357|  1.22k|                       "headers or content. Format of CGI input is wrong");
  358|       |
  359|       |    /* save (up to) BUFSIZE from buffer to file or value string, but
  360|       |     * mind the boundary length */
  361|  1.59k|    int save = std::min((buflen_ - (int)boundary.length()), (int)BUFSIZE);
  362|  1.59k|    totalSaved += save;
  363|  1.59k|    if (maxLength >= 0 && totalSaved > maxLength) {
  ------------------
  |  Branch (363:9): [True: 265, False: 1.33k]
  |  Branch (363:27): [True: 14, False: 251]
  ------------------
  364|     14|      throw WException("CgiParser: maximum length for headers or content exceeded.");
  365|     14|    }
  366|       |
  367|  1.58k|    if (save > 0) {
  ------------------
  |  Branch (367:9): [True: 235, False: 1.34k]
  ------------------
  368|    235|      if (resultString)
  ------------------
  |  Branch (368:11): [True: 162, False: 73]
  ------------------
  369|    162|        *resultString += std::string(buf_, save);
  370|    235|      if (resultFile)
  ------------------
  |  Branch (370:11): [True: 29, False: 206]
  ------------------
  371|     29|        resultFile->write(buf_, save);
  372|       |
  373|       |      /* wind buffer */
  374|    235|      windBuffer(save);
  375|    235|    }
  376|       |
  377|  1.58k|    unsigned amt = static_cast<unsigned>
  378|  1.58k|      (std::min(left_,
  379|  1.58k|                static_cast< ::int64_t >(BUFSIZE + MAXBOUND - buflen_)));
  380|       |
  381|  1.58k|    request.in().read(buf_ + buflen_, amt);
  382|  1.58k|    if (request.in().gcount() != (int)amt)
  ------------------
  |  Branch (382:9): [True: 0, False: 1.58k]
  ------------------
  383|      0|      throw WException("CgiParser: short read");
  384|       |
  385|  1.58k|    left_ -= amt;
  386|  1.58k|    buflen_ += amt;
  387|  1.58k|  }
  388|       |
  389|  85.0k|  if (maxLength >= 0 && totalSaved + bpos - tossAtBoundary > maxLength) {
  ------------------
  |  Branch (389:7): [True: 54.3k, False: 30.6k]
  |  Branch (389:25): [True: 18, False: 54.3k]
  ------------------
  390|     18|    throw WException("CgiParser: maximum length for headers or content exceeded.");
  391|     18|  }
  392|       |
  393|  85.0k|  if (resultString)
  ------------------
  |  Branch (393:7): [True: 48.2k, False: 36.7k]
  ------------------
  394|  48.2k|    *resultString += std::string(buf_, bpos - tossAtBoundary);
  395|  85.0k|  if (resultFile)
  ------------------
  |  Branch (395:7): [True: 6.09k, False: 78.9k]
  ------------------
  396|  6.09k|    resultFile->write(buf_, bpos - tossAtBoundary);
  397|       |
  398|       |  /* wind buffer */
  399|  85.0k|  windBuffer(bpos);
  400|  85.0k|}
_ZN2Wt9CgiParser10windBufferEi:
  403|   170k|{
  404|   170k|  if (offset < buflen_) {
  ------------------
  |  Branch (404:7): [True: 169k, False: 992]
  ------------------
  405|   169k|    memmove(buf_, buf_ + offset, buflen_ - offset);
  406|   169k|    buflen_ -= offset;
  407|   169k|  } else
  408|    992|    buflen_ = 0;
  409|   170k|}
_ZN2Wt9CgiParser5indexENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
  412|  87.8k|{
  413|  87.8k|  std::string bufS = std::string(buf_, buflen_);
  414|       |
  415|  87.8k|  std::string::size_type i = bufS.find(search);
  416|       |
  417|  87.8k|  if (i == std::string::npos)
  ------------------
  |  Branch (417:7): [True: 2.81k, False: 85.0k]
  ------------------
  418|  2.81k|    return -1;
  419|  85.0k|  else
  420|  85.0k|    return i;
  421|  87.8k|}
_ZN2Wt9CgiParser9parseHeadERNS_10WebRequestE:
  424|  42.6k|{
  425|  42.6k|  std::string head;
  426|  42.6k|  readUntilBoundary(request, "\r\n\r\n", -2, MAX_HEADER_FIELD_LENGTH, &head, 0);
  427|       |
  428|  42.6k|  std::string name;
  429|  42.6k|  std::string fn;
  430|  42.6k|  std::string ctype;
  431|       |
  432|   102k|  for (unsigned current = 0; current < head.length();) {
  ------------------
  |  Branch (432:30): [True: 59.4k, False: 42.6k]
  ------------------
  433|       |    /* read line by line */
  434|  59.4k|    std::string::size_type i = head.find("\r\n", current);
  435|  59.4k|    const std::string text = head.substr(current, (i == std::string::npos
  ------------------
  |  Branch (435:52): [True: 0, False: 59.4k]
  ------------------
  436|  59.4k|                                                   ? std::string::npos
  437|  59.4k|                                                   : i - current));
  438|       |
  439|  59.4k|    if (isHeader("content-disposition:", text)) {
  ------------------
  |  Branch (439:9): [True: 18.6k, False: 40.8k]
  ------------------
  440|       |      // If the name is not found or is too long, we ignore the header.
  441|  18.6k|      if (fishNameValue(text, name)) {
  ------------------
  |  Branch (441:11): [True: 14.3k, False: 4.25k]
  ------------------
  442|  14.3k|        fishFilenameValue(text, fn);
  443|  14.3k|      } else {
  444|  4.25k|        LOG_WARN("Received a Content-Disposition header in a multipart/form-data request without a name parameter, or with a name parameter exceeding maximum of " << MAX_NAME_LENGTH << ". Ignoring header.");
  ------------------
  |  |  523|  4.25k|#   define LOG_WARN(m) do { \
  |  |  524|  4.25k|    if ( WT_LOGGING("warning", WT_LOGGER)) \
  |  |  ------------------
  |  |  |  |  501|  4.25k|#     define WT_LOGGING Wt::logging
  |  |  ------------------
  |  |                   if ( WT_LOGGING("warning", WT_LOGGER)) \
  |  |  ------------------
  |  |  |  |  500|  4.25k|#     define WT_LOGGER Wt::logger
  |  |  ------------------
  |  |  |  Branch (524:10): [True: 4.25k, False: 0]
  |  |  ------------------
  |  |  525|  4.25k|      WT_LOG("warning") << WT_LOGGER << ": " << m; \
  |  |  ------------------
  |  |  |  |  499|  25.5k|#     define WT_LOG Wt::log
  |  |  ------------------
  |  |                     WT_LOG("warning") << WT_LOGGER << ": " << m; \
  |  |  ------------------
  |  |  |  |  500|  4.25k|#     define WT_LOGGER Wt::logger
  |  |  ------------------
  |  |  526|  4.25k|    } while(0)
  |  |  ------------------
  |  |  |  Branch (526:13): [Folded, False: 4.25k]
  |  |  ------------------
  ------------------
  445|  4.25k|      }
  446|  18.6k|    }
  447|       |
  448|  59.4k|    if (isHeader("content-type:", text)) {
  ------------------
  |  Branch (448:9): [True: 4.00k, False: 55.4k]
  ------------------
  449|  4.00k|      fishContentTypeValue(text, ctype);
  450|  4.00k|    }
  451|       |
  452|  59.4k|    current = i + 2;
  453|  59.4k|  }
  454|       |
  455|  42.6k|  LOG_DEBUG("name: " << name << " ct: " << ctype  << " fn: " << fn);
  456|       |
  457|  42.6k|  currentKey_ = name;
  458|       |
  459|  42.6k|  if (!fn.empty()) {
  ------------------
  |  Branch (459:7): [True: 6.41k, False: 36.2k]
  ------------------
  460|  6.41k|    if (!request.postDataExceeded_) {
  ------------------
  |  Branch (460:9): [True: 6.41k, False: 0]
  ------------------
  461|       |      /*
  462|       |       * It is not easy to create a std::ostream pointing to a
  463|       |       * temporary file name.
  464|       |       */
  465|  6.41k|      std::string spool = FileUtils::createTempFileName();
  466|       |
  467|  6.41k|      spoolStream_ = std::make_unique<std::ofstream>(spool.c_str(),
  468|  6.41k|        std::ios::out | std::ios::binary);
  469|       |
  470|  6.41k|      request_->files_.insert
  471|  6.41k|        (std::make_pair(name, Http::UploadedFile(spool, fn, ctype)));
  472|       |
  473|  6.41k|      LOG_DEBUG("spooling file to " << spool.c_str());
  474|       |
  475|  6.41k|    } else {
  476|      0|      spoolStream_.reset();
  477|       |      // Clear currentKey so that file we don't do harm by reading this
  478|       |      // giant blob in memory
  479|      0|      currentKey_ = "";
  480|      0|    }
  481|  6.41k|  }
  482|       |
  483|  42.6k|  windBuffer(4);
  484|       |
  485|  42.6k|  return true;
  486|  42.6k|}
_ZN2Wt9CgiParser9parseBodyERNS_10WebRequestENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
  489|  43.6k|{
  490|  43.6k|  std::string value;
  491|  43.6k|  bool writeToMemory = !spoolStream_ && !currentKey_.empty();
  ------------------
  |  Branch (491:24): [True: 37.2k, False: 6.41k]
  |  Branch (491:41): [True: 5.99k, False: 31.2k]
  ------------------
  492|       |
  493|  43.6k|  int maxLength = -1;
  494|  43.6k|  if (writeToMemory) {
  ------------------
  |  Branch (494:7): [True: 5.99k, False: 37.6k]
  ------------------
  495|  5.99k|    maxLength = MAX_MULTIPART_NON_FILE_VALUE_SIZE;
  496|  37.6k|  } else if (spoolStream_) {
  ------------------
  |  Branch (496:14): [True: 6.41k, False: 31.2k]
  ------------------
  497|  6.41k|    maxLength = maxRequestSize_;
  498|  6.41k|  }
  499|       |
  500|  43.6k|  readUntilBoundary(request, boundary, 2,
  501|  43.6k|                    maxLength,
  502|  43.6k|                    writeToMemory ? &value : nullptr,
  ------------------
  |  Branch (502:21): [True: 5.99k, False: 37.6k]
  ------------------
  503|  43.6k|                    spoolStream_.get());
  504|       |
  505|  43.6k|  if (spoolStream_) {
  ------------------
  |  Branch (505:7): [True: 6.09k, False: 37.5k]
  ------------------
  506|  6.09k|    LOG_DEBUG("completed spooling");
  507|  6.09k|    spoolStream_.reset();
  508|  37.5k|  } else {
  509|  37.5k|    if (!currentKey_.empty()) {
  ------------------
  |  Branch (509:9): [True: 5.87k, False: 31.6k]
  ------------------
  510|  5.87k|      LOG_DEBUG("value: \"" << value << "\"");
  511|  5.87k|      request_->parameters_[currentKey_].push_back(value);
  512|  5.87k|    }
  513|  37.5k|  }
  514|       |
  515|  43.6k|  currentKey_.clear();
  516|       |
  517|  43.6k|  if (std::string(buf_ + boundary.length(), 2) == "--")
  ------------------
  |  Branch (517:7): [True: 6, False: 43.6k]
  ------------------
  518|      6|    return false;
  519|       |
  520|  43.6k|  windBuffer(boundary.length() + 2);
  521|       |
  522|  43.6k|  return true;
  523|  43.6k|}
CgiParser.C:_ZN2Wt12_GLOBAL__N_117fishBoundaryValueERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERS6_:
  163|  1.26k|  {
  164|  1.26k|    std::string lower_line = Wt::Utils::lowerCase(text);
  165|       |
  166|  1.26k|    size_t pos = 0;
  167|       |
  168|  1.26k|    pos = findParam("boundary=", lower_line, pos);
  169|  1.26k|    if (pos == std::string::npos) {
  ------------------
  |  Branch (169:9): [True: 0, False: 1.26k]
  ------------------
  170|      0|      return false;
  171|      0|    }
  172|       |
  173|  1.26k|    return extractParameterValue(text, pos, result, MAX_BOUNDARY_LENGTH, " \t");
  174|  1.26k|  }
CgiParser.C:_ZN2Wt12_GLOBAL__N_19findParamERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_m:
   70|  34.2k|  {
   71|  34.2k|    if (name.empty()) {
  ------------------
  |  Branch (71:9): [True: 0, False: 34.2k]
  ------------------
   72|      0|      return pos;
   73|      0|    }
   74|       |
   75|  34.2k|    std::string stopChars {name[0], '"'};
   76|       |
   77|   108k|    while (pos != std::string::npos) {
  ------------------
  |  Branch (77:12): [True: 108k, False: 0]
  ------------------
   78|   108k|      pos = text.find_first_of(stopChars, pos);
   79|       |
   80|   108k|      if (pos == std::string::npos) {
  ------------------
  |  Branch (80:11): [True: 9.27k, False: 99.0k]
  ------------------
   81|  9.27k|        break;
   82|  9.27k|      }
   83|       |
   84|  99.0k|      if (text[pos] == '"') {
  ------------------
  |  Branch (84:11): [True: 7.58k, False: 91.5k]
  ------------------
   85|  7.58k|        pos++;
   86|       |        //ignore everything until the next quote
   87|  7.58k|        pos = text.find('"', pos);
   88|       |
   89|  7.58k|        if (pos == std::string::npos) {
  ------------------
  |  Branch (89:13): [True: 801, False: 6.78k]
  ------------------
   90|    801|          break; // Malformed quotes
   91|    801|        }
   92|       |
   93|  91.5k|      } else if (text.compare(pos, name.length(), name) == 0 &&
  ------------------
  |  Branch (93:18): [True: 26.6k, False: 64.8k]
  ------------------
   94|  26.6k|                 (pos == 0 ||
  ------------------
  |  Branch (94:19): [True: 0, False: 26.6k]
  ------------------
   95|  26.6k|                  (!::isalnum(static_cast<unsigned char>(text[pos - 1])) &&
  ------------------
  |  Branch (95:20): [True: 24.4k, False: 2.14k]
  ------------------
   96|  24.4k|                   text[pos - 1] != '_'))) {
  ------------------
  |  Branch (96:20): [True: 24.1k, False: 299]
  ------------------
   97|       |        // parameter name found
   98|  24.1k|        return pos + name.length();
   99|  24.1k|      }
  100|       |
  101|  74.1k|      pos++;
  102|  74.1k|    }
  103|       |
  104|  10.0k|    return std::string::npos;
  105|  34.2k|  }
CgiParser.C:_ZN2Wt12_GLOBAL__N_121extractParameterValueERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmRS6_mS8_:
  110|  27.7k|  {
  111|  27.7k|    size_t end_pos = pos;
  112|  27.7k|    if (text[pos] == '"') {
  ------------------
  |  Branch (112:9): [True: 7.29k, False: 20.5k]
  ------------------
  113|       |      // Handle Quoted Values
  114|  7.29k|      pos++;
  115|  7.29k|      end_pos = text.find('"', pos);
  116|  7.29k|      if (end_pos == std::string::npos) {
  ------------------
  |  Branch (116:11): [True: 900, False: 6.39k]
  ------------------
  117|    900|        return false; // Malformed quotes
  118|    900|      }
  119|  20.5k|    } else {
  120|       |      // Handle Unquoted Values
  121|  20.5k|      end_pos = text.find_first_of(terminators, pos);
  122|  20.5k|      if (end_pos == std::string::npos) {
  ------------------
  |  Branch (122:11): [True: 18.3k, False: 2.12k]
  ------------------
  123|  18.3k|        end_pos = text.length();
  124|  18.3k|      }
  125|  20.5k|    }
  126|       |
  127|  26.8k|    size_t length = end_pos - pos;
  128|       |
  129|  26.8k|    if (length == 0 || (maxLength != 0 && length > maxLength)) {
  ------------------
  |  Branch (129:9): [True: 1.15k, False: 25.7k]
  |  Branch (129:25): [True: 15.8k, False: 9.86k]
  |  Branch (129:43): [True: 259, False: 15.6k]
  ------------------
  130|  1.41k|      return false;
  131|  1.41k|    }
  132|  25.4k|    result = text.substr(pos, end_pos - pos);
  133|  25.4k|    return true;
  134|  26.8k|  }
CgiParser.C:_ZN2Wt12_GLOBAL__N_18isHeaderERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_:
   61|   118k|  {
   62|   118k|    std::string lower_line = Wt::Utils::lowerCase(text);
   63|   118k|    size_t pos = lower_line.find_first_not_of(" \t");
   64|   118k|    return pos != std::string::npos && lower_line.compare(pos, name.length(), name) == 0;
  ------------------
  |  Branch (64:12): [True: 65.5k, False: 53.3k]
  |  Branch (64:40): [True: 22.6k, False: 42.9k]
  ------------------
   65|   118k|  }
CgiParser.C:_ZN2Wt12_GLOBAL__N_113fishNameValueERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERS6_:
  177|  18.6k|  {
  178|  18.6k|    std::string lower_line = Wt::Utils::lowerCase(text);
  179|       |
  180|  18.6k|    size_t pos = 0;
  181|       |
  182|  18.6k|    pos = findParam("name=", lower_line, pos);
  183|  18.6k|    if (pos == std::string::npos) {
  ------------------
  |  Branch (183:9): [True: 3.34k, False: 15.2k]
  ------------------
  184|  3.34k|      return false;
  185|  3.34k|    }
  186|       |
  187|  15.2k|    return extractParameterValue(text, pos, result, MAX_NAME_LENGTH);
  188|  18.6k|  }
CgiParser.C:_ZN2Wt12_GLOBAL__N_117fishFilenameValueERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERS6_:
  191|  14.3k|  {
  192|  14.3k|    std::string lower_line = Wt::Utils::lowerCase(text);
  193|       |
  194|  14.3k|    size_t pos = 0;
  195|       |
  196|  14.3k|    pos = findParam("filename=", lower_line, pos);
  197|  14.3k|    if (pos == std::string::npos) {
  ------------------
  |  Branch (197:9): [True: 6.72k, False: 7.63k]
  ------------------
  198|  6.72k|      return false;
  199|  6.72k|    }
  200|       |
  201|  7.63k|    bool success = extractParameterValue(text, pos, result);
  202|       |
  203|  7.63k|    if (success && result.length() > MAX_FILENAME_LENGTH) {
  ------------------
  |  Branch (203:9): [True: 6.95k, False: 680]
  |  Branch (203:20): [True: 181, False: 6.76k]
  ------------------
  204|       |      // We still want a valid filename so that the file is spooled.
  205|    181|      LOG_WARN("Received a multipart/form-data request with filename length " << result.length() << " exceeding maximum of " << MAX_FILENAME_LENGTH << ". Truncating.");
  ------------------
  |  |  523|    181|#   define LOG_WARN(m) do { \
  |  |  524|    181|    if ( WT_LOGGING("warning", WT_LOGGER)) \
  |  |  ------------------
  |  |  |  |  501|    181|#     define WT_LOGGING Wt::logging
  |  |  ------------------
  |  |                   if ( WT_LOGGING("warning", WT_LOGGER)) \
  |  |  ------------------
  |  |  |  |  500|    181|#     define WT_LOGGER Wt::logger
  |  |  ------------------
  |  |  |  Branch (524:10): [True: 181, False: 0]
  |  |  ------------------
  |  |  525|    181|      WT_LOG("warning") << WT_LOGGER << ": " << m; \
  |  |  ------------------
  |  |  |  |  499|  1.44k|#     define WT_LOG Wt::log
  |  |  ------------------
  |  |                     WT_LOG("warning") << WT_LOGGER << ": " << m; \
  |  |  ------------------
  |  |  |  |  500|    181|#     define WT_LOGGER Wt::logger
  |  |  ------------------
  |  |  526|    181|    } while(0)
  |  |  ------------------
  |  |  |  Branch (526:13): [Folded, False: 181]
  |  |  ------------------
  ------------------
  206|    181|      result = result.substr(result.length() - MAX_FILENAME_LENGTH);
  207|    181|    }
  208|       |
  209|  7.63k|    return success;
  210|  14.3k|  }
CgiParser.C:_ZN2Wt12_GLOBAL__N_120fishContentTypeValueERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERS6_:
  138|  4.00k|  {
  139|  4.00k|    std::string lower_line = Wt::Utils::lowerCase(text);
  140|       |
  141|  4.00k|    size_t pos = text.find_first_not_of(" \t");
  142|  4.00k|    if (pos == std::string::npos) {
  ------------------
  |  Branch (142:9): [True: 0, False: 4.00k]
  ------------------
  143|      0|      return false;
  144|      0|    }
  145|       |
  146|  4.00k|    if (pos != lower_line.find("content-type:", pos)) {
  ------------------
  |  Branch (146:9): [True: 0, False: 4.00k]
  ------------------
  147|      0|      return false;
  148|      0|    }
  149|       |
  150|       |    // Move past "content-type:"
  151|  4.00k|    pos += 13;
  152|       |
  153|       |    // Skip whitespace
  154|  4.00k|    pos = text.find_first_not_of(" \t", pos);
  155|  4.00k|    if (pos == std::string::npos) {
  ------------------
  |  Branch (155:9): [True: 368, False: 3.63k]
  ------------------
  156|    368|      return false;
  157|    368|    }
  158|       |
  159|  3.63k|    return extractParameterValue(text, pos, result);
  160|  4.00k|  }

DomElement.C:_ZN12_GLOBAL__N_117createCssNamesMapB5cxx11Ev:
  117|      2|{
  118|      2|  CssPropertyMap cssNames;
  119|      2|  Wt::Utils::insert(cssNames, Wt::Property::StylePosition, std::string("position"));
  120|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleZIndex,std::string("z-index"));
  121|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleFloat,std::string("float"));
  122|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleClear,std::string("clear"));
  123|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleWidth,std::string("width"));
  124|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleHeight,std::string("height"));
  125|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleLineHeight,std::string("line-height"));
  126|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleMinWidth,std::string("min-width"));
  127|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleMinHeight,std::string("min-height"));
  128|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleMaxWidth,std::string("max-width"));
  129|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleMaxHeight,std::string("max-height"));
  130|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleLeft,std::string("left"));
  131|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleRight,std::string("right"));
  132|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleTop,std::string("top"));
  133|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleBottom,std::string("bottom"));
  134|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleInsetInline,std::string("inset-inline"));
  135|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleInsetInlineStart,std::string("inset-inline-start"));
  136|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleInsetInlineEnd,std::string("inset-inline-end"));
  137|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleInsetBlock,std::string("inset-block"));
  138|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleInsetBlockStart,std::string("inset-block-start"));
  139|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleInsetBlockEnd,std::string("inset-block-end"));
  140|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleVerticalAlign,std::string("vertical-align"));
  141|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleTextAlign,std::string("text-align"));
  142|      2|  Wt::Utils::insert(cssNames, Wt::Property::StylePadding,std::string("padding"));
  143|      2|  Wt::Utils::insert(cssNames, Wt::Property::StylePaddingTop,std::string("padding-top"));
  144|      2|  Wt::Utils::insert(cssNames, Wt::Property::StylePaddingRight,std::string("padding-right"));
  145|      2|  Wt::Utils::insert(cssNames, Wt::Property::StylePaddingBottom,std::string("padding-bottom"));
  146|      2|  Wt::Utils::insert(cssNames, Wt::Property::StylePaddingLeft,std::string("padding-left"));
  147|      2|  Wt::Utils::insert(cssNames, Wt::Property::StylePaddingInline,std::string("padding-inline"));
  148|      2|  Wt::Utils::insert(cssNames, Wt::Property::StylePaddingInlineStart,std::string("padding-inline-start"));
  149|      2|  Wt::Utils::insert(cssNames, Wt::Property::StylePaddingInlineEnd,std::string("padding-inline-end"));
  150|      2|  Wt::Utils::insert(cssNames, Wt::Property::StylePaddingBlock,std::string("padding-block"));
  151|      2|  Wt::Utils::insert(cssNames, Wt::Property::StylePaddingBlockStart,std::string("padding-block-start"));
  152|      2|  Wt::Utils::insert(cssNames, Wt::Property::StylePaddingBlockEnd,std::string("padding-block-end"));
  153|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleMargin,std::string("margin"));
  154|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleMarginTop,std::string("margin-top"));
  155|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleMarginRight,std::string("margin-right"));
  156|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleMarginBottom,std::string("margin-bottom"));
  157|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleMarginLeft,std::string("margin-left"));
  158|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleMarginInline,std::string("margin-inline"));
  159|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleMarginInlineStart,std::string("margin-inline-start"));
  160|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleMarginInlineEnd,std::string("margin-inline-end"));
  161|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleMarginBlock,std::string("margin-block"));
  162|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleMarginBlockStart,std::string("margin-block-start"));
  163|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleMarginBlockEnd,std::string("margin-block-end"));
  164|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleCursor,std::string("cursor"));
  165|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleBorderTop,std::string("border-top"));
  166|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleBorderRight,std::string("border-right"));
  167|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleBorderBottom,std::string("border-bottom"));
  168|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleBorderLeft,std::string("border-left"));
  169|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleBorderInline,std::string("border-inline"));
  170|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleBorderInlineStart,std::string("border-inline-start"));
  171|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleBorderInlineEnd,std::string("border-inline-end"));
  172|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleBorderBlock,std::string("border-block"));
  173|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleBorderBlockStart,std::string("border-block-start"));
  174|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleBorderBlockEnd,std::string("border-block-end"));
  175|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleBorderColorTop,std::string("border-color-top"));
  176|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleBorderColorRight,std::string("border-color-right"));
  177|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleBorderColorBottom,std::string("border-color-bottom"));
  178|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleBorderColorLeft,std::string("border-color-left"));
  179|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleBorderInlineColor,std::string("border-inline-color"));
  180|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleBorderInlineStartColor,std::string("border-inline-start-color"));
  181|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleBorderInlineEndColor,std::string("border-inline-end-color"));
  182|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleBorderBlockColor,std::string("border-block-color"));
  183|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleBorderBlockStartColor,std::string("border-block-start-color"));
  184|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleBorderBlockEndColor,std::string("border-block-end-color"));
  185|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleBorderWidthTop,std::string("border-width-top"));
  186|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleBorderWidthRight,std::string("border-width-right"));
  187|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleBorderWidthBottom,std::string("border-width-bottom"));
  188|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleBorderWidthLeft,std::string("border-width-left"));
  189|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleBorderInlineWidth,std::string("border-inline-width"));
  190|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleBorderInlineStartWidth,std::string("border-inline-start-width"));
  191|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleBorderInlineEndWidth,std::string("border-inline-end-width"));
  192|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleBorderBlockWidth,std::string("border-block-width"));
  193|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleBorderBlockStartWidth,std::string("border-block-start-width"));
  194|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleBorderBlockEndWidth,std::string("border-block-end-width"));
  195|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleColor,std::string("color"));
  196|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleOverflowX,std::string("overflow-x"));
  197|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleOverflowY,std::string("overflow-y"));
  198|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleOpacity,std::string("opacity"));
  199|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleFontFamily,std::string("font-family"));
  200|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleFontStyle,std::string("font-style"));
  201|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleFontVariant,std::string("font-variant"));
  202|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleFontWeight,std::string("font-weight"));
  203|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleFontSize,std::string("font-size"));
  204|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleBackgroundColor,std::string("background-color"));
  205|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleBackgroundImage,std::string("background-image"));
  206|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleBackgroundRepeat,std::string("background-repeat"));
  207|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleBackgroundAttachment,std::string("background-attachment"));
  208|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleBackgroundPosition,std::string("background-position"));
  209|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleTextDecoration,std::string("text-decoration"));
  210|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleWhiteSpace,std::string("white-space"));
  211|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleTableLayout,std::string("table-layout"));
  212|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleBorderSpacing,std::string("border-spacing"));
  213|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleBorderCollapse,std::string("border-collapse"));
  214|      2|  Wt::Utils::insert(cssNames, Wt::Property::StylePageBreakBefore,std::string("page-break-before"));
  215|      2|  Wt::Utils::insert(cssNames, Wt::Property::StylePageBreakAfter,std::string("page-break-after"));
  216|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleZoom,std::string("zoom"));
  217|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleVisibility,std::string("visibility"));
  218|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleDisplay,std::string("display"));
  219|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleWebkitAppearance,std::string("-webkit-appearance"));
  220|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleBoxSizing,std::string("box-sizing"));
  221|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleFlex,std::string("flex"));
  222|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleFlexDirection,std::string("flex-direction"));
  223|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleFlexFlow,std::string("flex-flow"));
  224|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleAlignSelf,std::string("align-self"));
  225|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleJustifySelf,std::string("justify-self"));
  226|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleAnchorName,std::string("anchor-name"));
  227|      2|  Wt::Utils::insert(cssNames, Wt::Property::StylePositionAnchor,std::string("position-anchor"));
  228|      2|  Wt::Utils::insert(cssNames, Wt::Property::StylePositionArea,std::string("position-area"));
  229|      2|  Wt::Utils::insert(cssNames, Wt::Property::StylePositionTryFallbacks,std::string("position-try-fallbacks"));
  230|      2|  Wt::Utils::insert(cssNames, Wt::Property::StyleJustifyContent,std::string("justify-content"));
  231|      2|  return cssNames;
  232|      2|}
DomElement.C:_ZN12_GLOBAL__N_122createCssCamelNamesMapB5cxx11Ev:
  237|      2|{
  238|      2|  CssPropertyMap cssCamelNames;
  239|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::Style,std::string("cssText"));
  240|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StylePosition,std::string("position"));
  241|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleZIndex,std::string("zIndex"));
  242|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleFloat,std::string("cssFloat"));
  243|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleClear,std::string("clear"));
  244|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleWidth,std::string("width"));
  245|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleHeight,std::string("height"));
  246|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleLineHeight,std::string("lineHeight"));
  247|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleMinWidth,std::string("minWidth"));
  248|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleMinHeight,std::string("minHeight"));
  249|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleMaxWidth,std::string("maxWidth"));
  250|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleMaxHeight,std::string("maxHeight"));
  251|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleLeft,std::string("left"));
  252|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleRight,std::string("right"));
  253|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleTop,std::string("top"));
  254|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleBottom,std::string("bottom"));
  255|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleInsetInline,std::string("insetInline"));
  256|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleInsetInlineStart,std::string("insetInlineStart"));
  257|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleInsetInlineEnd,std::string("insetInlineEnd"));
  258|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleInsetBlock,std::string("insetBlock"));
  259|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleInsetBlockStart,std::string("insetBlockStart"));
  260|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleInsetBlockEnd,std::string("insetBlockEnd"));
  261|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleVerticalAlign,std::string("verticalAlign"));
  262|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleTextAlign,std::string("textAlign"));
  263|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StylePadding,std::string("padding"));
  264|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StylePaddingTop,std::string("paddingTop"));
  265|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StylePaddingRight,std::string("paddingRight"));
  266|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StylePaddingBottom,std::string("paddingBottom"));
  267|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StylePaddingLeft,std::string("paddingLeft"));
  268|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StylePaddingInline,std::string("paddingInline"));
  269|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StylePaddingInlineStart,std::string("paddingInlineStart"));
  270|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StylePaddingInlineEnd,std::string("paddingInlineEnd"));
  271|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StylePaddingBlock,std::string("paddingBlock"));
  272|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StylePaddingBlockStart,std::string("paddingBlockStart"));
  273|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StylePaddingBlockEnd,std::string("paddingBlockEnd"));
  274|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleMargin,std::string("margin"));
  275|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleMarginTop,std::string("marginTop"));
  276|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleMarginRight,std::string("marginRight"));
  277|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleMarginBottom,std::string("marginBottom"));
  278|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleMarginLeft,std::string("marginLeft"));
  279|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleMarginInline,std::string("marginInline"));
  280|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleMarginInlineStart,std::string("marginInlineStart"));
  281|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleMarginInlineEnd,std::string("marginInlineEnd"));
  282|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleMarginBlock,std::string("marginBlock"));
  283|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleMarginBlockStart,std::string("marginBlockStart"));
  284|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleMarginBlockEnd,std::string("marginBlockEnd"));
  285|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleCursor,std::string("cursor"));
  286|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleBorderTop,std::string("borderTop"));
  287|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleBorderRight,std::string("borderRight"));
  288|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleBorderBottom,std::string("borderBottom"));
  289|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleBorderLeft,std::string("borderLeft"));
  290|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleBorderInline,std::string("borderInline"));
  291|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleBorderInlineStart,std::string("borderInlineStart"));
  292|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleBorderInlineEnd,std::string("borderInlineEnd"));
  293|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleBorderBlock,std::string("borderBlock"));
  294|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleBorderBlockStart,std::string("borderBlockStart"));
  295|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleBorderBlockEnd,std::string("borderBlockEnd"));
  296|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleBorderColorTop,std::string("borderColorTop"));
  297|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleBorderColorRight,std::string("borderColorRight"));
  298|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleBorderColorBottom,std::string("borderColorBottom"));
  299|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleBorderColorLeft,std::string("borderColorLeft"));
  300|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleBorderInlineColor,std::string("borderInlineColor"));
  301|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleBorderInlineStartColor,std::string("borderInlineStartColor"));
  302|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleBorderInlineEndColor,std::string("borderInlineEndColor"));
  303|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleBorderBlockColor,std::string("borderBlockColor"));
  304|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleBorderBlockStartColor,std::string("borderBlockStartColor"));
  305|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleBorderBlockEndColor,std::string("borderBlockEndColor"));
  306|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleBorderWidthTop,std::string("borderWidthTop"));
  307|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleBorderWidthRight,std::string("borderWidthRight"));
  308|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleBorderWidthBottom,std::string("borderWidthBottom"));
  309|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleBorderWidthLeft,std::string("borderWidthLeft"));
  310|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleBorderInlineWidth,std::string("borderInlineWidth"));
  311|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleBorderInlineStartWidth,std::string("borderInlineStartWidth"));
  312|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleBorderInlineEndWidth,std::string("borderInlineEndWidth"));
  313|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleBorderBlockWidth,std::string("borderBlockWidth"));
  314|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleBorderBlockStartWidth,std::string("borderBlockStartWidth"));
  315|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleBorderBlockEndWidth,std::string("borderBlockEndWidth"));
  316|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleColor,std::string("color"));
  317|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleOverflowX,std::string("overflowX"));
  318|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleOverflowY,std::string("overflowY"));
  319|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleOpacity,std::string("opacity"));
  320|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleFontFamily,std::string("fontFamily"));
  321|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleFontStyle,std::string("fontStyle"));
  322|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleFontVariant,std::string("fontVariant"));
  323|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleFontWeight,std::string("fontWeight"));
  324|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleFontSize,std::string("fontSize"));
  325|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleBackgroundColor,std::string("backgroundColor"));
  326|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleBackgroundImage,std::string("backgroundImage"));
  327|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleBackgroundRepeat,std::string("backgroundRepeat"));
  328|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleBackgroundAttachment,std::string("backgroundAttachment"));
  329|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleBackgroundPosition,std::string("backgroundPosition"));
  330|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleTextDecoration,std::string("textDecoration"));
  331|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleWhiteSpace,std::string("whiteSpace"));
  332|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleTableLayout,std::string("tableLayout"));
  333|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleBorderSpacing,std::string("borderSpacing"));
  334|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleBorderCollapse,std::string("border-collapse"));
  335|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StylePageBreakBefore,std::string("pageBreakBefore"));
  336|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StylePageBreakAfter,std::string("pageBreakAfter"));
  337|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleZoom,std::string("zoom"));
  338|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleVisibility,std::string("visibility"));
  339|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleDisplay,std::string("display"));
  340|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleWebkitAppearance,std::string("webKitAppearance"));
  341|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleBoxSizing,std::string("boxSizing"));
  342|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleFlex,std::string("flex"));
  343|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleFlexDirection,std::string("flexDirection"));
  344|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleFlexFlow,std::string("flexFlow"));
  345|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleAlignSelf,std::string("alignSelf"));
  346|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleJustifySelf,std::string("justifySelf"));
  347|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleAnchorName,std::string("anchorName"));
  348|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StylePositionAnchor,std::string("positionAnchor"));
  349|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StylePositionArea,std::string("positionArea"));
  350|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StylePositionTryFallbacks,std::string("positionTryFallbacks"));
  351|      2|  Wt::Utils::insert(cssCamelNames, Wt::Property::StyleJustifyContent,std::string("justifyContent"));
  352|      2|  return cssCamelNames;
  353|      2|}

_ZN2Wt9FileUtils10getTempDirB5cxx11Ev:
  136|  6.41k|    {
  137|  6.41k|      std::string tempDir;
  138|       |
  139|  6.41k|      char *wtTmpDir = std::getenv("WT_TMP_DIR");
  140|  6.41k|      if (wtTmpDir)
  ------------------
  |  Branch (140:11): [True: 0, False: 6.41k]
  ------------------
  141|      0|      tempDir = wtTmpDir;
  142|  6.41k|      else {
  143|       |#ifdef WT_WIN32
  144|       |        char winTmpDir[MAX_PATH];
  145|       |        if(GetTempPathA(sizeof(winTmpDir), winTmpDir) != 0)
  146|       |          tempDir = winTmpDir;
  147|       |#else
  148|  6.41k|        tempDir = "/tmp";
  149|  6.41k|#endif
  150|  6.41k|      }
  151|       |
  152|  6.41k|      return tempDir;
  153|  6.41k|    }
_ZN2Wt9FileUtils18createTempFileNameB5cxx11Ev:
  157|  6.41k|    {
  158|  6.41k|      std::string tempDir = getTempDir();
  159|       |
  160|       |#ifdef WT_WIN32
  161|       |      char tmpName[MAX_PATH];
  162|       |
  163|       |      if(tempDir == ""
  164|       |         || GetTempFileNameA(tempDir.c_str(), "wt-", 0, tmpName) == 0)
  165|       |        return "";
  166|       |
  167|       |      return tmpName;
  168|       |#else
  169|  6.41k|      char* spool = new char[20 + tempDir.size()];
  170|  6.41k|      strcpy(spool, (tempDir + "/wtXXXXXX").c_str());
  171|       |
  172|  6.41k|      int i = mkstemp(spool);
  173|  6.41k|      close(i);
  174|       |
  175|  6.41k|      std::string returnSpool = spool;
  176|  6.41k|      delete [] spool;
  177|  6.41k|      return returnSpool;
  178|  6.41k|#endif
  179|  6.41k|    }

_ZN2Wt10WebRequestC2Ev:
   79|  2.49k|  : entryPoint_(nullptr),
   80|  2.49k|    extraStartIndex_(0),
   81|  2.49k|    async_(nullptr),
   82|  2.49k|    responseType_(ResponseType::Page),
   83|  2.49k|    webSocketRequest_(false)
   84|  2.49k|{
   85|  2.49k|#ifndef BENCH
   86|  2.49k|  start_ = std::chrono::high_resolution_clock::now();
   87|  2.49k|#endif
   88|  2.49k|}
_ZN2Wt10WebRequestD2Ev:
   91|  2.49k|{
   92|  2.49k|  delete async_;
   93|  2.49k|  log();
   94|  2.49k|}
_ZN2Wt10WebRequest3logEv:
   97|  2.49k|{
   98|  2.49k|#ifndef BENCH
   99|  2.49k|  if (start_.time_since_epoch().count() > 0) {
  ------------------
  |  Branch (99:7): [True: 2.49k, False: 0]
  ------------------
  100|  2.49k|    auto end = std::chrono::high_resolution_clock::now();
  101|  2.49k|    double microseconds
  102|  2.49k|      = std::chrono::duration_cast<std::chrono::microseconds>(end - start_)
  103|  2.49k|      .count();
  104|  2.49k|    LOG_INFO("took " << (microseconds / 1000) << " ms");
  ------------------
  |  |  518|  2.49k|#   define LOG_INFO(m) do { \
  |  |  519|  2.49k|    if ( WT_LOGGING("info", WT_LOGGER)) \
  |  |  ------------------
  |  |  |  |  501|  2.49k|#     define WT_LOGGING Wt::logging
  |  |  ------------------
  |  |                   if ( WT_LOGGING("info", WT_LOGGER)) \
  |  |  ------------------
  |  |  |  |  500|  2.49k|#     define WT_LOGGER Wt::logger
  |  |  ------------------
  |  |  |  Branch (519:10): [True: 2.49k, False: 0]
  |  |  ------------------
  |  |  520|  2.49k|      WT_LOG("info") << WT_LOGGER << ": " << m; \
  |  |  ------------------
  |  |  |  |  499|  14.9k|#     define WT_LOG Wt::log
  |  |  ------------------
  |  |                     WT_LOG("info") << WT_LOGGER << ": " << m; \
  |  |  ------------------
  |  |  |  |  500|  2.49k|#     define WT_LOGGER Wt::logger
  |  |  ------------------
  |  |  521|  2.49k|    }  while(0)
  |  |  ------------------
  |  |  |  Branch (521:14): [Folded, False: 2.49k]
  |  |  ------------------
  ------------------
  105|       |
  106|  2.49k|    start_ = std::chrono::high_resolution_clock::time_point();
  107|  2.49k|  }
  108|  2.49k|#endif
  109|  2.49k|}

_ZN2Wt10WebSession7Handler8instanceEv:
  930|  13.8k|{
  931|       |#ifdef WT_TARGET_JAVA
  932|       |  return threadHandler_.get();
  933|       |#else
  934|  13.8k|  return threadHandler_;
  935|  13.8k|#endif
  936|  13.8k|}
_ZN2Wt10WebSession8instanceEv:
 1201|  13.8k|{
 1202|  13.8k|  Handler *handler = WebSession::Handler::instance();
 1203|  13.8k|  return handler ? handler->session() : nullptr;
  ------------------
  |  Branch (1203:10): [True: 0, False: 13.8k]
  ------------------
 1204|  13.8k|}

_ZN2Wt5Utils9lowerCaseERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
  102|   157k|{
  103|   157k|  std::string result = s;
  104|  6.69M|  for (unsigned i = 0; i < result.length(); ++i)
  ------------------
  |  Branch (104:24): [True: 6.53M, False: 157k]
  ------------------
  105|  6.53M|    result[i] = tolower(result[i]);
  106|   157k|  return result;
  107|   157k|}
_ZN2Wt5Utils4itoaEiPci:
  157|  4.43k|char *itoa(int value, char *result, int base) {
  158|  4.43k|  char* out = result;
  159|  4.43k|  int quotient = value;
  160|       |
  161|  4.43k|  if (quotient < 0)
  ------------------
  |  Branch (161:7): [True: 0, False: 4.43k]
  ------------------
  162|      0|    quotient = -quotient;
  163|       |
  164|  13.4k|  do {
  165|  13.4k|    *out =
  166|  13.4k|      "0123456789abcdefghijklmnopqrstuvwxyz"[quotient % base];
  167|  13.4k|    ++out;
  168|  13.4k|    quotient /= base;
  169|  13.4k|  } while (quotient);
  ------------------
  |  Branch (169:12): [True: 9.05k, False: 4.43k]
  ------------------
  170|       |
  171|  4.43k|  if (value < 0 && base == 10)
  ------------------
  |  Branch (171:7): [True: 0, False: 4.43k]
  |  Branch (171:20): [True: 0, False: 0]
  ------------------
  172|      0|    *out++ = '-';
  173|       |
  174|  4.43k|  std::reverse(result, out);
  175|  4.43k|  *out = 0;
  176|       |
  177|  4.43k|  return result;
  178|  4.43k|}
_ZN2Wt5Utils16inplaceUrlDecodeERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
  376|   182k|{
  377|       |  // Note: there is a Java-too duplicate of this function in Wt/Utils.C
  378|   182k|  std::size_t j = 0;
  379|       |
  380|  3.85M|  for (std::size_t i = 0; i < text.length(); ++i) {
  ------------------
  |  Branch (380:27): [True: 3.66M, False: 182k]
  ------------------
  381|  3.66M|    char c = text[i];
  382|       |
  383|  3.66M|    if (c == '+') {
  ------------------
  |  Branch (383:9): [True: 7.04k, False: 3.66M]
  ------------------
  384|  7.04k|      text[j++] = ' ';
  385|  3.66M|    } else if (c == '%' && i + 2 < text.length()) {
  ------------------
  |  Branch (385:16): [True: 495k, False: 3.16M]
  |  Branch (385:28): [True: 492k, False: 2.72k]
  ------------------
  386|   492k|      std::string h = text.substr(i + 1, 2);
  387|   492k|      char *e = 0;
  388|   492k|      int hval = std::strtol(h.c_str(), &e, 16);
  389|       |
  390|   492k|      if (*e == 0) {
  ------------------
  |  Branch (390:11): [True: 727, False: 492k]
  ------------------
  391|    727|        text[j++] = (char)hval;
  392|    727|        i += 2;
  393|   492k|      } else {
  394|       |        // not a proper %XX with XX hexadecimal format
  395|   492k|        text[j++] = c;
  396|   492k|      }
  397|   492k|    } else
  398|  3.16M|      text[j++] = c;
  399|  3.66M|  }
  400|       |
  401|   182k|  text.erase(j);
  402|   182k|}

_ZN2Wt5Utils6insertINS_8PropertyENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEvRSt13unordered_mapIT_T0_St4hashISA_ESt8equal_toISA_ESaISt4pairIKSA_SB_EEERSH_RKSB_:
  260|    450|{
  261|    450|#ifndef WT_TARGET_JAVA
  262|    450|  m.insert(std::make_pair(key, value));
  263|    450|#endif // WT_TARGET_JAVA
  264|    450|}

