@@ -4,53 +4,53 @@ OpExtension "SPV_KHR_non_semantic_info"
44OpMemoryModel Logical Simple
55OpEntryPoint Fragment %2 "main"
66OpExecutionMode %2 OriginUpperLeft
7- %3 = OpString "/n[Rust panicked at $SYSROOT/lib/rustlib/src/rust/library/core/src/panicking .rs:276 :5]/n index out of bounds: the len is %u but the index is %u/n in main()/n"
8- %4 = OpString $SYSROOT/lib/rustlib/src/rust/library/core/src/panicking .rs"
9- %5 = OpString "$DIR/panic_builtin_bounds_check.rs"
10- OpDecorate %6 ArrayStride 4
11- %7 = OpTypeVoid
12- %8 = OpTypeFunction %7
13- %9 = OpTypeInt 32 0
14- %10 = OpConstant %9 4
15- %11 = OpTypeArray %9 %10
16- %12 = OpTypePointer Function %11
17- %6 = OpTypeArray %9 %10
18- %13 = OpConstant %9 0
19- %14 = OpConstant %9 1
20- %15 = OpConstant %9 2
21- %16 = OpConstant %9 3
22- %17 = OpTypeBool
23- %18 = OpConstant %9 5
24- %19 = OpTypePointer Function %9
25- %2 = OpFunction %7 None %8
26- %20 = OpLabel
27- OpLine %5 32 4
28- %21 = OpVariable %12 Function
29- OpLine %5 32 23
30- %22 = OpCompositeConstruct %6 %13 %14 %15 %16
31- OpLine %5 27 4
32- %23 = OpCompositeExtract %9 %22 0
33- %24 = OpCompositeExtract %9 %22 1
34- %25 = OpCompositeExtract %9 %22 2
35- %26 = OpCompositeExtract %9 %22 3
36- %27 = OpCompositeConstruct %11 %23 %24 %25 %26
37- OpStore %21 %27
38- %28 = OpULessThan %17 %18 %10
7+ %3 = OpString "/n[Rust panicked at $DIR/panic_builtin_bounds_check .rs:27 :5]/n index out of bounds: the len is %u but the index is %u/n in main()/n"
8+ %4 = OpString "$DIR/panic_builtin_bounds_check .rs"
9+ OpDecorate %5 ArrayStride 4
10+ %6 = OpTypeVoid
11+ %7 = OpTypeFunction %6
12+ %8 = OpTypeInt 32 0
13+ %9 = OpConstant %8 4
14+ %10 = OpTypeArray %8 %9
15+ %11 = OpTypePointer Function %10
16+ %5 = OpTypeArray %8 %9
17+ %12 = OpConstant %8 0
18+ %13 = OpConstant %8 1
19+ %14 = OpConstant %8 2
20+ %15 = OpConstant %8 3
21+ %16 = OpTypeBool
22+ %17 = OpConstant %8 5
23+ %18 = OpTypePointer Function %8
24+ %2 = OpFunction %6 None %7
25+ %19 = OpLabel
26+ OpLine %4 32 4
27+ %20 = OpVariable %11 Function
28+ OpLine %4 32 23
29+ %21 = OpCompositeConstruct %5 %12 %13 %14 %15
30+ OpLine %4 32 4
31+ %22 = OpCompositeExtract %8 %21 0
32+ %23 = OpCompositeExtract %8 %21 1
33+ %24 = OpCompositeExtract %8 %21 2
34+ %25 = OpCompositeExtract %8 %21 3
35+ %26 = OpCompositeConstruct %10 %22 %23 %24 %25
36+ OpStore %20 %26
37+ OpLine %4 27 4
38+ %27 = OpULessThan %16 %17 %9
3939OpNoLine
40- OpSelectionMerge %29 None
41- OpBranchConditional %28 %30 %31
40+ OpSelectionMerge %28 None
41+ OpBranchConditional %27 %29 %30
42+ %29 = OpLabel
43+ OpBranch %28
4244%30 = OpLabel
43- OpBranch %29
44- %31 = OpLabel
45- OpLine %4 276 4
46- %32 = OpExtInst %7 %1 1 %3 %10 %18
45+ OpLine %4 27 4
46+ %31 = OpExtInst %6 %1 1 %3 %9 %17
4747OpNoLine
4848OpReturn
49- %29 = OpLabel
50- OpLine %5 27 4
51- %33 = OpIAdd %9 %13 %18
52- %34 = OpInBoundsAccessChain %19 %21 %33
53- %35 = OpLoad %9 %34
49+ %28 = OpLabel
50+ OpLine %4 27 4
51+ %32 = OpIAdd %8 %12 %17
52+ %33 = OpInBoundsAccessChain %18 %20 %32
53+ %34 = OpLoad %8 %33
5454OpNoLine
5555OpReturn
5656OpFunctionEnd
0 commit comments