Branch Coverage

scope.c
Criterion Covered Total %
branch 241 316 76.3


line true false branch
59 21475 0 av_extend(si->si_stack, stitems > 0 ? stitems-1 : 0);
67 0 21475 Newx(si->si_cxstack, cxitems, PERL_CONTEXT);
70 0 21475 PoisonNew(si->si_cxstack, cxitems, PERL_CONTEXT);
80 0 2892 Renew(cxstack, cxstack_max + 1, PERL_CONTEXT);
83 0 2892 PoisonNew(cxstack + old_max + 1, cxstack_max - old_max, PERL_CONTEXT);
91 16468 908218469 if (PL_scopestack_ix == PL_scopestack_max) {
93 0 16468 Renew(PL_scopestack, PL_scopestack_max, I32);
110 857520501 31149493 LEAVE_SCOPE(oldsave);
120 0 633 Renew(PL_markstack, newmax, I32);
130 0 45771 Renew(PL_savestack, PL_savestack_max, ANY);
138 0 520688 Renew(PL_savestack, PL_savestack_max, ANY);
148 25446 3035 if (n < 128)
149 13686 11760 n = (PL_tmps_max < 512) ? 128 : 512;
152 0 28481 Renew(PL_tmps_stack, PL_tmps_max, SV*);
162 788759943 318175879 while (PL_tmps_ix > myfloor) { /* clean up after last statement */
167 788759943 0 if (sv && sv != &PL_sv_undef) {
788759943 0 if (sv && sv != &PL_sv_undef) {
184 26686766 14 sv = (flags & SAVEf_KEEPOLDELEM) ? osv : (*sptr = newSV(0));
186 13222593 13464187 if (SvTYPE(osv) >= SVt_PVMG && SvMAGIC(osv)) {
6512930 6709663 if (SvTYPE(osv) >= SVt_PVMG && SvMAGIC(osv)) {
187 6490462 22468 if (SvGMAGICAL(osv)) {
191 6512924 6 if (!(flags & SAVEf_KEEPOLDELEM))
206 16506 336638919 SS_ADD_END(3);
213 25527161 1867 SV ** const sptr = &GvSVn(gv);
217 6460721 19068307 if (SvGMAGICAL(*sptr)) {
278 43 6481375 SS_ADD_END(4);
290 1186363 8463474 if (empty) {
295 1186363 0 if (stash && HvENAME(stash)) {
1186363 0 if (stash && HvENAME(stash)) {
1186363 0 if (stash && HvENAME(stash)) {
1186362 1 if (stash && HvENAME(stash)) {
0 1186362 if (stash && HvENAME(stash)) {
41 1186321 if (stash && HvENAME(stash)) {
1186321 0 if (stash && HvENAME(stash)) {
1186362 0 if (stash && HvENAME(stash)) {
296 2394 1183968 if (GvNAMELEN(gv) == 3 && strnEQ(GvNAME(gv), "ISA", 3))
2393 1 if (GvNAMELEN(gv) == 3 && strnEQ(GvNAME(gv), "ISA", 3))
298 1186360 1 else if (GvCVu(gv))
4 1186356 else if (GvCVu(gv))
302 1184521 1842 if (GvIOp(gv) && (IoFLAGS(GvIOp(gv)) & IOf_ARGV)) {
4 1184517 if (GvIOp(gv) && (IoFLAGS(GvIOp(gv)) & IOf_ARGV)) {
307 1 1186362 if (isa_changed) mro_isa_changed_in(stash);
319 42381 0 AV * const oav = GvAVn(gv);
324 3 42378 if (!AvREAL(oav) && AvREIFY(oav))
3 0 if (!AvREAL(oav) && AvREIFY(oav))
329 0 42381 av = GvAVn(gv);
330 2459 39922 if (SvMAGIC(oav))
343 20075 0 save_pushptrptr(
348 0 20075 hv = GvHVn(gv);
349 2541 17534 if (SvMAGIC(ohv))
377 46 32542964 SS_ADD_END(2);
389 268 26486069 SS_ADD_END(3);
403 0 8840555 if ((int)(type >> SAVE_TIGHT_SHIFT) != i) {
410 3017 8837538 SS_ADD_END(size);
423 84 15731293 SS_ADD_END(2);
436 30 7865451 SS_ADD_END(2);
450 21 209761217 if ((I32)(type >> SAVE_TIGHT_SHIFT) != i) {
457 13032 209748206 SS_ADD_END(size);
471 80 645902028 SS_ADD_END(3);
518 0 6911291 SS_ADD_END(4);
548 6840 568677764 SS_ADD_END(2);
562 0 329416787 if ((offset_shifted >> SAVE_TIGHT_SHIFT) != offset) {
570 7 329416780 SS_ADD_END(1);
593 1566504 1 key = SvPV_const(keysv, len);
594 5 1566500 klen = SvUTF8(keysv) ? -(I32)len : (I32)len;
611 0 33 SS_ADD_END(3);
625 0 0 SS_ADD_END(3);
637 5818 135750721 SS_ADD_END(3);
645 389670 26486337 if (PL_hints & HINT_LOCALIZE_HH) {
664 0 3846928 SS_ADD_END(4);
670 13 149 {
681 0 162 SS_ADD_END(4);
684 9 153 if (!AvREAL(av) && AvREIFY(av))
9 0 if (!AvREAL(av) && AvREIFY(av))
687 156 6 if (flags & SAVEf_KEEPOLDELEM)
694 10 146 if (SvTIED_mg((const SV *)av, PERL_MAGIC_tied))
8 2 if (SvTIED_mg((const SV *)av, PERL_MAGIC_tied))
700 29747 1127843 {
713 0 1157590 SS_ADD_END(4);
716 1157582 8 if (flags & SAVEf_KEEPOLDELEM)
723 32042 1125540 if (SvTIED_mg((const SV *)hv, PERL_MAGIC_tied))
3 32039 if (SvTIED_mg((const SV *)hv, PERL_MAGIC_tied))
729 0 0 {
748 0 58253400 if ((elems_shifted >> SAVE_TIGHT_SHIFT) != elems)
753 453959 57799441 SSGROW(elems + 1);
801 992982264 0 if (base < -1)
805 2375841847 992982263 while (PL_savestack_ix > base) {
819 1947317055 428524792 if (type > SAVEt_ARG0_MAX) {
822 1106056003 841261052 if (type > SAVEt_ARG1_MAX) {
824 18156518 1087899485 if (type > SAVEt_ARG2_MAX) {
836 0 7804207 if (SvSMAGICAL(ARG1_SV)) {
858 6512930 20173850 if (SvSMAGICAL(ARG0_SV)) {
868 23596443 0 if (*ARG0_PVP != ARG1_PV) {
874 0 0 if (*ARG1_PVP != ARG0_PV) {
900 0 148799 if (hv && HvENAME(hv) && (
0 148799 if (hv && HvENAME(hv) && (
0 148799 if (hv && HvENAME(hv) && (
0 148799 if (hv && HvENAME(hv) && (
0 148799 if (hv && HvENAME(hv) && (
0 148799 if (hv && HvENAME(hv) && (
148799 0 if (hv && HvENAME(hv) && (
0 148799 if (hv && HvENAME(hv) && (
145350 3449 if (hv && HvENAME(hv) && (
901 0 145350 (ARG0_SV && SvTYPE(ARG0_SV) == SVt_PVCV)
902 0 3449 || (*svp && SvTYPE(*svp) == SVt_PVCV)
0 3449 || (*svp && SvTYPE(*svp) == SVt_PVCV)
905 148799 0 if ((char *)svp < (char *)GvGP(ARG2_GV)
906 148799 0 || (char *)svp > (char *)GvGP(ARG2_GV) + sizeof(struct gp)
907 148799 0 || GvREFCNT(ARG2_GV) > 1)
916 2454 39927 if (SvSMAGICAL(ARG0_SV)) {
926 2538 17537 if (SvSMAGICAL(ARG0_SV)) {
947 552 32542458 if (ARG0_PTR == &(TAINT_get)) {
983 9649837 0 const bool had_method = !!GvCVu(ARG1_GV);
9495968 153869 const bool had_method = !!GvCVu(ARG1_GV);
986 9649837 0 if ((hv=GvSTASH(ARG1_GV)) && HvENAME_get(hv)) {
9649837 0 if ((hv=GvSTASH(ARG1_GV)) && HvENAME_get(hv)) {
9649837 0 if ((hv=GvSTASH(ARG1_GV)) && HvENAME_get(hv)) {
9649836 1 if ((hv=GvSTASH(ARG1_GV)) && HvENAME_get(hv)) {
0 9649836 if ((hv=GvSTASH(ARG1_GV)) && HvENAME_get(hv)) {
41 9649795 if ((hv=GvSTASH(ARG1_GV)) && HvENAME_get(hv)) {
9649795 0 if ((hv=GvSTASH(ARG1_GV)) && HvENAME_get(hv)) {
9649836 0 if ((hv=GvSTASH(ARG1_GV)) && HvENAME_get(hv)) {
987 4902 9644934 if ( GvNAMELEN(ARG1_GV) == 3
988 3 4899 && strnEQ(GvNAME(ARG1_GV), "ISA", 3)
991 9495964 153869 else if (had_method || GvCVu(ARG1_GV))
9495964 0 else if (had_method || GvCVu(ARG1_GV))
1 9495963 else if (had_method || GvCVu(ARG1_GV))
993 224 153646 gv_method_changed(ARG1_GV);
1029 504600000 422654566 for (; i; i--, svp--) {
1040 501843598 2756402 if (SvREFCNT(sv) <= 1 && !SvOBJECT(sv)) {
501843086 512 if (SvREFCNT(sv) <= 1 && !SvOBJECT(sv)) {
1046 501058744 784342 if (SvPADMY(sv) && !SvFAKE(sv))
1049 331208267 170634819 if (SvTHINKFIRST(sv))
1052 2655770 499187315 if (SvTYPE(sv) == SVt_PVHV)
1054 995928 500847157 if (SvMAGICAL(sv))
1057 995928 0 if (SvTYPE(sv) != SVt_PVCV)
1076 0 27 CvNAME_HEK_set(sv, hek);
1080 31367 473851306 SvOK_off(sv);
1098 0 26 CvNAME_HEK_set(*svp,
1134 0 162 if (!AvREAL(ARG2_AV) && AvREIFY(ARG2_AV)) /* undo reify guard */
0 0 if (!AvREAL(ARG2_AV) && AvREIFY(ARG2_AV)) /* undo reify guard */
1136 162 0 if (svp) {
1138 162 0 if (sv && sv != &PL_sv_undef) {
162 0 if (sv && sv != &PL_sv_undef) {
1139 149 13 if (SvTIED_mg((const SV *)ARG2_AV, PERL_MAGIC_tied))
2 11 if (SvTIED_mg((const SV *)ARG2_AV, PERL_MAGIC_tied))
1152 1157590 0 if (he) {
1154 1157590 0 if (oval && oval != &PL_sv_undef) {
1157590 0 if (oval && oval != &PL_sv_undef) {
1156 1125545 32045 if (SvTIED_mg((const SV *)ARG2_HV, PERL_MAGIC_tied))
32039 6 if (SvTIED_mg((const SV *)ARG2_HV, PERL_MAGIC_tied))
1170 533033 26342974 if ((PL_hints & HINT_LOCALIZE_HH)) {
1171 533027 533033 while (GvHV(PL_hintgv)) {
1180 389670 26486337 if (PL_hints & HINT_LOCALIZE_HH) {
1184 157625 26718382 if (!GvHV(PL_hintgv)) {
1195 203093613 202 if (PL_comppad)
1245 2061725 23842436 if (!specialWARN(PL_compiling.cop_warnings))
2048367 13358 if (!specialWARN(PL_compiling.cop_warnings))