Bless *all* the mir-opt tests
This commit is contained in:
parent
249a36ffbd
commit
99cb0c6bc3
678 changed files with 3567 additions and 3567 deletions
|
@ -18,7 +18,7 @@
|
|||
- StorageLive(_3);
|
||||
+ nop;
|
||||
StorageLive(_4);
|
||||
_4 = _1;
|
||||
_4 = copy _1;
|
||||
- StorageLive(_5);
|
||||
+ nop;
|
||||
StorageLive(_6);
|
||||
|
@ -35,8 +35,8 @@
|
|||
StorageDead(_6);
|
||||
- _3 = Lt(move _4, move _5);
|
||||
- switchInt(move _3) -> [0: bb4, otherwise: bb2];
|
||||
+ _3 = Lt(_1, const N);
|
||||
+ switchInt(_3) -> [0: bb4, otherwise: bb2];
|
||||
+ _3 = Lt(copy _1, const N);
|
||||
+ switchInt(copy _3) -> [0: bb4, otherwise: bb2];
|
||||
}
|
||||
|
||||
bb2: {
|
||||
|
@ -44,18 +44,18 @@
|
|||
+ nop;
|
||||
StorageDead(_4);
|
||||
StorageLive(_8);
|
||||
_8 = _1;
|
||||
_8 = copy _1;
|
||||
- _9 = Len((*_2));
|
||||
- _10 = Lt(_8, _9);
|
||||
- assert(move _10, "index out of bounds: the length is {} but the index is {}", move _9, _8) -> [success: bb3, unwind continue];
|
||||
- _10 = Lt(copy _8, copy _9);
|
||||
- assert(move _10, "index out of bounds: the length is {} but the index is {}", move _9, copy _8) -> [success: bb3, unwind continue];
|
||||
+ _9 = const N;
|
||||
+ _10 = _3;
|
||||
+ assert(_3, "index out of bounds: the length is {} but the index is {}", const N, _1) -> [success: bb3, unwind continue];
|
||||
+ _10 = copy _3;
|
||||
+ assert(copy _3, "index out of bounds: the length is {} but the index is {}", const N, copy _1) -> [success: bb3, unwind continue];
|
||||
}
|
||||
|
||||
bb3: {
|
||||
- _0 = (*_2)[_8];
|
||||
+ _0 = (*_2)[_1];
|
||||
- _0 = copy (*_2)[_8];
|
||||
+ _0 = copy (*_2)[_1];
|
||||
StorageDead(_8);
|
||||
goto -> bb5;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue