@@ -67,49 +67,49 @@ checkOptree ( name => '-basic (see above, with my $a = shift)',
67
67
},
68
68
strip_open_hints => 1,
69
69
expect => <<'EOT_EOT' , expect_nt => <<'EONT_EONT' );
70
- # b <1> leavesub[1 ref] K/REFC,1 ->(end)
71
- # - <@> lineseq KP ->b
70
+ # a <1> leavesub[1 ref] K/REFC,1 ->(end)
71
+ # - <@> lineseq KP ->a
72
72
# 1 <;> nextstate(main 666 optree_samples.t:70) v:>,<,% ->2
73
- # 4 <2> sassign vKS/2 ->5
73
+ # 3 <1> padsv_store[$a:666,670] vKS/LVINTRO ->4
74
74
# 2 <0> shift s* ->3
75
- # 3 <0> padsv[$a:666,670] sRM*/LVINTRO ->4
76
- # 5 <;> nextstate(main 670 optree_samples.t:71) v:>,<,% ->6
75
+ # - <0> ex- padsv sRM*/LVINTRO ->3
76
+ # 4 <;> nextstate(main 670 optree_samples.t:71) v:>,<,% ->5
77
77
# - <1> null K/1 ->-
78
- # 7 <|> cond_expr(other->8 ) K/1 ->c
79
- # 6 <0> padsv[$a:666,670] s ->7
78
+ # 6 <|> cond_expr(other->7 ) K/1 ->b
79
+ # 5 <0> padsv[$a:666,670] s ->6
80
80
# - <@> scope K ->-
81
- # - <;> ex-nextstate(main 1603 optree_samples.t:70 ) v:>,<,% ->8
82
- # a <@> print sK ->b
83
- # 8 <0> pushmark s ->9
84
- # 9 <$> const[PV "foo"] s ->a
85
- # h <@> leave KP ->b
86
- # c <0> enter ->d
87
- # d <;> nextstate(main 668 optree_samples.t:72 ) v:>,<,% ->e
88
- # g <@> print sK ->h
89
- # e <0> pushmark s ->f
90
- # f <$> const[PV "bar"] s ->g
81
+ # - <;> ex-nextstate(main 1510 optree_samples.t:66 ) v:>,<,% ->7
82
+ # 9 <@> print sK ->a
83
+ # 7 <0> pushmark s ->8
84
+ # 8 <$> const[PV "foo"] s ->9
85
+ # g <@> leave KP ->a
86
+ # b <0> enter ->c
87
+ # c <;> nextstate(main 1510 optree_samples.t:66 ) v:>,<,% ->d
88
+ # f <@> print sK ->g
89
+ # d <0> pushmark s ->e
90
+ # e <$> const[PV "bar"] s ->f
91
91
EOT_EOT
92
- # b <1> leavesub[1 ref] K/REFC,1 ->(end)
93
- # - <@> lineseq KP ->b
94
- # 1 <;> nextstate(main 666 optree_samples.t:72 ) v:>,<,% ->2
95
- # 4 <2> sassign vKS/2 ->5
92
+ # a <1> leavesub[1 ref] K/REFC,1 ->(end)
93
+ # - <@> lineseq KP ->a
94
+ # 1 <;> nextstate(main 666 optree_samples.t:70 ) v:>,<,% ->2
95
+ # 3 <1> padsv_store[$a:666,670] vKS/LVINTRO ->4
96
96
# 2 <0> shift s* ->3
97
- # 3 <0> padsv[$a:666,670] sRM*/LVINTRO ->4
98
- # 5 <;> nextstate(main 670 optree_samples.t:73 ) v:>,<,% ->6
97
+ # - <0> ex- padsv sRM*/LVINTRO ->3
98
+ # 4 <;> nextstate(main 670 optree_samples.t:71 ) v:>,<,% ->5
99
99
# - <1> null K/1 ->-
100
- # 7 <|> cond_expr(other->8 ) K/1 ->c
101
- # 6 <0> padsv[$a:666,670] s ->7
100
+ # 6 <|> cond_expr(other->7 ) K/1 ->b
101
+ # 5 <0> padsv[$a:666,670] s ->6
102
102
# - <@> scope K ->-
103
- # - <;> ex-nextstate(main 1603 optree_samples.t:70) v:>,<,% ->8
104
- # a <@> print sK ->b
105
- # 8 <0> pushmark s ->9
106
- # 9 <$> const(PV "foo") s ->a
107
- # h <@> leave KP ->b
108
- # c <0> enter ->d
109
- # d <;> nextstate(main 668 optree_samples.t:74 ) v:>,<,% ->e
110
- # g <@> print sK ->h
111
- # e <0> pushmark s ->f
112
- # f <$> const(PV "bar") s ->g
103
+ # - <;> ex-nextstate(main 1510 optree_samples.t:70) v:>,<,% ->7
104
+ # 9 <@> print sK ->a
105
+ # 7 <0> pushmark s ->8
106
+ # 8 <$> const(PV "foo") s ->9
107
+ # g <@> leave KP ->a
108
+ # b <0> enter ->c
109
+ # c <;> nextstate(main 668 optree_samples.t:72 ) v:>,<,% ->d
110
+ # f <@> print sK ->g
111
+ # d <0> pushmark s ->e
112
+ # e <$> const(PV "bar") s ->f
113
113
EONT_EONT
114
114
115
115
checkOptree ( name => ' -exec sub {if shift print then,else}' ,
@@ -160,41 +160,39 @@ checkOptree ( name => '-exec (see above, with my $a = shift)',
160
160
expect => <<'EOT_EOT' , expect_nt => <<'EONT_EONT' );
161
161
# 1 <;> nextstate(main 675 optree_samples.t:165) v:>,<,%
162
162
# 2 <0> shift s*
163
- # 3 <0> padsv[$a:675,679] sRM*/LVINTRO
164
- # 4 <2> sassign vKS/2
165
- # 5 <;> nextstate(main 679 optree_samples.t:166) v:>,<,%
166
- # 6 <0> padsv[$a:675,679] s
167
- # 7 <|> cond_expr(other->8) K/1
168
- # 8 <0> pushmark s
169
- # 9 <$> const[PV "foo"] s
170
- # a <@> print sK
171
- # goto b
172
- # c <0> enter
173
- # d <;> nextstate(main 677 optree_samples.t:167) v:>,<,%
174
- # e <0> pushmark s
175
- # f <$> const[PV "bar"] s
176
- # g <@> print sK
177
- # h <@> leave KP
178
- # b <1> leavesub[1 ref] K/REFC,1
163
+ # 3 <1> padsv_store[$a:1522,1529] vKS/LVINTRO
164
+ # 4 <;> nextstate(main 679 optree_samples.t:166) v:>,<,%
165
+ # 5 <0> padsv[$a:675,679] s
166
+ # 6 <|> cond_expr(other->7) K/1
167
+ # 7 <0> pushmark s
168
+ # 8 <$> const[PV "foo"] s
169
+ # 9 <@> print sK
170
+ # goto a
171
+ # b <0> enter
172
+ # c <;> nextstate(main 677 optree_samples.t:167) v:>,<,%
173
+ # d <0> pushmark s
174
+ # e <$> const[PV "bar"] s
175
+ # f <@> print sK
176
+ # g <@> leave KP
177
+ # a <1> leavesub[1 ref] K/REFC,1
179
178
EOT_EOT
180
179
# 1 <;> nextstate(main 675 optree_samples.t:171) v:>,<,%
181
180
# 2 <0> shift s*
182
- # 3 <0> padsv[$a:675,679] sRM*/LVINTRO
183
- # 4 <2> sassign vKS/2
184
- # 5 <;> nextstate(main 679 optree_samples.t:172) v:>,<,%
185
- # 6 <0> padsv[$a:675,679] s
186
- # 7 <|> cond_expr(other->8) K/1
187
- # 8 <0> pushmark s
188
- # 9 <$> const(PV "foo") s
189
- # a <@> print sK
190
- # goto b
191
- # c <0> enter
192
- # d <;> nextstate(main 677 optree_samples.t:173) v:>,<,%
193
- # e <0> pushmark s
194
- # f <$> const(PV "bar") s
195
- # g <@> print sK
196
- # h <@> leave KP
197
- # b <1> leavesub[1 ref] K/REFC,1
181
+ # 3 <1> padsv_store[$a:1522,1529] vKS/LVINTRO
182
+ # 4 <;> nextstate(main 679 optree_samples.t:172) v:>,<,%
183
+ # 5 <0> padsv[$a:675,679] s
184
+ # 6 <|> cond_expr(other->7) K/1
185
+ # 7 <0> pushmark s
186
+ # 8 <$> const(PV "foo") s
187
+ # 9 <@> print sK
188
+ # goto a
189
+ # b <0> enter
190
+ # c <;> nextstate(main 677 optree_samples.t:173) v:>,<,%
191
+ # d <0> pushmark s
192
+ # e <$> const(PV "bar") s
193
+ # f <@> print sK
194
+ # g <@> leave KP
195
+ # a <1> leavesub[1 ref] K/REFC,1
198
196
EONT_EONT
199
197
200
198
checkOptree ( name => ' -exec sub { print (shift) ? "foo" : "bar" }' ,
0 commit comments