VEP_Parse:
  613|  1.68k|{
  614|  1.68k|	const char *e;
  615|  1.68k|	struct vep_match *vm;
  616|  1.68k|	int i;
  617|       |
  618|  1.68k|	CHECK_OBJ_NOTNULL(vep, VEP_MAGIC);
  ------------------
  |  |   66|  1.68k|	do {								\
  |  |   67|  1.68k|		assert((ptr) != NULL);					\
  |  |  ------------------
  |  |  |  |   65|  1.68k|#define assert(e)							\
  |  |  |  |   66|  1.68k|do {									\
  |  |  |  |   67|  1.68k|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 1.68k]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|  1.68k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 1.68k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   68|  1.68k|		assert((ptr)->magic == type_magic);			\
  |  |  ------------------
  |  |  |  |   65|  1.68k|#define assert(e)							\
  |  |  |  |   66|  1.68k|do {									\
  |  |  |  |   67|  1.68k|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 1.68k]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|  1.68k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 1.68k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   69|  1.68k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (69:11): [Folded, False: 1.68k]
  |  |  ------------------
  ------------------
  619|  1.68k|	assert(l > 0);
  ------------------
  |  |   65|  1.68k|#define assert(e)							\
  |  |   66|  1.68k|do {									\
  |  |   67|  1.68k|	if (!(e)) {							\
  |  |  ------------------
  |  |  |  Branch (67:6): [True: 0, False: 1.68k]
  |  |  ------------------
  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |   70|      0|	}								\
  |  |   71|  1.68k|} while (0)
  |  |  ------------------
  |  |  |  Branch (71:10): [Folded, False: 1.68k]
  |  |  ------------------
  ------------------
  620|       |
  621|  1.68k|	if (vep->startup) {
  ------------------
  |  Branch (621:6): [True: 1.68k, False: 0]
  ------------------
  622|       |		/*
  623|       |		 * We must force the GZIP header out as a SKIP string,
  624|       |		 * otherwise an object starting with <esi:include would
  625|       |		 * have its GZIP header appear after the included object
  626|       |		 * (e000026.vtc)
  627|       |		 */
  628|  1.68k|		vep->ver_p = "";
  629|  1.68k|		vep->last_mark = SKIP;
  630|  1.68k|		vep_mark_common(vep, vep->ver_p, VERBATIM);
  631|  1.68k|		vep->startup = 0;
  632|  1.68k|		AZ(vep->hack_p);
  ------------------
  |  |   83|  1.68k|#define AZ(foo)		do { assert((foo) == 0); } while (0)
  |  |  ------------------
  |  |  |  |   65|  1.68k|#define assert(e)							\
  |  |  |  |   66|  1.68k|do {									\
  |  |  |  |   67|  1.68k|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 1.68k]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|  1.68k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 1.68k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (83:52): [Folded, False: 1.68k]
  |  |  ------------------
  ------------------
  633|  1.68k|		vep->hack_p = p;
  634|  1.68k|	}
  635|       |
  636|  1.68k|	vep->ver_p = p;
  637|       |
  638|  1.68k|	e = p + l;
  639|       |
  640|   647k|	while (p < e) {
  ------------------
  |  Branch (640:9): [True: 645k, False: 1.68k]
  ------------------
  641|   645k|		AN(vep->state);
  ------------------
  |  |   84|   645k|#define AN(foo)		do { assert((foo) != 0); } while (0)
  |  |  ------------------
  |  |  |  |   65|   645k|#define assert(e)							\
  |  |  |  |   66|   645k|do {									\
  |  |  |  |   67|   645k|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 645k]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|   645k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 645k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (84:52): [Folded, False: 645k]
  |  |  ------------------
  ------------------
  642|   645k|		Debug("EP %s %d (%.*s) [%.*s]\n",
  643|   645k|		    vep->state,
  644|   645k|		    vep->remove,
  645|   645k|		    vep->tag_i, vep->tag,
  646|   645k|		    (e - p) > 10 ? 10 : (int)(e-p), p);
  647|   645k|		assert(p >= vep->ver_p);
  ------------------
  |  |   65|   645k|#define assert(e)							\
  |  |   66|   645k|do {									\
  |  |   67|   645k|	if (!(e)) {							\
  |  |  ------------------
  |  |  |  Branch (67:6): [True: 0, False: 645k]
  |  |  ------------------
  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |   70|      0|	}								\
  |  |   71|   645k|} while (0)
  |  |  ------------------
  |  |  |  Branch (71:10): [Folded, False: 645k]
  |  |  ------------------
  ------------------
  648|       |
  649|       |		/******************************************************
  650|       |		 * SECTION A
  651|       |		 */
  652|       |
  653|   645k|		if (vep->state == VEP_START) {
  ------------------
  |  Branch (653:7): [True: 2.02k, False: 643k]
  ------------------
  654|  2.02k|			if (vep->flags.esi_remove_bom &&
  ------------------
  |  Branch (654:8): [True: 1.91k, False: 114]
  ------------------
  655|  1.91k|			    *p == (char)0xef) {
  ------------------
  |  Branch (655:8): [True: 366, False: 1.54k]
  ------------------
  656|    366|				vep->match = vep_match_bom;
  657|    366|				vep->state = VEP_MATCH;
  658|    366|			} else
  659|  1.66k|				vep->state = VEP_BOM;
  660|   643k|		} else if (vep->state == VEP_BOM) {
  ------------------
  |  Branch (660:14): [True: 1.66k, False: 642k]
  ------------------
  661|  1.66k|			vep_mark_skip(vep, p);
  662|  1.66k|			if (vep->flags.esi_disable_xml_check)
  ------------------
  |  Branch (662:8): [True: 1.58k, False: 86]
  ------------------
  663|  1.58k|				vep->state = VEP_NEXTTAG;
  664|     86|			else
  665|     86|				vep->state = VEP_TESTXML;
  666|   642k|		} else if (vep->state == VEP_TESTXML) {
  ------------------
  |  Branch (666:14): [True: 86, False: 642k]
  ------------------
  667|       |			/*
  668|       |			 * If the first non-whitespace char is different
  669|       |			 * from '<' we assume this is not XML.
  670|       |			 */
  671|    351|			while (p < e && vct_islws(*p))
  ------------------
  |  |   72|    342|#define vct_islws(x) vct_is(x, VCT_LWS)
  |  |  ------------------
  |  |  |  |   39|    342|#define VCT_LWS			(VCT_CRLF | VCT_OWS)
  |  |  |  |  ------------------
  |  |  |  |  |  |   38|    342|#define VCT_CRLF		(1<<1)
  |  |  |  |  ------------------
  |  |  |  |               #define VCT_LWS			(VCT_CRLF | VCT_OWS)
  |  |  |  |  ------------------
  |  |  |  |  |  |   37|    342|#define VCT_OWS			(1<<0)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (72:22): [True: 265, False: 77]
  |  |  ------------------
  ------------------
  |  Branch (671:11): [True: 342, False: 9]
  ------------------
  672|    265|				p++;
  673|     86|			vep_mark_verbatim(vep, p);
  674|     86|			if (p < e && *p == '<') {
  ------------------
  |  Branch (674:8): [True: 77, False: 9]
  |  Branch (674:17): [True: 9, False: 68]
  ------------------
  675|      9|				p++;
  676|      9|				vep->state = VEP_STARTTAG;
  677|     77|			} else if (p < e && *p == (char)0xef) {
  ------------------
  |  Branch (677:15): [True: 68, False: 9]
  |  Branch (677:24): [True: 2, False: 66]
  ------------------
  678|      2|				VSLb(vep->vc->wrk->vsl, SLT_ESI_xmlerror,
  679|      2|				    "WARN: No ESI processing, "
  680|      2|				    "first char not '<' but BOM."
  681|      2|				    " (See feature esi_remove_bom)"
  682|      2|				);
  683|      2|				vep->state = VEP_NOTXML;
  684|     75|			} else if (p < e) {
  ------------------
  |  Branch (684:15): [True: 66, False: 9]
  ------------------
  685|     66|				VSLb(vep->vc->wrk->vsl, SLT_ESI_xmlerror,
  686|     66|				    "WARN: No ESI processing, "
  687|     66|				    "first char not '<'."
  688|     66|				    " (See feature esi_disable_xml_check)"
  689|     66|				);
  690|     66|				vep->state = VEP_NOTXML;
  691|     66|			}
  692|   642k|		} else if (vep->state == VEP_NOTXML) {
  ------------------
  |  Branch (692:14): [True: 68, False: 641k]
  ------------------
  693|       |			/*
  694|       |			 * This is not recognized as XML, just skip thru
  695|       |			 * vfp_esi_end() will handle the rest
  696|       |			 */
  697|     68|			p = e;
  698|     68|			vep_mark_verbatim(vep, p);
  699|       |
  700|       |		/******************************************************
  701|       |		 * SECTION B
  702|       |		 */
  703|       |
  704|   641k|		} else if (vep->state == VEP_NOTMYTAG) {
  ------------------
  |  Branch (704:14): [True: 21.5k, False: 620k]
  ------------------
  705|  21.5k|			if (vep->flags.esi_ignore_other_elements) {
  ------------------
  |  Branch (705:8): [True: 20.4k, False: 1.08k]
  ------------------
  706|  20.4k|				p++;
  707|  20.4k|				vep->state = VEP_NEXTTAG;
  708|  20.4k|			} else {
  709|  1.08k|				vep->tag_i = 0;
  710|   510k|				while (p < e) {
  ------------------
  |  Branch (710:12): [True: 510k, False: 13]
  ------------------
  711|   510k|					if (*p++ == '>') {
  ------------------
  |  Branch (711:10): [True: 1.06k, False: 509k]
  ------------------
  712|  1.06k|						vep->state = VEP_NEXTTAG;
  713|  1.06k|						break;
  714|  1.06k|					}
  715|   510k|				}
  716|  1.08k|			}
  717|  21.5k|			if (p == e && !vep->remove)
  ------------------
  |  Branch (717:8): [True: 48, False: 21.4k]
  |  Branch (717:18): [True: 47, False: 1]
  ------------------
  718|     47|				vep_mark_verbatim(vep, p);
  719|   620k|		} else if (vep->state == VEP_NEXTTAG) {
  ------------------
  |  Branch (719:14): [True: 97.6k, False: 522k]
  ------------------
  720|       |			/*
  721|       |			 * Hunt for start of next tag and keep an eye
  722|       |			 * out for end of EsiCmt if armed.
  723|       |			 */
  724|  97.6k|			vep->emptytag = 0;
  725|  97.6k|			vep->attr = NULL;
  726|  97.6k|			vep->dostuff = NULL;
  727|  12.3M|			while (p < e && *p != '<') {
  ------------------
  |  Branch (727:11): [True: 12.3M, False: 322]
  |  Branch (727:20): [True: 12.2M, False: 97.3k]
  ------------------
  728|  12.2M|				if (vep->esicmt_p == NULL) {
  ------------------
  |  Branch (728:9): [True: 11.9M, False: 251k]
  ------------------
  729|  11.9M|					p++;
  730|  11.9M|					continue;
  731|  11.9M|				}
  732|   251k|				if (*p != *vep->esicmt_p) {
  ------------------
  |  Branch (732:9): [True: 140k, False: 111k]
  ------------------
  733|   140k|					p++;
  734|   140k|					vep->esicmt_p = vep->esicmt;
  735|   140k|					continue;
  736|   140k|				}
  737|   111k|				if (!vep->remove && vep->esicmt_p == vep->esicmt)
  ------------------
  |  Branch (737:9): [True: 109k, False: 1.40k]
  |  Branch (737:25): [True: 37.9k, False: 71.9k]
  ------------------
  738|  37.9k|					vep_mark_verbatim(vep, p);
  739|   111k|				p++;
  740|   111k|				if (*++vep->esicmt_p == '\0') {
  ------------------
  |  Branch (740:9): [True: 35.8k, False: 75.3k]
  ------------------
  741|  35.8k|					vep->esi_found = 1;
  742|  35.8k|					vep->esicmt = NULL;
  743|  35.8k|					vep->esicmt_p = NULL;
  744|       |					/*
  745|       |					 * The end of the esicmt
  746|       |					 * should not be emitted.
  747|       |					 * But the stuff before should
  748|       |					 */
  749|  35.8k|					vep_mark_skip(vep, p);
  750|  35.8k|				}
  751|   111k|			}
  752|  97.6k|			if (p < e) {
  ------------------
  |  Branch (752:8): [True: 97.3k, False: 322]
  ------------------
  753|  97.3k|				if (!vep->remove)
  ------------------
  |  Branch (753:9): [True: 85.0k, False: 12.3k]
  ------------------
  754|  85.0k|					vep_mark_verbatim(vep, p);
  755|  97.3k|				assert(*p == '<');
  ------------------
  |  |   65|  97.3k|#define assert(e)							\
  |  |   66|  97.3k|do {									\
  |  |   67|  97.3k|	if (!(e)) {							\
  |  |  ------------------
  |  |  |  Branch (67:6): [True: 0, False: 97.3k]
  |  |  ------------------
  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |   70|      0|	}								\
  |  |   71|  97.3k|} while (0)
  |  |  ------------------
  |  |  |  Branch (71:10): [Folded, False: 97.3k]
  |  |  ------------------
  ------------------
  756|  97.3k|				p++;
  757|  97.3k|				vep->state = VEP_STARTTAG;
  758|  97.3k|			} else if (vep->esicmt_p == vep->esicmt && !vep->remove)
  ------------------
  |  Branch (758:15): [True: 244, False: 78]
  |  Branch (758:47): [True: 230, False: 14]
  ------------------
  759|    230|				vep_mark_verbatim(vep, p);
  760|       |
  761|       |		/******************************************************
  762|       |		 * SECTION C
  763|       |		 */
  764|       |
  765|   522k|		} else if (vep->state == VEP_STARTTAG) {
  ------------------
  |  Branch (765:14): [True: 97.2k, False: 425k]
  ------------------
  766|       |			/* Start of tag, set up match table */
  767|  97.2k|			vep->endtag = 0;
  768|  97.2k|			vep->match = vep_match_starttag;
  769|  97.2k|			vep->state = VEP_MATCH;
  770|   425k|		} else if (vep->state == VEP_COMMENT) {
  ------------------
  |  Branch (770:14): [True: 2.56k, False: 422k]
  ------------------
  771|  2.56k|			vep->esicmt_p = vep->esicmt = NULL;
  772|  2.56k|			vep->until_p = vep->until = "-->";
  773|  2.56k|			vep->until_s = VEP_NEXTTAG;
  774|  2.56k|			vep->state = VEP_UNTIL;
  775|   422k|		} else if (vep->state == VEP_COMMENTESI) {
  ------------------
  |  Branch (775:14): [True: 36.6k, False: 386k]
  ------------------
  776|  36.6k|			if (vep->remove)
  ------------------
  |  Branch (776:8): [True: 570, False: 36.0k]
  ------------------
  777|    570|				vep_error(vep,
  778|    570|				    "ESI 1.0 Nested <!--esi"
  779|    570|				    " element in <esi:remove>");
  780|  36.6k|			vep->esicmt_p = vep->esicmt = "-->";
  781|  36.6k|			vep->state = VEP_NEXTTAG;
  782|  36.6k|			vep_mark_skip(vep, p);
  783|   386k|		} else if (vep->state == VEP_CDATA) {
  ------------------
  |  Branch (783:14): [True: 610, False: 385k]
  ------------------
  784|       |			/*
  785|       |			 * Easy: just look for the end of CDATA
  786|       |			 */
  787|    610|			vep->until_p = vep->until = "]]>";
  788|    610|			vep->until_s = VEP_NEXTTAG;
  789|    610|			vep->state = VEP_UNTIL;
  790|   385k|		} else if (vep->state == VEP_ESIENDTAG) {
  ------------------
  |  Branch (790:14): [True: 4.54k, False: 381k]
  ------------------
  791|  4.54k|			vep->endtag = 1;
  792|  4.54k|			vep->state = VEP_ESITAG;
  793|   381k|		} else if (vep->state == VEP_ESITAG) {
  ------------------
  |  Branch (793:14): [True: 35.5k, False: 345k]
  ------------------
  794|  35.5k|			vep->in_esi_tag = 1;
  795|  35.5k|			vep->esi_found = 1;
  796|  35.5k|			vep_mark_skip(vep, p);
  797|  35.5k|			vep->match = vep_match_esi;
  798|  35.5k|			vep->state = VEP_MATCH;
  799|   345k|		} else if (vep->state == VEP_ESIINCLUDE) {
  ------------------
  |  Branch (799:14): [True: 16.7k, False: 328k]
  ------------------
  800|  16.7k|			if (vep->remove) {
  ------------------
  |  Branch (800:8): [True: 3.10k, False: 13.6k]
  ------------------
  801|  3.10k|				vep_error(vep,
  802|  3.10k|				    "ESI 1.0 <esi:include> element"
  803|  3.10k|				    " nested in <esi:remove>");
  804|  3.10k|				vep->state = VEP_TAGERROR;
  805|  13.6k|			} else if (vep->endtag) {
  ------------------
  |  Branch (805:15): [True: 208, False: 13.4k]
  ------------------
  806|    208|				vep_error(vep,
  807|    208|				    "ESI 1.0 </esi:include> illegal end-tag");
  808|    208|				vep->state = VEP_TAGERROR;
  809|  13.4k|			} else {
  810|  13.4k|				vep->dostuff = vep_do_include;
  811|  13.4k|				vep->state = VEP_INTAG;
  812|  13.4k|				vep->attr = vep_match_attr_include;
  813|  13.4k|			}
  814|   328k|		} else if (vep->state == VEP_ESIREMOVE) {
  ------------------
  |  Branch (814:14): [True: 9.31k, False: 319k]
  ------------------
  815|  9.31k|			vep->dostuff = vep_do_remove;
  816|  9.31k|			vep->state = VEP_INTAG;
  817|   319k|		} else if (vep->state == VEP_ESICOMMENT) {
  ------------------
  |  Branch (817:14): [True: 3.07k, False: 316k]
  ------------------
  818|  3.07k|			if (vep->remove) {
  ------------------
  |  Branch (818:8): [True: 613, False: 2.46k]
  ------------------
  819|    613|				vep_error(vep,
  820|    613|				    "ESI 1.0 <esi:comment> element"
  821|    613|				    " nested in <esi:remove>");
  822|    613|				vep->state = VEP_TAGERROR;
  823|  2.46k|			} else if (vep->endtag) {
  ------------------
  |  Branch (823:15): [True: 375, False: 2.08k]
  ------------------
  824|    375|				vep_error(vep,
  825|    375|				    "ESI 1.0 </esi:comment> illegal end-tag");
  826|    375|				vep->state = VEP_TAGERROR;
  827|  2.08k|			} else {
  828|  2.08k|				vep->dostuff = vep_do_comment;
  829|  2.08k|				vep->state = VEP_INTAG;
  830|  2.08k|			}
  831|   316k|		} else if (vep->state == VEP_ESIBOGON) {
  ------------------
  |  Branch (831:14): [True: 6.37k, False: 310k]
  ------------------
  832|  6.37k|			vep_error(vep,
  833|  6.37k|			    "ESI 1.0 <esi:bogus> element");
  834|  6.37k|			vep->state = VEP_TAGERROR;
  835|       |
  836|       |		/******************************************************
  837|       |		 * SECTION D
  838|       |		 */
  839|       |
  840|   310k|		} else if (vep->state == VEP_INTAG) {
  ------------------
  |  Branch (840:14): [True: 46.0k, False: 264k]
  ------------------
  841|  46.0k|			vep->tag_i = 0;
  842|  54.3k|			while (p < e && vct_islws(*p) && !vep->emptytag) {
  ------------------
  |  |   72|   108k|#define vct_islws(x) vct_is(x, VCT_LWS)
  |  |  ------------------
  |  |  |  |   39|  54.3k|#define VCT_LWS			(VCT_CRLF | VCT_OWS)
  |  |  |  |  ------------------
  |  |  |  |  |  |   38|  54.3k|#define VCT_CRLF		(1<<1)
  |  |  |  |  ------------------
  |  |  |  |               #define VCT_LWS			(VCT_CRLF | VCT_OWS)
  |  |  |  |  ------------------
  |  |  |  |  |  |   37|  54.3k|#define VCT_OWS			(1<<0)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (72:22): [True: 8.28k, False: 46.0k]
  |  |  ------------------
  ------------------
  |  Branch (842:11): [True: 54.3k, False: 19]
  |  Branch (842:37): [True: 8.28k, False: 0]
  ------------------
  843|  8.28k|				p++;
  844|  8.28k|				vep->canattr = 1;
  845|  8.28k|			}
  846|  46.0k|			if (p < e && *p == '/' && !vep->emptytag) {
  ------------------
  |  Branch (846:8): [True: 46.0k, False: 19]
  |  Branch (846:17): [True: 3.36k, False: 42.6k]
  |  Branch (846:30): [True: 3.36k, False: 0]
  ------------------
  847|  3.36k|				p++;
  848|  3.36k|				vep->emptytag = 1;
  849|  3.36k|				vep->canattr = 0;
  850|  3.36k|			}
  851|  46.0k|			if (p < e && *p == '>') {
  ------------------
  |  Branch (851:8): [True: 46.0k, False: 31]
  |  Branch (851:17): [True: 16.1k, False: 29.8k]
  ------------------
  852|  16.1k|				p++;
  853|  16.1k|				AN(vep->dostuff);
  ------------------
  |  |   84|  16.1k|#define AN(foo)		do { assert((foo) != 0); } while (0)
  |  |  ------------------
  |  |  |  |   65|  16.1k|#define assert(e)							\
  |  |  |  |   66|  16.1k|do {									\
  |  |  |  |   67|  16.1k|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 16.1k]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|  16.1k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 16.1k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (84:52): [Folded, False: 16.1k]
  |  |  ------------------
  ------------------
  854|  16.1k|				vep_mark_skip(vep, p);
  855|  16.1k|				vep->dostuff(vep, DO_TAG);
  856|  16.1k|				vep->in_esi_tag = 0;
  857|  16.1k|				vep->state = VEP_NEXTTAG;
  858|  29.8k|			} else if (p < e && vep->emptytag) {
  ------------------
  |  Branch (858:15): [True: 29.8k, False: 31]
  |  Branch (858:24): [True: 939, False: 28.9k]
  ------------------
  859|    939|				vep_error(vep,
  860|    939|				    "XML 1.0 '>' does not follow '/' in tag");
  861|    939|				vep->state = VEP_TAGERROR;
  862|  28.9k|			} else if (p < e && vep->canattr &&
  ------------------
  |  Branch (862:15): [True: 28.9k, False: 31]
  |  Branch (862:24): [True: 27.5k, False: 1.39k]
  ------------------
  863|  27.5k|			    vct_isxmlnamestart(*p)) {
  ------------------
  |  |   85|  27.5k|#define vct_isxmlnamestart(x) vct_is(x, VCT_XMLNAMESTART)
  |  |  ------------------
  |  |  |  |   45|  27.5k|#define VCT_XMLNAMESTART	(1<<7)
  |  |  ------------------
  |  |  |  Branch (85:31): [True: 25.5k, False: 1.94k]
  |  |  ------------------
  ------------------
  864|  25.5k|				vep->state = VEP_ATTR;
  865|  25.5k|			} else if (p < e) {
  ------------------
  |  Branch (865:15): [True: 3.33k, False: 31]
  ------------------
  866|  3.33k|				vep_error(vep,
  867|  3.33k|				    "XML 1.0 Illegal attribute start char");
  868|  3.33k|				vep->state = VEP_TAGERROR;
  869|  3.33k|			}
  870|   264k|		} else if (vep->state == VEP_TAGERROR) {
  ------------------
  |  Branch (870:14): [True: 19.1k, False: 244k]
  ------------------
  871|  5.35M|			while (p < e && *p != '>')
  ------------------
  |  Branch (871:11): [True: 5.35M, False: 141]
  |  Branch (871:20): [True: 5.33M, False: 18.9k]
  ------------------
  872|  5.33M|				p++;
  873|  19.1k|			if (p < e) {
  ------------------
  |  Branch (873:8): [True: 18.9k, False: 141]
  ------------------
  874|  18.9k|				p++;
  875|  18.9k|				vep_mark_skip(vep, p);
  876|  18.9k|				vep->in_esi_tag = 0;
  877|  18.9k|				vep->state = VEP_NEXTTAG;
  878|  18.9k|				if (vep->attr_vsb)
  ------------------
  |  Branch (878:9): [True: 506, False: 18.4k]
  ------------------
  879|    506|					VSB_destroy(&vep->attr_vsb);
  880|  18.9k|			}
  881|       |
  882|       |		/******************************************************
  883|       |		 * SECTION E
  884|       |		 */
  885|       |
  886|   244k|		} else if (vep->state == VEP_ATTR) {
  ------------------
  |  Branch (886:14): [True: 25.5k, False: 219k]
  ------------------
  887|  25.5k|			AZ(vep->attr_delim);
  ------------------
  |  |   83|  25.5k|#define AZ(foo)		do { assert((foo) == 0); } while (0)
  |  |  ------------------
  |  |  |  |   65|  25.5k|#define assert(e)							\
  |  |  |  |   66|  25.5k|do {									\
  |  |  |  |   67|  25.5k|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 25.5k]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|  25.5k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 25.5k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (83:52): [Folded, False: 25.5k]
  |  |  ------------------
  ------------------
  888|  25.5k|			if (vep->attr == NULL) {
  ------------------
  |  Branch (888:8): [True: 9.35k, False: 16.2k]
  ------------------
  889|  9.35k|				p++;
  890|  9.35k|				AZ(vep->attr_vsb);
  ------------------
  |  |   83|  9.35k|#define AZ(foo)		do { assert((foo) == 0); } while (0)
  |  |  ------------------
  |  |  |  |   65|  9.35k|#define assert(e)							\
  |  |  |  |   66|  9.35k|do {									\
  |  |  |  |   67|  9.35k|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 9.35k]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|  9.35k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 9.35k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (83:52): [Folded, False: 9.35k]
  |  |  ------------------
  ------------------
  891|  9.35k|				vep->state = VEP_SKIPATTR;
  892|  16.2k|			} else {
  893|  16.2k|				vep->match = vep->attr;
  894|  16.2k|				vep->state = VEP_MATCH;
  895|  16.2k|			}
  896|   219k|		} else if (vep->state == VEP_SKIPATTR) {
  ------------------
  |  Branch (896:14): [True: 15.2k, False: 204k]
  ------------------
  897|  46.2k|			while (p < e && vct_isxmlname(*p))
  ------------------
  |  |   86|  46.2k|#define vct_isxmlname(x) vct_is(x, VCT_XMLNAMESTART | VCT_XMLNAME)
  |  |  ------------------
  |  |  |  |   45|  46.2k|#define VCT_XMLNAMESTART	(1<<7)
  |  |  ------------------
  |  |               #define vct_isxmlname(x) vct_is(x, VCT_XMLNAMESTART | VCT_XMLNAME)
  |  |  ------------------
  |  |  |  |   46|  46.2k|#define VCT_XMLNAME		(1<<8)
  |  |  ------------------
  |  |  |  Branch (86:26): [True: 30.9k, False: 15.2k]
  |  |  ------------------
  ------------------
  |  Branch (897:11): [True: 46.2k, False: 14]
  ------------------
  898|  30.9k|				p++;
  899|  15.2k|			if (p < e && *p == '=') {
  ------------------
  |  Branch (899:8): [True: 15.2k, False: 14]
  |  Branch (899:17): [True: 10.7k, False: 4.55k]
  ------------------
  900|  10.7k|				p++;
  901|  10.7k|				vep->state = VEP_ATTRDELIM;
  902|  10.7k|			} else if (p < e && *p == '>') {
  ------------------
  |  Branch (902:15): [True: 4.55k, False: 14]
  |  Branch (902:24): [True: 565, False: 3.99k]
  ------------------
  903|    565|				vep->state = VEP_INTAG;
  904|  4.00k|			} else if (p < e && *p == '/') {
  ------------------
  |  Branch (904:15): [True: 3.99k, False: 14]
  |  Branch (904:24): [True: 1.02k, False: 2.96k]
  ------------------
  905|  1.02k|				vep->state = VEP_INTAG;
  906|  2.98k|			} else if (p < e && vct_issp(*p)) {
  ------------------
  |  |   70|  2.96k|#define vct_issp(x) vct_is(x, VCT_OWS)
  |  |  ------------------
  |  |  |  |   37|  2.96k|#define VCT_OWS			(1<<0)
  |  |  ------------------
  |  |  |  Branch (70:21): [True: 2.37k, False: 592]
  |  |  ------------------
  ------------------
  |  Branch (906:15): [True: 2.96k, False: 14]
  ------------------
  907|  2.37k|				vep->state = VEP_INTAG;
  908|  2.37k|			} else if (p < e) {
  ------------------
  |  Branch (908:15): [True: 592, False: 14]
  ------------------
  909|    592|				vep_error(vep,
  910|    592|				    "XML 1.0 Illegal attr char");
  911|    592|				vep->state = VEP_TAGERROR;
  912|    592|			}
  913|   204k|		} else if (vep->state == VEP_ATTRGETVAL) {
  ------------------
  |  Branch (913:14): [True: 10.2k, False: 193k]
  ------------------
  914|  10.2k|			AZ(vep->attr_vsb);
  ------------------
  |  |   83|  10.2k|#define AZ(foo)		do { assert((foo) == 0); } while (0)
  |  |  ------------------
  |  |  |  |   65|  10.2k|#define assert(e)							\
  |  |  |  |   66|  10.2k|do {									\
  |  |  |  |   67|  10.2k|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 10.2k]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|  10.2k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 10.2k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (83:52): [Folded, False: 10.2k]
  |  |  ------------------
  ------------------
  915|  10.2k|			vep->attr_vsb = VSB_new_auto();
  916|  10.2k|			vep->state = VEP_ATTRDELIM;
  917|   193k|		} else if (vep->state == VEP_ATTRDELIM) {
  ------------------
  |  Branch (917:14): [True: 21.0k, False: 172k]
  ------------------
  918|  21.0k|			AZ(vep->attr_delim);
  ------------------
  |  |   83|  21.0k|#define AZ(foo)		do { assert((foo) == 0); } while (0)
  |  |  ------------------
  |  |  |  |   65|  21.0k|#define assert(e)							\
  |  |  |  |   66|  21.0k|do {									\
  |  |  |  |   67|  21.0k|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 21.0k]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|  21.0k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 21.0k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (83:52): [Folded, False: 21.0k]
  |  |  ------------------
  ------------------
  919|  21.0k|			if (*p == '"' || *p == '\'') {
  ------------------
  |  Branch (919:8): [True: 720, False: 20.2k]
  |  Branch (919:21): [True: 456, False: 19.8k]
  ------------------
  920|  1.17k|				vep->attr_delim = *p++;
  921|  1.17k|				vep->state = VEP_ATTRVAL;
  922|  19.8k|			} else if (!vct_issp(*p)) {
  ------------------
  |  |   70|  19.8k|#define vct_issp(x) vct_is(x, VCT_OWS)
  |  |  ------------------
  |  |  |  |   37|  19.8k|#define VCT_OWS			(1<<0)
  |  |  ------------------
  ------------------
  |  Branch (922:15): [True: 19.0k, False: 784]
  ------------------
  923|  19.0k|				vep->attr_delim = ' ';
  924|  19.0k|				vep->state = VEP_ATTRVAL;
  925|  19.0k|			} else {
  926|    784|				vep_error(vep,
  927|    784|				    "XML 1.0 Illegal attribute delimiter");
  928|    784|				vep->state = VEP_TAGERROR;
  929|    784|			}
  930|       |
  931|   172k|		} else if (vep->state == VEP_ATTRVAL) {
  ------------------
  |  Branch (931:14): [True: 20.2k, False: 152k]
  ------------------
  932|  16.9M|			while (p < e && *p != '>' && *p != vep->attr_delim &&
  ------------------
  |  Branch (932:11): [True: 16.9M, False: 93]
  |  Branch (932:20): [True: 16.9M, False: 1.56k]
  |  Branch (932:33): [True: 16.9M, False: 17.0k]
  ------------------
  933|  16.9M|			   (vep->attr_delim != ' ' || !vct_issp(*p))) {
  ------------------
  |  |   70|  16.9M|#define vct_issp(x) vct_is(x, VCT_OWS)
  |  |  ------------------
  |  |  |  |   37|  16.9M|#define VCT_OWS			(1<<0)
  |  |  ------------------
  ------------------
  |  Branch (933:8): [True: 10.0k, False: 16.9M]
  |  Branch (933:34): [True: 16.9M, False: 1.45k]
  ------------------
  934|  16.9M|				if (vep->attr_vsb != NULL)
  ------------------
  |  Branch (934:9): [True: 16.8M, False: 109k]
  ------------------
  935|  16.8M|					VSB_putc(vep->attr_vsb, *p);
  936|  16.9M|				p++;
  937|  16.9M|			}
  938|  20.2k|			if (p < e && *p == '>') {
  ------------------
  |  Branch (938:8): [True: 20.1k, False: 93]
  |  Branch (938:17): [True: 1.56k, False: 18.5k]
  ------------------
  939|  1.56k|				vep_error(vep,
  940|  1.56k|				    "XML 1.0 Missing end attribute delimiter");
  941|  1.56k|				vep->state = VEP_TAGERROR;
  942|  1.56k|				vep->attr_delim = 0;
  943|  1.56k|				if (vep->attr_vsb != NULL) {
  ------------------
  |  Branch (943:9): [True: 810, False: 755]
  ------------------
  944|    810|					AZ(VSB_finish(vep->attr_vsb));
  ------------------
  |  |   83|    810|#define AZ(foo)		do { assert((foo) == 0); } while (0)
  |  |  ------------------
  |  |  |  |   65|    810|#define assert(e)							\
  |  |  |  |   66|    810|do {									\
  |  |  |  |   67|    810|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 810]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|    810|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 810]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (83:52): [Folded, False: 810]
  |  |  ------------------
  ------------------
  945|    810|					VSB_destroy(&vep->attr_vsb);
  946|    810|				}
  947|  18.6k|			} else if (p < e) {
  ------------------
  |  Branch (947:15): [True: 18.5k, False: 93]
  ------------------
  948|  18.5k|				vep->attr_delim = 0;
  949|  18.5k|				p++;
  950|  18.5k|				vep->state = VEP_INTAG;
  951|  18.5k|				if (vep->attr_vsb != NULL) {
  ------------------
  |  Branch (951:9): [True: 8.92k, False: 9.62k]
  ------------------
  952|  8.92k|					AZ(VSB_finish(vep->attr_vsb));
  ------------------
  |  |   83|  8.92k|#define AZ(foo)		do { assert((foo) == 0); } while (0)
  |  |  ------------------
  |  |  |  |   65|  8.92k|#define assert(e)							\
  |  |  |  |   66|  8.92k|do {									\
  |  |  |  |   67|  8.92k|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 8.92k]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|  8.92k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 8.92k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (83:52): [Folded, False: 8.92k]
  |  |  ------------------
  ------------------
  953|  8.92k|					AN(vep->dostuff);
  ------------------
  |  |   84|  8.92k|#define AN(foo)		do { assert((foo) != 0); } while (0)
  |  |  ------------------
  |  |  |  |   65|  8.92k|#define assert(e)							\
  |  |  |  |   66|  8.92k|do {									\
  |  |  |  |   67|  8.92k|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 8.92k]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|  8.92k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 8.92k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (84:52): [Folded, False: 8.92k]
  |  |  ------------------
  ------------------
  954|  8.92k|					vep->dostuff(vep, DO_ATTR);
  955|  8.92k|					vep->attr_vsb = NULL;
  956|  8.92k|				}
  957|  18.5k|			}
  958|       |
  959|       |		/******************************************************
  960|       |		 * Utility Section
  961|       |		 */
  962|       |
  963|   152k|		} else if (vep->state == VEP_MATCH) {
  ------------------
  |  Branch (963:14): [True: 149k, False: 3.17k]
  ------------------
  964|       |			/*
  965|       |			 * Match against a table
  966|       |			 */
  967|   149k|			vm = vep_match(vep, p, e);
  968|   149k|			vep->match_hit = vm;
  969|   149k|			if (vm != NULL) {
  ------------------
  |  Branch (969:8): [True: 149k, False: 32]
  ------------------
  970|   149k|				if (vm->match != NULL)
  ------------------
  |  Branch (970:9): [True: 115k, False: 33.8k]
  ------------------
  971|   115k|					p += vstrlen(vm->match);
  ------------------
  |  |  453|   115k|#  define vstrlen(s) __builtin_strlen(s)
  ------------------
  972|   149k|				vep->state = *vm->state;
  973|   149k|				vep->match = NULL;
  974|   149k|				vep->tag_i = 0;
  975|   149k|			} else {
  976|     32|				assert(p + sizeof(vep->tag) >= e);
  ------------------
  |  |   65|     32|#define assert(e)							\
  |  |   66|     32|do {									\
  |  |   67|     32|	if (!(e)) {							\
  |  |  ------------------
  |  |  |  Branch (67:6): [True: 0, False: 32]
  |  |  ------------------
  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |   70|      0|	}								\
  |  |   71|     32|} while (0)
  |  |  ------------------
  |  |  |  Branch (71:10): [Folded, False: 32]
  |  |  ------------------
  ------------------
  977|     32|				vmemcpy(vep->tag, p, e - p);
  ------------------
  |  |  466|     32|#  define vmemcpy(d, s, n) __builtin_memcpy(d, s, n)
  ------------------
  978|     32|				vep->tag_i = e - p;
  979|     32|				vep->state = VEP_MATCHBUF;
  980|     32|				p = e;
  981|     32|			}
  982|   149k|		} else if (vep->state == VEP_MATCHBUF) {
  ------------------
  |  Branch (982:14): [True: 0, False: 3.17k]
  ------------------
  983|       |			/*
  984|       |			 * Match against a table while split over input
  985|       |			 * sections.
  986|       |			 */
  987|      0|			AN(vep->match);
  ------------------
  |  |   84|      0|#define AN(foo)		do { assert((foo) != 0); } while (0)
  |  |  ------------------
  |  |  |  |   65|      0|#define assert(e)							\
  |  |  |  |   66|      0|do {									\
  |  |  |  |   67|      0|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|      0|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (84:52): [Folded, False: 0]
  |  |  ------------------
  ------------------
  988|      0|			i = sizeof(vep->tag) - vep->tag_i;
  989|      0|			if (i > e - p)
  ------------------
  |  Branch (989:8): [True: 0, False: 0]
  ------------------
  990|      0|				i = e - p;
  991|      0|			vmemcpy(vep->tag + vep->tag_i, p, i);
  ------------------
  |  |  466|      0|#  define vmemcpy(d, s, n) __builtin_memcpy(d, s, n)
  ------------------
  992|      0|			vm = vep_match(vep, vep->tag,
  993|      0|			    vep->tag + vep->tag_i + i);
  994|      0|			Debug("MB (%.*s) tag_i %d i %d = vm %p match %s\n",
  995|      0|			    vep->tag_i + i, vep->tag,
  996|      0|			    vep->tag_i,
  997|      0|			    i,
  998|      0|			    vm,
  999|      0|			    vm ? vm->match : "(nil)");
 1000|       |
 1001|      0|			if (vm == NULL) {
  ------------------
  |  Branch (1001:8): [True: 0, False: 0]
  ------------------
 1002|      0|				vep->tag_i += i;
 1003|      0|				p += i;
 1004|      0|				assert(p == e);
  ------------------
  |  |   65|      0|#define assert(e)							\
  |  |   66|      0|do {									\
  |  |   67|      0|	if (!(e)) {							\
  |  |  ------------------
  |  |  |  Branch (67:6): [True: 0, False: 0]
  |  |  ------------------
  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |   70|      0|	}								\
  |  |   71|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (71:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1005|      0|			} else {
 1006|      0|				vep->match_hit = vm;
 1007|      0|				vep->state = *vm->state;
 1008|      0|				if (vm->match != NULL) {
  ------------------
  |  Branch (1008:9): [True: 0, False: 0]
  ------------------
 1009|      0|					i = vstrlen(vm->match);
  ------------------
  |  |  453|      0|#  define vstrlen(s) __builtin_strlen(s)
  ------------------
 1010|      0|					if (i > vep->tag_i)
  ------------------
  |  Branch (1010:10): [True: 0, False: 0]
  ------------------
 1011|      0|						p += i - vep->tag_i;
 1012|      0|				}
 1013|      0|				vep->match = NULL;
 1014|      0|				vep->tag_i = 0;
 1015|      0|			}
 1016|  3.17k|		} else if (vep->state == VEP_UNTIL) {
  ------------------
  |  Branch (1016:14): [True: 3.17k, False: 0]
  ------------------
 1017|       |			/*
 1018|       |			 * Skip until we see magic string
 1019|       |			 */
 1020|  10.9M|			while (p < e) {
  ------------------
  |  Branch (1020:11): [True: 10.9M, False: 61]
  ------------------
 1021|  10.9M|				if (*p++ != *vep->until_p++) {
  ------------------
  |  Branch (1021:9): [True: 10.8M, False: 29.1k]
  ------------------
 1022|  10.8M|					vep->until_p = vep->until;
 1023|  10.8M|				} else if (*vep->until_p == '\0') {
  ------------------
  |  Branch (1023:16): [True: 3.11k, False: 26.0k]
  ------------------
 1024|  3.11k|					vep->state = vep->until_s;
 1025|  3.11k|					break;
 1026|  3.11k|				}
 1027|  10.9M|			}
 1028|  3.17k|			if (p == e && !vep->remove)
  ------------------
  |  Branch (1028:8): [True: 70, False: 3.10k]
  |  Branch (1028:18): [True: 67, False: 3]
  ------------------
 1029|     67|				vep_mark_verbatim(vep, p);
 1030|  3.17k|		} else {
 1031|      0|			Debug("*** Unknown state %s\n", vep->state);
 1032|      0|			WRONG("WRONG ESI PARSER STATE");
  ------------------
  |  |   88|      0|#define WRONG(expl)							\
  |  |   89|      0|do {									\
  |  |   90|      0|	VAS_Fail(__func__, __FILE__, __LINE__, expl, VAS_WRONG);	\
  |  |   91|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (91:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1033|      0|		}
 1034|   645k|	}
 1035|       |	/*
 1036|       |	 * We must always mark up the storage we got, try to do so
 1037|       |	 * in the most efficient way, in particular with respect to
 1038|       |	 * minimizing and limiting use of pending.
 1039|       |	 */
 1040|  1.68k|	if (p == vep->ver_p)
  ------------------
  |  Branch (1040:6): [True: 1.06k, False: 614]
  ------------------
 1041|  1.06k|		;
 1042|    614|	else if (vep->in_esi_tag)
  ------------------
  |  Branch (1042:11): [True: 372, False: 242]
  ------------------
 1043|    372|		vep_mark_skip(vep, p);
 1044|    242|	else if (vep->remove)
  ------------------
  |  Branch (1044:11): [True: 34, False: 208]
  ------------------
 1045|     34|		vep_mark_skip(vep, p);
 1046|    208|	else
 1047|    208|		vep_mark_pending(vep, p);
 1048|  1.68k|}
VEP_Init:
 1072|  1.68k|{
 1073|  1.68k|	struct vep_state *vep;
 1074|       |
 1075|  1.68k|	CHECK_OBJ_NOTNULL(vc, VFP_CTX_MAGIC);
  ------------------
  |  |   66|  1.68k|	do {								\
  |  |   67|  1.68k|		assert((ptr) != NULL);					\
  |  |  ------------------
  |  |  |  |   65|  1.68k|#define assert(e)							\
  |  |  |  |   66|  1.68k|do {									\
  |  |  |  |   67|  1.68k|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 1.68k]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|  1.68k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 1.68k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   68|  1.68k|		assert((ptr)->magic == type_magic);			\
  |  |  ------------------
  |  |  |  |   65|  1.68k|#define assert(e)							\
  |  |  |  |   66|  1.68k|do {									\
  |  |  |  |   67|  1.68k|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 1.68k]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|  1.68k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 1.68k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   69|  1.68k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (69:11): [Folded, False: 1.68k]
  |  |  ------------------
  ------------------
 1076|  1.68k|	CHECK_OBJ_NOTNULL(req, HTTP_MAGIC);
  ------------------
  |  |   66|  1.68k|	do {								\
  |  |   67|  1.68k|		assert((ptr) != NULL);					\
  |  |  ------------------
  |  |  |  |   65|  1.68k|#define assert(e)							\
  |  |  |  |   66|  1.68k|do {									\
  |  |  |  |   67|  1.68k|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 1.68k]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|  1.68k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 1.68k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   68|  1.68k|		assert((ptr)->magic == type_magic);			\
  |  |  ------------------
  |  |  |  |   65|  1.68k|#define assert(e)							\
  |  |  |  |   66|  1.68k|do {									\
  |  |  |  |   67|  1.68k|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 1.68k]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|  1.68k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 1.68k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   69|  1.68k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (69:11): [Folded, False: 1.68k]
  |  |  ------------------
  ------------------
 1077|  1.68k|	vep = WS_Alloc(vc->resp->ws, sizeof *vep);
 1078|  1.68k|	if (vep == NULL) {
  ------------------
  |  Branch (1078:6): [True: 0, False: 1.68k]
  ------------------
 1079|      0|		VSLb(vc->wrk->vsl, SLT_VCL_Error,
 1080|      0|		     "VEP_Init() workspace overflow");
 1081|      0|		return (NULL);
 1082|      0|	}
 1083|       |
 1084|  1.68k|	INIT_OBJ(vep, VEP_MAGIC);
  ------------------
  |  |   15|  1.68k|	do {								\
  |  |   16|  1.68k|		(void)memset(to, 0, sizeof *(to));			\
  |  |   17|  1.68k|		(to)->magic = (type_magic);				\
  |  |   18|  1.68k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (18:11): [Folded, False: 1.68k]
  |  |  ------------------
  ------------------
 1085|  1.68k|	vep->flags = flags;
 1086|  1.68k|	vep->url = req->hd[HTTP_HDR_URL].b;
 1087|  1.68k|	vep->vc = vc;
 1088|  1.68k|	vep->vsb = VSB_new_auto();
 1089|  1.68k|	AN(vep->vsb);
  ------------------
  |  |   84|  1.68k|#define AN(foo)		do { assert((foo) != 0); } while (0)
  |  |  ------------------
  |  |  |  |   65|  1.68k|#define assert(e)							\
  |  |  |  |   66|  1.68k|do {									\
  |  |  |  |   67|  1.68k|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 1.68k]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|  1.68k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 1.68k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (84:52): [Folded, False: 1.68k]
  |  |  ------------------
  ------------------
 1090|       |
 1091|  1.68k|	if (cb != NULL) {
  ------------------
  |  Branch (1091:6): [True: 0, False: 1.68k]
  ------------------
 1092|      0|		vep->dogzip = 1;
 1093|       |		/* XXX */
 1094|      0|		VSB_printf(vep->vsb, "%c", VEC_GZ);
  ------------------
  |  |   32|      0|#define	VEC_GZ	(0x21)
  ------------------
 1095|      0|		vep->cb = cb;
 1096|      0|		vep->cb_priv = cb_priv;
 1097|  1.68k|	} else {
 1098|  1.68k|		vep->cb = vep_default_cb;
 1099|  1.68k|		vep->cb_priv = &vep->cb_x;
 1100|  1.68k|	}
 1101|       |
 1102|  1.68k|	vep->state = VEP_START;
 1103|  1.68k|	vep->crc = crc32(0L, Z_NULL, 0);
  ------------------
  |  |   38|  1.68k|#  define crc32                 z_crc32
  ------------------
              	vep->crc = crc32(0L, Z_NULL, 0);
  ------------------
  |  |  217|  1.68k|#define Z_NULL  0  /* for initializing zalloc, zfree, opaque */
  ------------------
 1104|  1.68k|	vep->crcp = crc32(0L, Z_NULL, 0);
  ------------------
  |  |   38|  1.68k|#  define crc32                 z_crc32
  ------------------
              	vep->crcp = crc32(0L, Z_NULL, 0);
  ------------------
  |  |  217|  1.68k|#define Z_NULL  0  /* for initializing zalloc, zfree, opaque */
  ------------------
 1105|       |
 1106|  1.68k|	vep->startup = 1;
 1107|  1.68k|	return (vep);
 1108|  1.68k|}
VEP_Finish:
 1115|  1.68k|{
 1116|  1.68k|	ssize_t l, lcb;
 1117|       |
 1118|  1.68k|	CHECK_OBJ_NOTNULL(vep, VEP_MAGIC);
  ------------------
  |  |   66|  1.68k|	do {								\
  |  |   67|  1.68k|		assert((ptr) != NULL);					\
  |  |  ------------------
  |  |  |  |   65|  1.68k|#define assert(e)							\
  |  |  |  |   66|  1.68k|do {									\
  |  |  |  |   67|  1.68k|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 1.68k]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|  1.68k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 1.68k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   68|  1.68k|		assert((ptr)->magic == type_magic);			\
  |  |  ------------------
  |  |  |  |   65|  1.68k|#define assert(e)							\
  |  |  |  |   66|  1.68k|do {									\
  |  |  |  |   67|  1.68k|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 1.68k]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|  1.68k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 1.68k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   69|  1.68k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (69:11): [Folded, False: 1.68k]
  |  |  ------------------
  ------------------
 1119|       |
 1120|  1.68k|	if (vep->include_src)
  ------------------
  |  Branch (1120:6): [True: 53, False: 1.63k]
  ------------------
 1121|     53|		VSB_destroy(&vep->include_src);
 1122|  1.68k|	if (vep->attr_vsb)
  ------------------
  |  Branch (1122:6): [True: 44, False: 1.63k]
  ------------------
 1123|     44|		VSB_destroy(&vep->attr_vsb);
 1124|       |
 1125|  1.68k|	if (vep->state != VEP_START &&
  ------------------
  |  Branch (1125:6): [True: 1.67k, False: 9]
  ------------------
 1126|  1.67k|	    vep->state != VEP_BOM &&
  ------------------
  |  Branch (1126:6): [True: 1.67k, False: 0]
  ------------------
 1127|  1.67k|	    vep->state != VEP_TESTXML &&
  ------------------
  |  Branch (1127:6): [True: 1.66k, False: 9]
  ------------------
 1128|  1.66k|	    vep->state != VEP_NOTXML &&
  ------------------
  |  Branch (1128:6): [True: 1.59k, False: 68]
  ------------------
 1129|  1.59k|	    vep->state != VEP_NEXTTAG) {
  ------------------
  |  Branch (1129:6): [True: 584, False: 1.01k]
  ------------------
 1130|    584|		vep_error(vep, "VEP ended inside a tag");
 1131|    584|	}
 1132|       |
 1133|  1.68k|	if (vep->o_pending)
  ------------------
  |  Branch (1133:6): [True: 208, False: 1.47k]
  ------------------
 1134|    208|		vep_mark_common(vep, vep->ver_p, vep->last_mark);
 1135|  1.68k|	if (vep->o_wait > 0) {
  ------------------
  |  Branch (1135:6): [True: 1.65k, False: 28]
  ------------------
 1136|  1.65k|		lcb = vep->cb(vep->vc, vep->cb_priv, 0, VGZ_ALIGN);
 1137|  1.65k|		vep_emit_common(vep, lcb - vep->o_last, vep->last_mark);
 1138|  1.65k|	}
 1139|       |	// NB: We don't account for PAD+SUM+LEN in gzipped objects
 1140|  1.68k|	(void)vep->cb(vep->vc, vep->cb_priv, 0, VGZ_FINISH);
 1141|       |
 1142|  1.68k|	AZ(VSB_finish(vep->vsb));
  ------------------
  |  |   83|  1.68k|#define AZ(foo)		do { assert((foo) == 0); } while (0)
  |  |  ------------------
  |  |  |  |   65|  1.68k|#define assert(e)							\
  |  |  |  |   66|  1.68k|do {									\
  |  |  |  |   67|  1.68k|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 1.68k]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|  1.68k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 1.68k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (83:52): [Folded, False: 1.68k]
  |  |  ------------------
  ------------------
 1143|  1.68k|	l = VSB_len(vep->vsb);
 1144|  1.68k|	if (vep->esi_found && l > 0)
  ------------------
  |  Branch (1144:6): [True: 1.18k, False: 501]
  |  Branch (1144:24): [True: 1.18k, False: 0]
  ------------------
 1145|  1.18k|		return (vep->vsb);
 1146|    501|	VSB_destroy(&vep->vsb);
 1147|       |	return (NULL);
 1148|  1.68k|}
cache_esi_parse.c:vep_mark_common:
  320|   270k|{
  321|   270k|	ssize_t l, lcb;
  322|       |
  323|   270k|	assert(mark == SKIP || mark == VERBATIM);
  ------------------
  |  |   65|   270k|#define assert(e)							\
  |  |   66|   270k|do {									\
  |  |   67|   395k|	if (!(e)) {							\
  |  |  ------------------
  |  |  |  Branch (67:8): [True: 145k, False: 125k]
  |  |  |  Branch (67:8): [True: 125k, False: 0]
  |  |  ------------------
  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |   70|      0|	}								\
  |  |   71|   270k|} while (0)
  |  |  ------------------
  |  |  |  Branch (71:10): [Folded, False: 270k]
  |  |  ------------------
  ------------------
  324|       |
  325|       |	/* The NO-OP case, no data, no pending data & no change of mode */
  326|   270k|	if (vep->last_mark == mark && p == vep->ver_p && vep->o_pending == 0)
  ------------------
  |  Branch (326:6): [True: 69.0k, False: 201k]
  |  Branch (326:32): [True: 208, False: 68.8k]
  |  Branch (326:51): [True: 0, False: 208]
  ------------------
  327|      0|		return;
  328|       |
  329|       |	/*
  330|       |	 * If we changed mode, emit whatever the opposite mode
  331|       |	 * assembled before the pending bytes.
  332|       |	 */
  333|       |
  334|   270k|	if (vep->last_mark != mark && (vep->o_wait > 0 || vep->startup)) {
  ------------------
  |  Branch (334:6): [True: 201k, False: 69.0k]
  |  Branch (334:33): [True: 172k, False: 28.9k]
  |  Branch (334:52): [True: 1.68k, False: 27.3k]
  ------------------
  335|   174k|		lcb = vep->cb(vep->vc, vep->cb_priv, 0,
  336|   174k|		    mark == VERBATIM ? VGZ_RESET : VGZ_ALIGN);
  ------------------
  |  Branch (336:7): [True: 99.4k, False: 74.8k]
  ------------------
  337|   174k|		vep_emit_common(vep, lcb - vep->o_last, vep->last_mark);
  338|   174k|		vep->o_last = lcb;
  339|   174k|		vep->o_wait = 0;
  340|   174k|	}
  341|       |
  342|       |	/* Transfer pending bytes CRC into active mode CRC */
  343|   270k|	if (vep->o_pending) {
  ------------------
  |  Branch (343:6): [True: 208, False: 270k]
  ------------------
  344|    208|		(void)vep->cb(vep->vc, vep->cb_priv, vep->o_pending,
  345|    208|		     VGZ_NORMAL);
  346|    208|		if (vep->o_crc == 0) {
  ------------------
  |  Branch (346:7): [True: 50, False: 158]
  ------------------
  347|     50|			vep->crc = vep->crcp;
  348|     50|			vep->o_crc = vep->o_pending;
  349|    158|		} else {
  350|    158|			vep->crc = crc32_combine(vep->crc,
  ------------------
  |  |   39|    158|#  define crc32_combine         z_crc32_combine
  ------------------
  351|    158|			    vep->crcp, vep->o_pending);
  352|    158|			vep->o_crc += vep->o_pending;
  353|    158|		}
  354|    208|		vep->crcp = crc32(0L, Z_NULL, 0);
  ------------------
  |  |   38|    208|#  define crc32                 z_crc32
  ------------------
              		vep->crcp = crc32(0L, Z_NULL, 0);
  ------------------
  |  |  217|    208|#define Z_NULL  0  /* for initializing zalloc, zfree, opaque */
  ------------------
  355|    208|		vep->o_wait += vep->o_pending;
  356|    208|		vep->o_pending = 0;
  357|    208|	}
  358|       |
  359|       |	/* * Process this bit of input */
  360|   270k|	AN(vep->ver_p);
  ------------------
  |  |   84|   270k|#define AN(foo)		do { assert((foo) != 0); } while (0)
  |  |  ------------------
  |  |  |  |   65|   270k|#define assert(e)							\
  |  |  |  |   66|   270k|do {									\
  |  |  |  |   67|   270k|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 270k]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|   270k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 270k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (84:52): [Folded, False: 270k]
  |  |  ------------------
  ------------------
  361|   270k|	l = p - vep->ver_p;
  362|   270k|	assert(l >= 0);
  ------------------
  |  |   65|   270k|#define assert(e)							\
  |  |   66|   270k|do {									\
  |  |   67|   270k|	if (!(e)) {							\
  |  |  ------------------
  |  |  |  Branch (67:6): [True: 0, False: 270k]
  |  |  ------------------
  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |   70|      0|	}								\
  |  |   71|   270k|} while (0)
  |  |  ------------------
  |  |  |  Branch (71:10): [Folded, False: 270k]
  |  |  ------------------
  ------------------
  363|   270k|	vep->crc = crc32(vep->crc, (const void*)vep->ver_p, l);
  ------------------
  |  |   38|   270k|#  define crc32                 z_crc32
  ------------------
  364|   270k|	vep->o_crc += l;
  365|   270k|	vep->ver_p = p;
  366|       |
  367|   270k|	vep->o_wait += l;
  368|   270k|	vep->last_mark = mark;
  369|   270k|	(void)vep->cb(vep->vc, vep->cb_priv, l, VGZ_NORMAL);
  370|   270k|}
cache_esi_parse.c:vep_mark_skip:
  382|   145k|{
  383|       |
  384|   145k|	vep_mark_common(vep, p, SKIP);
  385|   145k|	vep->nm_skip++;
  386|   145k|}
cache_esi_parse.c:vep_mark_verbatim:
  374|   123k|{
  375|       |
  376|   123k|	vep_mark_common(vep, p, VERBATIM);
  377|   123k|	vep->nm_verbatim++;
  378|   123k|}
cache_esi_parse.c:vep_error:
  205|  26.4k|{
  206|  26.4k|	VSC_C_main->esi_errors++;
  207|  26.4k|	VSLb(vep->vc->wrk->vsl, SLT_ESI_xmlerror, "ERR: after %zd %s",
  208|  26.4k|	     vep->o_last, p);
  209|  26.4k|}
cache_esi_parse.c:vep_do_include:
  478|  16.0k|{
  479|  16.0k|	const char *p, *q, *h;
  480|  16.0k|	ssize_t l;
  481|  16.0k|	char incl;
  482|       |
  483|  16.0k|	Debug("DO_INCLUDE(%d)\n", what);
  484|  16.0k|	if (what == DO_ATTR) {
  ------------------
  |  Branch (484:6): [True: 8.92k, False: 7.12k]
  ------------------
  485|  8.92k|		Debug("ATTR (%s) (%s)\n", vep->match_hit->match,
  486|  8.92k|			VSB_data(vep->attr_vsb));
  487|  8.92k|		if (!vstrcmp("src=", vep->match_hit->match)) {
  ------------------
  |  |  447|  8.92k|#  define vstrcmp(s1, s2) __builtin_strcmp(s1, s2)
  ------------------
  |  Branch (487:7): [True: 8.92k, False: 0]
  ------------------
  488|  8.92k|			include_attr_src(vep);
  489|  8.92k|			return;
  490|  8.92k|		}
  491|      0|		if (!vstrcmp("onerror=", vep->match_hit->match)) {
  ------------------
  |  |  447|      0|#  define vstrcmp(s1, s2) __builtin_strcmp(s1, s2)
  ------------------
  |  Branch (491:7): [True: 0, False: 0]
  ------------------
  492|      0|			include_attr_onerror(vep);
  493|      0|			return;
  494|      0|		}
  495|      0|		WRONG("Unhandled <esi:include> attribute");
  ------------------
  |  |   88|      0|#define WRONG(expl)							\
  |  |   89|      0|do {									\
  |  |   90|      0|	VAS_Fail(__func__, __FILE__, __LINE__, expl, VAS_WRONG);	\
  |  |   91|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (91:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
  496|      0|	}
  497|  7.12k|	assert(what == DO_TAG);
  ------------------
  |  |   65|  7.12k|#define assert(e)							\
  |  |   66|  7.12k|do {									\
  |  |   67|  7.12k|	if (!(e)) {							\
  |  |  ------------------
  |  |  |  Branch (67:6): [True: 0, False: 7.12k]
  |  |  ------------------
  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |   70|      0|	}								\
  |  |   71|  7.12k|} while (0)
  |  |  ------------------
  |  |  |  Branch (71:10): [Folded, False: 7.12k]
  |  |  ------------------
  ------------------
  498|  7.12k|	if (!vep->emptytag)
  ------------------
  |  Branch (498:6): [True: 6.89k, False: 226]
  ------------------
  499|  6.89k|		vep_warn(vep, "ESI 1.0 <esi:include> lacks final '/'");
  500|  7.12k|	if (vep->include_src == NULL) {
  ------------------
  |  Branch (500:6): [True: 484, False: 6.63k]
  ------------------
  501|    484|		vep_error(vep, "ESI 1.0 <esi:include> lacks src attr");
  502|    484|		return;
  503|    484|	}
  504|       |
  505|       |	/*
  506|       |	 * Strictly speaking, we ought to spit out any piled up skip before
  507|       |	 * emitting the VEC for the include, but objectively that makes no
  508|       |	 * difference and robs us of a chance to collapse another skip into
  509|       |	 * this on so we don't do that.
  510|       |	 * However, we cannot tolerate any verbatim stuff piling up.
  511|       |	 * The mark_skip() before calling dostuff should have taken
  512|       |	 * care of that.  Make sure.
  513|       |	 */
  514|  6.63k|	assert(vep->o_wait == 0 || vep->last_mark == SKIP);
  ------------------
  |  |   65|  6.63k|#define assert(e)							\
  |  |   66|  6.63k|do {									\
  |  |   67|  13.2k|	if (!(e)) {							\
  |  |  ------------------
  |  |  |  Branch (67:8): [True: 0, False: 6.63k]
  |  |  |  Branch (67:8): [True: 6.63k, False: 0]
  |  |  ------------------
  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |   70|      0|	}								\
  |  |   71|  6.63k|} while (0)
  |  |  ------------------
  |  |  |  Branch (71:10): [Folded, False: 6.63k]
  |  |  ------------------
  ------------------
  515|       |	/* XXX: what if it contains NUL bytes ?? */
  516|  6.63k|	p = VSB_data(vep->include_src);
  517|  6.63k|	l = VSB_len(vep->include_src);
  518|  6.63k|	h = 0;
  519|       |
  520|  6.63k|	incl = vep->include_continue ? VEC_IC : VEC_IA;
  ------------------
  |  |   43|      0|#define	VEC_IC	(0x60 + 9)
  ------------------
              	incl = vep->include_continue ? VEC_IC : VEC_IA;
  ------------------
  |  |   42|  13.2k|#define	VEC_IA	(0x40 + 9)
  ------------------
  |  Branch (520:9): [True: 0, False: 6.63k]
  ------------------
  521|       |
  522|  6.63k|	if (l > 7 && !vmemcmp(p, "http://", 7)) {
  ------------------
  |  |  435|  4.72k|#  define vmemcmp(s1, s2, n) __builtin_memcmp(s1, s2, n)
  ------------------
  |  Branch (522:6): [True: 4.72k, False: 1.91k]
  |  Branch (522:15): [True: 1.25k, False: 3.47k]
  ------------------
  523|  1.25k|		h = p + 7;
  524|  1.25k|		p = strchr(h, '/');
  525|  1.25k|		if (p == NULL) {
  ------------------
  |  Branch (525:7): [True: 435, False: 818]
  ------------------
  526|    435|			vep_error(vep,
  527|    435|			    "ESI 1.0 <esi:include> invalid src= URL");
  528|    435|			vep->state = VEP_TAGERROR;
  529|    435|			AZ(vep->attr_vsb);
  ------------------
  |  |   83|    435|#define AZ(foo)		do { assert((foo) == 0); } while (0)
  |  |  ------------------
  |  |  |  |   65|    435|#define assert(e)							\
  |  |  |  |   66|    435|do {									\
  |  |  |  |   67|    435|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 435]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|    435|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 435]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (83:52): [Folded, False: 435]
  |  |  ------------------
  ------------------
  530|    435|			VSB_destroy(&vep->include_src);
  531|    435|			return;
  532|    435|		}
  533|    818|		Debug("HOST <%.*s> PATH <%s>\n", (int)(p-h),h, p);
  534|    818|		VSB_printf(vep->vsb, "%c", incl);
  535|    818|		VSB_printf(vep->vsb, "Host: %.*s%c", (int)(p-h), h, 0);
  536|  5.38k|	} else if (l > 8 && !vmemcmp(p, "https://", 8)) {
  ------------------
  |  |  435|  3.21k|#  define vmemcmp(s1, s2, n) __builtin_memcmp(s1, s2, n)
  ------------------
  |  Branch (536:13): [True: 3.21k, False: 2.17k]
  |  Branch (536:22): [True: 1.53k, False: 1.67k]
  ------------------
  537|  1.53k|		if (!vep->flags.esi_ignore_https) {
  ------------------
  |  Branch (537:7): [True: 411, False: 1.12k]
  ------------------
  538|    411|			vep_warn(vep,
  539|    411|			    "ESI 1.0 <esi:include> with https:// ignored");
  540|    411|			vep->state = VEP_TAGERROR;
  541|    411|			AZ(vep->attr_vsb);
  ------------------
  |  |   83|    411|#define AZ(foo)		do { assert((foo) == 0); } while (0)
  |  |  ------------------
  |  |  |  |   65|    411|#define assert(e)							\
  |  |  |  |   66|    411|do {									\
  |  |  |  |   67|    411|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 411]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|    411|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 411]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (83:52): [Folded, False: 411]
  |  |  ------------------
  ------------------
  542|    411|			VSB_destroy(&vep->include_src);
  543|    411|			return;
  544|    411|		}
  545|  1.12k|		vep_warn(vep,
  546|  1.12k|		    "ESI 1.0 <esi:include> https:// treated as http://");
  547|  1.12k|		h = p + 8;
  548|  1.12k|		p = strchr(h, '/');
  549|  1.12k|		if (p == NULL) {
  ------------------
  |  Branch (549:7): [True: 588, False: 536]
  ------------------
  550|    588|			vep_error(vep,
  551|    588|			    "ESI 1.0 <esi:include> invalid src= URL");
  552|    588|			vep->state = VEP_TAGERROR;
  553|    588|			AZ(vep->attr_vsb);
  ------------------
  |  |   83|    588|#define AZ(foo)		do { assert((foo) == 0); } while (0)
  |  |  ------------------
  |  |  |  |   65|    588|#define assert(e)							\
  |  |  |  |   66|    588|do {									\
  |  |  |  |   67|    588|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 588]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|    588|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 588]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (83:52): [Folded, False: 588]
  |  |  ------------------
  ------------------
  554|    588|			VSB_destroy(&vep->include_src);
  555|    588|			return;
  556|    588|		}
  557|    536|		VSB_printf(vep->vsb, "%c", incl);
  558|    536|		VSB_printf(vep->vsb, "Host: %.*s%c", (int)(p-h), h, 0);
  559|  3.85k|	} else if (*p == '/') {
  ------------------
  |  Branch (559:13): [True: 1.25k, False: 2.60k]
  ------------------
  560|  1.25k|		VSB_printf(vep->vsb, "%c", incl);
  561|  1.25k|		VSB_printf(vep->vsb, "%c", 0);
  562|  2.60k|	} else {
  563|  2.60k|		VSB_printf(vep->vsb, "%c", incl);
  564|  2.60k|		VSB_printf(vep->vsb, "%c", 0);
  565|       |		/* Look for the last / before a '?' */
  566|  2.60k|		h = NULL;
  567|  5.20k|		for (q = vep->url; *q && *q != '?'; q++)
  ------------------
  |  Branch (567:22): [True: 2.60k, False: 2.60k]
  |  Branch (567:28): [True: 2.60k, False: 0]
  ------------------
  568|  2.60k|			if (*q == '/')
  ------------------
  |  Branch (568:8): [True: 2.60k, False: 0]
  ------------------
  569|  2.60k|				h = q;
  570|  2.60k|		if (h == NULL)
  ------------------
  |  Branch (570:7): [True: 0, False: 2.60k]
  ------------------
  571|      0|			h = q + 1;
  572|       |
  573|  2.60k|		Debug("INCL:: [%.*s]/[%s]\n",
  574|  2.60k|		    (int)(h - vep->url), vep->url, p);
  575|  2.60k|		VSB_printf(vep->vsb, "%.*s/", (int)(h - vep->url), vep->url);
  576|  2.60k|	}
  577|  5.20k|	l -= (p - VSB_data(vep->include_src));
  578|  6.20M|	for (q = p; *q != '\0'; ) {
  ------------------
  |  Branch (578:14): [True: 6.20M, False: 5.20k]
  ------------------
  579|  6.20M|		if (*q == '&') {
  ------------------
  |  Branch (579:7): [True: 36.2k, False: 6.16M]
  ------------------
  580|  36.2k|#define R(w,f,r)							\
  581|  36.2k|			if (q + w <= p + l && !vmemcmp(q, f, w)) { \
  582|  36.2k|				VSB_printf(vep->vsb, "%c", r);	\
  583|  36.2k|				q += w;				\
  584|  36.2k|				continue;			\
  585|  36.2k|			}
  586|  36.2k|			R(6, "&apos;", '\'');
  ------------------
  |  |  581|  36.2k|			if (q + w <= p + l && !vmemcmp(q, f, w)) { \
  |  |  ------------------
  |  |  |  |  435|  35.3k|#  define vmemcmp(s1, s2, n) __builtin_memcmp(s1, s2, n)
  |  |  ------------------
  |  |  |  Branch (581:8): [True: 35.3k, False: 945]
  |  |  |  Branch (581:26): [True: 4.72k, False: 30.6k]
  |  |  ------------------
  |  |  582|  4.72k|				VSB_printf(vep->vsb, "%c", r);	\
  |  |  583|  4.72k|				q += w;				\
  |  |  584|  4.72k|				continue;			\
  |  |  585|  4.72k|			}
  ------------------
  587|  31.5k|			R(6, "&quot;", '"');
  ------------------
  |  |  581|  31.5k|			if (q + w <= p + l && !vmemcmp(q, f, w)) { \
  |  |  ------------------
  |  |  |  |  435|  30.6k|#  define vmemcmp(s1, s2, n) __builtin_memcmp(s1, s2, n)
  |  |  ------------------
  |  |  |  Branch (581:8): [True: 30.6k, False: 945]
  |  |  |  Branch (581:26): [True: 1.01k, False: 29.6k]
  |  |  ------------------
  |  |  582|  1.01k|				VSB_printf(vep->vsb, "%c", r);	\
  |  |  583|  1.01k|				q += w;				\
  |  |  584|  1.01k|				continue;			\
  |  |  585|  1.01k|			}
  ------------------
  588|  30.5k|			R(4, "&lt;", '<');
  ------------------
  |  |  581|  30.5k|			if (q + w <= p + l && !vmemcmp(q, f, w)) { \
  |  |  ------------------
  |  |  |  |  435|  29.9k|#  define vmemcmp(s1, s2, n) __builtin_memcmp(s1, s2, n)
  |  |  ------------------
  |  |  |  Branch (581:8): [True: 29.9k, False: 623]
  |  |  |  Branch (581:26): [True: 838, False: 29.0k]
  |  |  ------------------
  |  |  582|    838|				VSB_printf(vep->vsb, "%c", r);	\
  |  |  583|    838|				q += w;				\
  |  |  584|    838|				continue;			\
  |  |  585|    838|			}
  ------------------
  589|  29.7k|			R(4, "&gt;", '>');
  ------------------
  |  |  581|  29.7k|			if (q + w <= p + l && !vmemcmp(q, f, w)) { \
  |  |  ------------------
  |  |  |  |  435|  29.0k|#  define vmemcmp(s1, s2, n) __builtin_memcmp(s1, s2, n)
  |  |  ------------------
  |  |  |  Branch (581:8): [True: 29.0k, False: 623]
  |  |  |  Branch (581:26): [True: 5.64k, False: 23.4k]
  |  |  ------------------
  |  |  582|  5.64k|				VSB_printf(vep->vsb, "%c", r);	\
  |  |  583|  5.64k|				q += w;				\
  |  |  584|  5.64k|				continue;			\
  |  |  585|  5.64k|			}
  ------------------
  590|  24.0k|			R(5, "&amp;", '&');
  ------------------
  |  |  581|  24.0k|			if (q + w <= p + l && !vmemcmp(q, f, w)) { \
  |  |  ------------------
  |  |  |  |  435|  23.2k|#  define vmemcmp(s1, s2, n) __builtin_memcmp(s1, s2, n)
  |  |  ------------------
  |  |  |  Branch (581:8): [True: 23.2k, False: 836]
  |  |  |  Branch (581:26): [True: 509, False: 22.7k]
  |  |  ------------------
  |  |  582|    509|				VSB_printf(vep->vsb, "%c", r);	\
  |  |  583|    509|				q += w;				\
  |  |  584|    509|				continue;			\
  |  |  585|    509|			}
  ------------------
  591|  23.5k|		}
  592|  6.18M|		VSB_printf(vep->vsb, "%c", *q++);
  593|  6.18M|	}
  594|  5.20k|#undef R
  595|  5.20k|	VSB_printf(vep->vsb, "%c", 0);
  596|  5.20k|	VSB_destroy(&vep->include_src);
  597|  5.20k|	vep->include_continue = 0;
  598|  5.20k|}
cache_esi_parse.c:include_attr_src:
  439|  8.92k|{
  440|  8.92k|	const char *p;
  441|       |
  442|  8.92k|	if (vep->include_src != NULL) {
  ------------------
  |  Branch (442:6): [True: 980, False: 7.94k]
  ------------------
  443|    980|		vep_error(vep,
  444|    980|		    "ESI 1.0 <esi:include> "
  445|    980|		    "has multiple src= attributes");
  446|    980|		vep->state = VEP_TAGERROR;
  447|    980|		VSB_destroy(&vep->attr_vsb);
  448|    980|		VSB_destroy(&vep->include_src);
  449|    980|		return;
  450|    980|	}
  451|  12.0M|	for (p = VSB_data(vep->attr_vsb); *p != '\0'; p++)
  ------------------
  |  Branch (451:36): [True: 12.0M, False: 7.67k]
  ------------------
  452|  12.0M|		if (vct_islws(*p))
  ------------------
  |  |   72|  12.0M|#define vct_islws(x) vct_is(x, VCT_LWS)
  |  |  ------------------
  |  |  |  |   39|  12.0M|#define VCT_LWS			(VCT_CRLF | VCT_OWS)
  |  |  |  |  ------------------
  |  |  |  |  |  |   38|  12.0M|#define VCT_CRLF		(1<<1)
  |  |  |  |  ------------------
  |  |  |  |               #define VCT_LWS			(VCT_CRLF | VCT_OWS)
  |  |  |  |  ------------------
  |  |  |  |  |  |   37|  12.0M|#define VCT_OWS			(1<<0)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (72:22): [True: 270, False: 12.0M]
  |  |  ------------------
  ------------------
  453|    270|			break;
  454|  7.94k|	if (*p != '\0') {
  ------------------
  |  Branch (454:6): [True: 270, False: 7.67k]
  ------------------
  455|    270|		vep_error(vep,
  456|    270|		    "ESI 1.0 <esi:include> "
  457|    270|		    "has whitespace in src= attribute");
  458|    270|		vep->state = VEP_TAGERROR;
  459|    270|		VSB_destroy(&vep->attr_vsb);
  460|    270|		if (vep->include_src != NULL)
  ------------------
  |  Branch (460:7): [True: 0, False: 270]
  ------------------
  461|      0|			VSB_destroy(&vep->include_src);
  462|    270|		return;
  463|    270|	}
  464|  7.67k|	vep->include_src = vep->attr_vsb;
  465|       |	vep->attr_vsb = NULL;
  466|  7.67k|}
cache_esi_parse.c:vep_warn:
  217|  8.43k|{
  218|  8.43k|	VSC_C_main->esi_warnings++;
  219|  8.43k|	VSLb(vep->vc->wrk->vsl, SLT_ESI_xmlerror, "WARN: after %zd %s",
  220|  8.43k|	     vep->o_last, p);
  221|  8.43k|}
cache_esi_parse.c:vep_do_remove:
  420|  7.29k|{
  421|  7.29k|	Debug("DO_REMOVE(%d, end %d empty %d remove %d)\n",
  422|  7.29k|	    what, vep->endtag, vep->emptytag, vep->remove);
  423|  7.29k|	assert(what == DO_TAG);
  ------------------
  |  |   65|  7.29k|#define assert(e)							\
  |  |   66|  7.29k|do {									\
  |  |   67|  7.29k|	if (!(e)) {							\
  |  |  ------------------
  |  |  |  Branch (67:6): [True: 0, False: 7.29k]
  |  |  ------------------
  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |   70|      0|	}								\
  |  |   71|  7.29k|} while (0)
  |  |  ------------------
  |  |  |  Branch (71:10): [Folded, False: 7.29k]
  |  |  ------------------
  ------------------
  424|  7.29k|	if (vep->emptytag)
  ------------------
  |  Branch (424:6): [True: 1.78k, False: 5.51k]
  ------------------
  425|  1.78k|		vep_error(vep, "ESI 1.0 <esi:remove/> not legal");
  426|  5.51k|	else if (vep->remove && !vep->endtag)
  ------------------
  |  Branch (426:11): [True: 3.03k, False: 2.47k]
  |  Branch (426:26): [True: 1.07k, False: 1.95k]
  ------------------
  427|  1.07k|		vep_error(vep, "ESI 1.0 <esi:remove> already open");
  428|  4.43k|	else if (!vep->remove && vep->endtag)
  ------------------
  |  Branch (428:11): [True: 2.47k, False: 1.95k]
  |  Branch (428:27): [True: 425, False: 2.05k]
  ------------------
  429|    425|		vep_error(vep, "ESI 1.0 <esi:remove> not open");
  430|  4.00k|	else
  431|  4.00k|		vep->remove = !vep->endtag;
  432|  7.29k|}
cache_esi_parse.c:vep_do_comment:
  408|  1.76k|{
  409|  1.76k|	Debug("DO_COMMENT(%d)\n", what);
  410|  1.76k|	assert(what == DO_TAG);
  ------------------
  |  |   65|  1.76k|#define assert(e)							\
  |  |   66|  1.76k|do {									\
  |  |   67|  1.76k|	if (!(e)) {							\
  |  |  ------------------
  |  |  |  Branch (67:6): [True: 0, False: 1.76k]
  |  |  ------------------
  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |   70|      0|	}								\
  |  |   71|  1.76k|} while (0)
  |  |  ------------------
  |  |  |  Branch (71:10): [Folded, False: 1.76k]
  |  |  ------------------
  ------------------
  411|  1.76k|	if (!vep->emptytag)
  ------------------
  |  Branch (411:6): [True: 1.35k, False: 407]
  ------------------
  412|  1.35k|		vep_error(vep, "ESI 1.0 <esi:comment> needs final '/'");
  413|  1.76k|}
cache_esi_parse.c:vep_match:
  229|   149k|{
  230|   149k|	struct vep_match *vm;
  231|   149k|	const char *q, *r;
  232|       |
  233|   149k|	AN(vep->match);
  ------------------
  |  |   84|   149k|#define AN(foo)		do { assert((foo) != 0); } while (0)
  |  |  ------------------
  |  |  |  |   65|   149k|#define assert(e)							\
  |  |  |  |   66|   149k|do {									\
  |  |  |  |   67|   149k|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 149k]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|   149k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 149k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (84:52): [Folded, False: 149k]
  |  |  ------------------
  ------------------
  234|   471k|	for (vm = vep->match; vm->match != NULL; vm++) {
  ------------------
  |  Branch (234:24): [True: 437k, False: 33.8k]
  ------------------
  235|   437k|		assert(vstrlen(vm->match) <= sizeof (vep->tag));
  ------------------
  |  |   65|   437k|#define assert(e)							\
  |  |   66|   437k|do {									\
  |  |   67|   437k|	if (!(e)) {							\
  |  |  ------------------
  |  |  |  Branch (67:6): [True: 0, False: 437k]
  |  |  ------------------
  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |   70|      0|	}								\
  |  |   71|   437k|} while (0)
  |  |  ------------------
  |  |  |  Branch (71:10): [Folded, False: 437k]
  |  |  ------------------
  ------------------
  236|   437k|		r = b;
  237|  1.10M|		for (q = vm->match; *q != '\0' && r < e; q++, r++)
  ------------------
  |  Branch (237:23): [True: 991k, False: 115k]
  |  Branch (237:37): [True: 991k, False: 32]
  ------------------
  238|   991k|			if (*q != *r)
  ------------------
  |  Branch (238:8): [True: 321k, False: 669k]
  ------------------
  239|   321k|				break;
  240|   437k|		if (*q == '\0')
  ------------------
  |  Branch (240:7): [True: 115k, False: 321k]
  ------------------
  241|   115k|			break;
  242|   321k|		if (r == e)
  ------------------
  |  Branch (242:7): [True: 32, False: 321k]
  ------------------
  243|     32|			return (NULL);
  244|   321k|	}
  245|   149k|	return (vm);
  246|   149k|}
cache_esi_parse.c:vep_mark_pending:
  390|    208|{
  391|    208|	ssize_t l;
  392|       |
  393|    208|	AN(vep->ver_p);
  ------------------
  |  |   84|    208|#define AN(foo)		do { assert((foo) != 0); } while (0)
  |  |  ------------------
  |  |  |  |   65|    208|#define assert(e)							\
  |  |  |  |   66|    208|do {									\
  |  |  |  |   67|    208|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 208]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|    208|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 208]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (84:52): [Folded, False: 208]
  |  |  ------------------
  ------------------
  394|    208|	l = p - vep->ver_p;
  395|    208|	assert(l > 0);
  ------------------
  |  |   65|    208|#define assert(e)							\
  |  |   66|    208|do {									\
  |  |   67|    208|	if (!(e)) {							\
  |  |  ------------------
  |  |  |  Branch (67:6): [True: 0, False: 208]
  |  |  ------------------
  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |   70|      0|	}								\
  |  |   71|    208|} while (0)
  |  |  ------------------
  |  |  |  Branch (71:10): [Folded, False: 208]
  |  |  ------------------
  ------------------
  396|    208|	vep->crcp = crc32(vep->crcp, (const void *)vep->ver_p, l);
  ------------------
  |  |   38|    208|#  define crc32                 z_crc32
  ------------------
  397|    208|	vep->ver_p = p;
  398|       |
  399|    208|	vep->o_pending += l;
  400|    208|	vep->nm_pending++;
  401|    208|}
cache_esi_parse.c:vep_default_cb:
 1055|   448k|{
 1056|   448k|	ssize_t *s;
 1057|       |
 1058|   448k|	CHECK_OBJ_NOTNULL(vc, VFP_CTX_MAGIC);
  ------------------
  |  |   66|   448k|	do {								\
  |  |   67|   448k|		assert((ptr) != NULL);					\
  |  |  ------------------
  |  |  |  |   65|   448k|#define assert(e)							\
  |  |  |  |   66|   448k|do {									\
  |  |  |  |   67|   448k|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 448k]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|   448k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 448k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   68|   448k|		assert((ptr)->magic == type_magic);			\
  |  |  ------------------
  |  |  |  |   65|   448k|#define assert(e)							\
  |  |  |  |   66|   448k|do {									\
  |  |  |  |   67|   448k|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 448k]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|   448k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 448k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   69|   448k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (69:11): [Folded, False: 448k]
  |  |  ------------------
  ------------------
 1059|   448k|	AN(priv);
  ------------------
  |  |   84|   448k|#define AN(foo)		do { assert((foo) != 0); } while (0)
  |  |  ------------------
  |  |  |  |   65|   448k|#define assert(e)							\
  |  |  |  |   66|   448k|do {									\
  |  |  |  |   67|   448k|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 448k]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|   448k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 448k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (84:52): [Folded, False: 448k]
  |  |  ------------------
  ------------------
 1060|   448k|	s = priv;
 1061|   448k|	*s += l;
 1062|   448k|	(void)flg;
 1063|   448k|	return (*s);
 1064|   448k|}
cache_esi_parse.c:vep_emit_common:
  298|   175k|{
  299|       |
  300|   175k|	assert(l >= 0);
  ------------------
  |  |   65|   175k|#define assert(e)							\
  |  |   66|   175k|do {									\
  |  |   67|   175k|	if (!(e)) {							\
  |  |  ------------------
  |  |  |  Branch (67:6): [True: 0, False: 175k]
  |  |  ------------------
  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |   70|      0|	}								\
  |  |   71|   175k|} while (0)
  |  |  ------------------
  |  |  |  Branch (71:10): [Folded, False: 175k]
  |  |  ------------------
  ------------------
  301|   175k|	if (l == 0)
  ------------------
  |  Branch (301:6): [True: 1.68k, False: 174k]
  ------------------
  302|  1.68k|		return;
  303|   174k|	assert(mark == SKIP || mark == VERBATIM);
  ------------------
  |  |   65|   174k|#define assert(e)							\
  |  |   66|   174k|do {									\
  |  |   67|   249k|	if (!(e)) {							\
  |  |  ------------------
  |  |  |  Branch (67:8): [True: 98.7k, False: 75.4k]
  |  |  |  Branch (67:8): [True: 75.4k, False: 0]
  |  |  ------------------
  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |   70|      0|	}								\
  |  |   71|   174k|} while (0)
  |  |  ------------------
  |  |  |  Branch (71:10): [Folded, False: 174k]
  |  |  ------------------
  ------------------
  304|   174k|	if (mark == SKIP)
  ------------------
  |  Branch (304:6): [True: 98.7k, False: 75.4k]
  ------------------
  305|  98.7k|		vep_emit_skip(vep, l);
  306|  75.4k|	else
  307|  75.4k|		vep_emit_verbatim(vep, l, vep->o_crc);
  308|       |
  309|   174k|	vep->crc = crc32(0L, Z_NULL, 0);
  ------------------
  |  |   38|   174k|#  define crc32                 z_crc32
  ------------------
              	vep->crc = crc32(0L, Z_NULL, 0);
  ------------------
  |  |  217|   174k|#define Z_NULL  0  /* for initializing zalloc, zfree, opaque */
  ------------------
  310|   174k|	vep->o_crc = 0;
  311|   174k|	vep->o_total += l;
  312|   174k|}
cache_esi_parse.c:vep_emit_skip:
  278|  98.7k|{
  279|       |
  280|  98.7k|	vep_emit_len(vep, l, VEC_S1, VEC_S2, VEC_S8);
  ------------------
  |  |   39|  98.7k|#define	VEC_S1	(0x60 + 1)
  ------------------
              	vep_emit_len(vep, l, VEC_S1, VEC_S2, VEC_S8);
  ------------------
  |  |   40|  98.7k|#define	VEC_S2	(0x60 + 2)
  ------------------
              	vep_emit_len(vep, l, VEC_S1, VEC_S2, VEC_S8);
  ------------------
  |  |   41|  98.7k|#define	VEC_S8	(0x60 + 8)
  ------------------
  281|  98.7k|}
cache_esi_parse.c:vep_emit_len:
  254|   174k|{
  255|   174k|	uint8_t buf[9];
  256|       |
  257|   174k|	assert(l > 0);
  ------------------
  |  |   65|   174k|#define assert(e)							\
  |  |   66|   174k|do {									\
  |  |   67|   174k|	if (!(e)) {							\
  |  |  ------------------
  |  |  |  Branch (67:6): [True: 0, False: 174k]
  |  |  ------------------
  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |   70|      0|	}								\
  |  |   71|   174k|} while (0)
  |  |  ------------------
  |  |  |  Branch (71:10): [Folded, False: 174k]
  |  |  ------------------
  ------------------
  258|   174k|	if (l < 256) {
  ------------------
  |  Branch (258:6): [True: 172k, False: 1.60k]
  ------------------
  259|   172k|		buf[0] = (uint8_t)m8;
  260|   172k|		buf[1] = (uint8_t)l;
  261|   172k|		assert((ssize_t)buf[1] == l);
  ------------------
  |  |   65|   172k|#define assert(e)							\
  |  |   66|   172k|do {									\
  |  |   67|   172k|	if (!(e)) {							\
  |  |  ------------------
  |  |  |  Branch (67:6): [True: 0, False: 172k]
  |  |  ------------------
  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |   70|      0|	}								\
  |  |   71|   172k|} while (0)
  |  |  ------------------
  |  |  |  Branch (71:10): [Folded, False: 172k]
  |  |  ------------------
  ------------------
  262|   172k|		VSB_bcat(vep->vsb, buf, 2);
  263|   172k|	} else if (l < 65536) {
  ------------------
  |  Branch (263:13): [True: 1.45k, False: 153]
  ------------------
  264|  1.45k|		buf[0] = (uint8_t)m16;
  265|  1.45k|		vbe16enc(buf + 1, (uint16_t)l);
  266|  1.45k|		assert((ssize_t)vbe16dec(buf + 1) == l);
  ------------------
  |  |   65|  1.45k|#define assert(e)							\
  |  |   66|  1.45k|do {									\
  |  |   67|  1.45k|	if (!(e)) {							\
  |  |  ------------------
  |  |  |  Branch (67:6): [True: 0, False: 1.45k]
  |  |  ------------------
  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |   70|      0|	}								\
  |  |   71|  1.45k|} while (0)
  |  |  ------------------
  |  |  |  Branch (71:10): [Folded, False: 1.45k]
  |  |  ------------------
  ------------------
  267|  1.45k|		VSB_bcat(vep->vsb, buf, 3);
  268|  1.45k|	} else {
  269|    153|		buf[0] = (uint8_t)m64;
  270|    153|		vbe64enc(buf + 1, l);
  271|    153|		assert((ssize_t)vbe64dec(buf + 1) == l);
  ------------------
  |  |   65|    153|#define assert(e)							\
  |  |   66|    153|do {									\
  |  |   67|    153|	if (!(e)) {							\
  |  |  ------------------
  |  |  |  Branch (67:6): [True: 0, False: 153]
  |  |  ------------------
  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |   70|      0|	}								\
  |  |   71|    153|} while (0)
  |  |  ------------------
  |  |  |  Branch (71:10): [Folded, False: 153]
  |  |  ------------------
  ------------------
  272|    153|		VSB_bcat(vep->vsb, buf, 9);
  273|    153|	}
  274|   174k|}
cache_esi_parse.c:vep_emit_verbatim:
  285|  75.4k|{
  286|  75.4k|	uint8_t buf[4];
  287|       |
  288|  75.4k|	vep_emit_len(vep, l, VEC_V1, VEC_V2, VEC_V8);
  ------------------
  |  |   33|  75.4k|#define	VEC_V1	(0x40 + 1)
  ------------------
              	vep_emit_len(vep, l, VEC_V1, VEC_V2, VEC_V8);
  ------------------
  |  |   34|  75.4k|#define	VEC_V2	(0x40 + 2)
  ------------------
              	vep_emit_len(vep, l, VEC_V1, VEC_V2, VEC_V8);
  ------------------
  |  |   35|  75.4k|#define	VEC_V8	(0x40 + 8)
  ------------------
  289|  75.4k|	if (vep->dogzip) {
  ------------------
  |  Branch (289:6): [True: 0, False: 75.4k]
  ------------------
  290|      0|		vep_emit_len(vep, l_crc, VEC_C1, VEC_C2, VEC_C8);
  ------------------
  |  |   36|      0|#define	VEC_C1	(0x50 + 1)
  ------------------
              		vep_emit_len(vep, l_crc, VEC_C1, VEC_C2, VEC_C8);
  ------------------
  |  |   37|      0|#define	VEC_C2	(0x50 + 2)
  ------------------
              		vep_emit_len(vep, l_crc, VEC_C1, VEC_C2, VEC_C8);
  ------------------
  |  |   38|      0|#define	VEC_C8	(0x50 + 8)
  ------------------
  291|      0|		vbe32enc(buf, vep->crc);
  292|      0|		VSB_bcat(vep->vsb, buf, sizeof buf);
  293|      0|	}
  294|  75.4k|}

WS_Rollback:
   85|  1.68k|{
   86|       |
   87|  1.68k|	WS_Assert(ws);
   88|       |
   89|  1.68k|	if (pp == 0)
  ------------------
  |  Branch (89:6): [True: 1.68k, False: 0]
  ------------------
   90|  1.68k|		pp = (uintptr_t)ws->s;
   91|  1.68k|	ws_ClearOverflow(ws);
   92|  1.68k|	WS_Reset(ws, pp);
   93|  1.68k|}
cache_ws_common.c:ws_ClearOverflow:
   60|  1.68k|{
   61|  1.68k|	CHECK_OBJ_NOTNULL(ws, WS_MAGIC);
  ------------------
  |  |   66|  1.68k|	do {								\
  |  |   67|  1.68k|		assert((ptr) != NULL);					\
  |  |  ------------------
  |  |  |  |   65|  1.68k|#define assert(e)							\
  |  |  |  |   66|  1.68k|do {									\
  |  |  |  |   67|  1.68k|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 1.68k]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|  1.68k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 1.68k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   68|  1.68k|		assert((ptr)->magic == type_magic);			\
  |  |  ------------------
  |  |  |  |   65|  1.68k|#define assert(e)							\
  |  |  |  |   66|  1.68k|do {									\
  |  |  |  |   67|  1.68k|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 1.68k]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|  1.68k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 1.68k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   69|  1.68k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (69:11): [Folded, False: 1.68k]
  |  |  ------------------
  ------------------
   62|       |
   63|  1.68k|	ws->id[0] |= 0x20;		// cheesy tolower()
   64|  1.68k|}

WS_Assert:
   76|  10.0k|{
   77|  10.0k|	struct ws_emu *we;
   78|  10.0k|	struct ws_alloc *wa, *wa2 = NULL;
   79|  10.0k|	size_t len;
   80|       |
   81|  10.0k|	CHECK_OBJ_NOTNULL(ws, WS_MAGIC);
  ------------------
  |  |   66|  10.0k|	do {								\
  |  |   67|  10.0k|		assert((ptr) != NULL);					\
  |  |  ------------------
  |  |  |  |   65|  10.0k|#define assert(e)							\
  |  |  |  |   66|  10.0k|do {									\
  |  |  |  |   67|  10.0k|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 10.0k]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|  10.0k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 10.0k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   68|  10.0k|		assert((ptr)->magic == type_magic);			\
  |  |  ------------------
  |  |  |  |   65|  10.0k|#define assert(e)							\
  |  |  |  |   66|  10.0k|do {									\
  |  |  |  |   67|  10.0k|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 10.0k]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|  10.0k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 10.0k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   69|  10.0k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (69:11): [Folded, False: 10.0k]
  |  |  ------------------
  ------------------
   82|  10.0k|	assert(ws->s != NULL);
  ------------------
  |  |   65|  10.0k|#define assert(e)							\
  |  |   66|  10.0k|do {									\
  |  |   67|  10.0k|	if (!(e)) {							\
  |  |  ------------------
  |  |  |  Branch (67:6): [True: 0, False: 10.0k]
  |  |  ------------------
  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |   70|      0|	}								\
  |  |   71|  10.0k|} while (0)
  |  |  ------------------
  |  |  |  Branch (71:10): [Folded, False: 10.0k]
  |  |  ------------------
  ------------------
   83|  10.0k|	assert(PAOK(ws->s));
  ------------------
  |  |   65|  10.0k|#define assert(e)							\
  |  |   66|  10.0k|do {									\
  |  |   67|  10.0k|	if (!(e)) {							\
  |  |  ------------------
  |  |  |  Branch (67:6): [True: 0, False: 10.0k]
  |  |  ------------------
  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |   70|      0|	}								\
  |  |   71|  10.0k|} while (0)
  |  |  ------------------
  |  |  |  Branch (71:10): [Folded, False: 10.0k]
  |  |  ------------------
  ------------------
   84|  10.0k|	assert(ws->e != NULL);
  ------------------
  |  |   65|  10.0k|#define assert(e)							\
  |  |   66|  10.0k|do {									\
  |  |   67|  10.0k|	if (!(e)) {							\
  |  |  ------------------
  |  |  |  Branch (67:6): [True: 0, False: 10.0k]
  |  |  ------------------
  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |   70|      0|	}								\
  |  |   71|  10.0k|} while (0)
  |  |  ------------------
  |  |  |  Branch (71:10): [Folded, False: 10.0k]
  |  |  ------------------
  ------------------
   85|  10.0k|	assert(PAOK(ws->e));
  ------------------
  |  |   65|  10.0k|#define assert(e)							\
  |  |   66|  10.0k|do {									\
  |  |   67|  10.0k|	if (!(e)) {							\
  |  |  ------------------
  |  |  |  Branch (67:6): [True: 0, False: 10.0k]
  |  |  ------------------
  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |   70|      0|	}								\
  |  |   71|  10.0k|} while (0)
  |  |  ------------------
  |  |  |  Branch (71:10): [Folded, False: 10.0k]
  |  |  ------------------
  ------------------
   86|       |
   87|  10.0k|	we = ws_emu(ws);
   88|  10.0k|	len = pdiff(ws->s, ws->e);
   89|  10.0k|	assert(len == we->len);
  ------------------
  |  |   65|  10.0k|#define assert(e)							\
  |  |   66|  10.0k|do {									\
  |  |   67|  10.0k|	if (!(e)) {							\
  |  |  ------------------
  |  |  |  Branch (67:6): [True: 0, False: 10.0k]
  |  |  ------------------
  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |   70|      0|	}								\
  |  |   71|  10.0k|} while (0)
  |  |  ------------------
  |  |  |  Branch (71:10): [Folded, False: 10.0k]
  |  |  ------------------
  ------------------
   90|       |
   91|  10.0k|	len = 0;
   92|  10.0k|	VTAILQ_FOREACH(wa, &we->head, list) {
  ------------------
  |  |  460|  10.0k|	for ((var) = VTAILQ_FIRST((head));				\
  |  |  ------------------
  |  |  |  |  457|  10.0k|#define	VTAILQ_FIRST(head)	((head)->vtqh_first)
  |  |  ------------------
  |  |  461|  15.1k|	    (var);							\
  |  |  ------------------
  |  |  |  Branch (461:6): [True: 5.04k, False: 10.0k]
  |  |  ------------------
  |  |  462|  10.0k|	    (var) = VTAILQ_NEXT((var), field))
  |  |  ------------------
  |  |  |  |  542|  5.04k|#define	VTAILQ_NEXT(elm, field) ((elm)->field.vtqe_next)
  |  |  ------------------
  ------------------
   93|  5.04k|		CHECK_OBJ_NOTNULL(wa, WS_ALLOC_MAGIC);
  ------------------
  |  |   66|  5.04k|	do {								\
  |  |   67|  5.04k|		assert((ptr) != NULL);					\
  |  |  ------------------
  |  |  |  |   65|  5.04k|#define assert(e)							\
  |  |  |  |   66|  5.04k|do {									\
  |  |  |  |   67|  5.04k|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 5.04k]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|  5.04k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 5.04k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   68|  5.04k|		assert((ptr)->magic == type_magic);			\
  |  |  ------------------
  |  |  |  |   65|  5.04k|#define assert(e)							\
  |  |  |  |   66|  5.04k|do {									\
  |  |  |  |   67|  5.04k|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 5.04k]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|  5.04k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 5.04k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   69|  5.04k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (69:11): [Folded, False: 5.04k]
  |  |  ------------------
  ------------------
   94|  5.04k|		wa2 = wa;
   95|  5.04k|		assert(len == wa->off);
  ------------------
  |  |   65|  5.04k|#define assert(e)							\
  |  |   66|  5.04k|do {									\
  |  |   67|  5.04k|	if (!(e)) {							\
  |  |  ------------------
  |  |  |  Branch (67:6): [True: 0, False: 5.04k]
  |  |  ------------------
  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |   70|      0|	}								\
  |  |   71|  5.04k|} while (0)
  |  |  ------------------
  |  |  |  Branch (71:10): [Folded, False: 5.04k]
  |  |  ------------------
  ------------------
   96|  5.04k|		if (wa->ptr == ws->f || wa->ptr == NULL) /* reservation */
  ------------------
  |  Branch (96:7): [True: 0, False: 5.04k]
  |  Branch (96:27): [True: 0, False: 5.04k]
  ------------------
   97|      0|			break;
   98|  5.04k|		AN(wa->len);
  ------------------
  |  |   84|  5.04k|#define AN(foo)		do { assert((foo) != 0); } while (0)
  |  |  ------------------
  |  |  |  |   65|  5.04k|#define assert(e)							\
  |  |  |  |   66|  5.04k|do {									\
  |  |  |  |   67|  5.04k|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 5.04k]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|  5.04k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 5.04k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (84:52): [Folded, False: 5.04k]
  |  |  ------------------
  ------------------
   99|  5.04k|		len += PRNDUP(wa->len);
  ------------------
  |  |  168|  5.04k|#define PRNDUP(p)   (((uintptr_t)(p) + PALGN) & ~PALGN)	/* Round up */
  |  |  ------------------
  |  |  |  |  164|  5.04k|#  define PALGN	    (sizeof(void *) - 1)	/* size of alignment */
  |  |  ------------------
  |  |               #define PRNDUP(p)   (((uintptr_t)(p) + PALGN) & ~PALGN)	/* Round up */
  |  |  ------------------
  |  |  |  |  164|  5.04k|#  define PALGN	    (sizeof(void *) - 1)	/* size of alignment */
  |  |  ------------------
  ------------------
  100|  5.04k|		assert(len <= we->len);
  ------------------
  |  |   65|  5.04k|#define assert(e)							\
  |  |   66|  5.04k|do {									\
  |  |   67|  5.04k|	if (!(e)) {							\
  |  |  ------------------
  |  |  |  Branch (67:6): [True: 0, False: 5.04k]
  |  |  ------------------
  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |   70|      0|	}								\
  |  |   71|  5.04k|} while (0)
  |  |  ------------------
  |  |  |  Branch (71:10): [Folded, False: 5.04k]
  |  |  ------------------
  ------------------
  101|  5.04k|	}
  102|       |
  103|  10.0k|	if (wa != NULL) {
  ------------------
  |  Branch (103:6): [True: 0, False: 10.0k]
  ------------------
  104|      0|		AZ(VTAILQ_NEXT(wa, list));
  ------------------
  |  |   83|      0|#define AZ(foo)		do { assert((foo) == 0); } while (0)
  |  |  ------------------
  |  |  |  |   65|      0|#define assert(e)							\
  |  |  |  |   66|      0|do {									\
  |  |  |  |   67|      0|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|      0|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (83:52): [Folded, False: 0]
  |  |  ------------------
  ------------------
  105|      0|		if (wa->ptr == NULL) {
  ------------------
  |  Branch (105:7): [True: 0, False: 0]
  ------------------
  106|      0|			AZ(wa->len);
  ------------------
  |  |   83|      0|#define AZ(foo)		do { assert((foo) == 0); } while (0)
  |  |  ------------------
  |  |  |  |   65|      0|#define assert(e)							\
  |  |  |  |   66|      0|do {									\
  |  |  |  |   67|      0|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|      0|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (83:52): [Folded, False: 0]
  |  |  ------------------
  ------------------
  107|      0|			assert(ws->f == ws->e);
  ------------------
  |  |   65|      0|#define assert(e)							\
  |  |   66|      0|do {									\
  |  |   67|      0|	if (!(e)) {							\
  |  |  ------------------
  |  |  |  Branch (67:6): [True: 0, False: 0]
  |  |  ------------------
  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |   70|      0|	}								\
  |  |   71|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (71:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
  108|      0|			assert(ws->r == ws->e);
  ------------------
  |  |   65|      0|#define assert(e)							\
  |  |   66|      0|do {									\
  |  |   67|      0|	if (!(e)) {							\
  |  |  ------------------
  |  |  |  Branch (67:6): [True: 0, False: 0]
  |  |  ------------------
  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |   70|      0|	}								\
  |  |   71|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (71:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
  109|      0|		} else {
  110|      0|			AN(wa->len);
  ------------------
  |  |   84|      0|#define AN(foo)		do { assert((foo) != 0); } while (0)
  |  |  ------------------
  |  |  |  |   65|      0|#define assert(e)							\
  |  |  |  |   66|      0|do {									\
  |  |  |  |   67|      0|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|      0|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (84:52): [Folded, False: 0]
  |  |  ------------------
  ------------------
  111|      0|			assert(ws->f == wa->ptr);
  ------------------
  |  |   65|      0|#define assert(e)							\
  |  |   66|      0|do {									\
  |  |   67|      0|	if (!(e)) {							\
  |  |  ------------------
  |  |  |  Branch (67:6): [True: 0, False: 0]
  |  |  ------------------
  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |   70|      0|	}								\
  |  |   71|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (71:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
  112|      0|			assert(ws->r == ws->f + wa->len);
  ------------------
  |  |   65|      0|#define assert(e)							\
  |  |   66|      0|do {									\
  |  |   67|      0|	if (!(e)) {							\
  |  |  ------------------
  |  |  |  Branch (67:6): [True: 0, False: 0]
  |  |  ------------------
  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |   70|      0|	}								\
  |  |   71|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (71:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
  113|      0|		}
  114|      0|		len += PRNDUP(wa->len);
  ------------------
  |  |  168|      0|#define PRNDUP(p)   (((uintptr_t)(p) + PALGN) & ~PALGN)	/* Round up */
  |  |  ------------------
  |  |  |  |  164|      0|#  define PALGN	    (sizeof(void *) - 1)	/* size of alignment */
  |  |  ------------------
  |  |               #define PRNDUP(p)   (((uintptr_t)(p) + PALGN) & ~PALGN)	/* Round up */
  |  |  ------------------
  |  |  |  |  164|      0|#  define PALGN	    (sizeof(void *) - 1)	/* size of alignment */
  |  |  ------------------
  ------------------
  115|      0|		assert(len <= we->len);
  ------------------
  |  |   65|      0|#define assert(e)							\
  |  |   66|      0|do {									\
  |  |   67|      0|	if (!(e)) {							\
  |  |  ------------------
  |  |  |  Branch (67:6): [True: 0, False: 0]
  |  |  ------------------
  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |   70|      0|	}								\
  |  |   71|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (71:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
  116|  10.0k|	} else {
  117|  10.0k|		AZ(ws->f);
  ------------------
  |  |   83|  10.0k|#define AZ(foo)		do { assert((foo) == 0); } while (0)
  |  |  ------------------
  |  |  |  |   65|  10.0k|#define assert(e)							\
  |  |  |  |   66|  10.0k|do {									\
  |  |  |  |   67|  10.0k|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 10.0k]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|  10.0k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 10.0k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (83:52): [Folded, False: 10.0k]
  |  |  ------------------
  ------------------
  118|  10.0k|		AZ(ws->r);
  ------------------
  |  |   83|  10.0k|#define AZ(foo)		do { assert((foo) == 0); } while (0)
  |  |  ------------------
  |  |  |  |   65|  10.0k|#define assert(e)							\
  |  |  |  |   66|  10.0k|do {									\
  |  |  |  |   67|  10.0k|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 10.0k]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|  10.0k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 10.0k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (83:52): [Folded, False: 10.0k]
  |  |  ------------------
  ------------------
  119|  10.0k|	}
  120|       |
  121|  10.0k|	DSLb(DBG_WORKSPACE, "WS(%p) = (%s, %p %zu %zu %zu)",
  ------------------
  |  |  629|  10.0k|	do {							\
  |  |  630|  10.0k|		if (DO_DEBUG(debug_bit))			\
  |  |  ------------------
  |  |  |  |  620|  10.0k|#define DO_DEBUG(x)	COM_DO_DEBUG(cache_param->debug_bits, x)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (620:21): [True: 0, False: 10.0k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  631|  10.0k|			WRK_Log(SLT_Debug, __VA_ARGS__);	\
  |  |  ------------------
  |  |  |  Branch (631:23): [True: 0, False: 0]
  |  |  |  Branch (631:23): [True: 0, False: 0]
  |  |  ------------------
  |  |  632|  10.0k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (632:11): [Folded, False: 10.0k]
  |  |  ------------------
  ------------------
  122|  10.0k|	    ws, ws->id, ws->s, wa2 == NULL ? 0 : wa2->off + PRNDUP(wa2->len),
  123|  10.0k|	    ws->r == NULL ? 0 : pdiff(ws->f, ws->r),
  124|  10.0k|	    pdiff(ws->s, ws->e));
  125|  10.0k|}
WS_Init:
  159|  1.68k|{
  160|  1.68k|	struct ws_emu *we;
  161|       |
  162|  1.68k|	DSLb(DBG_WORKSPACE,
  ------------------
  |  |  629|  1.68k|	do {							\
  |  |  630|  1.68k|		if (DO_DEBUG(debug_bit))			\
  |  |  ------------------
  |  |  |  |  620|  1.68k|#define DO_DEBUG(x)	COM_DO_DEBUG(cache_param->debug_bits, x)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (620:21): [True: 0, False: 1.68k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  631|  1.68k|			WRK_Log(SLT_Debug, __VA_ARGS__);	\
  |  |  632|  1.68k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (632:11): [Folded, False: 1.68k]
  |  |  ------------------
  ------------------
  163|  1.68k|	    "WS_Init(%p, \"%s\", %p, %u)", ws, id, space, len);
  164|  1.68k|	assert(space != NULL);
  ------------------
  |  |   65|  1.68k|#define assert(e)							\
  |  |   66|  1.68k|do {									\
  |  |   67|  1.68k|	if (!(e)) {							\
  |  |  ------------------
  |  |  |  Branch (67:6): [True: 0, False: 1.68k]
  |  |  ------------------
  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |   70|      0|	}								\
  |  |   71|  1.68k|} while (0)
  |  |  ------------------
  |  |  |  Branch (71:10): [Folded, False: 1.68k]
  |  |  ------------------
  ------------------
  165|  1.68k|	assert(PAOK(space));
  ------------------
  |  |   65|  1.68k|#define assert(e)							\
  |  |   66|  1.68k|do {									\
  |  |   67|  1.68k|	if (!(e)) {							\
  |  |  ------------------
  |  |  |  Branch (67:6): [True: 0, False: 1.68k]
  |  |  ------------------
  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |   70|      0|	}								\
  |  |   71|  1.68k|} while (0)
  |  |  ------------------
  |  |  |  Branch (71:10): [Folded, False: 1.68k]
  |  |  ------------------
  ------------------
  166|  1.68k|	assert(len >= sizeof *we);
  ------------------
  |  |   65|  1.68k|#define assert(e)							\
  |  |   66|  1.68k|do {									\
  |  |   67|  1.68k|	if (!(e)) {							\
  |  |  ------------------
  |  |  |  Branch (67:6): [True: 0, False: 1.68k]
  |  |  ------------------
  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |   70|      0|	}								\
  |  |   71|  1.68k|} while (0)
  |  |  ------------------
  |  |  |  Branch (71:10): [Folded, False: 1.68k]
  |  |  ------------------
  ------------------
  167|       |
  168|  1.68k|	len = PRNDDN(len - 1);
  ------------------
  |  |  167|  1.68k|#define PRNDDN(p)   ((uintptr_t)(p) & ~PALGN)		/* Round down */
  |  |  ------------------
  |  |  |  |  164|  1.68k|#  define PALGN	    (sizeof(void *) - 1)	/* size of alignment */
  |  |  ------------------
  ------------------
  169|  1.68k|	INIT_OBJ(ws, WS_MAGIC);
  ------------------
  |  |   15|  1.68k|	do {								\
  |  |   16|  1.68k|		(void)memset(to, 0, sizeof *(to));			\
  |  |   17|  1.68k|		(to)->magic = (type_magic);				\
  |  |   18|  1.68k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (18:11): [Folded, False: 1.68k]
  |  |  ------------------
  ------------------
  170|  1.68k|	ws->s = space;
  171|  1.68k|	ws->e = ws->s + len;
  172|       |
  173|  1.68k|	assert(id[0] & 0x20);		// cheesy islower()
  ------------------
  |  |   65|  1.68k|#define assert(e)							\
  |  |   66|  1.68k|do {									\
  |  |   67|  1.68k|	if (!(e)) {							\
  |  |  ------------------
  |  |  |  Branch (67:6): [True: 0, False: 1.68k]
  |  |  ------------------
  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |   70|      0|	}								\
  |  |   71|  1.68k|} while (0)
  |  |  ------------------
  |  |  |  Branch (71:10): [Folded, False: 1.68k]
  |  |  ------------------
  ------------------
  174|  1.68k|	bstrcpy(ws->id, id);
  ------------------
  |  |   81|  1.68k|	do {								\
  |  |   82|  1.68k|		assert(vstrlen(src) + 1 <= sizeof (dst));		\
  |  |  ------------------
  |  |  |  |   65|  1.68k|#define assert(e)							\
  |  |  |  |   66|  1.68k|do {									\
  |  |  |  |   67|  1.68k|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 1.68k]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|  1.68k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 1.68k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   83|  1.68k|		strcpy((dst), (src));					\
  |  |   84|  1.68k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (84:11): [Folded, False: 1.68k]
  |  |  ------------------
  ------------------
  175|       |
  176|  1.68k|	we = space;
  177|  1.68k|	INIT_OBJ(we, WS_EMU_MAGIC);
  ------------------
  |  |   15|  1.68k|	do {								\
  |  |   16|  1.68k|		(void)memset(to, 0, sizeof *(to));			\
  |  |   17|  1.68k|		(to)->magic = (type_magic);				\
  |  |   18|  1.68k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (18:11): [Folded, False: 1.68k]
  |  |  ------------------
  ------------------
  178|  1.68k|	VTAILQ_INIT(&we->head);
  ------------------
  |  |  499|  1.68k|#define	VTAILQ_INIT(head) do {						\
  |  |  500|  1.68k|	VTAILQ_FIRST((head)) = NULL;					\
  |  |  ------------------
  |  |  |  |  457|  1.68k|#define	VTAILQ_FIRST(head)	((head)->vtqh_first)
  |  |  ------------------
  |  |  501|  1.68k|	(head)->vtqh_last = &VTAILQ_FIRST((head));			\
  |  |  ------------------
  |  |  |  |  457|  1.68k|#define	VTAILQ_FIRST(head)	((head)->vtqh_first)
  |  |  ------------------
  |  |  502|  1.68k|} while (0)
  |  |  ------------------
  |  |  |  Branch (502:10): [Folded, False: 1.68k]
  |  |  ------------------
  ------------------
  179|  1.68k|	we->len = len;
  180|       |
  181|  1.68k|	WS_Assert(ws);
  182|  1.68k|}
WS_Reset:
  198|  1.68k|{
  199|  1.68k|	struct ws_emu *we;
  200|  1.68k|	struct ws_alloc *wa;
  201|  1.68k|	char *p;
  202|       |
  203|  1.68k|	WS_Assert(ws);
  204|  1.68k|	AN(pp);
  ------------------
  |  |   84|  1.68k|#define AN(foo)		do { assert((foo) != 0); } while (0)
  |  |  ------------------
  |  |  |  |   65|  1.68k|#define assert(e)							\
  |  |  |  |   66|  1.68k|do {									\
  |  |  |  |   67|  1.68k|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 1.68k]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|  1.68k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 1.68k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (84:52): [Folded, False: 1.68k]
  |  |  ------------------
  ------------------
  205|  1.68k|	if (pp == snap_overflowed) {
  ------------------
  |  Branch (205:6): [True: 0, False: 1.68k]
  ------------------
  206|      0|		DSLb(DBG_WORKSPACE, "WS_Reset(%p, overflowed)", ws);
  ------------------
  |  |  629|      0|	do {							\
  |  |  630|      0|		if (DO_DEBUG(debug_bit))			\
  |  |  ------------------
  |  |  |  |  620|      0|#define DO_DEBUG(x)	COM_DO_DEBUG(cache_param->debug_bits, x)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (620:21): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  631|      0|			WRK_Log(SLT_Debug, __VA_ARGS__);	\
  |  |  632|      0|	} while (0)
  |  |  ------------------
  |  |  |  Branch (632:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  207|      0|		AN(WS_Overflowed(ws));
  ------------------
  |  |   84|      0|#define AN(foo)		do { assert((foo) != 0); } while (0)
  |  |  ------------------
  |  |  |  |   65|      0|#define assert(e)							\
  |  |  |  |   66|      0|do {									\
  |  |  |  |   67|      0|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|      0|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (84:52): [Folded, False: 0]
  |  |  ------------------
  ------------------
  208|      0|		return;
  209|      0|	}
  210|  1.68k|	p = (char *)pp;
  211|  1.68k|	DSLb(DBG_WORKSPACE, "WS_Reset(%p, %p)", ws, p);
  ------------------
  |  |  629|  1.68k|	do {							\
  |  |  630|  1.68k|		if (DO_DEBUG(debug_bit))			\
  |  |  ------------------
  |  |  |  |  620|  1.68k|#define DO_DEBUG(x)	COM_DO_DEBUG(cache_param->debug_bits, x)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (620:21): [True: 0, False: 1.68k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  631|  1.68k|			WRK_Log(SLT_Debug, __VA_ARGS__);	\
  |  |  632|  1.68k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (632:11): [Folded, False: 1.68k]
  |  |  ------------------
  ------------------
  212|  1.68k|	AZ(ws->r);
  ------------------
  |  |   83|  1.68k|#define AZ(foo)		do { assert((foo) == 0); } while (0)
  |  |  ------------------
  |  |  |  |   65|  1.68k|#define assert(e)							\
  |  |  |  |   66|  1.68k|do {									\
  |  |  |  |   67|  1.68k|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 1.68k]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|  1.68k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 1.68k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (83:52): [Folded, False: 1.68k]
  |  |  ------------------
  ------------------
  213|       |
  214|  1.68k|	we = ws_emu(ws);
  215|  3.36k|	while ((wa = VTAILQ_LAST(&we->head, ws_alloc_head)) != NULL &&
  ------------------
  |  |  540|  3.36k|	(*(((struct headname *)((head)->vtqh_last))->vtqh_last))
  ------------------
  |  Branch (215:9): [True: 1.68k, False: 1.68k]
  ------------------
  216|  1.68k|	    wa->ptr != p)
  ------------------
  |  Branch (216:6): [True: 1.68k, False: 0]
  ------------------
  217|  1.68k|		ws_alloc_free(we, &wa);
  218|  1.68k|	if (wa == NULL)
  ------------------
  |  Branch (218:6): [True: 1.68k, False: 0]
  ------------------
  219|  1.68k|		assert(p == ws->s);
  ------------------
  |  |   65|  1.68k|#define assert(e)							\
  |  |   66|  1.68k|do {									\
  |  |   67|  1.68k|	if (!(e)) {							\
  |  |  ------------------
  |  |  |  Branch (67:6): [True: 0, False: 1.68k]
  |  |  ------------------
  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |   70|      0|	}								\
  |  |   71|  1.68k|} while (0)
  |  |  ------------------
  |  |  |  Branch (71:10): [Folded, False: 1.68k]
  |  |  ------------------
  ------------------
  220|       |
  221|  1.68k|	WS_Assert(ws);
  222|  1.68k|}
WS_Alloc:
  304|  1.68k|{
  305|  1.68k|	struct ws_alloc *wa;
  306|       |
  307|  1.68k|	assert(bytes > 0);
  ------------------
  |  |   65|  1.68k|#define assert(e)							\
  |  |   66|  1.68k|do {									\
  |  |   67|  1.68k|	if (!(e)) {							\
  |  |  ------------------
  |  |  |  Branch (67:6): [True: 0, False: 1.68k]
  |  |  ------------------
  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |   70|      0|	}								\
  |  |   71|  1.68k|} while (0)
  |  |  ------------------
  |  |  |  Branch (71:10): [Folded, False: 1.68k]
  |  |  ------------------
  ------------------
  308|  1.68k|	wa = ws_emu_alloc(ws, bytes);
  309|  1.68k|	WS_Assert(ws);
  310|  1.68k|	if (wa != NULL) {
  ------------------
  |  Branch (310:6): [True: 1.68k, False: 0]
  ------------------
  311|  1.68k|		AN(wa->ptr);
  ------------------
  |  |   84|  1.68k|#define AN(foo)		do { assert((foo) != 0); } while (0)
  |  |  ------------------
  |  |  |  |   65|  1.68k|#define assert(e)							\
  |  |  |  |   66|  1.68k|do {									\
  |  |  |  |   67|  1.68k|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 1.68k]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|  1.68k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 1.68k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (84:52): [Folded, False: 1.68k]
  |  |  ------------------
  ------------------
  312|  1.68k|		DSLb(DBG_WORKSPACE, "WS_Alloc(%p, %u) = %p",
  ------------------
  |  |  629|  1.68k|	do {							\
  |  |  630|  1.68k|		if (DO_DEBUG(debug_bit))			\
  |  |  ------------------
  |  |  |  |  620|  1.68k|#define DO_DEBUG(x)	COM_DO_DEBUG(cache_param->debug_bits, x)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (620:21): [True: 0, False: 1.68k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  631|  1.68k|			WRK_Log(SLT_Debug, __VA_ARGS__);	\
  |  |  632|  1.68k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (632:11): [Folded, False: 1.68k]
  |  |  ------------------
  ------------------
  313|  1.68k|		    ws, bytes, wa->ptr);
  314|  1.68k|		return (wa->ptr);
  315|  1.68k|	}
  316|      0|	return (NULL);
  317|  1.68k|}
cache_ws_emu.c:ws_emu:
   67|  13.4k|{
   68|  13.4k|	struct ws_emu *we;
   69|       |
   70|  13.4k|	CAST_OBJ_NOTNULL(we, (void *)ws->s, WS_EMU_MAGIC);
  ------------------
  |  |   85|  13.4k|	do {								\
  |  |   86|  13.4k|		(to) = (from);						\
  |  |   87|  13.4k|		AN((to));						\
  |  |  ------------------
  |  |  |  |   84|  13.4k|#define AN(foo)		do { assert((foo) != 0); } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  |   65|  13.4k|#define assert(e)							\
  |  |  |  |  |  |   66|  13.4k|do {									\
  |  |  |  |  |  |   67|  13.4k|	if (!(e)) {							\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (67:6): [True: 0, False: 13.4k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |  |  |   70|      0|	}								\
  |  |  |  |  |  |   71|  13.4k|} while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (71:10): [Folded, False: 13.4k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (84:52): [Folded, False: 13.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   88|  13.4k|		CHECK_OBJ((to), (type_magic));				\
  |  |  ------------------
  |  |  |  |   61|  13.4k|	do {								\
  |  |  |  |   62|  13.4k|		assert((ptr)->magic == type_magic);			\
  |  |  |  |  ------------------
  |  |  |  |  |  |   65|  13.4k|#define assert(e)							\
  |  |  |  |  |  |   66|  13.4k|do {									\
  |  |  |  |  |  |   67|  13.4k|	if (!(e)) {							\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (67:6): [True: 0, False: 13.4k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |  |  |   70|      0|	}								\
  |  |  |  |  |  |   71|  13.4k|} while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (71:10): [Folded, False: 13.4k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   63|  13.4k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (63:11): [Folded, False: 13.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   89|  13.4k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (89:11): [Folded, False: 13.4k]
  |  |  ------------------
  ------------------
   71|  13.4k|	return (we);
   72|  13.4k|}
cache_ws_emu.c:ws_alloc_free:
  186|  1.68k|{
  187|  1.68k|	struct ws_alloc *wa;
  188|       |
  189|  1.68k|	TAKE_OBJ_NOTNULL(wa, wap, WS_ALLOC_MAGIC);
  ------------------
  |  |   92|  1.68k|	do {								\
  |  |   93|  1.68k|		AN((pfrom));						\
  |  |  ------------------
  |  |  |  |   84|  1.68k|#define AN(foo)		do { assert((foo) != 0); } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  |   65|  1.68k|#define assert(e)							\
  |  |  |  |  |  |   66|  1.68k|do {									\
  |  |  |  |  |  |   67|  1.68k|	if (!(e)) {							\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (67:6): [True: 0, False: 1.68k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |  |  |   70|      0|	}								\
  |  |  |  |  |  |   71|  1.68k|} while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (71:10): [Folded, False: 1.68k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (84:52): [Folded, False: 1.68k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   94|  1.68k|		(to) = *(pfrom);					\
  |  |   95|  1.68k|		*(pfrom) = NULL;					\
  |  |   96|  1.68k|		CHECK_OBJ_NOTNULL((to), (type_magic));			\
  |  |  ------------------
  |  |  |  |   66|  1.68k|	do {								\
  |  |  |  |   67|  1.68k|		assert((ptr) != NULL);					\
  |  |  |  |  ------------------
  |  |  |  |  |  |   65|  1.68k|#define assert(e)							\
  |  |  |  |  |  |   66|  1.68k|do {									\
  |  |  |  |  |  |   67|  1.68k|	if (!(e)) {							\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (67:6): [True: 0, False: 1.68k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |  |  |   70|      0|	}								\
  |  |  |  |  |  |   71|  1.68k|} while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (71:10): [Folded, False: 1.68k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   68|  1.68k|		assert((ptr)->magic == type_magic);			\
  |  |  |  |  ------------------
  |  |  |  |  |  |   65|  1.68k|#define assert(e)							\
  |  |  |  |  |  |   66|  1.68k|do {									\
  |  |  |  |  |  |   67|  1.68k|	if (!(e)) {							\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (67:6): [True: 0, False: 1.68k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |  |  |   70|      0|	}								\
  |  |  |  |  |  |   71|  1.68k|} while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (71:10): [Folded, False: 1.68k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   69|  1.68k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (69:11): [Folded, False: 1.68k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   97|  1.68k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (97:11): [Folded, False: 1.68k]
  |  |  ------------------
  ------------------
  190|  1.68k|	AZ(VTAILQ_NEXT(wa, list));
  ------------------
  |  |   83|  1.68k|#define AZ(foo)		do { assert((foo) == 0); } while (0)
  |  |  ------------------
  |  |  |  |   65|  1.68k|#define assert(e)							\
  |  |  |  |   66|  1.68k|do {									\
  |  |  |  |   67|  1.68k|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 1.68k]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|  1.68k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 1.68k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (83:52): [Folded, False: 1.68k]
  |  |  ------------------
  ------------------
  191|  1.68k|	VTAILQ_REMOVE(&we->head, wa, list);
  ------------------
  |  |  547|  1.68k|#define	VTAILQ_REMOVE(head, elm, field) do {				\
  |  |  548|  1.68k|	if ((VTAILQ_NEXT((elm), field)) != NULL)			\
  |  |  ------------------
  |  |  |  |  542|  1.68k|#define	VTAILQ_NEXT(elm, field) ((elm)->field.vtqe_next)
  |  |  ------------------
  |  |  |  Branch (548:6): [True: 0, False: 1.68k]
  |  |  ------------------
  |  |  549|  1.68k|		VTAILQ_NEXT((elm), field)->field.vtqe_prev =		\
  |  |  ------------------
  |  |  |  |  542|      0|#define	VTAILQ_NEXT(elm, field) ((elm)->field.vtqe_next)
  |  |  ------------------
  |  |  550|      0|		    (elm)->field.vtqe_prev;				\
  |  |  551|  1.68k|	else {								\
  |  |  552|  1.68k|		(head)->vtqh_last = (elm)->field.vtqe_prev;		\
  |  |  553|  1.68k|	}								\
  |  |  554|  1.68k|	*(elm)->field.vtqe_prev = VTAILQ_NEXT((elm), field);		\
  |  |  ------------------
  |  |  |  |  542|  1.68k|#define	VTAILQ_NEXT(elm, field) ((elm)->field.vtqe_next)
  |  |  ------------------
  |  |  555|  1.68k|	TRASHIT(*oldnext);						\
  |  |  556|  1.68k|	TRASHIT(*oldprev);						\
  |  |  557|  1.68k|} while (0)
  |  |  ------------------
  |  |  |  Branch (557:10): [Folded, False: 1.68k]
  |  |  ------------------
  ------------------
  192|  1.68k|	free(wa->ptr);
  193|       |	FREE_OBJ(wa);
  ------------------
  |  |   51|  1.68k|	do {								\
  |  |   52|  1.68k|		ZERO_OBJ(&(to)->magic, sizeof (to)->magic);		\
  |  |  ------------------
  |  |  |  |    9|  1.68k|	do {								\
  |  |  |  |   10|  1.68k|		void *(*volatile z_obj)(void *, int, size_t) = memset;	\
  |  |  |  |   11|  1.68k|		(void)z_obj(to, 0, sz);					\
  |  |  |  |   12|  1.68k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (12:11): [Folded, False: 1.68k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   53|  1.68k|		free(to);						\
  |  |   54|  1.68k|		to = NULL;						\
  |  |   55|  1.68k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (55:11): [Folded, False: 1.68k]
  |  |  ------------------
  ------------------
  194|  1.68k|}
cache_ws_emu.c:ws_emu_alloc:
  269|  1.68k|{
  270|  1.68k|	struct ws_emu *we;
  271|  1.68k|	struct ws_alloc *wa;
  272|  1.68k|	size_t off = 0;
  273|       |
  274|  1.68k|	WS_Assert(ws);
  275|  1.68k|	AZ(ws->r);
  ------------------
  |  |   83|  1.68k|#define AZ(foo)		do { assert((foo) == 0); } while (0)
  |  |  ------------------
  |  |  |  |   65|  1.68k|#define assert(e)							\
  |  |  |  |   66|  1.68k|do {									\
  |  |  |  |   67|  1.68k|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 1.68k]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|  1.68k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 1.68k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (83:52): [Folded, False: 1.68k]
  |  |  ------------------
  ------------------
  276|       |
  277|  1.68k|	we = ws_emu(ws);
  278|  1.68k|	wa = VTAILQ_LAST(&we->head, ws_alloc_head);
  ------------------
  |  |  540|  1.68k|	(*(((struct headname *)((head)->vtqh_last))->vtqh_last))
  ------------------
  279|  1.68k|	CHECK_OBJ_ORNULL(wa, WS_ALLOC_MAGIC);
  ------------------
  |  |   72|  1.68k|	do {								\
  |  |   73|  1.68k|		if ((ptr) != NULL)					\
  |  |  ------------------
  |  |  |  Branch (73:7): [True: 0, False: 1.68k]
  |  |  ------------------
  |  |   74|  1.68k|			assert((ptr)->magic == type_magic);		\
  |  |  ------------------
  |  |  |  |   65|      0|#define assert(e)							\
  |  |  |  |   66|      0|do {									\
  |  |  |  |   67|      0|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|      0|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   75|  1.68k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (75:11): [Folded, False: 1.68k]
  |  |  ------------------
  ------------------
  280|       |
  281|  1.68k|	if (wa != NULL)
  ------------------
  |  Branch (281:6): [True: 0, False: 1.68k]
  ------------------
  282|      0|		off = wa->off + PRNDUP(wa->len);
  ------------------
  |  |  168|      0|#define PRNDUP(p)   (((uintptr_t)(p) + PALGN) & ~PALGN)	/* Round up */
  |  |  ------------------
  |  |  |  |  164|      0|#  define PALGN	    (sizeof(void *) - 1)	/* size of alignment */
  |  |  ------------------
  |  |               #define PRNDUP(p)   (((uintptr_t)(p) + PALGN) & ~PALGN)	/* Round up */
  |  |  ------------------
  |  |  |  |  164|      0|#  define PALGN	    (sizeof(void *) - 1)	/* size of alignment */
  |  |  ------------------
  ------------------
  283|  1.68k|	if (off + len > we->len) {
  ------------------
  |  Branch (283:6): [True: 0, False: 1.68k]
  ------------------
  284|      0|		WS_MarkOverflow(ws);
  285|      0|		return (NULL);
  286|      0|	}
  287|  1.68k|	if (len == 0)
  ------------------
  |  Branch (287:6): [True: 0, False: 1.68k]
  ------------------
  288|      0|		len = we->len - off;
  289|       |
  290|  1.68k|	ALLOC_OBJ(wa, WS_ALLOC_MAGIC);
  ------------------
  |  |   27|  1.68k|	do {								\
  |  |   28|  1.68k|		(to) = calloc((size_t)1, sizeof *(to));			\
  |  |   29|  1.68k|		if ((to) != NULL)					\
  |  |  ------------------
  |  |  |  Branch (29:7): [True: 1.68k, False: 0]
  |  |  ------------------
  |  |   30|  1.68k|			(to)->magic = (type_magic);			\
  |  |   31|  1.68k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (31:11): [Folded, False: 1.68k]
  |  |  ------------------
  ------------------
  291|  1.68k|	AN(wa);
  ------------------
  |  |   84|  1.68k|#define AN(foo)		do { assert((foo) != 0); } while (0)
  |  |  ------------------
  |  |  |  |   65|  1.68k|#define assert(e)							\
  |  |  |  |   66|  1.68k|do {									\
  |  |  |  |   67|  1.68k|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 1.68k]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|  1.68k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 1.68k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (84:52): [Folded, False: 1.68k]
  |  |  ------------------
  ------------------
  292|  1.68k|	wa->off = off;
  293|  1.68k|	wa->len = len;
  294|  1.68k|	if (len > 0) {
  ------------------
  |  Branch (294:6): [True: 1.68k, False: 0]
  ------------------
  295|  1.68k|		wa->ptr = malloc(len);
  296|  1.68k|		AN(wa->ptr);
  ------------------
  |  |   84|  1.68k|#define AN(foo)		do { assert((foo) != 0); } while (0)
  |  |  ------------------
  |  |  |  |   65|  1.68k|#define assert(e)							\
  |  |  |  |   66|  1.68k|do {									\
  |  |  |  |   67|  1.68k|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 1.68k]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|  1.68k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 1.68k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (84:52): [Folded, False: 1.68k]
  |  |  ------------------
  ------------------
  297|  1.68k|	}
  298|  1.68k|	VTAILQ_INSERT_TAIL(&we->head, wa, list);
  ------------------
  |  |  532|  1.68k|#define	VTAILQ_INSERT_TAIL(head, elm, field) do {			\
  |  |  533|  1.68k|	VTAILQ_NEXT((elm), field) = NULL;				\
  |  |  ------------------
  |  |  |  |  542|  1.68k|#define	VTAILQ_NEXT(elm, field) ((elm)->field.vtqe_next)
  |  |  ------------------
  |  |  534|  1.68k|	(elm)->field.vtqe_prev = (head)->vtqh_last;			\
  |  |  535|  1.68k|	*(head)->vtqh_last = (elm);					\
  |  |  536|  1.68k|	(head)->vtqh_last = &VTAILQ_NEXT((elm), field);			\
  |  |  ------------------
  |  |  |  |  542|  1.68k|#define	VTAILQ_NEXT(elm, field) ((elm)->field.vtqe_next)
  |  |  ------------------
  |  |  537|  1.68k|} while (0)
  |  |  ------------------
  |  |  |  Branch (537:10): [Folded, False: 1.68k]
  |  |  ------------------
  ------------------
  299|  1.68k|	return (wa);
  300|  1.68k|}

cache_ws_emu.c:COM_DO_DEBUG:
   51|  15.1k|{
   52|  15.1k|	return ((p[(unsigned)x>>3] & (0x80U >> ((unsigned)x & 7))) != 0);
   53|  15.1k|}

VSLb:
   76|  34.9k|{
   77|  34.9k|	(void)vsl;
   78|  34.9k|	(void)tag;
   79|  34.9k|	(void)fmt;
   80|  34.9k|}
LLVMFuzzerTestOneInput:
  120|  1.68k|{
  121|  1.68k|	struct VSC_main __VSC_C_main;
  122|  1.68k|	struct params __cache_param;
  123|  1.68k|	struct http req[1];
  124|  1.68k|	struct http resp[1];
  125|  1.68k|	struct vfp_ctx vc[1];
  126|  1.68k|	struct worker wrk[1];
  127|  1.68k|	struct ws ws[1];
  128|  1.68k|	struct vep_state *vep;
  129|  1.68k|	struct vsb *vsb;
  130|  1.68k|	txt hd[HTTP_HDR_URL + 1];
  131|  1.68k|	struct vep_flags flags = {0};
  132|  1.68k|	char ws_buf[1024];
  133|       |
  134|  1.68k|	if (size < 1)
  ------------------
  |  Branch (134:6): [True: 0, False: 1.68k]
  ------------------
  135|      0|		return (0);
  136|       |
  137|  1.68k|	AN(data);
  ------------------
  |  |   84|  1.68k|#define AN(foo)		do { assert((foo) != 0); } while (0)
  |  |  ------------------
  |  |  |  |   65|  1.68k|#define assert(e)							\
  |  |  |  |   66|  1.68k|do {									\
  |  |  |  |   67|  1.68k|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 1.68k]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|  1.68k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 1.68k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (84:52): [Folded, False: 1.68k]
  |  |  ------------------
  ------------------
  138|       |
  139|  1.68k|	VSC_C_main = &__VSC_C_main;
  140|  1.68k|	cache_param = &__cache_param;
  141|       |
  142|  1.68k|	memset(&__cache_param, 0, sizeof(__cache_param));
  143|  1.68k|	if (data[0] & 0x8f)
  ------------------
  |  Branch (143:6): [True: 1.62k, False: 57]
  ------------------
  144|  1.62k|		flags.esi_ignore_https = 1;
  145|  1.68k|	if (size > 1 && data[1] & 0x8f)
  ------------------
  |  Branch (145:6): [True: 1.65k, False: 30]
  |  Branch (145:18): [True: 1.59k, False: 56]
  ------------------
  146|  1.59k|		flags.esi_disable_xml_check = 1;
  147|  1.68k|	if (size > 2 && data[2] & 0x8f)
  ------------------
  |  Branch (147:6): [True: 1.62k, False: 55]
  |  Branch (147:18): [True: 1.56k, False: 66]
  ------------------
  148|  1.56k|		flags.esi_ignore_other_elements = 1;
  149|  1.68k|	if (size > 3 && data[3] & 0x8f)
  ------------------
  |  Branch (149:6): [True: 1.61k, False: 68]
  |  Branch (149:18): [True: 1.56k, False: 46]
  ------------------
  150|  1.56k|		flags.esi_remove_bom = 1;
  151|       |
  152|       |	/* Setup ws */
  153|  1.68k|	WS_Init(ws, "req", ws_buf, sizeof ws_buf);
  154|       |
  155|       |	/* Setup req */
  156|  1.68k|	INIT_OBJ(req, HTTP_MAGIC);
  ------------------
  |  |   15|  1.68k|	do {								\
  |  |   16|  1.68k|		(void)memset(to, 0, sizeof *(to));			\
  |  |   17|  1.68k|		(to)->magic = (type_magic);				\
  |  |   18|  1.68k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (18:11): [Folded, False: 1.68k]
  |  |  ------------------
  ------------------
  157|  1.68k|	req->hd = hd;
  158|  1.68k|	req->hd[HTTP_HDR_URL].b = "/";
  159|  1.68k|	req->ws = ws;
  160|       |
  161|       |	/* Setup resp */
  162|  1.68k|	INIT_OBJ(resp, HTTP_MAGIC);
  ------------------
  |  |   15|  1.68k|	do {								\
  |  |   16|  1.68k|		(void)memset(to, 0, sizeof *(to));			\
  |  |   17|  1.68k|		(to)->magic = (type_magic);				\
  |  |   18|  1.68k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (18:11): [Folded, False: 1.68k]
  |  |  ------------------
  ------------------
  163|  1.68k|	resp->ws = ws;
  164|       |
  165|       |	/* Setup wrk */
  166|  1.68k|	INIT_OBJ(wrk, WORKER_MAGIC);
  ------------------
  |  |   15|  1.68k|	do {								\
  |  |   16|  1.68k|		(void)memset(to, 0, sizeof *(to));			\
  |  |   17|  1.68k|		(to)->magic = (type_magic);				\
  |  |   18|  1.68k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (18:11): [Folded, False: 1.68k]
  |  |  ------------------
  ------------------
  167|       |
  168|       |	/* Setup vc */
  169|  1.68k|	INIT_OBJ(vc, VFP_CTX_MAGIC);
  ------------------
  |  |   15|  1.68k|	do {								\
  |  |   16|  1.68k|		(void)memset(to, 0, sizeof *(to));			\
  |  |   17|  1.68k|		(to)->magic = (type_magic);				\
  |  |   18|  1.68k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (18:11): [Folded, False: 1.68k]
  |  |  ------------------
  ------------------
  170|  1.68k|	vc->wrk = wrk;
  171|  1.68k|	vc->resp = resp;
  172|       |
  173|  1.68k|	vep = VEP_Init(vc, req, NULL, NULL, flags);
  174|       |
  175|  1.68k|	AN(vep);
  ------------------
  |  |   84|  1.68k|#define AN(foo)		do { assert((foo) != 0); } while (0)
  |  |  ------------------
  |  |  |  |   65|  1.68k|#define assert(e)							\
  |  |  |  |   66|  1.68k|do {									\
  |  |  |  |   67|  1.68k|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 1.68k]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|  1.68k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 1.68k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (84:52): [Folded, False: 1.68k]
  |  |  ------------------
  ------------------
  176|  1.68k|	VEP_Parse(vep, (const char *)data, size);
  177|  1.68k|	vsb = VEP_Finish(vep);
  178|  1.68k|	if (vsb != NULL)
  ------------------
  |  Branch (178:6): [True: 1.18k, False: 501]
  ------------------
  179|  1.18k|		VSB_destroy(&vsb);
  180|  1.68k|	WS_Rollback(ws, 0);
  181|       |
  182|  1.68k|	return (0);
  183|  1.68k|}

cache_ws_emu.c:pdiff:
  143|  10.0k|{
  144|       |
  145|  10.0k|	AN(b);
  ------------------
  |  |   84|  10.0k|#define AN(foo)		do { assert((foo) != 0); } while (0)
  |  |  ------------------
  |  |  |  |   65|  10.0k|#define assert(e)							\
  |  |  |  |   66|  10.0k|do {									\
  |  |  |  |   67|  10.0k|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 10.0k]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|  10.0k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 10.0k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (84:52): [Folded, False: 10.0k]
  |  |  ------------------
  ------------------
  146|  10.0k|	AN(e);
  ------------------
  |  |   84|  10.0k|#define AN(foo)		do { assert((foo) != 0); } while (0)
  |  |  ------------------
  |  |  |  |   65|  10.0k|#define assert(e)							\
  |  |  |  |   66|  10.0k|do {									\
  |  |  |  |   67|  10.0k|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 10.0k]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|  10.0k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 10.0k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (84:52): [Folded, False: 10.0k]
  |  |  ------------------
  ------------------
  147|  10.0k|	assert(b <= e);
  ------------------
  |  |   65|  10.0k|#define assert(e)							\
  |  |   66|  10.0k|do {									\
  |  |   67|  10.0k|	if (!(e)) {							\
  |  |  ------------------
  |  |  |  Branch (67:6): [True: 0, False: 10.0k]
  |  |  ------------------
  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |   70|      0|	}								\
  |  |   71|  10.0k|} while (0)
  |  |  ------------------
  |  |  |  Branch (71:10): [Folded, False: 10.0k]
  |  |  ------------------
  ------------------
  148|  10.0k|	return ((size_t)((const char *)e - (const char *)b));
  149|  10.0k|}

cache_esi_parse.c:vct_is:
   63|  29.1M|{
   64|       |
   65|  29.1M|	x &= 0xff;
   66|  29.1M|	return (vct_typtab[x] & (y));
   67|  29.1M|}

cache_esi_parse.c:vbe16enc:
   93|  1.45k|{
   94|  1.45k|	uint8_t *p = (uint8_t *)pp;
   95|       |
   96|  1.45k|	p[0] = (u >> 8) & 0xff;
   97|  1.45k|	p[1] = u & 0xff;
   98|  1.45k|}
cache_esi_parse.c:vbe16dec:
   41|  1.45k|{
   42|  1.45k|	uint8_t const *p = (uint8_t const *)pp;
   43|       |
   44|  1.45k|	return ((p[0] << 8) | p[1]);
   45|  1.45k|}
cache_esi_parse.c:vbe64enc:
  113|    153|{
  114|    153|	uint8_t *p = (uint8_t *)pp;
  115|       |
  116|    153|	vbe32enc(p, (uint32_t)(u >> 32));
  117|    153|	vbe32enc(p + 4, (uint32_t)(u & 0xffffffffU));
  118|    153|}
cache_esi_parse.c:vbe32enc:
  102|    306|{
  103|    306|	uint8_t *p = (uint8_t *)pp;
  104|       |
  105|    306|	p[0] = (u >> 24) & 0xff;
  106|    306|	p[1] = (u >> 16) & 0xff;
  107|    306|	p[2] = (u >> 8) & 0xff;
  108|    306|	p[3] = u & 0xff;
  109|    306|}
cache_esi_parse.c:vbe64dec:
   57|    153|{
   58|    153|	uint8_t const *p = (uint8_t const *)pp;
   59|       |
   60|    153|	return (((uint64_t)vbe32dec(p) << 32) | vbe32dec(p + 4));
   61|    153|}
cache_esi_parse.c:vbe32dec:
   49|    306|{
   50|    306|	uint8_t const *p = (uint8_t const *)pp;
   51|       |
   52|    306|	return (((unsigned)p[0] << 24) | (p[1] << 16) | (p[2] << 8) | p[3]);
   53|    306|}

z_crc32_z:
  695|   448k|                              z_size_t len) {
  696|       |    /* Return initial CRC, if requested. */
  697|   448k|    if (buf == Z_NULL) return 0;
  ------------------
  |  |  217|   448k|#define Z_NULL  0  /* for initializing zalloc, zfree, opaque */
  ------------------
  |  Branch (697:9): [True: 177k, False: 270k]
  ------------------
  698|       |
  699|       |#ifdef DYNAMIC_CRC_TABLE
  700|       |    once(&made, make_crc_table);
  701|       |#endif /* DYNAMIC_CRC_TABLE */
  702|       |
  703|       |    /* Pre-condition the CRC */
  704|   270k|    crc = (~crc) & 0xffffffff;
  705|       |
  706|   270k|#ifdef W
  707|       |
  708|       |    /* If provided enough bytes, do a braided CRC calculation. */
  709|   270k|    if (len >= N * W + W - 1) {
  ------------------
  |  |   57|   270k|#  define N 5
  ------------------
                  if (len >= N * W + W - 1) {
  ------------------
  |  |   83|   270k|#      define W 8
  ------------------
                  if (len >= N * W + W - 1) {
  ------------------
  |  |   83|   270k|#      define W 8
  ------------------
  |  Branch (709:9): [True: 13.6k, False: 257k]
  ------------------
  710|  13.6k|        z_size_t blks;
  711|  13.6k|        z_word_t const *words;
  712|  13.6k|        unsigned endian;
  713|  13.6k|        int k;
  714|       |
  715|       |        /* Compute the CRC up to a z_word_t boundary. */
  716|  60.0k|        while (len && ((z_size_t)buf & (W - 1)) != 0) {
  ------------------
  |  |   83|  60.0k|#      define W 8
  ------------------
  |  Branch (716:16): [True: 60.0k, False: 0]
  |  Branch (716:23): [True: 46.3k, False: 13.6k]
  ------------------
  717|  46.3k|            len--;
  718|  46.3k|            crc = (crc >> 8) ^ crc_table[(crc ^ *buf++) & 0xff];
  719|  46.3k|        }
  720|       |
  721|       |        /* Compute the CRC on as many N z_word_t blocks as are available. */
  722|  13.6k|        blks = len / (N * W);
  ------------------
  |  |   57|  13.6k|#  define N 5
  ------------------
                      blks = len / (N * W);
  ------------------
  |  |   83|  13.6k|#      define W 8
  ------------------
  723|  13.6k|        len -= blks * N * W;
  ------------------
  |  |   57|  13.6k|#  define N 5
  ------------------
                      len -= blks * N * W;
  ------------------
  |  |   83|  13.6k|#      define W 8
  ------------------
  724|  13.6k|        words = (z_word_t const *)(intptr_t)buf;
  725|       |
  726|       |        /* Do endian check at execution time instead of compile time, since ARM
  727|       |           processors can change the endianness at execution time. If the
  728|       |           compiler knows what the endianness will be, it can optimize out the
  729|       |           check and the unused branch. */
  730|  13.6k|        endian = 1;
  731|  13.6k|        if (*(unsigned char *)&endian) {
  ------------------
  |  Branch (731:13): [True: 13.6k, False: 0]
  ------------------
  732|       |            /* Little endian. */
  733|       |
  734|  13.6k|            z_crc_t crc0;
  735|  13.6k|            z_word_t word0;
  736|  13.6k|#if N > 1
  737|  13.6k|            z_crc_t crc1;
  738|  13.6k|            z_word_t word1;
  739|  13.6k|#if N > 2
  740|  13.6k|            z_crc_t crc2;
  741|  13.6k|            z_word_t word2;
  742|  13.6k|#if N > 3
  743|  13.6k|            z_crc_t crc3;
  744|  13.6k|            z_word_t word3;
  745|  13.6k|#if N > 4
  746|  13.6k|            z_crc_t crc4;
  747|  13.6k|            z_word_t word4;
  748|       |#if N > 5
  749|       |            z_crc_t crc5;
  750|       |            z_word_t word5;
  751|       |#endif
  752|  13.6k|#endif
  753|  13.6k|#endif
  754|  13.6k|#endif
  755|  13.6k|#endif
  756|       |
  757|       |            /* Initialize the CRC for each braid. */
  758|  13.6k|            crc0 = crc;
  759|  13.6k|#if N > 1
  760|  13.6k|            crc1 = 0;
  761|  13.6k|#if N > 2
  762|  13.6k|            crc2 = 0;
  763|  13.6k|#if N > 3
  764|  13.6k|            crc3 = 0;
  765|  13.6k|#if N > 4
  766|  13.6k|            crc4 = 0;
  767|       |#if N > 5
  768|       |            crc5 = 0;
  769|       |#endif
  770|  13.6k|#endif
  771|  13.6k|#endif
  772|  13.6k|#endif
  773|  13.6k|#endif
  774|       |
  775|       |            /*
  776|       |              Process the first blks-1 blocks, computing the CRCs on each braid
  777|       |              independently.
  778|       |             */
  779|  1.34M|            while (--blks) {
  ------------------
  |  Branch (779:20): [True: 1.33M, False: 13.6k]
  ------------------
  780|       |                /* Load the word for each braid into registers. */
  781|  1.33M|                word0 = crc0 ^ words[0];
  782|  1.33M|#if N > 1
  783|  1.33M|                word1 = crc1 ^ words[1];
  784|  1.33M|#if N > 2
  785|  1.33M|                word2 = crc2 ^ words[2];
  786|  1.33M|#if N > 3
  787|  1.33M|                word3 = crc3 ^ words[3];
  788|  1.33M|#if N > 4
  789|  1.33M|                word4 = crc4 ^ words[4];
  790|       |#if N > 5
  791|       |                word5 = crc5 ^ words[5];
  792|       |#endif
  793|  1.33M|#endif
  794|  1.33M|#endif
  795|  1.33M|#endif
  796|  1.33M|#endif
  797|  1.33M|                words += N;
  ------------------
  |  |   57|  1.33M|#  define N 5
  ------------------
  798|       |
  799|       |                /* Compute and update the CRC for each word. The loop should
  800|       |                   get unrolled. */
  801|  1.33M|                crc0 = crc_braid_table[0][word0 & 0xff];
  802|  1.33M|#if N > 1
  803|  1.33M|                crc1 = crc_braid_table[0][word1 & 0xff];
  804|  1.33M|#if N > 2
  805|  1.33M|                crc2 = crc_braid_table[0][word2 & 0xff];
  806|  1.33M|#if N > 3
  807|  1.33M|                crc3 = crc_braid_table[0][word3 & 0xff];
  808|  1.33M|#if N > 4
  809|  1.33M|                crc4 = crc_braid_table[0][word4 & 0xff];
  810|       |#if N > 5
  811|       |                crc5 = crc_braid_table[0][word5 & 0xff];
  812|       |#endif
  813|  1.33M|#endif
  814|  1.33M|#endif
  815|  1.33M|#endif
  816|  1.33M|#endif
  817|  10.6M|                for (k = 1; k < W; k++) {
  ------------------
  |  |   83|  10.6M|#      define W 8
  ------------------
  |  Branch (817:29): [True: 9.31M, False: 1.33M]
  ------------------
  818|  9.31M|                    crc0 ^= crc_braid_table[k][(word0 >> (k << 3)) & 0xff];
  819|  9.31M|#if N > 1
  820|  9.31M|                    crc1 ^= crc_braid_table[k][(word1 >> (k << 3)) & 0xff];
  821|  9.31M|#if N > 2
  822|  9.31M|                    crc2 ^= crc_braid_table[k][(word2 >> (k << 3)) & 0xff];
  823|  9.31M|#if N > 3
  824|  9.31M|                    crc3 ^= crc_braid_table[k][(word3 >> (k << 3)) & 0xff];
  825|  9.31M|#if N > 4
  826|  9.31M|                    crc4 ^= crc_braid_table[k][(word4 >> (k << 3)) & 0xff];
  827|       |#if N > 5
  828|       |                    crc5 ^= crc_braid_table[k][(word5 >> (k << 3)) & 0xff];
  829|       |#endif
  830|  9.31M|#endif
  831|  9.31M|#endif
  832|  9.31M|#endif
  833|  9.31M|#endif
  834|  9.31M|                }
  835|  1.33M|            }
  836|       |
  837|       |            /*
  838|       |              Process the last block, combining the CRCs of the N braids at the
  839|       |              same time.
  840|       |             */
  841|  13.6k|            crc = crc_word(crc0 ^ words[0]);
  842|  13.6k|#if N > 1
  843|  13.6k|            crc = crc_word(crc1 ^ words[1] ^ crc);
  844|  13.6k|#if N > 2
  845|  13.6k|            crc = crc_word(crc2 ^ words[2] ^ crc);
  846|  13.6k|#if N > 3
  847|  13.6k|            crc = crc_word(crc3 ^ words[3] ^ crc);
  848|  13.6k|#if N > 4
  849|  13.6k|            crc = crc_word(crc4 ^ words[4] ^ crc);
  850|       |#if N > 5
  851|       |            crc = crc_word(crc5 ^ words[5] ^ crc);
  852|       |#endif
  853|  13.6k|#endif
  854|  13.6k|#endif
  855|  13.6k|#endif
  856|  13.6k|#endif
  857|  13.6k|            words += N;
  ------------------
  |  |   57|  13.6k|#  define N 5
  ------------------
  858|  13.6k|        }
  859|      0|        else {
  860|       |            /* Big endian. */
  861|       |
  862|      0|            z_word_t crc0, word0, comb;
  863|      0|#if N > 1
  864|      0|            z_word_t crc1, word1;
  865|      0|#if N > 2
  866|      0|            z_word_t crc2, word2;
  867|      0|#if N > 3
  868|      0|            z_word_t crc3, word3;
  869|      0|#if N > 4
  870|      0|            z_word_t crc4, word4;
  871|       |#if N > 5
  872|       |            z_word_t crc5, word5;
  873|       |#endif
  874|      0|#endif
  875|      0|#endif
  876|      0|#endif
  877|      0|#endif
  878|       |
  879|       |            /* Initialize the CRC for each braid. */
  880|      0|            crc0 = byte_swap(crc);
  881|      0|#if N > 1
  882|      0|            crc1 = 0;
  883|      0|#if N > 2
  884|      0|            crc2 = 0;
  885|      0|#if N > 3
  886|      0|            crc3 = 0;
  887|      0|#if N > 4
  888|      0|            crc4 = 0;
  889|       |#if N > 5
  890|       |            crc5 = 0;
  891|       |#endif
  892|      0|#endif
  893|      0|#endif
  894|      0|#endif
  895|      0|#endif
  896|       |
  897|       |            /*
  898|       |              Process the first blks-1 blocks, computing the CRCs on each braid
  899|       |              independently.
  900|       |             */
  901|      0|            while (--blks) {
  ------------------
  |  Branch (901:20): [True: 0, False: 0]
  ------------------
  902|       |                /* Load the word for each braid into registers. */
  903|      0|                word0 = crc0 ^ words[0];
  904|      0|#if N > 1
  905|      0|                word1 = crc1 ^ words[1];
  906|      0|#if N > 2
  907|      0|                word2 = crc2 ^ words[2];
  908|      0|#if N > 3
  909|      0|                word3 = crc3 ^ words[3];
  910|      0|#if N > 4
  911|      0|                word4 = crc4 ^ words[4];
  912|       |#if N > 5
  913|       |                word5 = crc5 ^ words[5];
  914|       |#endif
  915|      0|#endif
  916|      0|#endif
  917|      0|#endif
  918|      0|#endif
  919|      0|                words += N;
  ------------------
  |  |   57|      0|#  define N 5
  ------------------
  920|       |
  921|       |                /* Compute and update the CRC for each word. The loop should
  922|       |                   get unrolled. */
  923|      0|                crc0 = crc_braid_big_table[0][word0 & 0xff];
  924|      0|#if N > 1
  925|      0|                crc1 = crc_braid_big_table[0][word1 & 0xff];
  926|      0|#if N > 2
  927|      0|                crc2 = crc_braid_big_table[0][word2 & 0xff];
  928|      0|#if N > 3
  929|      0|                crc3 = crc_braid_big_table[0][word3 & 0xff];
  930|      0|#if N > 4
  931|      0|                crc4 = crc_braid_big_table[0][word4 & 0xff];
  932|       |#if N > 5
  933|       |                crc5 = crc_braid_big_table[0][word5 & 0xff];
  934|       |#endif
  935|      0|#endif
  936|      0|#endif
  937|      0|#endif
  938|      0|#endif
  939|      0|                for (k = 1; k < W; k++) {
  ------------------
  |  |   83|      0|#      define W 8
  ------------------
  |  Branch (939:29): [True: 0, False: 0]
  ------------------
  940|      0|                    crc0 ^= crc_braid_big_table[k][(word0 >> (k << 3)) & 0xff];
  941|      0|#if N > 1
  942|      0|                    crc1 ^= crc_braid_big_table[k][(word1 >> (k << 3)) & 0xff];
  943|      0|#if N > 2
  944|      0|                    crc2 ^= crc_braid_big_table[k][(word2 >> (k << 3)) & 0xff];
  945|      0|#if N > 3
  946|      0|                    crc3 ^= crc_braid_big_table[k][(word3 >> (k << 3)) & 0xff];
  947|      0|#if N > 4
  948|      0|                    crc4 ^= crc_braid_big_table[k][(word4 >> (k << 3)) & 0xff];
  949|       |#if N > 5
  950|       |                    crc5 ^= crc_braid_big_table[k][(word5 >> (k << 3)) & 0xff];
  951|       |#endif
  952|      0|#endif
  953|      0|#endif
  954|      0|#endif
  955|      0|#endif
  956|      0|                }
  957|      0|            }
  958|       |
  959|       |            /*
  960|       |              Process the last block, combining the CRCs of the N braids at the
  961|       |              same time.
  962|       |             */
  963|      0|            comb = crc_word_big(crc0 ^ words[0]);
  964|      0|#if N > 1
  965|      0|            comb = crc_word_big(crc1 ^ words[1] ^ comb);
  966|      0|#if N > 2
  967|      0|            comb = crc_word_big(crc2 ^ words[2] ^ comb);
  968|      0|#if N > 3
  969|      0|            comb = crc_word_big(crc3 ^ words[3] ^ comb);
  970|      0|#if N > 4
  971|      0|            comb = crc_word_big(crc4 ^ words[4] ^ comb);
  972|       |#if N > 5
  973|       |            comb = crc_word_big(crc5 ^ words[5] ^ comb);
  974|       |#endif
  975|      0|#endif
  976|      0|#endif
  977|      0|#endif
  978|      0|#endif
  979|      0|            words += N;
  ------------------
  |  |   57|      0|#  define N 5
  ------------------
  980|      0|            crc = byte_swap(comb);
  981|      0|        }
  982|       |
  983|       |        /*
  984|       |          Update the pointer to the remaining bytes to process.
  985|       |         */
  986|  13.6k|        buf = (unsigned char const *)words;
  987|  13.6k|    }
  988|       |
  989|   270k|#endif /* W */
  990|       |
  991|       |    /* Complete the computation of the CRC on any remaining bytes. */
  992|   346k|    while (len >= 8) {
  ------------------
  |  Branch (992:12): [True: 75.4k, False: 270k]
  ------------------
  993|  75.4k|        len -= 8;
  994|  75.4k|        crc = (crc >> 8) ^ crc_table[(crc ^ *buf++) & 0xff];
  995|  75.4k|        crc = (crc >> 8) ^ crc_table[(crc ^ *buf++) & 0xff];
  996|  75.4k|        crc = (crc >> 8) ^ crc_table[(crc ^ *buf++) & 0xff];
  997|  75.4k|        crc = (crc >> 8) ^ crc_table[(crc ^ *buf++) & 0xff];
  998|  75.4k|        crc = (crc >> 8) ^ crc_table[(crc ^ *buf++) & 0xff];
  999|  75.4k|        crc = (crc >> 8) ^ crc_table[(crc ^ *buf++) & 0xff];
 1000|  75.4k|        crc = (crc >> 8) ^ crc_table[(crc ^ *buf++) & 0xff];
 1001|  75.4k|        crc = (crc >> 8) ^ crc_table[(crc ^ *buf++) & 0xff];
 1002|  75.4k|    }
 1003|  1.09M|    while (len) {
  ------------------
  |  Branch (1003:12): [True: 825k, False: 270k]
  ------------------
 1004|   825k|        len--;
 1005|   825k|        crc = (crc >> 8) ^ crc_table[(crc ^ *buf++) & 0xff];
 1006|   825k|    }
 1007|       |
 1008|       |    /* Return the CRC, post-conditioned. */
 1009|   270k|    return crc ^ 0xffffffff;
 1010|   448k|}
z_crc32:
 1016|   448k|                            uInt len) {
 1017|   448k|    return crc32_z(crc, buf, len);
  ------------------
  |  |   44|   448k|#  define crc32_z               z_crc32_z
  ------------------
 1018|   448k|}
z_crc32_combine64:
 1021|    158|uLong ZEXPORT crc32_combine64(uLong crc1, uLong crc2, z_off64_t len2) {
 1022|       |#ifdef DYNAMIC_CRC_TABLE
 1023|       |    once(&made, make_crc_table);
 1024|       |#endif /* DYNAMIC_CRC_TABLE */
 1025|    158|    return multmodp(x2nmodp(len2, 3), crc1) ^ (crc2 & 0xffffffff);
 1026|    158|}
z_crc32_combine:
 1029|    158|uLong ZEXPORT crc32_combine(uLong crc1, uLong crc2, z_off_t len2) {
 1030|    158|    return crc32_combine64(crc1, crc2, (z_off64_t)len2);
  ------------------
  |  |   40|    158|#  define crc32_combine64       z_crc32_combine64
  ------------------
 1031|    158|}
crc32.c:crc_word:
  676|  68.3k|local z_crc_t crc_word (z_word_t data) {
  677|  68.3k|    int k;
  678|   615k|    for (k = 0; k < W; k++)
  ------------------
  |  |   83|   615k|#      define W 8
  ------------------
  |  Branch (678:17): [True: 546k, False: 68.3k]
  ------------------
  679|   546k|        data = (data >> 8) ^ crc_table[data & 0xff];
  680|  68.3k|    return (z_crc_t)data;
  681|  68.3k|}
crc32.c:multmodp:
  155|    771|local z_crc_t multmodp(z_crc_t a, z_crc_t b) {
  156|    771|    z_crc_t m, p;
  157|       |
  158|    771|    m = (z_crc_t)1 << 31;
  159|    771|    p = 0;
  160|  18.0k|    for (;;) {
  161|  18.0k|        if (a & m) {
  ------------------
  |  Branch (161:13): [True: 8.10k, False: 9.98k]
  ------------------
  162|  8.10k|            p ^= b;
  163|  8.10k|            if ((a & (m - 1)) == 0)
  ------------------
  |  Branch (163:17): [True: 771, False: 7.33k]
  ------------------
  164|    771|                break;
  165|  8.10k|        }
  166|  17.3k|        m >>= 1;
  167|  17.3k|        b = b & 1 ? (b >> 1) ^ POLY : b >> 1;
  ------------------
  |  |  149|  7.37k|#define POLY 0xedb88320         /* p(x) reflected, with x^32 implied */
  ------------------
  |  Branch (167:13): [True: 7.37k, False: 9.93k]
  ------------------
  168|  17.3k|    }
  169|    771|    return p;
  170|    771|}
crc32.c:x2nmodp:
  176|    158|local z_crc_t x2nmodp(z_off64_t n, unsigned k) {
  177|    158|    z_crc_t p;
  178|       |
  179|    158|    p = (z_crc_t)1 << 31;           /* x^0 == 1 */
  180|    920|    while (n) {
  ------------------
  |  Branch (180:12): [True: 762, False: 158]
  ------------------
  181|    762|        if (n & 1)
  ------------------
  |  Branch (181:13): [True: 613, False: 149]
  ------------------
  182|    613|            p = multmodp(x2n_table[k & 31], p);
  183|    762|        n >>= 1;
  184|    762|        k++;
  185|    762|    }
  186|    158|    return p;
  187|    158|}

VSB_new_auto:
  227|  11.9k|{
  228|  11.9k|	struct vsb *s;
  229|       |
  230|  11.9k|	s = SBMALLOC(sizeof(*s));
  ------------------
  |  |   47|  11.9k|#define	SBMALLOC(size)		malloc(size)
  ------------------
  231|  11.9k|	if (s == NULL)
  ------------------
  |  Branch (231:6): [True: 0, False: 11.9k]
  ------------------
  232|      0|		return (NULL);
  233|  11.9k|	if (VSB_newbuf(s, NULL, 0, VSB_AUTOEXTEND) == NULL) {
  ------------------
  |  |   47|  11.9k|#define	VSB_AUTOEXTEND	0x00000001	/* automatically extend buffer */
  ------------------
  |  Branch (233:6): [True: 0, False: 11.9k]
  ------------------
  234|      0|		SBFREE(s);
  ------------------
  |  |   48|      0|#define	SBFREE(buf)		free(buf)
  ------------------
  235|      0|		return (NULL);
  236|      0|	}
  237|  11.9k|	VSB_SETFLAG(s, VSB_DYNSTRUCT);
  ------------------
  |  |   64|  11.9k|#define	VSB_SETFLAG(s, f)	do { (s)->s_flags |= (f); } while (0)
  |  |  ------------------
  |  |  |  Branch (64:62): [Folded, False: 11.9k]
  |  |  ------------------
  ------------------
  238|  11.9k|	return (s);
  239|  11.9k|}
VSB_bcat:
  286|   174k|{
  287|   174k|	assert_VSB_integrity(s);
  ------------------
  |  |  108|   174k|#define	assert_VSB_integrity(s) _assert_VSB_integrity(__func__, (s))
  ------------------
  288|   174k|	assert_VSB_state(s, 0);
  ------------------
  |  |  109|   174k|#define	assert_VSB_state(s, i)	 _assert_VSB_state(__func__, (s), (i))
  ------------------
  289|       |
  290|   174k|	assert(len >= 0);
  ------------------
  |  |   65|   174k|#define assert(e)							\
  |  |   66|   174k|do {									\
  |  |   67|   174k|	if (!(e)) {							\
  |  |  ------------------
  |  |  |  Branch (67:6): [True: 0, False: 174k]
  |  |  ------------------
  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |   70|      0|	}								\
  |  |   71|   174k|} while (0)
  |  |  ------------------
  |  |  |  Branch (71:10): [Folded, False: 174k]
  |  |  ------------------
  ------------------
  291|   174k|	if (s->s_error != 0)
  ------------------
  |  Branch (291:6): [True: 0, False: 174k]
  ------------------
  292|      0|		return (-1);
  293|   174k|	if (len == 0)
  ------------------
  |  Branch (293:6): [True: 0, False: 174k]
  ------------------
  294|      0|		return (0);
  295|   174k|	_vsb_indent(s);
  296|   174k|	if (len > VSB_FREESPACE(s)) {
  ------------------
  |  |   58|   174k|#define	VSB_FREESPACE(s)	((s)->s_size - ((s)->s_len + 1L))
  ------------------
  |  Branch (296:6): [True: 820, False: 173k]
  ------------------
  297|    820|		if (VSB_extend(s, len - VSB_FREESPACE(s)) < 0)
  ------------------
  |  |   58|    820|#define	VSB_FREESPACE(s)	((s)->s_size - ((s)->s_len + 1L))
  ------------------
  |  Branch (297:7): [True: 0, False: 820]
  ------------------
  298|      0|			s->s_error = ENOMEM;
  299|    820|		if (s->s_error != 0)
  ------------------
  |  Branch (299:7): [True: 0, False: 820]
  ------------------
  300|      0|			return (-1);
  301|    820|	}
  302|   174k|	vmemcpy(s->s_buf + s->s_len, buf, len);
  ------------------
  |  |  466|   174k|#  define vmemcpy(d, s, n) __builtin_memcpy(d, s, n)
  ------------------
  303|   174k|	s->s_len += len;
  304|   174k|	return (0);
  305|   174k|}
VSB_vprintf:
  340|  6.21M|{
  341|  6.21M|	va_list ap_copy;
  342|  6.21M|	int len;
  343|       |
  344|  6.21M|	assert_VSB_integrity(s);
  ------------------
  |  |  108|  6.21M|#define	assert_VSB_integrity(s) _assert_VSB_integrity(__func__, (s))
  ------------------
  345|  6.21M|	assert_VSB_state(s, 0);
  ------------------
  |  |  109|  6.21M|#define	assert_VSB_state(s, i)	 _assert_VSB_state(__func__, (s), (i))
  ------------------
  346|       |
  347|  6.21M|	KASSERT(fmt != NULL,
  ------------------
  |  |   46|  6.21M|#define	KASSERT(e, m)		assert(e)
  |  |  ------------------
  |  |  |  |   65|  6.21M|#define assert(e)							\
  |  |  |  |   66|  6.21M|do {									\
  |  |  |  |   67|  6.21M|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 6.21M]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|  6.21M|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 6.21M]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  348|  6.21M|	    ("%s called with a NULL format string", __func__));
  349|       |
  350|  6.21M|	if (s->s_error != 0)
  ------------------
  |  Branch (350:6): [True: 0, False: 6.21M]
  ------------------
  351|      0|		return (-1);
  352|  6.21M|	_vsb_indent(s);
  353|       |
  354|       |	/*
  355|       |	 * For the moment, there is no way to get vsnprintf(3) to hand
  356|       |	 * back a character at a time, to push everything into
  357|       |	 * VSB_putc_func() as was done for the kernel.
  358|       |	 *
  359|       |	 * In userspace, while drains are useful, there's generally
  360|       |	 * not a problem attempting to malloc(3) on out of space.  So
  361|       |	 * expand a userland vsb if there is not enough room for the
  362|       |	 * data produced by VSB_[v]printf(3).
  363|       |	 */
  364|       |
  365|  6.22M|	do {
  366|  6.22M|		va_copy(ap_copy, ap);
  367|  6.22M|		len = vsnprintf(&s->s_buf[s->s_len], VSB_FREESPACE(s) + 1,
  ------------------
  |  |   58|  6.22M|#define	VSB_FREESPACE(s)	((s)->s_size - ((s)->s_len + 1L))
  ------------------
  368|  6.22M|		    fmt, ap_copy);
  369|  6.22M|		va_end(ap_copy);
  370|  6.22M|		if (len < 0) {
  ------------------
  |  Branch (370:7): [True: 0, False: 6.22M]
  ------------------
  371|      0|			s->s_error = errno;
  372|      0|			return (-1);
  373|      0|		}
  374|  6.22M|	} while (len > VSB_FREESPACE(s) &&
  ------------------
  |  |   58|  12.4M|#define	VSB_FREESPACE(s)	((s)->s_size - ((s)->s_len + 1L))
  ------------------
  |  Branch (374:11): [True: 2.55k, False: 6.21M]
  ------------------
  375|  2.55k|	    VSB_extend(s, len - VSB_FREESPACE(s)) == 0);
  ------------------
  |  |   58|  2.55k|#define	VSB_FREESPACE(s)	((s)->s_size - ((s)->s_len + 1L))
  ------------------
  |  Branch (375:6): [True: 2.55k, False: 0]
  ------------------
  376|       |
  377|       |	/*
  378|       |	 * s->s_len is the length of the string, without the terminating nul.
  379|       |	 * When updating s->s_len, we must subtract 1 from the length that
  380|       |	 * we passed into vsnprintf() because that length includes the
  381|       |	 * terminating nul.
  382|       |	 *
  383|       |	 * vsnprintf() returns the amount that would have been copied,
  384|       |	 * given sufficient space, so don't over-increment s_len.
  385|       |	 */
  386|  6.21M|	s->s_len += vmin_t(ssize_t, len, VSB_FREESPACE(s));
  ------------------
  |  |  221|  6.21M|#define vmin_t(type, a, b)	vtake(min, type, type, a, b)
  |  |  ------------------
  |  |  |  |  215|  6.21M|#define vtake(n, ta, tb, a, b)	_vtake(op ## n, ta, tb, a, b,		\
  |  |  |  |  ------------------
  |  |  |  |  |  |  206|  6.21M|	({								\
  |  |  |  |  |  |  207|  6.21M|	ta _va = (a);							\
  |  |  |  |  |  |  208|  6.21M|	tb _vb = (b);							\
  |  |  |  |  |  |  209|  6.21M|	(void)(&_va == &_vb);						\
  |  |  |  |  |  |  210|  6.21M|	_va op _vb ? _va : _vb;						\
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (210:2): [True: 6.21M, False: 2.43k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  211|  6.21M|})
  |  |  |  |  ------------------
  |  |  |  |  216|  6.21M|    VUNIQ_NAME(_v ## n ## A), VUNIQ_NAME(_v ## n ## B))
  |  |  ------------------
  ------------------
  387|  6.21M|	if (!VSB_HASROOM(s) && !VSB_CANEXTEND(s))
  ------------------
  |  |   57|  12.4M|#define	VSB_HASROOM(s)		((s)->s_len < (s)->s_size - 1L)
  ------------------
              	if (!VSB_HASROOM(s) && !VSB_CANEXTEND(s))
  ------------------
  |  |   59|  2.43k|#define	VSB_CANEXTEND(s)	((s)->s_flags & VSB_AUTOEXTEND)
  |  |  ------------------
  |  |  |  |   47|  2.43k|#define	VSB_AUTOEXTEND	0x00000001	/* automatically extend buffer */
  |  |  ------------------
  ------------------
  |  Branch (387:6): [True: 2.43k, False: 6.21M]
  |  Branch (387:25): [True: 0, False: 2.43k]
  ------------------
  388|      0|		s->s_error = ENOMEM;
  389|       |
  390|  6.21M|	KASSERT(s->s_len < s->s_size,
  ------------------
  |  |   46|  6.21M|#define	KASSERT(e, m)		assert(e)
  |  |  ------------------
  |  |  |  |   65|  6.21M|#define assert(e)							\
  |  |  |  |   66|  6.21M|do {									\
  |  |  |  |   67|  6.21M|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 6.21M]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|  6.21M|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 6.21M]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  391|  6.21M|	    ("wrote past end of vsb (%d >= %d)", s->s_len, s->s_size));
  392|       |
  393|  6.21M|	if (s->s_error != 0)
  ------------------
  |  Branch (393:6): [True: 0, False: 6.21M]
  ------------------
  394|      0|		return (-1);
  395|  6.21M|	return (0);
  396|  6.21M|}
VSB_printf:
  403|  6.21M|{
  404|  6.21M|	va_list ap;
  405|  6.21M|	int result;
  406|       |
  407|  6.21M|	va_start(ap, fmt);
  408|  6.21M|	result = VSB_vprintf(s, fmt, ap);
  409|       |	va_end(ap);
  410|  6.21M|	return (result);
  411|  6.21M|}
VSB_putc:
  418|  16.8M|{
  419|       |
  420|  16.8M|	VSB_put_byte(s, c);
  421|  16.8M|	if (s->s_error != 0)
  ------------------
  |  Branch (421:6): [True: 0, False: 16.8M]
  ------------------
  422|      0|		return (-1);
  423|  16.8M|	return (0);
  424|  16.8M|}
VSB_finish:
  441|  11.4k|{
  442|       |
  443|  11.4k|	assert_VSB_integrity(s);
  ------------------
  |  |  108|  11.4k|#define	assert_VSB_integrity(s) _assert_VSB_integrity(__func__, (s))
  ------------------
  444|  11.4k|	assert_VSB_state(s, 0);
  ------------------
  |  |  109|  11.4k|#define	assert_VSB_state(s, i)	 _assert_VSB_state(__func__, (s), (i))
  ------------------
  445|       |
  446|  11.4k|	s->s_buf[s->s_len] = '\0';
  447|  11.4k|	VSB_SETFLAG(s, VSB_FINISHED);
  ------------------
  |  |   64|  11.4k|#define	VSB_SETFLAG(s, f)	do { (s)->s_flags |= (f); } while (0)
  |  |  ------------------
  |  |  |  Branch (64:62): [Folded, False: 11.4k]
  |  |  ------------------
  ------------------
  448|  11.4k|	errno = s->s_error;
  449|  11.4k|	if (s->s_error)
  ------------------
  |  Branch (449:6): [True: 0, False: 11.4k]
  ------------------
  450|      0|		return (-1);
  451|  11.4k|	return (0);
  452|  11.4k|}
VSB_data:
  459|  19.7k|{
  460|       |
  461|  19.7k|	assert_VSB_integrity(s);
  ------------------
  |  |  108|  19.7k|#define	assert_VSB_integrity(s) _assert_VSB_integrity(__func__, (s))
  ------------------
  462|  19.7k|	assert_VSB_state(s, VSB_FINISHED);
  ------------------
  |  |  109|  19.7k|#define	assert_VSB_state(s, i)	 _assert_VSB_state(__func__, (s), (i))
  ------------------
  463|       |
  464|  19.7k|	return (s->s_buf);
  465|  19.7k|}
VSB_len:
  472|  8.32k|{
  473|       |
  474|  8.32k|	assert_VSB_integrity(s);
  ------------------
  |  |  108|  8.32k|#define	assert_VSB_integrity(s) _assert_VSB_integrity(__func__, (s))
  ------------------
  475|       |	/* don't care if it's finished or not */
  476|       |
  477|  8.32k|	if (s->s_error != 0)
  ------------------
  |  Branch (477:6): [True: 0, False: 8.32k]
  ------------------
  478|      0|		return (-1);
  479|  8.32k|	return (s->s_len);
  480|  8.32k|}
VSB_destroy:
  494|  11.9k|{
  495|       |
  496|  11.9k|	AN(s);
  ------------------
  |  |   84|  11.9k|#define AN(foo)		do { assert((foo) != 0); } while (0)
  |  |  ------------------
  |  |  |  |   65|  11.9k|#define assert(e)							\
  |  |  |  |   66|  11.9k|do {									\
  |  |  |  |   67|  11.9k|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 11.9k]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|  11.9k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 11.9k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (84:52): [Folded, False: 11.9k]
  |  |  ------------------
  ------------------
  497|  11.9k|	assert_VSB_integrity(*s);
  ------------------
  |  |  108|  11.9k|#define	assert_VSB_integrity(s) _assert_VSB_integrity(__func__, (s))
  ------------------
  498|  11.9k|	assert(VSB_ISDYNAMIC(*s));
  ------------------
  |  |   65|  11.9k|#define assert(e)							\
  |  |   66|  11.9k|do {									\
  |  |   67|  11.9k|	if (!(e)) {							\
  |  |  ------------------
  |  |  |  Branch (67:6): [True: 0, False: 11.9k]
  |  |  ------------------
  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |   70|      0|	}								\
  |  |   71|  11.9k|} while (0)
  |  |  ------------------
  |  |  |  Branch (71:10): [Folded, False: 11.9k]
  |  |  ------------------
  ------------------
  499|  11.9k|	assert(VSB_ISDYNSTRUCT(*s));
  ------------------
  |  |   65|  11.9k|#define assert(e)							\
  |  |   66|  11.9k|do {									\
  |  |   67|  11.9k|	if (!(e)) {							\
  |  |  ------------------
  |  |  |  Branch (67:6): [True: 0, False: 11.9k]
  |  |  ------------------
  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |   70|      0|	}								\
  |  |   71|  11.9k|} while (0)
  |  |  ------------------
  |  |  |  Branch (71:10): [Folded, False: 11.9k]
  |  |  ------------------
  ------------------
  500|  11.9k|	SBFREE((*s)->s_buf);
  ------------------
  |  |   48|  11.9k|#define	SBFREE(buf)		free(buf)
  ------------------
  501|  11.9k|	memset(*s, 0, sizeof(**s));
  502|  11.9k|	SBFREE(*s);
  ------------------
  |  |   48|  11.9k|#define	SBFREE(buf)		free(buf)
  ------------------
  503|       |	*s = NULL;
  504|  11.9k|}
vsb.c:VSB_newbuf:
  185|  11.9k|{
  186|       |
  187|  11.9k|	memset(s, 0, sizeof(*s));
  188|  11.9k|	s->magic = VSB_MAGIC;
  ------------------
  |  |   41|  11.9k|#define VSB_MAGIC	0x4a82dd8a
  ------------------
  189|  11.9k|	s->s_flags = flags;
  190|  11.9k|	s->s_size = length;
  191|  11.9k|	s->s_buf = buf;
  192|       |
  193|  11.9k|	if ((s->s_flags & VSB_AUTOEXTEND) == 0) {
  ------------------
  |  |   47|  11.9k|#define	VSB_AUTOEXTEND	0x00000001	/* automatically extend buffer */
  ------------------
  |  Branch (193:6): [True: 0, False: 11.9k]
  ------------------
  194|      0|		KASSERT(s->s_size > 1,
  ------------------
  |  |   46|      0|#define	KASSERT(e, m)		assert(e)
  |  |  ------------------
  |  |  |  |   65|      0|#define assert(e)							\
  |  |  |  |   66|      0|do {									\
  |  |  |  |   67|      0|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|      0|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  195|      0|		    ("attempt to create a too small vsb"));
  196|      0|	}
  197|       |
  198|  11.9k|	if (s->s_buf != NULL)
  ------------------
  |  Branch (198:6): [True: 0, False: 11.9k]
  ------------------
  199|      0|		return (s);
  200|       |
  201|  11.9k|	if ((flags & VSB_AUTOEXTEND) != 0)
  ------------------
  |  |   47|  11.9k|#define	VSB_AUTOEXTEND	0x00000001	/* automatically extend buffer */
  ------------------
  |  Branch (201:6): [True: 11.9k, False: 0]
  ------------------
  202|  11.9k|		s->s_size = VSB_extendsize(s->s_size);
  203|       |
  204|  11.9k|	s->s_buf = SBMALLOC(s->s_size);
  ------------------
  |  |   47|  11.9k|#define	SBMALLOC(size)		malloc(size)
  ------------------
  205|  11.9k|	if (s->s_buf == NULL)
  ------------------
  |  Branch (205:6): [True: 0, False: 11.9k]
  ------------------
  206|      0|		return (NULL);
  207|  11.9k|	VSB_SETFLAG(s, VSB_DYNAMIC);
  ------------------
  |  |   64|  11.9k|#define	VSB_SETFLAG(s, f)	do { (s)->s_flags |= (f); } while (0)
  |  |  ------------------
  |  |  |  Branch (64:62): [Folded, False: 11.9k]
  |  |  ------------------
  ------------------
  208|  11.9k|	return (s);
  209|  11.9k|}
vsb.c:VSB_extendsize:
  122|  26.4k|{
  123|  26.4k|	ssize_t newsize;
  124|       |
  125|  26.4k|	if (size < (int)VSB_MAXEXTENDSIZE) {
  ------------------
  |  |   73|  26.4k|#define	VSB_MAXEXTENDSIZE	4096
  ------------------
  |  Branch (125:6): [True: 20.9k, False: 5.47k]
  ------------------
  126|  20.9k|		newsize = VSB_MINEXTENDSIZE;
  ------------------
  |  |   67|  20.9k|#define	VSB_MINEXTENDSIZE	16		/* Should be power of 2. */
  ------------------
  127|  46.8k|		while (newsize < size)
  ------------------
  |  Branch (127:10): [True: 25.8k, False: 20.9k]
  ------------------
  128|  25.8k|			newsize *= 2;
  129|  20.9k|	} else {
  130|  5.47k|		newsize = rndup2(size, VSB_MAXEXTENDINCR);
  ------------------
  |  |   50|  5.47k|#define	rndup2(x, y)	(((x)+((y)-1))&(~((y)-1))) /* if y is powers of two */
  ------------------
  131|  5.47k|	}
  132|  26.4k|	KASSERT(newsize >= size, ("%s: %d < %d\n", __func__, newsize, size));
  ------------------
  |  |   46|  26.4k|#define	KASSERT(e, m)		assert(e)
  |  |  ------------------
  |  |  |  |   65|  26.4k|#define assert(e)							\
  |  |  |  |   66|  26.4k|do {									\
  |  |  |  |   67|  26.4k|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 26.4k]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|  26.4k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 26.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  133|  26.4k|	return (newsize);
  134|  26.4k|}
vsb.c:_assert_VSB_integrity:
   83|  23.3M|{
   84|       |
   85|  23.3M|	(void)fun;
   86|  23.3M|	(void)s;
   87|  23.3M|	KASSERT(s != NULL,
  ------------------
  |  |   46|  23.3M|#define	KASSERT(e, m)		assert(e)
  |  |  ------------------
  |  |  |  |   65|  23.3M|#define assert(e)							\
  |  |  |  |   66|  23.3M|do {									\
  |  |  |  |   67|  23.3M|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 23.3M]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|  23.3M|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 23.3M]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   88|  23.3M|	    ("%s called with a NULL vsb pointer", fun));
   89|  23.3M|	KASSERT(s->magic == VSB_MAGIC,
  ------------------
  |  |   46|  23.3M|#define	KASSERT(e, m)		assert(e)
  |  |  ------------------
  |  |  |  |   65|  23.3M|#define assert(e)							\
  |  |  |  |   66|  23.3M|do {									\
  |  |  |  |   67|  23.3M|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 23.3M]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|  23.3M|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 23.3M]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   90|  23.3M|	    ("%s called with a bogus vsb pointer", fun));
   91|  23.3M|	KASSERT(s->s_buf != NULL,
  ------------------
  |  |   46|  23.3M|#define	KASSERT(e, m)		assert(e)
  |  |  ------------------
  |  |  |  |   65|  23.3M|#define assert(e)							\
  |  |  |  |   66|  23.3M|do {									\
  |  |  |  |   67|  23.3M|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 23.3M]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|  23.3M|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 23.3M]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   92|  23.3M|	    ("%s called with uninitialized or corrupt vsb", fun));
   93|  23.3M|	KASSERT(s->s_len < s->s_size,
  ------------------
  |  |   46|  23.3M|#define	KASSERT(e, m)		assert(e)
  |  |  ------------------
  |  |  |  |   65|  23.3M|#define assert(e)							\
  |  |  |  |   66|  23.3M|do {									\
  |  |  |  |   67|  23.3M|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 23.3M]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|  23.3M|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 23.3M]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   94|  23.3M|	    ("wrote past end of vsb (%d >= %d)", s->s_len, s->s_size));
   95|  23.3M|}
vsb.c:_assert_VSB_state:
   99|  23.2M|{
  100|       |
  101|  23.2M|	(void)fun;
  102|  23.2M|	(void)s;
  103|  23.2M|	(void)state;
  104|  23.2M|	KASSERT((s->s_flags & VSB_FINISHED) == state,
  ------------------
  |  |   46|  23.2M|#define	KASSERT(e, m)		assert(e)
  |  |  ------------------
  |  |  |  |   65|  23.2M|#define assert(e)							\
  |  |  |  |   66|  23.2M|do {									\
  |  |  |  |   67|  23.2M|	if (!(e)) {							\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:6): [True: 0, False: 23.2M]
  |  |  |  |  ------------------
  |  |  |  |   68|      0|		VAS_Fail(__func__, __FILE__, __LINE__,			\
  |  |  |  |   69|      0|		    #e, VAS_ASSERT);					\
  |  |  |  |   70|      0|	}								\
  |  |  |  |   71|  23.2M|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:10): [Folded, False: 23.2M]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  105|  23.2M|	    ("%s called with %sfinished or corrupt vsb", fun,
  106|  23.2M|	    (state ? "un" : "")));
  107|  23.2M|}
vsb.c:_vsb_indent:
  165|  23.2M|{
  166|  23.2M|	if (s->s_indent == 0 || s->s_error != 0 ||
  ------------------
  |  Branch (166:6): [True: 23.2M, False: 0]
  |  Branch (166:26): [True: 0, False: 0]
  ------------------
  167|      0|	    (s->s_len > 0 && s->s_buf[s->s_len - 1] != '\n'))
  ------------------
  |  Branch (167:7): [True: 0, False: 0]
  |  Branch (167:23): [True: 0, False: 0]
  ------------------
  168|  23.2M|		return;
  169|      0|	if (VSB_FREESPACE(s) <= s->s_indent &&
  ------------------
  |  |   58|      0|#define	VSB_FREESPACE(s)	((s)->s_size - ((s)->s_len + 1L))
  ------------------
  |  Branch (169:6): [True: 0, False: 0]
  ------------------
  170|      0|	    VSB_extend(s, s->s_indent) < 0) {
  ------------------
  |  Branch (170:6): [True: 0, False: 0]
  ------------------
  171|      0|		s->s_error = ENOMEM;
  172|      0|		return;
  173|      0|	}
  174|      0|	memset(s->s_buf + s->s_len, ' ', s->s_indent);
  175|      0|	s->s_len += s->s_indent;
  176|      0|}
vsb.c:VSB_extend:
  141|  14.5k|{
  142|  14.5k|	char *newbuf;
  143|  14.5k|	ssize_t newsize;
  144|       |
  145|  14.5k|	if (!VSB_CANEXTEND(s))
  ------------------
  |  |   59|  14.5k|#define	VSB_CANEXTEND(s)	((s)->s_flags & VSB_AUTOEXTEND)
  |  |  ------------------
  |  |  |  |   47|  14.5k|#define	VSB_AUTOEXTEND	0x00000001	/* automatically extend buffer */
  |  |  ------------------
  ------------------
  |  Branch (145:6): [True: 0, False: 14.5k]
  ------------------
  146|      0|		return (-1);
  147|  14.5k|	newsize = VSB_extendsize(s->s_size + addlen);
  148|  14.5k|	if (VSB_ISDYNAMIC(s))
  ------------------
  |  |   55|  14.5k|#define	VSB_ISDYNAMIC(s)	((s)->s_flags & VSB_DYNAMIC)
  |  |  ------------------
  |  |  |  |   49|  14.5k|#define	VSB_DYNAMIC	0x00010000	/* s_buf must be freed */
  |  |  ------------------
  |  |  |  Branch (55:26): [True: 14.5k, False: 0]
  |  |  ------------------
  ------------------
  149|  14.5k|		newbuf = realloc(s->s_buf, newsize);
  150|      0|	else
  151|      0|		newbuf = SBMALLOC(newsize);
  ------------------
  |  |   47|      0|#define	SBMALLOC(size)		malloc(size)
  ------------------
  152|  14.5k|	if (newbuf == NULL)
  ------------------
  |  Branch (152:6): [True: 0, False: 14.5k]
  ------------------
  153|      0|		return (-1);
  154|  14.5k|	if (!VSB_ISDYNAMIC(s)) {
  ------------------
  |  |   55|  14.5k|#define	VSB_ISDYNAMIC(s)	((s)->s_flags & VSB_DYNAMIC)
  |  |  ------------------
  |  |  |  |   49|  14.5k|#define	VSB_DYNAMIC	0x00010000	/* s_buf must be freed */
  |  |  ------------------
  ------------------
  |  Branch (154:6): [True: 0, False: 14.5k]
  ------------------
  155|      0|		vmemcpy(newbuf, s->s_buf, s->s_size);
  ------------------
  |  |  466|      0|#  define vmemcpy(d, s, n) __builtin_memcpy(d, s, n)
  ------------------
  156|      0|		VSB_SETFLAG(s, VSB_DYNAMIC);
  ------------------
  |  |   64|      0|#define	VSB_SETFLAG(s, f)	do { (s)->s_flags |= (f); } while (0)
  |  |  ------------------
  |  |  |  Branch (64:62): [Folded, False: 0]
  |  |  ------------------
  ------------------
  157|      0|	}
  158|  14.5k|	s->s_buf = newbuf;
  159|  14.5k|	s->s_size = newsize;
  160|  14.5k|	return (0);
  161|  14.5k|}
vsb.c:VSB_put_byte:
  264|  16.8M|{
  265|       |
  266|  16.8M|	assert_VSB_integrity(s);
  ------------------
  |  |  108|  16.8M|#define	assert_VSB_integrity(s) _assert_VSB_integrity(__func__, (s))
  ------------------
  267|  16.8M|	assert_VSB_state(s, 0);
  ------------------
  |  |  109|  16.8M|#define	assert_VSB_state(s, i)	 _assert_VSB_state(__func__, (s), (i))
  ------------------
  268|       |
  269|  16.8M|	if (s->s_error != 0)
  ------------------
  |  Branch (269:6): [True: 0, False: 16.8M]
  ------------------
  270|      0|		return;
  271|  16.8M|	_vsb_indent(s);
  272|  16.8M|	if (VSB_FREESPACE(s) <= 0) {
  ------------------
  |  |   58|  16.8M|#define	VSB_FREESPACE(s)	((s)->s_size - ((s)->s_len + 1L))
  ------------------
  |  Branch (272:6): [True: 11.1k, False: 16.8M]
  ------------------
  273|  11.1k|		if (VSB_extend(s, 1) < 0)
  ------------------
  |  Branch (273:7): [True: 0, False: 11.1k]
  ------------------
  274|      0|			s->s_error = ENOMEM;
  275|  11.1k|		if (s->s_error != 0)
  ------------------
  |  Branch (275:7): [True: 0, False: 11.1k]
  ------------------
  276|      0|			return;
  277|  11.1k|	}
  278|  16.8M|	s->s_buf[s->s_len++] = (char)c;
  279|  16.8M|}

