6 if (($Config::Config{'extensions'} !~ /\bB\b/) ){
7 print "1..0 # Skip -- Perl configured without B module\n";
10 if (!$Config::Config{useperlio}) {
11 print "1..0 # Skip -- need perlio to walk the optree\n";
20 Code test snippets here are adapted from `perldoc -f map`
22 Due to a bleadperl optimization (Dave Mitchell, circa apr 04), the
23 (map|grep)(start|while) opcodes have different flags in 5.9, their
24 private flags /1, /2 are gone in blead (for the cases covered)
26 When the optree stuff was integrated into 5.8.6, these tests failed,
27 and were todo'd. They're now done, by version-specific tweaking in
28 mkCheckRex(), therefore the skip is removed too.
33 #examples poached from perldoc -f sort
35 NOTE: name is no longer a required arg for checkOptree, as label is
36 synthesized out of others. HOWEVER, if the test-code has newlines in
37 it, the label must be overridden by an explicit name.
39 This is because t/TEST is quite particular about the test output it
40 processes, and multi-line labels violate its 1-line-per-test
45 # chunk: # sort lexically
46 @articles = sort @files;
50 checkOptree(note => q{},
52 code => q{@articles = sort @files; },
53 expect => <<'EOT_EOT', expect_nt => <<'EONT_EONT');
54 # 1 <;> nextstate(main 545 (eval 15):1) v
58 # 5 <1> rv2av[t4] lK/1
61 # 8 <#> gv[*articles] s
62 # 9 <1> rv2av[t2] lKRM*/1
63 # a <2> aassign[t5] KS/COM_AGG
64 # b <1> leavesub[1 ref] K/REFC,1
66 # 1 <;> nextstate(main 545 (eval 15):1) v
70 # 5 <1> rv2av[t2] lK/1
73 # 8 <$> gv(*articles) s
74 # 9 <1> rv2av[t1] lKRM*/1
75 # a <2> aassign[t3] KS/COM_AGG
76 # b <1> leavesub[1 ref] K/REFC,1
82 # chunk: # same thing, but with explicit sort routine
83 @articles = sort {$a cmp $b} @files;
87 checkOptree(note => q{},
89 code => q{@articles = sort {$a cmp $b} @files; },
90 expect => <<'EOT_EOT', expect_nt => <<'EONT_EONT');
91 # 1 <;> nextstate(main 546 (eval 15):1) v
95 # 5 <1> rv2av[t7] lK/1
98 # 8 <#> gv[*articles] s
99 # 9 <1> rv2av[t2] lKRM*/1
100 # a <2> aassign[t3] KS/COM_AGG
101 # b <1> leavesub[1 ref] K/REFC,1
103 # 1 <;> nextstate(main 546 (eval 15):1) v
107 # 5 <1> rv2av[t3] lK/1
110 # 8 <$> gv(*articles) s
111 # 9 <1> rv2av[t1] lKRM*/1
112 # a <2> aassign[t2] KS/COM_AGG
113 # b <1> leavesub[1 ref] K/REFC,1
119 # chunk: # now case-insensitively
120 @articles = sort {uc($a) cmp uc($b)} @files;
124 checkOptree(note => q{},
126 code => q{@articles = sort {uc($a) cmp uc($b)} @files; },
127 expect => <<'EOT_EOT', expect_nt => <<'EONT_EONT');
128 # 1 <;> nextstate(main 546 (eval 15):1) v
132 # 5 <1> rv2av[t9] lKM/1
135 # 8 <#> gv[*articles] s
136 # 9 <1> rv2av[t2] lKRM*/1
137 # a <2> aassign[t10] KS/COM_AGG
138 # b <1> leavesub[1 ref] K/REFC,1
140 # 1 <;> nextstate(main 546 (eval 15):1) v
144 # 5 <1> rv2av[t5] lKM/1
147 # 8 <$> gv(*articles) s
148 # 9 <1> rv2av[t1] lKRM*/1
149 # a <2> aassign[t6] KS/COM_AGG
150 # b <1> leavesub[1 ref] K/REFC,1
156 # chunk: # same thing in reversed order
157 @articles = sort {$b cmp $a} @files;
161 checkOptree(note => q{},
163 code => q{@articles = sort {$b cmp $a} @files; },
164 expect => <<'EOT_EOT', expect_nt => <<'EONT_EONT');
165 # 1 <;> nextstate(main 546 (eval 15):1) v
169 # 5 <1> rv2av[t7] lK/1
172 # 8 <#> gv[*articles] s
173 # 9 <1> rv2av[t2] lKRM*/1
174 # a <2> aassign[t3] KS/COM_AGG
175 # b <1> leavesub[1 ref] K/REFC,1
177 # 1 <;> nextstate(main 546 (eval 15):1) v
181 # 5 <1> rv2av[t3] lK/1
184 # 8 <$> gv(*articles) s
185 # 9 <1> rv2av[t1] lKRM*/1
186 # a <2> aassign[t2] KS/COM_AGG
187 # b <1> leavesub[1 ref] K/REFC,1
193 # chunk: # sort numerically ascending
194 @articles = sort {$a <=> $b} @files;
198 checkOptree(note => q{},
200 code => q{@articles = sort {$a <=> $b} @files; },
201 expect => <<'EOT_EOT', expect_nt => <<'EONT_EONT');
202 # 1 <;> nextstate(main 546 (eval 15):1) v
206 # 5 <1> rv2av[t7] lK/1
209 # 8 <#> gv[*articles] s
210 # 9 <1> rv2av[t2] lKRM*/1
211 # a <2> aassign[t3] KS/COM_AGG
212 # b <1> leavesub[1 ref] K/REFC,1
214 # 1 <;> nextstate(main 546 (eval 15):1) v
218 # 5 <1> rv2av[t3] lK/1
221 # 8 <$> gv(*articles) s
222 # 9 <1> rv2av[t1] lKRM*/1
223 # a <2> aassign[t2] KS/COM_AGG
224 # b <1> leavesub[1 ref] K/REFC,1
230 # chunk: # sort numerically descending
231 @articles = sort {$b <=> $a} @files;
235 checkOptree(note => q{},
237 code => q{@articles = sort {$b <=> $a} @files; },
238 expect => <<'EOT_EOT', expect_nt => <<'EONT_EONT');
239 # 1 <;> nextstate(main 587 (eval 26):1) v
243 # 5 <1> rv2av[t7] lK/1
244 # 6 <@> sort lK/DESC,NUM
246 # 8 <#> gv[*articles] s
247 # 9 <1> rv2av[t2] lKRM*/1
248 # a <2> aassign[t3] KS/COM_AGG
249 # b <1> leavesub[1 ref] K/REFC,1
251 # 1 <;> nextstate(main 546 (eval 15):1) v
255 # 5 <1> rv2av[t3] lK/1
256 # 6 <@> sort lK/DESC,NUM
258 # 8 <$> gv(*articles) s
259 # 9 <1> rv2av[t1] lKRM*/1
260 # a <2> aassign[t2] KS/COM_AGG
261 # b <1> leavesub[1 ref] K/REFC,1
267 # chunk: # this sorts the %age hash by value instead of key
268 # using an in-line function
269 @eldest = sort { $age{$b} <=> $age{$a} } keys %age;
273 checkOptree(note => q{},
275 code => q{@eldest = sort { $age{$b} <=> $age{$a} } keys %age; },
276 expect => <<'EOT_EOT', expect_nt => <<'EONT_EONT');
277 # 1 <;> nextstate(main 592 (eval 28):1) v
281 # 5 <1> rv2hv[t9] lKRM
282 # 6 <1> keys[t10] lKM/1
285 # 9 <#> gv[*eldest] s
286 # a <1> rv2av[t2] lKRM*/1
287 # b <2> aassign[t11] KS/COM_AGG
288 # c <1> leavesub[1 ref] K/REFC,1
290 # 1 <;> nextstate(main 546 (eval 15):1) v
294 # 5 <1> rv2hv[t3] lKRM
295 # 6 <1> keys[t4] lKM/1
298 # 9 <$> gv(*eldest) s
299 # a <1> rv2av[t1] lKRM*/1
300 # b <2> aassign[t5] KS/COM_AGG
301 # c <1> leavesub[1 ref] K/REFC,1
307 # chunk: # sort using explicit subroutine name
309 $age{$a} <=> $age{$b}; # presuming numeric
311 @sortedclass = sort byage @class;
315 checkOptree(note => q{},
317 code => q{sub byage { $age{$a} <=> $age{$b}; } @sortedclass = sort byage @class; },
318 expect => <<'EOT_EOT', expect_nt => <<'EONT_EONT');
319 # 1 <;> nextstate(main 597 (eval 30):1) v
322 # 4 <$> const[PV "byage"] s/BARE
324 # 6 <1> rv2av[t4] lKM/1
327 # 9 <#> gv[*sortedclass] s
328 # a <1> rv2av[t2] lKRM*/1
329 # b <2> aassign[t5] KS/COM_AGG
330 # c <1> leavesub[1 ref] K/REFC,1
332 # 1 <;> nextstate(main 546 (eval 15):1) v
335 # 4 <$> const(PV "byage") s/BARE
337 # 6 <1> rv2av[t2] lKM/1
340 # 9 <$> gv(*sortedclass) s
341 # a <1> rv2av[t1] lKRM*/1
342 # b <2> aassign[t3] KS/COM_AGG
343 # c <1> leavesub[1 ref] K/REFC,1
349 # chunk: sub backwards { $b cmp $a }
350 @harry = qw(dog cat x Cain Abel);
351 @george = qw(gone chased yz Punished Axed);
353 # prints AbelCaincatdogx
354 print sort backwards @harry;
355 # prints xdogcatCainAbel
356 print sort @george, 'to', @harry;
357 # prints AbelAxedCainPunishedcatchaseddoggonetoxyz
361 checkOptree(name => q{sort USERSUB LIST },
363 code => q{sub backwards { $b cmp $a }
364 @harry = qw(dog cat x Cain Abel);
365 @george = qw(gone chased yz Punished Axed);
366 print sort @harry; print sort backwards @harry;
367 print sort @george, 'to', @harry; },
368 expect => <<'EOT_EOT', expect_nt => <<'EONT_EONT');
369 # 1 <;> nextstate(main 602 (eval 32):2) v
371 # 3 <$> const[PV "dog"] s
372 # 4 <$> const[PV "cat"] s
373 # 5 <$> const[PV "x"] s
374 # 6 <$> const[PV "Cain"] s
375 # 7 <$> const[PV "Abel"] s
378 # a <1> rv2av[t2] lKRM*/1
379 # b <2> aassign[t3] vKS
380 # c <;> nextstate(main 602 (eval 32):3) v
382 # e <$> const[PV "gone"] s
383 # f <$> const[PV "chased"] s
384 # g <$> const[PV "yz"] s
385 # h <$> const[PV "Punished"] s
386 # i <$> const[PV "Axed"] s
388 # k <#> gv[*george] s
389 # l <1> rv2av[t5] lKRM*/1
390 # m <2> aassign[t6] vKS
391 # n <;> nextstate(main 602 (eval 32):4) v:{
395 # r <1> rv2av[t8] lK/1
398 # u <;> nextstate(main 602 (eval 32):4) v:{
401 # x <$> const[PV "backwards"] s/BARE
403 # z <1> rv2av[t10] lKM/1
406 # 12 <;> nextstate(main 602 (eval 32):5) v:{
409 # 15 <#> gv[*george] s
410 # 16 <1> rv2av[t12] lK/1
411 # 17 <$> const[PV "to"] s
412 # 18 <#> gv[*harry] s
413 # 19 <1> rv2av[t14] lK/1
416 # 1c <1> leavesub[1 ref] K/REFC,1
418 # 1 <;> nextstate(main 602 (eval 32):2) v
420 # 3 <$> const(PV "dog") s
421 # 4 <$> const(PV "cat") s
422 # 5 <$> const(PV "x") s
423 # 6 <$> const(PV "Cain") s
424 # 7 <$> const(PV "Abel") s
427 # a <1> rv2av[t1] lKRM*/1
428 # b <2> aassign[t2] vKS
429 # c <;> nextstate(main 602 (eval 32):3) v
431 # e <$> const(PV "gone") s
432 # f <$> const(PV "chased") s
433 # g <$> const(PV "yz") s
434 # h <$> const(PV "Punished") s
435 # i <$> const(PV "Axed") s
437 # k <$> gv(*george) s
438 # l <1> rv2av[t3] lKRM*/1
439 # m <2> aassign[t4] vKS
440 # n <;> nextstate(main 602 (eval 32):4) v:{
444 # r <1> rv2av[t5] lK/1
447 # u <;> nextstate(main 602 (eval 32):4) v:{
450 # x <$> const(PV "backwards") s/BARE
452 # z <1> rv2av[t6] lKM/1
455 # 12 <;> nextstate(main 602 (eval 32):5) v:{
458 # 15 <$> gv(*george) s
459 # 16 <1> rv2av[t7] lK/1
460 # 17 <$> const(PV "to") s
461 # 18 <$> gv(*harry) s
462 # 19 <1> rv2av[t8] lK/1
465 # 1c <1> leavesub[1 ref] K/REFC,1
471 # chunk: # inefficiently sort by descending numeric compare using
472 # the first integer after the first = sign, or the
473 # whole record case-insensitively otherwise
475 $nums[$b] <=> $nums[$a]
476 || $caps[$a] cmp $caps[$b]
482 # chunk: # same thing, but without any temps
483 @new = map { $_->[0] }
484 sort { $b->[1] <=> $a->[1]
485 || $a->[2] cmp $b->[2]
486 } map { [$_, /=(\d+)/, uc($_)] } @old;
490 checkOptree(name => q{Compound sort/map Expression },
492 code => q{ @new = map { $_->[0] }
493 sort { $b->[1] <=> $a->[1] || $a->[2] cmp $b->[2] }
494 map { [$_, /=(\d+)/, uc($_)] } @old; },
495 expect => <<'EOT_EOT', expect_nt => <<'EONT_EONT');
496 # 1 <;> nextstate(main 609 (eval 34):3) v:{
502 # 7 <1> rv2av[t19] lKM/1
504 # 9 <|> mapwhile(other->a)[t20] lKM
506 # b <;> nextstate(main 608 (eval 34):2) v:{
509 # e </> match(/"=(\\d+)"/) l
512 # h <@> anonlist sK*/1
517 # l <|> mapwhile(other->m)[t26] lK
518 # m <+> multideref($_->[0]) sK
522 # p <1> rv2av[t2] lKRM*/1
523 # q <2> aassign[t22] KS/COM_AGG
524 # r <1> leavesub[1 ref] K/REFC,1
526 # 1 <;> nextstate(main 609 (eval 34):3) v:{
532 # 7 <1> rv2av[t10] lKM/1
534 # 9 <|> mapwhile(other->a)[t11] lKM
536 # b <;> nextstate(main 608 (eval 34):2) v:{
539 # e </> match(/"=(\\d+)"/) l
542 # h <@> anonlist sK*/1
547 # l <|> mapwhile(other->m)[t12] lK
548 # m <+> multideref($_->[0]) sK
552 # p <1> rv2av[t1] lKRM*/1
553 # q <2> aassign[t13] KS/COM_AGG
554 # r <1> leavesub[1 ref] K/REFC,1
560 # chunk: # using a prototype allows you to use any comparison subroutine
561 # as a sort subroutine (including other package's subroutines)
563 sub backwards ($$) { $_[1] cmp $_[0]; } # $a and $b are not set here
565 @new = sort other::backwards @old;
569 checkOptree(name => q{sort other::sub LIST },
571 code => q{package other; sub backwards ($$) { $_[1] cmp $_[0]; }
572 package main; @new = sort other::backwards @old; },
573 expect => <<'EOT_EOT', expect_nt => <<'EONT_EONT');
574 # 1 <;> nextstate(main 614 (eval 36):2) v:{
577 # 4 <$> const[PV "other::backwards"] s/BARE
579 # 6 <1> rv2av[t4] lKM/1
583 # a <1> rv2av[t2] lKRM*/1
584 # b <2> aassign[t5] KS/COM_AGG
585 # c <1> leavesub[1 ref] K/REFC,1
587 # 1 <;> nextstate(main 614 (eval 36):2) v:{
590 # 4 <$> const(PV "other::backwards") s/BARE
592 # 6 <1> rv2av[t2] lKM/1
596 # a <1> rv2av[t1] lKRM*/1
597 # b <2> aassign[t3] KS/COM_AGG
598 # c <1> leavesub[1 ref] K/REFC,1
604 # chunk: # repeat, condensed. $main::a and $b are unaffected
605 sub other::backwards ($$) { $_[1] cmp $_[0]; }
606 @new = sort other::backwards @old;
610 checkOptree(note => q{},
612 code => q{sub other::backwards ($$) { $_[1] cmp $_[0]; } @new = sort other::backwards @old; },
613 expect => <<'EOT_EOT', expect_nt => <<'EONT_EONT');
614 # 1 <;> nextstate(main 619 (eval 38):1) v
617 # 4 <$> const[PV "other::backwards"] s/BARE
619 # 6 <1> rv2av[t4] lKM/1
623 # a <1> rv2av[t2] lKRM*/1
624 # b <2> aassign[t5] KS/COM_AGG
625 # c <1> leavesub[1 ref] K/REFC,1
627 # 1 <;> nextstate(main 546 (eval 15):1) v
630 # 4 <$> const(PV "other::backwards") s/BARE
632 # 6 <1> rv2av[t2] lKM/1
636 # a <1> rv2av[t1] lKRM*/1
637 # b <2> aassign[t3] KS/COM_AGG
638 # c <1> leavesub[1 ref] K/REFC,1
644 # chunk: # guarantee stability, regardless of algorithm
646 @new = sort { substr($a, 3, 5) cmp substr($b, 3, 5) } @old;
650 my ($expect, $expect_nt) = (<<'EOT_EOT', <<'EONT_EONT');
651 # 1 <;> nextstate(main 656 (eval 40):1) v:%,{
655 # 5 <1> rv2av[t9] lKM/1
656 # 6 <@> sort lKS*/STABLE
659 # 9 <1> rv2av[t2] lKRM*/1
660 # a <2> aassign[t14] KS/COM_AGG
661 # b <1> leavesub[1 ref] K/REFC,1
663 # 1 <;> nextstate(main 578 (eval 15):1) v:%,{
667 # 5 <1> rv2av[t5] lKM/1
668 # 6 <@> sort lKS*/STABLE
671 # 9 <1> rv2av[t1] lKRM*/1
672 # a <2> aassign[t6] KS/COM_AGG
673 # b <1> leavesub[1 ref] K/REFC,1
677 checkOptree(note => q{},
679 code => q{use sort 'stable'; @new = sort { substr($a, 3, 5) cmp substr($b, 3, 5) } @old; },
680 expect => $expect, expect_nt => $expect_nt);
684 # chunk: # force use of mergesort (not portable outside Perl 5.8)
685 use sort '_mergesort';
686 @new = sort { substr($a, 3, 5) cmp substr($b, 3, 5) } @old;
690 checkOptree(note => q{},
692 code => q{use sort '_mergesort'; @new = sort { substr($a, 3, 5) cmp substr($b, 3, 5) } @old; },
693 expect => <<'EOT_EOT', expect_nt => <<'EONT_EONT');
694 # 1 <;> nextstate(main 662 (eval 42):1) v:%,{
698 # 5 <1> rv2av[t9] lKM/1
702 # 9 <1> rv2av[t2] lKRM*/1
703 # a <2> aassign[t14] KS/COM_AGG
704 # b <1> leavesub[1 ref] K/REFC,1
706 # 1 <;> nextstate(main 578 (eval 15):1) v:%,{
710 # 5 <1> rv2av[t5] lKM/1
714 # 9 <1> rv2av[t1] lKRM*/1
715 # a <2> aassign[t6] KS/COM_AGG
716 # b <1> leavesub[1 ref] K/REFC,1
722 # chunk: # you should have a good reason to do this!
723 @articles = sort {$FooPack::b <=> $FooPack::a} @files;
727 checkOptree(note => q{},
729 code => q{@articles = sort {$FooPack::b <=> $FooPack::a} @files; },
730 expect => <<'EOT_EOT', expect_nt => <<'EONT_EONT');
731 # 1 <;> nextstate(main 667 (eval 44):1) v
735 # 5 <1> rv2av[t7] lKM/1
738 # 8 <#> gv[*articles] s
739 # 9 <1> rv2av[t2] lKRM*/1
740 # a <2> aassign[t8] KS/COM_AGG
741 # b <1> leavesub[1 ref] K/REFC,1
743 # 1 <;> nextstate(main 546 (eval 15):1) v
747 # 5 <1> rv2av[t3] lKM/1
750 # 8 <$> gv(*articles) s
751 # 9 <1> rv2av[t1] lKRM*/1
752 # a <2> aassign[t4] KS/COM_AGG
753 # b <1> leavesub[1 ref] K/REFC,1
760 @result = sort { $a <=> $b } grep { $_ == $_ } @input;
764 checkOptree(note => q{},
766 code => q{@result = sort { $a <=> $b } grep { $_ == $_ } @input; },
767 expect => <<'EOT_EOT', expect_nt => <<'EONT_EONT');
768 # 1 <;> nextstate(main 673 (eval 46):1) v
773 # 6 <1> rv2av[t9] lKM/1
775 # 8 <|> grepwhile(other->9)[t10] lK
782 # e <#> gv[*result] s
783 # f <1> rv2av[t2] lKRM*/1
784 # g <2> aassign[t3] KS/COM_AGG
785 # h <1> leavesub[1 ref] K/REFC,1
787 # 1 <;> nextstate(main 547 (eval 15):1) v
792 # 6 <1> rv2av[t3] lKM/1
794 # 8 <|> grepwhile(other->9)[t4] lK
801 # e <$> gv(*result) s
802 # f <1> rv2av[t1] lKRM*/1
803 # g <2> aassign[t2] KS/COM_AGG
804 # h <1> leavesub[1 ref] K/REFC,1
810 # chunk: # void return context sort
811 sort { $a <=> $b } @input;
815 checkOptree(note => q{},
817 code => q{sort { $a <=> $b } @input; },
818 expect => <<'EOT_EOT', expect_nt => <<'EONT_EONT');
819 # 1 <;> nextstate(main 678 (eval 48):1) v
822 # 4 <1> rv2av[t5] lK/1
824 # 6 <1> leavesub[1 ref] K/REFC,1
826 # 1 <;> nextstate(main 546 (eval 15):1) v
829 # 4 <1> rv2av[t2] lK/1
831 # 6 <1> leavesub[1 ref] K/REFC,1
837 # chunk: # more void context, propagating ?
838 sort { $a <=> $b } grep { $_ == $_ } @input;
842 checkOptree(note => q{},
844 code => q{sort { $a <=> $b } grep { $_ == $_ } @input; },
845 expect => <<'EOT_EOT', expect_nt => <<'EONT_EONT');
846 # 1 <;> nextstate(main 684 (eval 50):1) v
850 # 5 <1> rv2av[t7] lKM/1
852 # 7 <|> grepwhile(other->8)[t8] lK
858 # c <1> leavesub[1 ref] K/REFC,1
860 # 1 <;> nextstate(main 547 (eval 15):1) v
864 # 5 <1> rv2av[t2] lKM/1
866 # 7 <|> grepwhile(other->8)[t3] lK
872 # c <1> leavesub[1 ref] K/REFC,1
878 # chunk: # scalar return context sort
879 $s = sort { $a <=> $b } @input;
883 checkOptree(note => q{},
885 code => q{$s = sort { $a <=> $b } @input; },
886 expect => <<'EOT_EOT', expect_nt => <<'EONT_EONT');
887 # 1 <;> nextstate(main 689 (eval 52):1) v:{
890 # 4 <1> rv2av[t6] lK/1
893 # 7 <2> sassign sKS/2
894 # 8 <1> leavesub[1 ref] K/REFC,1
896 # 1 <;> nextstate(main 546 (eval 15):1) v:{
899 # 4 <1> rv2av[t2] lK/1
902 # 7 <2> sassign sKS/2
903 # 8 <1> leavesub[1 ref] K/REFC,1
909 # chunk: $s = sort { $a <=> $b } grep { $_ == $_ } @input;
913 checkOptree(note => q{},
915 code => q{$s = sort { $a <=> $b } grep { $_ == $_ } @input; },
916 expect => <<'EOT_EOT', expect_nt => <<'EONT_EONT');
917 # 1 <;> nextstate(main 695 (eval 54):1) v:{
921 # 5 <1> rv2av[t8] lKM/1
923 # 7 <|> grepwhile(other->8)[t9] lK
930 # d <2> sassign sKS/2
931 # e <1> leavesub[1 ref] K/REFC,1
933 # 1 <;> nextstate(main 547 (eval 15):1) v:{
937 # 5 <1> rv2av[t2] lKM/1
939 # 7 <|> grepwhile(other->8)[t3] lK
946 # d <2> sassign sKS/2
947 # e <1> leavesub[1 ref] K/REFC,1