; LLVM IR from pictools/pica :: test/src/utility/UtilityTests.ll (ZN32IndexIntervalTest_ToIndex3d_Test8TestBodyEv)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.testing::AssertionResult" = type { i8, %"class.testing::internal::scoped_ptr" }
%"class.testing::internal::scoped_ptr" = type { ptr }
%"struct.pica::IndexInterval" = type { %"struct.pica::Vector3", %"struct.pica::Vector3", %"struct.pica::Vector3", %"struct.pica::Vector3", %"struct.pica::Vector3" }
%"struct.pica::Vector3" = type { i32, i32, i32 }
%"class.testing::Message" = type { %"class.testing::internal::scoped_ptr.0" }
%"class.testing::internal::scoped_ptr.0" = type { ptr }
%"class.testing::internal::AssertHelper" = type { ptr }
%class.IndexIntervalTest = type <{ %"class.testing::Test", %"struct.pica::Vector3", %"struct.pica::Vector3", %"struct.pica::Vector3", [4 x i8] }>
%"class.testing::Test" = type { ptr, ptr }

@.str.5 = external hidden unnamed_addr constant [81 x i8], align 1
@.str.138 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.140 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.142 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.150 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.151 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.152 = external hidden unnamed_addr constant [26 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7testing8internal8EqHelperILb0EE7CompareIiiEENS_15AssertionResultEPKcS6_RKT_RKT0_(ptr dead_on_unwind noalias writable sret(%"class.testing::AssertionResult") align 8, ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK7testing15AssertionResultcvbEv(ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7testing7MessageC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK7testing15AssertionResult15failure_messageEv(ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

declare void @_ZN7testing8internal12AssertHelperC1ENS_14TestPartResult4TypeEPKciS5_(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, ptr noundef, i32 noundef, ptr noundef) unnamed_addr #3

declare void @_ZNK7testing8internal12AssertHelperaSERKNS_7MessageE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: nounwind
declare void @_ZN7testing8internal12AssertHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7testing15AssertionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4pica7Vector3IiEC2Eiii(ptr noundef nonnull align 4 dereferenceable(12), i32 noundef, i32 noundef, i32 noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4pica13IndexIntervalINS_7Vector3IiEEEC2ERKS2_S5_S5_(ptr noundef nonnull align 4 dereferenceable(60), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #1 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #6

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN32IndexIntervalTest_ToIndex3d_Test8TestBodyEv(ptr noundef nonnull align 8 dereferenceable(52) %0) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"struct.pica::IndexInterval", align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %"class.testing::AssertionResult", align 8
  %10 = alloca %"struct.pica::Vector3", align 4
  %11 = alloca %"struct.pica::Vector3", align 4
  %12 = alloca { i64, i32 }, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca %"class.testing::Message", align 8
  %16 = alloca %"class.testing::internal::AssertHelper", align 8
  %17 = alloca %"class.testing::AssertionResult", align 8
  %18 = alloca %"struct.pica::Vector3", align 4
  %19 = alloca %"struct.pica::Vector3", align 4
  %20 = alloca { i64, i32 }, align 8
  %21 = alloca %"class.testing::Message", align 8
  %22 = alloca %"class.testing::internal::AssertHelper", align 8
  %23 = alloca %"class.testing::AssertionResult", align 8
  %24 = alloca %"struct.pica::Vector3", align 4
  %25 = alloca %"struct.pica::Vector3", align 4
  %26 = alloca { i64, i32 }, align 8
  %27 = alloca %"class.testing::Message", align 8
  %28 = alloca %"class.testing::internal::AssertHelper", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %29 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 60, ptr %3) #7
  %30 = getelementptr inbounds %class.IndexIntervalTest, ptr %29, i32 0, i32 1
  %31 = getelementptr inbounds %class.IndexIntervalTest, ptr %29, i32 0, i32 2
  %32 = getelementptr inbounds %class.IndexIntervalTest, ptr %29, i32 0, i32 3
  call void @_ZN4pica13IndexIntervalINS_7Vector3IiEEEC2ERKS2_S5_S5_(ptr noundef nonnull align 4 dereferenceable(60) %3, ptr noundef nonnull align 4 dereferenceable(12) %30, ptr noundef nonnull align 4 dereferenceable(12) %31, ptr noundef nonnull align 4 dereferenceable(12) %32)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  store i32 0, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  %33 = getelementptr inbounds %class.IndexIntervalTest, ptr %29, i32 0, i32 1
  %34 = getelementptr inbounds %"struct.pica::Vector3", ptr %33, i32 0, i32 0
  %35 = load i32, ptr %34, align 8, !tbaa !11
  store i32 %35, ptr %5, align 4, !tbaa !9
  br label %36

36:                                               ; preds = %204, %1
  %37 = load i32, ptr %5, align 4, !tbaa !9
  %38 = getelementptr inbounds %class.IndexIntervalTest, ptr %29, i32 0, i32 2
  %39 = getelementptr inbounds %"struct.pica::Vector3", ptr %38, i32 0, i32 0
  %40 = load i32, ptr %39, align 4, !tbaa !15
  %41 = icmp slt i32 %37, %40
  br i1 %41, label %43, label %42

42:                                               ; preds = %36
  store i32 2, ptr %6, align 4
  br label %210

43:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  %44 = getelementptr inbounds %class.IndexIntervalTest, ptr %29, i32 0, i32 1
  %45 = getelementptr inbounds %"struct.pica::Vector3", ptr %44, i32 0, i32 1
  %46 = load i32, ptr %45, align 4, !tbaa !16
  store i32 %46, ptr %7, align 4, !tbaa !9
  br label %47

47:                                               ; preds = %195, %43
  %48 = load i32, ptr %7, align 4, !tbaa !9
  %49 = getelementptr inbounds %class.IndexIntervalTest, ptr %29, i32 0, i32 2
  %50 = getelementptr inbounds %"struct.pica::Vector3", ptr %49, i32 0, i32 1
  %51 = load i32, ptr %50, align 4, !tbaa !17
  %52 = icmp slt i32 %48, %51
  br i1 %52, label %54, label %53

53:                                               ; preds = %47
  store i32 5, ptr %6, align 4
  br label %201

54:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  %55 = getelementptr inbounds %class.IndexIntervalTest, ptr %29, i32 0, i32 1
  %56 = getelementptr inbounds %"struct.pica::Vector3", ptr %55, i32 0, i32 2
  %57 = load i32, ptr %56, align 8, !tbaa !18
  store i32 %57, ptr %8, align 4, !tbaa !9
  br label %58

58:                                               ; preds = %184, %54
  %59 = load i32, ptr %8, align 4, !tbaa !9
  %60 = getelementptr inbounds %class.IndexIntervalTest, ptr %29, i32 0, i32 2
  %61 = getelementptr inbounds %"struct.pica::Vector3", ptr %60, i32 0, i32 2
  %62 = load i32, ptr %61, align 4, !tbaa !19
  %63 = icmp slt i32 %59, %62
  br i1 %63, label %65, label %64

64:                                               ; preds = %58
  store i32 8, ptr %6, align 4
  br label %191

65:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %10) #7
  %66 = load i32, ptr %5, align 4, !tbaa !9
  %67 = load i32, ptr %7, align 4, !tbaa !9
  %68 = load i32, ptr %8, align 4, !tbaa !9
  call void @_ZN4pica7Vector3IiEC2Eiii(ptr noundef nonnull align 4 dereferenceable(12) %10, i32 noundef %66, i32 noundef %67, i32 noundef %68)
  %69 = getelementptr inbounds %"struct.pica::Vector3", ptr %10, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 12, ptr %11) #7
  %70 = load i32, ptr %4, align 4, !tbaa !9
  %71 = call { i64, i32 } @_ZNK4pica13IndexIntervalINS_7Vector3IiEEE9toIndex3dEi(ptr noundef nonnull align 4 dereferenceable(60) %3, i32 noundef %70)
  store { i64, i32 } %71, ptr %12, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 8 %12, i64 12, i1 false)
  %72 = getelementptr inbounds %"struct.pica::Vector3", ptr %11, i32 0, i32 0
  call void @_ZN7testing8internal8EqHelperILb0EE7CompareIiiEENS_15AssertionResultEPKcS6_RKT_RKT0_(ptr dead_on_unwind writable sret(%"class.testing::AssertionResult") align 8 %9, ptr noundef @.str.138, ptr noundef @.str.150, ptr noundef nonnull align 4 dereferenceable(4) %69, ptr noundef nonnull align 4 dereferenceable(4) %72)
  call void @llvm.lifetime.end.p0(i64 12, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %10) #7
  %73 = invoke noundef zeroext i1 @_ZNK7testing15AssertionResultcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %74 unwind label %76

74:                                               ; preds = %65
  br i1 %73, label %75, label %80

75:                                               ; preds = %74
  br label %100

76:                                               ; preds = %65
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %13, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %14, align 4
  br label %114

80:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  invoke void @_ZN7testing7MessageC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %81 unwind label %86

81:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %82 = invoke noundef ptr @_ZNK7testing15AssertionResult15failure_messageEv(ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %83 unwind label %90

83:                                               ; preds = %81
  invoke void @_ZN7testing8internal12AssertHelperC1ENS_14TestPartResult4TypeEPKciS5_(ptr noundef nonnull align 8 dereferenceable(8) %16, i32 noundef 2, ptr noundef @.str.5, i32 noundef 166, ptr noundef %82)
          to label %84 unwind label %90

84:                                               ; preds = %83
  invoke void @_ZNK7testing8internal12AssertHelperaSERKNS_7MessageE(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %85 unwind label %94

85:                                               ; preds = %84
  call void @_ZN7testing8internal12AssertHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  store i32 1, ptr %6, align 4
  br label %101

86:                                               ; preds = %80
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %13, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %14, align 4
  br label %99

90:                                               ; preds = %83, %81
  %91 = landingpad { ptr, i32 }
          cleanup
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %13, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %14, align 4
  br label %98

94:                                               ; preds = %84
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %13, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %14, align 4
  call void @_ZN7testing8internal12AssertHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  br label %98

98:                                               ; preds = %94, %90
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  br label %99

99:                                               ; preds = %98, %86
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %114

100:                                              ; preds = %75
  store i32 0, ptr %6, align 4
  br label %101

101:                                              ; preds = %100, %85
  call void @_ZN7testing15AssertionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #7
  %102 = load i32, ptr %6, align 4
  switch i32 %102, label %191 [
    i32 0, label %103
  ]

103:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %18) #7
  %104 = load i32, ptr %5, align 4, !tbaa !9
  %105 = load i32, ptr %7, align 4, !tbaa !9
  %106 = load i32, ptr %8, align 4, !tbaa !9
  call void @_ZN4pica7Vector3IiEC2Eiii(ptr noundef nonnull align 4 dereferenceable(12) %18, i32 noundef %104, i32 noundef %105, i32 noundef %106)
  %107 = getelementptr inbounds %"struct.pica::Vector3", ptr %18, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 12, ptr %19) #7
  %108 = load i32, ptr %4, align 4, !tbaa !9
  %109 = call { i64, i32 } @_ZNK4pica13IndexIntervalINS_7Vector3IiEEE9toIndex3dEi(ptr noundef nonnull align 4 dereferenceable(60) %3, i32 noundef %108)
  store { i64, i32 } %109, ptr %20, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 8 %20, i64 12, i1 false)
  %110 = getelementptr inbounds %"struct.pica::Vector3", ptr %19, i32 0, i32 1
  call void @_ZN7testing8internal8EqHelperILb0EE7CompareIiiEENS_15AssertionResultEPKcS6_RKT_RKT0_(ptr dead_on_unwind writable sret(%"class.testing::AssertionResult") align 8 %17, ptr noundef @.str.140, ptr noundef @.str.151, ptr noundef nonnull align 4 dereferenceable(4) %107, ptr noundef nonnull align 4 dereferenceable(4) %110)
  call void @llvm.lifetime.end.p0(i64 12, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %18) #7
  %111 = invoke noundef zeroext i1 @_ZNK7testing15AssertionResultcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %17)
          to label %112 unwind label %115

112:                                              ; preds = %103
  br i1 %111, label %113, label %119

113:                                              ; preds = %112
  br label %139

114:                                              ; preds = %99, %76
  call void @_ZN7testing15AssertionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #7
  br label %193

115:                                              ; preds = %103
  %116 = landingpad { ptr, i32 }
          cleanup
  %117 = extractvalue { ptr, i32 } %116, 0
  store ptr %117, ptr %13, align 8
  %118 = extractvalue { ptr, i32 } %116, 1
  store i32 %118, ptr %14, align 4
  br label %153

119:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  invoke void @_ZN7testing7MessageC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %120 unwind label %125

120:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %121 = invoke noundef ptr @_ZNK7testing15AssertionResult15failure_messageEv(ptr noundef nonnull align 8 dereferenceable(16) %17)
          to label %122 unwind label %129

122:                                              ; preds = %120
  invoke void @_ZN7testing8internal12AssertHelperC1ENS_14TestPartResult4TypeEPKciS5_(ptr noundef nonnull align 8 dereferenceable(8) %22, i32 noundef 2, ptr noundef @.str.5, i32 noundef 166, ptr noundef %121)
          to label %123 unwind label %129

123:                                              ; preds = %122
  invoke void @_ZNK7testing8internal12AssertHelperaSERKNS_7MessageE(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %124 unwind label %133

124:                                              ; preds = %123
  call void @_ZN7testing8internal12AssertHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  store i32 1, ptr %6, align 4
  br label %140

125:                                              ; preds = %119
  %126 = landingpad { ptr, i32 }
          cleanup
  %127 = extractvalue { ptr, i32 } %126, 0
  store ptr %127, ptr %13, align 8
  %128 = extractvalue { ptr, i32 } %126, 1
  store i32 %128, ptr %14, align 4
  br label %138

129:                                              ; preds = %122, %120
  %130 = landingpad { ptr, i32 }
          cleanup
  %131 = extractvalue { ptr, i32 } %130, 0
  store ptr %131, ptr %13, align 8
  %132 = extractvalue { ptr, i32 } %130, 1
  store i32 %132, ptr %14, align 4
  br label %137

133:                                              ; preds = %123
  %134 = landingpad { ptr, i32 }
          cleanup
  %135 = extractvalue { ptr, i32 } %134, 0
  store ptr %135, ptr %13, align 8
  %136 = extractvalue { ptr, i32 } %134, 1
  store i32 %136, ptr %14, align 4
  call void @_ZN7testing8internal12AssertHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #7
  br label %137

137:                                              ; preds = %133, %129
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #7
  br label %138

138:                                              ; preds = %137, %125
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  br label %153

139:                                              ; preds = %113
  store i32 0, ptr %6, align 4
  br label %140

140:                                              ; preds = %139, %124
  call void @_ZN7testing15AssertionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #7
  %141 = load i32, ptr %6, align 4
  switch i32 %141, label %191 [
    i32 0, label %142
  ]

142:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %24) #7
  %143 = load i32, ptr %5, align 4, !tbaa !9
  %144 = load i32, ptr %7, align 4, !tbaa !9
  %145 = load i32, ptr %8, align 4, !tbaa !9
  call void @_ZN4pica7Vector3IiEC2Eiii(ptr noundef nonnull align 4 dereferenceable(12) %24, i32 noundef %143, i32 noundef %144, i32 noundef %145)
  %146 = getelementptr inbounds %"struct.pica::Vector3", ptr %24, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 12, ptr %25) #7
  %147 = load i32, ptr %4, align 4, !tbaa !9
  %148 = call { i64, i32 } @_ZNK4pica13IndexIntervalINS_7Vector3IiEEE9toIndex3dEi(ptr noundef nonnull align 4 dereferenceable(60) %3, i32 noundef %147)
  store { i64, i32 } %148, ptr %26, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 8 %26, i64 12, i1 false)
  %149 = getelementptr inbounds %"struct.pica::Vector3", ptr %25, i32 0, i32 2
  call void @_ZN7testing8internal8EqHelperILb0EE7CompareIiiEENS_15AssertionResultEPKcS6_RKT_RKT0_(ptr dead_on_unwind writable sret(%"class.testing::AssertionResult") align 8 %23, ptr noundef @.str.142, ptr noundef @.str.152, ptr noundef nonnull align 4 dereferenceable(4) %146, ptr noundef nonnull align 4 dereferenceable(4) %149)
  call void @llvm.lifetime.end.p0(i64 12, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %24) #7
  %150 = invoke noundef zeroext i1 @_ZNK7testing15AssertionResultcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %23)
          to label %151 unwind label %154

151:                                              ; preds = %142
  br i1 %150, label %152, label %158

152:                                              ; preds = %151
  br label %178

153:                                              ; preds = %138, %115
  call void @_ZN7testing15AssertionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #7
  br label %193

154:                                              ; preds = %142
  %155 = landingpad { ptr, i32 }
          cleanup
  %156 = extractvalue { ptr, i32 } %155, 0
  store ptr %156, ptr %13, align 8
  %157 = extractvalue { ptr, i32 } %155, 1
  store i32 %157, ptr %14, align 4
  br label %190

158:                                              ; preds = %151
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  invoke void @_ZN7testing7MessageC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %27)
          to label %159 unwind label %164

159:                                              ; preds = %158
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  %160 = invoke noundef ptr @_ZNK7testing15AssertionResult15failure_messageEv(ptr noundef nonnull align 8 dereferenceable(16) %23)
          to label %161 unwind label %168

161:                                              ; preds = %159
  invoke void @_ZN7testing8internal12AssertHelperC1ENS_14TestPartResult4TypeEPKciS5_(ptr noundef nonnull align 8 dereferenceable(8) %28, i32 noundef 2, ptr noundef @.str.5, i32 noundef 166, ptr noundef %160)
          to label %162 unwind label %168

162:                                              ; preds = %161
  invoke void @_ZNK7testing8internal12AssertHelperaSERKNS_7MessageE(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull align 8 dereferenceable(8) %27)
          to label %163 unwind label %172

163:                                              ; preds = %162
  call void @_ZN7testing8internal12AssertHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %28) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  call void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  store i32 1, ptr %6, align 4
  br label %179

164:                                              ; preds = %158
  %165 = landingpad { ptr, i32 }
          cleanup
  %166 = extractvalue { ptr, i32 } %165, 0
  store ptr %166, ptr %13, align 8
  %167 = extractvalue { ptr, i32 } %165, 1
  store i32 %167, ptr %14, align 4
  br label %177

168:                                              ; preds = %161, %159
  %169 = landingpad { ptr, i32 }
          cleanup
  %170 = extractvalue { ptr, i32 } %169, 0
  store ptr %170, ptr %13, align 8
  %171 = extractvalue { ptr, i32 } %169, 1
  store i32 %171, ptr %14, align 4
  br label %176

172:                                              ; preds = %162
  %173 = landingpad { ptr, i32 }
          cleanup
  %174 = extractvalue { ptr, i32 } %173, 0
  store ptr %174, ptr %13, align 8
  %175 = extractvalue { ptr, i32 } %173, 1
  store i32 %175, ptr %14, align 4
  call void @_ZN7testing8internal12AssertHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %28) #7
  br label %176

176:                                              ; preds = %172, %168
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  call void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %27) #7
  br label %177

177:                                              ; preds = %176, %164
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  br label %190

178:                                              ; preds = %152
  store i32 0, ptr %6, align 4
  br label %179

179:                                              ; preds = %178, %163
  call void @_ZN7testing15AssertionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #7
  %180 = load i32, ptr %6, align 4
  switch i32 %180, label %191 [
    i32 0, label %181
  ]

181:                                              ; preds = %179
  %182 = load i32, ptr %4, align 4, !tbaa !9
  %183 = add nsw i32 %182, 1
  store i32 %183, ptr %4, align 4, !tbaa !9
  br label %184

184:                                              ; preds = %181
  %185 = getelementptr inbounds %class.IndexIntervalTest, ptr %29, i32 0, i32 3
  %186 = getelementptr inbounds %"struct.pica::Vector3", ptr %185, i32 0, i32 2
  %187 = load i32, ptr %186, align 8, !tbaa !20
  %188 = load i32, ptr %8, align 4, !tbaa !9
  %189 = add nsw i32 %188, %187
  store i32 %189, ptr %8, align 4, !tbaa !9
  br label %58, !llvm.loop !21

190:                                              ; preds = %177, %154
  call void @_ZN7testing15AssertionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #7
  br label %193

191:                                              ; preds = %179, %140, %101, %64
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  %192 = load i32, ptr %6, align 4
  switch i32 %192, label %201 [
    i32 8, label %194
  ]

193:                                              ; preds = %190, %153, %114
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 60, ptr %3) #7
  br label %216

194:                                              ; preds = %191
  br label %195

195:                                              ; preds = %194
  %196 = getelementptr inbounds %class.IndexIntervalTest, ptr %29, i32 0, i32 3
  %197 = getelementptr inbounds %"struct.pica::Vector3", ptr %196, i32 0, i32 1
  %198 = load i32, ptr %197, align 4, !tbaa !23
  %199 = load i32, ptr %7, align 4, !tbaa !9
  %200 = add nsw i32 %199, %198
  store i32 %200, ptr %7, align 4, !tbaa !9
  br label %47, !llvm.loop !24

201:                                              ; preds = %191, %53
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  %202 = load i32, ptr %6, align 4
  switch i32 %202, label %210 [
    i32 5, label %203
  ]

203:                                              ; preds = %201
  br label %204

204:                                              ; preds = %203
  %205 = getelementptr inbounds %class.IndexIntervalTest, ptr %29, i32 0, i32 3
  %206 = getelementptr inbounds %"struct.pica::Vector3", ptr %205, i32 0, i32 0
  %207 = load i32, ptr %206, align 8, !tbaa !25
  %208 = load i32, ptr %5, align 4, !tbaa !9
  %209 = add nsw i32 %208, %207
  store i32 %209, ptr %5, align 4, !tbaa !9
  br label %36, !llvm.loop !26

210:                                              ; preds = %201, %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  %211 = load i32, ptr %6, align 4
  switch i32 %211, label %213 [
    i32 2, label %212
  ]

212:                                              ; preds = %210
  store i32 0, ptr %6, align 4
  br label %213

213:                                              ; preds = %212, %210
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 60, ptr %3) #7
  %214 = load i32, ptr %6, align 4
  switch i32 %214, label %221 [
    i32 0, label %215
    i32 1, label %215
  ]

215:                                              ; preds = %213, %213
  ret void

216:                                              ; preds = %193
  %217 = load ptr, ptr %13, align 8
  %218 = load i32, ptr %14, align 4
  %219 = insertvalue { ptr, i32 } poison, ptr %217, 0
  %220 = insertvalue { ptr, i32 } %219, i32 %218, 1
  resume { ptr, i32 } %220

221:                                              ; preds = %213
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i32 } @_ZNK4pica13IndexIntervalINS_7Vector3IiEEE9toIndex3dEi(ptr noundef nonnull align 4 dereferenceable(60), i32 noundef) #1 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 16}
!12 = !{!"_ZTS17IndexIntervalTest", !13, i64 0, !14, i64 16, !14, i64 28, !14, i64 40}
!13 = !{!"_ZTSN7testing4TestE", !6, i64 8}
!14 = !{!"_ZTSN4pica7Vector3IiEE", !10, i64 0, !10, i64 4, !10, i64 8}
!15 = !{!12, !10, i64 28}
!16 = !{!12, !10, i64 20}
!17 = !{!12, !10, i64 32}
!18 = !{!12, !10, i64 24}
!19 = !{!12, !10, i64 36}
!20 = !{!12, !10, i64 48}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!12, !10, i64 44}
!24 = distinct !{!24, !22}
!25 = !{!12, !10, i64 40}
!26 = distinct !{!26, !22}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.testing::AssertionResult" = type { i8, %"class.testing::internal::scoped_ptr" }
%"class.testing::internal::scoped_ptr" = type { ptr }
%"struct.pica::IndexInterval" = type { %"struct.pica::Vector3", %"struct.pica::Vector3", %"struct.pica::Vector3", %"struct.pica::Vector3", %"struct.pica::Vector3" }
%"struct.pica::Vector3" = type { i32, i32, i32 }
%"class.testing::Message" = type { %"class.testing::internal::scoped_ptr.0" }
%"class.testing::internal::scoped_ptr.0" = type { ptr }
%"class.testing::internal::AssertHelper" = type { ptr }

@.str.5 = external hidden unnamed_addr constant [81 x i8], align 1
@.str.138 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.140 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.142 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.150 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.151 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.152 = external hidden unnamed_addr constant [26 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7testing8internal8EqHelperILb0EE7CompareIiiEENS_15AssertionResultEPKcS6_RKT_RKT0_(ptr dead_on_unwind noalias writable sret(%"class.testing::AssertionResult") align 8, ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK7testing15AssertionResultcvbEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7testing7MessageC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK7testing15AssertionResult15failure_messageEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

declare void @_ZN7testing8internal12AssertHelperC1ENS_14TestPartResult4TypeEPKciS5_(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, ptr noundef, i32 noundef, ptr noundef) unnamed_addr #3

declare void @_ZNK7testing8internal12AssertHelperaSERKNS_7MessageE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

; Function Attrs: nounwind
declare void @_ZN7testing8internal12AssertHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7testing15AssertionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4pica7Vector3IiEC2Eiii(ptr noundef nonnull align 4 dereferenceable(12), i32 noundef, i32 noundef, i32 noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4pica13IndexIntervalINS_7Vector3IiEEEC2ERKS2_S5_S5_(ptr noundef nonnull align 4 dereferenceable(60), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN32IndexIntervalTest_ToIndex3d_Test8TestBodyEv(ptr noundef nonnull align 8 dereferenceable(52) %0) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"struct.pica::IndexInterval", align 4
  %3 = alloca %"class.testing::AssertionResult", align 8
  %4 = alloca %"struct.pica::Vector3", align 4
  %5 = alloca %"struct.pica::Vector3", align 8
  %6 = alloca %"class.testing::Message", align 8
  %7 = alloca %"class.testing::internal::AssertHelper", align 8
  %8 = alloca %"class.testing::AssertionResult", align 8
  %9 = alloca %"struct.pica::Vector3", align 4
  %10 = alloca %"struct.pica::Vector3", align 8
  %11 = alloca %"class.testing::Message", align 8
  %12 = alloca %"class.testing::internal::AssertHelper", align 8
  %13 = alloca %"class.testing::AssertionResult", align 8
  %14 = alloca %"struct.pica::Vector3", align 4
  %15 = alloca %"struct.pica::Vector3", align 8
  %16 = alloca %"class.testing::Message", align 8
  %17 = alloca %"class.testing::internal::AssertHelper", align 8
  call void @llvm.lifetime.start.p0(i64 60, ptr nonnull %2) #6
  %18 = getelementptr inbounds i8, ptr %0, i64 16
  %19 = getelementptr inbounds i8, ptr %0, i64 28
  %20 = getelementptr inbounds i8, ptr %0, i64 40
  call void @_ZN4pica13IndexIntervalINS_7Vector3IiEEEC2ERKS2_S5_S5_(ptr noundef nonnull align 4 dereferenceable(60) %2, ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(12) %19, ptr noundef nonnull align 4 dereferenceable(12) %20)
  %21 = load i32, ptr %18, align 8, !tbaa !5
  %22 = load i32, ptr %19, align 4, !tbaa !13
  %23 = icmp slt i32 %21, %22
  br i1 %23, label %.lr.ph97, label %._crit_edge

.lr.ph97:                                         ; preds = %1
  %24 = getelementptr inbounds i8, ptr %0, i64 20
  %25 = getelementptr inbounds i8, ptr %0, i64 32
  %26 = getelementptr inbounds i8, ptr %0, i64 24
  %27 = getelementptr inbounds i8, ptr %0, i64 36
  %.sroa.213.0..sroa_idx = getelementptr inbounds i8, ptr %5, i64 8
  %28 = getelementptr inbounds i8, ptr %9, i64 4
  %.sroa.29.0..sroa_idx = getelementptr inbounds i8, ptr %10, i64 8
  %29 = getelementptr inbounds i8, ptr %10, i64 4
  %30 = getelementptr inbounds i8, ptr %14, i64 8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %15, i64 8
  %31 = getelementptr inbounds i8, ptr %0, i64 48
  %32 = getelementptr inbounds i8, ptr %0, i64 44
  %33 = load i32, ptr %24, align 4, !tbaa !14
  %34 = load i32, ptr %25, align 8, !tbaa !15
  %35 = icmp slt i32 %33, %34
  br i1 %35, label %.lr.ph97.split, label %._crit_edge

.lr.ph97.split:                                   ; preds = %.lr.ph97, %.thread
  %36 = phi i32 [ %106, %.thread ], [ %22, %.lr.ph97 ]
  %37 = phi i32 [ %107, %.thread ], [ %34, %.lr.ph97 ]
  %38 = phi i32 [ %108, %.thread ], [ %34, %.lr.ph97 ]
  %.096 = phi i32 [ %.1.lcssa, %.thread ], [ 0, %.lr.ph97 ]
  %.04093 = phi i32 [ %110, %.thread ], [ %21, %.lr.ph97 ]
  %39 = load i32, ptr %24, align 4, !tbaa !14
  %.not6988 = icmp slt i32 %39, %38
  br i1 %.not6988, label %.lr.ph91, label %.thread

.lr.ph91:                                         ; preds = %.lr.ph97.split
  %40 = load i32, ptr %26, align 8, !tbaa !16
  %41 = load i32, ptr %27, align 4, !tbaa !17
  %42 = icmp slt i32 %40, %41
  br i1 %42, label %.lr.ph91.split, label %.thread

.lr.ph91.split:                                   ; preds = %.lr.ph91, %.critedge75
  %43 = phi i32 [ %102, %.critedge75 ], [ %37, %.lr.ph91 ]
  %44 = phi i32 [ %103, %.critedge75 ], [ %41, %.lr.ph91 ]
  %.190 = phi i32 [ %.2.lcssa, %.critedge75 ], [ %.096, %.lr.ph91 ]
  %.04589 = phi i32 [ %105, %.critedge75 ], [ %39, %.lr.ph91 ]
  %45 = load i32, ptr %26, align 8, !tbaa !16
  %.not85 = icmp slt i32 %45, %44
  br i1 %.not85, label %.lr.ph, label %.critedge75

.lr.ph:                                           ; preds = %.lr.ph91.split, %96
  %.287 = phi i32 [ %97, %96 ], [ %.190, %.lr.ph91.split ]
  %.05986 = phi i32 [ %99, %96 ], [ %45, %.lr.ph91.split ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #6
  call void @_ZN4pica7Vector3IiEC2Eiii(ptr noundef nonnull align 4 dereferenceable(12) %4, i32 noundef %.04093, i32 noundef %.04589, i32 noundef %.05986)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #6
  %46 = call { i64, i32 } @_ZNK4pica13IndexIntervalINS_7Vector3IiEEE9toIndex3dEi(ptr noundef nonnull align 4 dereferenceable(60) %2, i32 noundef %.287)
  %.fca.0.extract10 = extractvalue { i64, i32 } %46, 0
  %.fca.1.extract11 = extractvalue { i64, i32 } %46, 1
  store i64 %.fca.0.extract10, ptr %5, align 8
  store i32 %.fca.1.extract11, ptr %.sroa.213.0..sroa_idx, align 8
  call void @_ZN7testing8internal8EqHelperILb0EE7CompareIiiEENS_15AssertionResultEPKcS6_RKT_RKT0_(ptr dead_on_unwind nonnull writable sret(%"class.testing::AssertionResult") align 8 %3, ptr noundef nonnull @.str.138, ptr noundef nonnull @.str.150, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #6
  %47 = call noundef zeroext i1 @_ZNK7testing15AssertionResultcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
  br i1 %47, label %62, label %48

48:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  invoke void @_ZN7testing7MessageC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %49 unwind label %54

49:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %50 = invoke noundef ptr @_ZNK7testing15AssertionResult15failure_messageEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
          to label %51 unwind label %56

51:                                               ; preds = %49
  invoke void @_ZN7testing8internal12AssertHelperC1ENS_14TestPartResult4TypeEPKciS5_(ptr noundef nonnull align 8 dereferenceable(8) %7, i32 noundef 2, ptr noundef nonnull @.str.5, i32 noundef 166, ptr noundef %50)
          to label %52 unwind label %56

52:                                               ; preds = %51
  invoke void @_ZNK7testing8internal12AssertHelperaSERKNS_7MessageE(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %53 unwind label %58

53:                                               ; preds = %52
  call void @_ZN7testing8internal12AssertHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @_ZN7testing15AssertionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #6
  br label %._crit_edge

54:                                               ; preds = %48
  %55 = landingpad { ptr, i32 }
          cleanup
  br label %61

56:                                               ; preds = %51, %49
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %60

58:                                               ; preds = %52
  %59 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7testing8internal12AssertHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  br label %60

60:                                               ; preds = %58, %56
  %.pn = phi { ptr, i32 } [ %59, %58 ], [ %57, %56 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  br label %61

61:                                               ; preds = %60, %54
  %.pn.pn = phi { ptr, i32 } [ %.pn, %60 ], [ %55, %54 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @_ZN7testing15AssertionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #6
  br label %101

62:                                               ; preds = %.lr.ph
  call void @_ZN7testing15AssertionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #6
  call void @_ZN4pica7Vector3IiEC2Eiii(ptr noundef nonnull align 4 dereferenceable(12) %9, i32 noundef %.04093, i32 noundef %.04589, i32 noundef %.05986)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %10) #6
  %63 = call { i64, i32 } @_ZNK4pica13IndexIntervalINS_7Vector3IiEEE9toIndex3dEi(ptr noundef nonnull align 4 dereferenceable(60) %2, i32 noundef %.287)
  %.fca.0.extract6 = extractvalue { i64, i32 } %63, 0
  %.fca.1.extract7 = extractvalue { i64, i32 } %63, 1
  store i64 %.fca.0.extract6, ptr %10, align 8
  store i32 %.fca.1.extract7, ptr %.sroa.29.0..sroa_idx, align 8
  call void @_ZN7testing8internal8EqHelperILb0EE7CompareIiiEENS_15AssertionResultEPKcS6_RKT_RKT0_(ptr dead_on_unwind nonnull writable sret(%"class.testing::AssertionResult") align 8 %8, ptr noundef nonnull @.str.140, ptr noundef nonnull @.str.151, ptr noundef nonnull align 4 dereferenceable(4) %28, ptr noundef nonnull align 4 dereferenceable(4) %29)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #6
  %64 = call noundef zeroext i1 @_ZNK7testing15AssertionResultcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
  br i1 %64, label %79, label %65

65:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  invoke void @_ZN7testing7MessageC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %66 unwind label %71

66:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  %67 = invoke noundef ptr @_ZNK7testing15AssertionResult15failure_messageEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
          to label %68 unwind label %73

68:                                               ; preds = %66
  invoke void @_ZN7testing8internal12AssertHelperC1ENS_14TestPartResult4TypeEPKciS5_(ptr noundef nonnull align 8 dereferenceable(8) %12, i32 noundef 2, ptr noundef nonnull @.str.5, i32 noundef 166, ptr noundef %67)
          to label %69 unwind label %73

69:                                               ; preds = %68
  invoke void @_ZNK7testing8internal12AssertHelperaSERKNS_7MessageE(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %70 unwind label %75

70:                                               ; preds = %69
  call void @_ZN7testing8internal12AssertHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  call void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  call void @_ZN7testing15AssertionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  br label %._crit_edge

71:                                               ; preds = %65
  %72 = landingpad { ptr, i32 }
          cleanup
  br label %78

73:                                               ; preds = %68, %66
  %74 = landingpad { ptr, i32 }
          cleanup
  br label %77

75:                                               ; preds = %69
  %76 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7testing8internal12AssertHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  br label %77

77:                                               ; preds = %75, %73
  %.pn62 = phi { ptr, i32 } [ %76, %75 ], [ %74, %73 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  call void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  br label %78

78:                                               ; preds = %77, %71
  %.pn62.pn = phi { ptr, i32 } [ %.pn62, %77 ], [ %72, %71 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  call void @_ZN7testing15AssertionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  br label %101

79:                                               ; preds = %62
  call void @_ZN7testing15AssertionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %14) #6
  call void @_ZN4pica7Vector3IiEC2Eiii(ptr noundef nonnull align 4 dereferenceable(12) %14, i32 noundef %.04093, i32 noundef %.04589, i32 noundef %.05986)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %15) #6
  %80 = call { i64, i32 } @_ZNK4pica13IndexIntervalINS_7Vector3IiEEE9toIndex3dEi(ptr noundef nonnull align 4 dereferenceable(60) %2, i32 noundef %.287)
  %.fca.0.extract = extractvalue { i64, i32 } %80, 0
  %.fca.1.extract = extractvalue { i64, i32 } %80, 1
  store i64 %.fca.0.extract, ptr %15, align 8
  store i32 %.fca.1.extract, ptr %.sroa.2.0..sroa_idx, align 8
  call void @_ZN7testing8internal8EqHelperILb0EE7CompareIiiEENS_15AssertionResultEPKcS6_RKT_RKT0_(ptr dead_on_unwind nonnull writable sret(%"class.testing::AssertionResult") align 8 %13, ptr noundef nonnull @.str.142, ptr noundef nonnull @.str.152, ptr noundef nonnull align 4 dereferenceable(4) %30, ptr noundef nonnull align 4 dereferenceable(4) %.sroa.2.0..sroa_idx)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %14) #6
  %81 = call noundef zeroext i1 @_ZNK7testing15AssertionResultcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %13)
  br i1 %81, label %96, label %82

82:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #6
  invoke void @_ZN7testing7MessageC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %83 unwind label %88

83:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #6
  %84 = invoke noundef ptr @_ZNK7testing15AssertionResult15failure_messageEv(ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %85 unwind label %90

85:                                               ; preds = %83
  invoke void @_ZN7testing8internal12AssertHelperC1ENS_14TestPartResult4TypeEPKciS5_(ptr noundef nonnull align 8 dereferenceable(8) %17, i32 noundef 2, ptr noundef nonnull @.str.5, i32 noundef 166, ptr noundef %84)
          to label %86 unwind label %90

86:                                               ; preds = %85
  invoke void @_ZNK7testing8internal12AssertHelperaSERKNS_7MessageE(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %87 unwind label %92

87:                                               ; preds = %86
  call void @_ZN7testing8internal12AssertHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #6
  call void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #6
  call void @_ZN7testing15AssertionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #6
  br label %._crit_edge

88:                                               ; preds = %82
  %89 = landingpad { ptr, i32 }
          cleanup
  br label %95

90:                                               ; preds = %85, %83
  %91 = landingpad { ptr, i32 }
          cleanup
  br label %94

92:                                               ; preds = %86
  %93 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7testing8internal12AssertHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  br label %94

94:                                               ; preds = %92, %90
  %.pn65 = phi { ptr, i32 } [ %93, %92 ], [ %91, %90 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #6
  call void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  br label %95

95:                                               ; preds = %94, %88
  %.pn65.pn = phi { ptr, i32 } [ %.pn65, %94 ], [ %89, %88 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #6
  call void @_ZN7testing15AssertionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #6
  br label %101

96:                                               ; preds = %79
  call void @_ZN7testing15AssertionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #6
  %97 = add nsw i32 %.287, 1
  %98 = load i32, ptr %31, align 8, !tbaa !18
  %99 = add nsw i32 %98, %.05986
  %100 = load i32, ptr %27, align 4, !tbaa !17
  %.not = icmp slt i32 %99, %100
  br i1 %.not, label %.lr.ph, label %.critedge75.loopexit, !llvm.loop !19

101:                                              ; preds = %95, %78, %61
  %.pn65.pn.pn = phi { ptr, i32 } [ %.pn65.pn, %95 ], [ %.pn62.pn, %78 ], [ %.pn.pn, %61 ]
  call void @llvm.lifetime.end.p0(i64 60, ptr nonnull %2) #6
  resume { ptr, i32 } %.pn65.pn.pn

.critedge75.loopexit:                             ; preds = %96
  %.pre = load i32, ptr %25, align 8, !tbaa !15
  br label %.critedge75

.critedge75:                                      ; preds = %.critedge75.loopexit, %.lr.ph91.split
  %102 = phi i32 [ %43, %.lr.ph91.split ], [ %.pre, %.critedge75.loopexit ]
  %103 = phi i32 [ %44, %.lr.ph91.split ], [ %100, %.critedge75.loopexit ]
  %.2.lcssa = phi i32 [ %.190, %.lr.ph91.split ], [ %97, %.critedge75.loopexit ]
  %104 = load i32, ptr %32, align 4, !tbaa !21
  %105 = add nsw i32 %104, %.04589
  %.not69 = icmp slt i32 %105, %102
  br i1 %.not69, label %.lr.ph91.split, label %.thread.loopexit, !llvm.loop !22

.thread.loopexit:                                 ; preds = %.critedge75
  %.pre101 = load i32, ptr %19, align 4, !tbaa !13
  br label %.thread

.thread:                                          ; preds = %.lr.ph91, %.thread.loopexit, %.lr.ph97.split
  %106 = phi i32 [ %36, %.lr.ph97.split ], [ %.pre101, %.thread.loopexit ], [ %36, %.lr.ph91 ]
  %107 = phi i32 [ %37, %.lr.ph97.split ], [ %102, %.thread.loopexit ], [ %37, %.lr.ph91 ]
  %108 = phi i32 [ %38, %.lr.ph97.split ], [ %102, %.thread.loopexit ], [ %38, %.lr.ph91 ]
  %.1.lcssa = phi i32 [ %.096, %.lr.ph97.split ], [ %.2.lcssa, %.thread.loopexit ], [ %.096, %.lr.ph91 ]
  %109 = load i32, ptr %20, align 8, !tbaa !24
  %110 = add nsw i32 %109, %.04093
  %111 = icmp slt i32 %110, %106
  br i1 %111, label %.lr.ph97.split, label %._crit_edge, !llvm.loop !25

._crit_edge:                                      ; preds = %.thread, %.lr.ph97, %53, %70, %87, %1
  call void @llvm.lifetime.end.p0(i64 60, ptr nonnull %2) #6
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i32 } @_ZNK4pica13IndexIntervalINS_7Vector3IiEEE9toIndex3dEi(ptr noundef nonnull align 4 dereferenceable(60), i32 noundef) local_unnamed_addr #1 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !12, i64 16}
!6 = !{!"_ZTS17IndexIntervalTest", !7, i64 0, !11, i64 16, !11, i64 28, !11, i64 40}
!7 = !{!"_ZTSN7testing4TestE", !8, i64 8}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"_ZTSN4pica7Vector3IiEE", !12, i64 0, !12, i64 4, !12, i64 8}
!12 = !{!"int", !9, i64 0}
!13 = !{!6, !12, i64 28}
!14 = !{!6, !12, i64 20}
!15 = !{!6, !12, i64 32}
!16 = !{!6, !12, i64 24}
!17 = !{!6, !12, i64 36}
!18 = !{!6, !12, i64 48}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!6, !12, i64 44}
!22 = distinct !{!22, !20, !23}
!23 = !{!"llvm.loop.unswitch.partial.disable"}
!24 = !{!6, !12, i64 40}
!25 = distinct !{!25, !20, !23}


; Effective O3 passes: ConstraintEliminationPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass