File: deduplicate_blocks.is_line_doc_comment_2.DeduplicateBlocks.panic-unwind.diff

package info (click to toggle)
rustc 1.85.0%2Bdfsg3-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental, sid, trixie
  • size: 893,396 kB
  • sloc: xml: 158,127; python: 35,830; javascript: 19,497; cpp: 19,002; sh: 17,245; ansic: 13,127; asm: 4,376; makefile: 1,051; perl: 29; lisp: 29; ruby: 19; sql: 11
file content (100 lines) | stat: -rw-r--r-- 2,470 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
- // MIR for `is_line_doc_comment_2` before DeduplicateBlocks
+ // MIR for `is_line_doc_comment_2` after DeduplicateBlocks
  
  fn is_line_doc_comment_2(_1: &str) -> bool {
      debug s => _1;
      let mut _0: bool;
      let mut _2: &[u8];
      let mut _3: &str;
      let mut _4: usize;
      let mut _5: usize;
      let mut _6: bool;
      let mut _7: usize;
      let mut _8: usize;
      let mut _9: bool;
  
      bb0: {
          StorageLive(_2);
          StorageLive(_3);
          _3 = &(*_1);
          _2 = core::str::<impl str>::as_bytes(move _3) -> [return: bb1, unwind continue];
      }
  
      bb1: {
          StorageDead(_3);
          _4 = Len((*_2));
          _5 = const 4_usize;
          _6 = Ge(move _4, move _5);
          switchInt(move _6) -> [0: bb2, otherwise: bb3];
      }
  
      bb2: {
          _7 = Len((*_2));
          _8 = const 3_usize;
          _9 = Ge(move _7, move _8);
-         switchInt(move _9) -> [0: bb7, otherwise: bb8];
+         switchInt(move _9) -> [0: bb11, otherwise: bb7];
      }
  
      bb3: {
          switchInt(copy (*_2)[0 of 4]) -> [47: bb4, otherwise: bb2];
      }
  
      bb4: {
          switchInt(copy (*_2)[1 of 4]) -> [47: bb5, otherwise: bb2];
      }
  
      bb5: {
          switchInt(copy (*_2)[2 of 4]) -> [47: bb6, otherwise: bb2];
      }
  
      bb6: {
-         switchInt(copy (*_2)[3 of 4]) -> [47: bb13, otherwise: bb2];
+         switchInt(copy (*_2)[3 of 4]) -> [47: bb11, otherwise: bb2];
      }
  
      bb7: {
-         _0 = const false;
-         goto -> bb14;
+         switchInt(copy (*_2)[0 of 3]) -> [47: bb8, otherwise: bb11];
      }
  
      bb8: {
-         switchInt(copy (*_2)[0 of 3]) -> [47: bb9, otherwise: bb7];
+         switchInt(copy (*_2)[1 of 3]) -> [47: bb9, otherwise: bb11];
      }
  
      bb9: {
-         switchInt(copy (*_2)[1 of 3]) -> [47: bb10, otherwise: bb7];
+         switchInt(copy (*_2)[2 of 3]) -> [47: bb10, 33: bb10, otherwise: bb11];
      }
  
      bb10: {
-         switchInt(copy (*_2)[2 of 3]) -> [47: bb12, 33: bb11, otherwise: bb7];
-     }
- 
-     bb11: {
          _0 = const true;
-         goto -> bb14;
+         goto -> bb12;
      }
  
-     bb12: {
-         _0 = const true;
-         goto -> bb14;
-     }
- 
-     bb13: {
+     bb11: {
          _0 = const false;
-         goto -> bb14;
+         goto -> bb12;
      }
  
-     bb14: {
+     bb12: {
          StorageDead(_2);
          return;
      }
  }