1 // MIR for `main::{closure#0}` 0 generator_resume
2 /* generator_layout = GeneratorLayout {
12 storage_conflicts: BitMatrix(1x1) {
17 fn main::{closure#0}(_1: Pin<&mut [generator@$DIR/generator-tiny.rs:19:16: 25:6]>, _2: u8) -> GeneratorState<(), ()> {
18 debug _x => _10; // in scope 0 at $DIR/generator-tiny.rs:19:17: 19:19
19 let mut _0: std::ops::GeneratorState<(), ()>; // return place in scope 0 at $DIR/generator-tiny.rs:19:16: 25:6
20 let _3: HasDrop; // in scope 0 at $DIR/generator-tiny.rs:20:13: 20:15
21 let mut _4: !; // in scope 0 at $DIR/generator-tiny.rs:21:9: 24:10
22 let mut _5: (); // in scope 0 at $DIR/generator-tiny.rs:19:16: 25:6
23 let _6: u8; // in scope 0 at $DIR/generator-tiny.rs:22:13: 22:18
24 let mut _7: (); // in scope 0 at $DIR/generator-tiny.rs:22:13: 22:18
25 let _8: (); // in scope 0 at $DIR/generator-tiny.rs:23:13: 23:21
26 let mut _9: (); // in scope 0 at $DIR/generator-tiny.rs:19:25: 19:25
27 let _10: u8; // in scope 0 at $DIR/generator-tiny.rs:19:17: 19:19
28 let mut _11: u32; // in scope 0 at $DIR/generator-tiny.rs:19:16: 25:6
30 debug _d => (((*(_1.0: &mut [generator@$DIR/generator-tiny.rs:19:16: 25:6])) as variant#3).0: HasDrop); // in scope 1 at $DIR/generator-tiny.rs:20:13: 20:15
34 _11 = discriminant((*(_1.0: &mut [generator@$DIR/generator-tiny.rs:19:16: 25:6]))); // scope 0 at $DIR/generator-tiny.rs:19:16: 25:6
35 switchInt(move _11) -> [0_u32: bb1, 3_u32: bb5, otherwise: bb6]; // scope 0 at $DIR/generator-tiny.rs:19:16: 25:6
39 _10 = move _2; // scope 0 at $DIR/generator-tiny.rs:19:16: 25:6
40 nop; // scope 0 at $DIR/generator-tiny.rs:20:13: 20:15
41 Deinit((((*(_1.0: &mut [generator@$DIR/generator-tiny.rs:19:16: 25:6])) as variant#3).0: HasDrop)); // scope 0 at $DIR/generator-tiny.rs:20:18: 20:25
42 StorageLive(_4); // scope 1 at $DIR/generator-tiny.rs:21:9: 24:10
43 goto -> bb2; // scope 1 at $DIR/generator-tiny.rs:21:9: 24:10
47 StorageLive(_6); // scope 1 at $DIR/generator-tiny.rs:22:13: 22:18
48 StorageLive(_7); // scope 1 at $DIR/generator-tiny.rs:22:13: 22:18
49 Deinit(_7); // scope 1 at $DIR/generator-tiny.rs:22:13: 22:18
50 Deinit(_0); // scope 1 at $DIR/generator-tiny.rs:22:13: 22:18
51 ((_0 as Yielded).0: ()) = move _7; // scope 1 at $DIR/generator-tiny.rs:22:13: 22:18
52 discriminant(_0) = 0; // scope 1 at $DIR/generator-tiny.rs:22:13: 22:18
53 discriminant((*(_1.0: &mut [generator@$DIR/generator-tiny.rs:19:16: 25:6]))) = 3; // scope 1 at $DIR/generator-tiny.rs:22:13: 22:18
54 return; // scope 1 at $DIR/generator-tiny.rs:22:13: 22:18
58 StorageDead(_7); // scope 1 at $DIR/generator-tiny.rs:22:17: 22:18
59 StorageDead(_6); // scope 1 at $DIR/generator-tiny.rs:22:18: 22:19
60 StorageLive(_8); // scope 1 at $DIR/generator-tiny.rs:23:13: 23:21
61 _8 = callee() -> bb4; // scope 1 at $DIR/generator-tiny.rs:23:13: 23:21
63 // + span: $DIR/generator-tiny.rs:23:13: 23:19
64 // + literal: Const { ty: fn() {callee}, val: Value(Scalar(<ZST>)) }
68 StorageDead(_8); // scope 1 at $DIR/generator-tiny.rs:23:21: 23:22
69 _5 = const (); // scope 1 at $DIR/generator-tiny.rs:21:14: 24:10
70 goto -> bb2; // scope 1 at $DIR/generator-tiny.rs:21:9: 24:10
74 StorageLive(_4); // scope 0 at $DIR/generator-tiny.rs:19:16: 25:6
75 StorageLive(_6); // scope 0 at $DIR/generator-tiny.rs:19:16: 25:6
76 StorageLive(_7); // scope 0 at $DIR/generator-tiny.rs:19:16: 25:6
77 _6 = move _2; // scope 0 at $DIR/generator-tiny.rs:19:16: 25:6
78 goto -> bb3; // scope 0 at $DIR/generator-tiny.rs:19:16: 25:6
82 unreachable; // scope 0 at $DIR/generator-tiny.rs:19:16: 25:6