@@ -11,33 +11,33 @@ fn shift_signed(_1: i8, _2: u128, _3: i8, _4: i32, _5: i128) -> ([i8; 3], [u128;
11
11
let mut _7 : i8; // in scope 0 at $DIR/shifts.rs:+2:10: +2:20
12
12
let mut _8 : i8; // in scope 0 at $DIR/shifts.rs:+2:10: +2:15
13
13
let mut _9 : i8; // in scope 0 at $DIR/shifts.rs:+2:19: +2:20
14
- let mut _10 : i8 ; // in scope 0 at $DIR/shifts.rs:+2:10: +2:20
14
+ let mut _10 : u8 ; // in scope 0 at $DIR/shifts.rs:+2:10: +2:20
15
15
let mut _11 : bool; // in scope 0 at $DIR/shifts.rs:+2:10: +2:20
16
16
let mut _12 : i8; // in scope 0 at $DIR/shifts.rs:+2:22: +2:32
17
17
let mut _13 : i8; // in scope 0 at $DIR/shifts.rs:+2:22: +2:27
18
18
let mut _14 : i32; // in scope 0 at $DIR/shifts.rs:+2:31: +2:32
19
- let mut _15 : i32 ; // in scope 0 at $DIR/shifts.rs:+2:22: +2:32
19
+ let mut _15 : u32 ; // in scope 0 at $DIR/shifts.rs:+2:22: +2:32
20
20
let mut _16 : bool; // in scope 0 at $DIR/shifts.rs:+2:22: +2:32
21
21
let mut _17 : i8; // in scope 0 at $DIR/shifts.rs:+2:34: +2:44
22
22
let mut _18 : i8; // in scope 0 at $DIR/shifts.rs:+2:34: +2:39
23
23
let mut _19 : i128; // in scope 0 at $DIR/shifts.rs:+2:43: +2:44
24
- let mut _20 : i128 ; // in scope 0 at $DIR/shifts.rs:+2:34: +2:44
24
+ let mut _20 : u128 ; // in scope 0 at $DIR/shifts.rs:+2:34: +2:44
25
25
let mut _21 : bool; // in scope 0 at $DIR/shifts.rs:+2:34: +2:44
26
26
let mut _22 : [u128; 3]; // in scope 0 at $DIR/shifts.rs:+3:9: +3:39
27
27
let mut _23 : u128; // in scope 0 at $DIR/shifts.rs:+3:10: +3:18
28
28
let mut _24 : u128; // in scope 0 at $DIR/shifts.rs:+3:10: +3:13
29
29
let mut _25 : i8; // in scope 0 at $DIR/shifts.rs:+3:17: +3:18
30
- let mut _26 : i8 ; // in scope 0 at $DIR/shifts.rs:+3:10: +3:18
30
+ let mut _26 : u8 ; // in scope 0 at $DIR/shifts.rs:+3:10: +3:18
31
31
let mut _27 : bool; // in scope 0 at $DIR/shifts.rs:+3:10: +3:18
32
32
let mut _28 : u128; // in scope 0 at $DIR/shifts.rs:+3:20: +3:28
33
33
let mut _29 : u128; // in scope 0 at $DIR/shifts.rs:+3:20: +3:23
34
34
let mut _30 : i32; // in scope 0 at $DIR/shifts.rs:+3:27: +3:28
35
- let mut _31 : i32 ; // in scope 0 at $DIR/shifts.rs:+3:20: +3:28
35
+ let mut _31 : u32 ; // in scope 0 at $DIR/shifts.rs:+3:20: +3:28
36
36
let mut _32 : bool; // in scope 0 at $DIR/shifts.rs:+3:20: +3:28
37
37
let mut _33 : u128; // in scope 0 at $DIR/shifts.rs:+3:30: +3:38
38
38
let mut _34 : u128; // in scope 0 at $DIR/shifts.rs:+3:30: +3:33
39
39
let mut _35 : i128; // in scope 0 at $DIR/shifts.rs:+3:37: +3:38
40
- let mut _36 : i128 ; // in scope 0 at $DIR/shifts.rs:+3:30: +3:38
40
+ let mut _36 : u128 ; // in scope 0 at $DIR/shifts.rs:+3:30: +3:38
41
41
let mut _37 : bool; // in scope 0 at $DIR/shifts.rs:+3:30: +3:38
42
42
43
43
bb0 : {
@@ -47,9 +47,9 @@ fn shift_signed(_1: i8, _2: u128, _3: i8, _4: i32, _5: i128) -> ([i8; 3], [u128;
47
47
_8 = _1; // scope 0 at $DIR/shifts.rs:+2:10 : +2:15
48
48
StorageLive(_9); // scope 0 at $DIR/shifts.rs:+2:19 : +2:20
49
49
_9 = _3; // scope 0 at $DIR/shifts.rs:+2:19 : +2:20
50
- _10 = BitAnd(_9, const -8_i8); // scope 0 at $DIR/shifts.rs:+2:10 : +2:20
51
- _11 = Ne (move _10, const 0_i8 ); // scope 0 at $DIR/shifts.rs:+2:10 : +2:20
52
- assert(! move _11, "attempt to shift right by `{}`, which would overflow", _9) -> [success : bb1, unwind: bb7]; // scope 0 at $DIR/shifts.rs:+2:10: +2:20
50
+ _10 = _9 as u8 (IntToInt); // scope 0 at $DIR/shifts.rs:+2:10 : +2:20
51
+ _11 = Lt (move _10, const 8_u8 ); // scope 0 at $DIR/shifts.rs:+2:10 : +2:20
52
+ assert(move _11, "attempt to shift right by `{}`, which would overflow", _9) -> [success : bb1, unwind: bb7]; // scope 0 at $DIR/shifts.rs:+2:10: +2:20
53
53
}
54
54
55
55
bb1 : {
@@ -61,9 +61,9 @@ fn shift_signed(_1: i8, _2: u128, _3: i8, _4: i32, _5: i128) -> ([i8; 3], [u128;
61
61
_13 = _1; // scope 0 at $DIR/shifts.rs:+2:22 : +2:27
62
62
StorageLive(_14); // scope 0 at $DIR/shifts.rs:+2:31 : +2:32
63
63
_14 = _4; // scope 0 at $DIR/shifts.rs:+2:31 : +2:32
64
- _15 = BitAnd( _14, const -8_i32); // scope 0 at $DIR/shifts.rs:+2:22 : +2:32
65
- _16 = Ne (move _15, const 0_i32 ); // scope 0 at $DIR/shifts.rs:+2:22 : +2:32
66
- assert(! move _16, "attempt to shift right by `{}`, which would overflow", _14) -> [success : bb2, unwind: bb7]; // scope 0 at $DIR/shifts.rs:+2:22: +2:32
64
+ _15 = _14 as u32 (IntToInt); // scope 0 at $DIR/shifts.rs:+2:22 : +2:32
65
+ _16 = Lt (move _15, const 8_u32 ); // scope 0 at $DIR/shifts.rs:+2:22 : +2:32
66
+ assert(move _16, "attempt to shift right by `{}`, which would overflow", _14) -> [success : bb2, unwind: bb7]; // scope 0 at $DIR/shifts.rs:+2:22: +2:32
67
67
}
68
68
69
69
bb2 : {
@@ -75,9 +75,9 @@ fn shift_signed(_1: i8, _2: u128, _3: i8, _4: i32, _5: i128) -> ([i8; 3], [u128;
75
75
_18 = _1; // scope 0 at $DIR/shifts.rs:+2:34 : +2:39
76
76
StorageLive(_19); // scope 0 at $DIR/shifts.rs:+2:43 : +2:44
77
77
_19 = _5; // scope 0 at $DIR/shifts.rs:+2:43 : +2:44
78
- _20 = BitAnd( _19, const -8_i128); // scope 0 at $DIR/shifts.rs:+2:34 : +2:44
79
- _21 = Ne (move _20, const 0_i128 ); // scope 0 at $DIR/shifts.rs:+2:34 : +2:44
80
- assert(! move _21, "attempt to shift right by `{}`, which would overflow", _19) -> [success : bb3, unwind: bb7]; // scope 0 at $DIR/shifts.rs:+2:34: +2:44
78
+ _20 = _19 as u128 (IntToInt); // scope 0 at $DIR/shifts.rs:+2:34 : +2:44
79
+ _21 = Lt (move _20, const 8_u128 ); // scope 0 at $DIR/shifts.rs:+2:34 : +2:44
80
+ assert(move _21, "attempt to shift right by `{}`, which would overflow", _19) -> [success : bb3, unwind: bb7]; // scope 0 at $DIR/shifts.rs:+2:34: +2:44
81
81
}
82
82
83
83
bb3 : {
@@ -94,9 +94,9 @@ fn shift_signed(_1: i8, _2: u128, _3: i8, _4: i32, _5: i128) -> ([i8; 3], [u128;
94
94
_24 = _2; // scope 0 at $DIR/shifts.rs:+3:10 : +3:13
95
95
StorageLive(_25); // scope 0 at $DIR/shifts.rs:+3:17 : +3:18
96
96
_25 = _3; // scope 0 at $DIR/shifts.rs:+3:17 : +3:18
97
- _26 = BitAnd( _25, const i8::MIN); // scope 0 at $DIR/shifts.rs:+3:10 : +3:18
98
- _27 = Ne (move _26, const 0_i8); // scope 0 at $DIR/shifts.rs:+3:10 : +3:18
99
- assert(! move _27, "attempt to shift left by `{}`, which would overflow", _25) -> [success : bb4, unwind: bb7]; // scope 0 at $DIR/shifts.rs:+3:10: +3:18
97
+ _26 = _25 as u8 (IntToInt); // scope 0 at $DIR/shifts.rs:+3:10 : +3:18
98
+ _27 = Lt (move _26, const 128_u8); // scope 0 at $DIR/shifts.rs:+3:10 : +3:18
99
+ assert(move _27, "attempt to shift left by `{}`, which would overflow", _25) -> [success : bb4, unwind: bb7]; // scope 0 at $DIR/shifts.rs:+3:10: +3:18
100
100
}
101
101
102
102
bb4 : {
@@ -108,9 +108,9 @@ fn shift_signed(_1: i8, _2: u128, _3: i8, _4: i32, _5: i128) -> ([i8; 3], [u128;
108
108
_29 = _2; // scope 0 at $DIR/shifts.rs:+3:20 : +3:23
109
109
StorageLive(_30); // scope 0 at $DIR/shifts.rs:+3:27 : +3:28
110
110
_30 = _4; // scope 0 at $DIR/shifts.rs:+3:27 : +3:28
111
- _31 = BitAnd( _30, const -128_i32); // scope 0 at $DIR/shifts.rs:+3:20 : +3:28
112
- _32 = Ne (move _31, const 0_i32 ); // scope 0 at $DIR/shifts.rs:+3:20 : +3:28
113
- assert(! move _32, "attempt to shift left by `{}`, which would overflow", _30) -> [success : bb5, unwind: bb7]; // scope 0 at $DIR/shifts.rs:+3:20: +3:28
111
+ _31 = _30 as u32 (IntToInt); // scope 0 at $DIR/shifts.rs:+3:20 : +3:28
112
+ _32 = Lt (move _31, const 128_u32 ); // scope 0 at $DIR/shifts.rs:+3:20 : +3:28
113
+ assert(move _32, "attempt to shift left by `{}`, which would overflow", _30) -> [success : bb5, unwind: bb7]; // scope 0 at $DIR/shifts.rs:+3:20: +3:28
114
114
}
115
115
116
116
bb5 : {
@@ -122,9 +122,9 @@ fn shift_signed(_1: i8, _2: u128, _3: i8, _4: i32, _5: i128) -> ([i8; 3], [u128;
122
122
_34 = _2; // scope 0 at $DIR/shifts.rs:+3:30 : +3:33
123
123
StorageLive(_35); // scope 0 at $DIR/shifts.rs:+3:37 : +3:38
124
124
_35 = _5; // scope 0 at $DIR/shifts.rs:+3:37 : +3:38
125
- _36 = BitAnd( _35, const -128_i128); // scope 0 at $DIR/shifts.rs:+3:30 : +3:38
126
- _37 = Ne (move _36, const 0_i128 ); // scope 0 at $DIR/shifts.rs:+3:30 : +3:38
127
- assert(! move _37, "attempt to shift left by `{}`, which would overflow", _35) -> [success : bb6, unwind: bb7]; // scope 0 at $DIR/shifts.rs:+3:30: +3:38
125
+ _36 = _35 as u128 (IntToInt); // scope 0 at $DIR/shifts.rs:+3:30 : +3:38
126
+ _37 = Lt (move _36, const 128_u128 ); // scope 0 at $DIR/shifts.rs:+3:30 : +3:38
127
+ assert(move _37, "attempt to shift left by `{}`, which would overflow", _35) -> [success : bb6, unwind: bb7]; // scope 0 at $DIR/shifts.rs:+3:30: +3:38
128
128
}
129
129
130
130
bb6 : {
0 commit comments