; LLVM IR from pictools/pica :: test/src/utility/UtilityTests.ll (ZN37IndexIntervalTest_IncrementIndex_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.139 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.140 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.141 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.142 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.143 = external hidden unnamed_addr constant [6 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: mustprogress uwtable
define dso_local void @_ZN37IndexIntervalTest_IncrementIndex_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 %"struct.pica::Vector3", 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 ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"class.testing::Message", align 8
  %14 = alloca %"class.testing::internal::AssertHelper", align 8
  %15 = alloca %"class.testing::AssertionResult", align 8
  %16 = alloca %"struct.pica::Vector3", align 4
  %17 = alloca %"class.testing::Message", align 8
  %18 = alloca %"class.testing::internal::AssertHelper", align 8
  %19 = alloca %"class.testing::AssertionResult", align 8
  %20 = alloca %"struct.pica::Vector3", align 4
  %21 = alloca %"class.testing::Message", align 8
  %22 = alloca %"class.testing::internal::AssertHelper", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %23 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 60, ptr %3) #7
  %24 = getelementptr inbounds %class.IndexIntervalTest, ptr %23, i32 0, i32 1
  %25 = getelementptr inbounds %class.IndexIntervalTest, ptr %23, i32 0, i32 2
  %26 = getelementptr inbounds %class.IndexIntervalTest, ptr %23, 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) %24, ptr noundef nonnull align 4 dereferenceable(12) %25, ptr noundef nonnull align 4 dereferenceable(12) %26)
  call void @llvm.lifetime.start.p0(i64 12, ptr %4) #7
  %27 = getelementptr inbounds %class.IndexIntervalTest, ptr %23, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %4, ptr align 8 %27, i64 12, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  %28 = getelementptr inbounds %class.IndexIntervalTest, ptr %23, i32 0, i32 1
  %29 = getelementptr inbounds %"struct.pica::Vector3", ptr %28, i32 0, i32 0
  %30 = load i32, ptr %29, align 8, !tbaa !12
  store i32 %30, ptr %5, align 4, !tbaa !10
  br label %31

31:                                               ; preds = %191, %1
  %32 = load i32, ptr %5, align 4, !tbaa !10
  %33 = getelementptr inbounds %class.IndexIntervalTest, ptr %23, i32 0, i32 2
  %34 = getelementptr inbounds %"struct.pica::Vector3", ptr %33, i32 0, i32 0
  %35 = load i32, ptr %34, align 4, !tbaa !16
  %36 = icmp slt i32 %32, %35
  br i1 %36, label %38, label %37

37:                                               ; preds = %31
  store i32 2, ptr %6, align 4
  br label %197

38:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  %39 = getelementptr inbounds %class.IndexIntervalTest, ptr %23, i32 0, i32 1
  %40 = getelementptr inbounds %"struct.pica::Vector3", ptr %39, i32 0, i32 1
  %41 = load i32, ptr %40, align 4, !tbaa !17
  store i32 %41, ptr %7, align 4, !tbaa !10
  br label %42

42:                                               ; preds = %182, %38
  %43 = load i32, ptr %7, align 4, !tbaa !10
  %44 = getelementptr inbounds %class.IndexIntervalTest, ptr %23, i32 0, i32 2
  %45 = getelementptr inbounds %"struct.pica::Vector3", ptr %44, i32 0, i32 1
  %46 = load i32, ptr %45, align 4, !tbaa !18
  %47 = icmp slt i32 %43, %46
  br i1 %47, label %49, label %48

48:                                               ; preds = %42
  store i32 5, ptr %6, align 4
  br label %188

49:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  %50 = getelementptr inbounds %class.IndexIntervalTest, ptr %23, i32 0, i32 1
  %51 = getelementptr inbounds %"struct.pica::Vector3", ptr %50, i32 0, i32 2
  %52 = load i32, ptr %51, align 8, !tbaa !19
  store i32 %52, ptr %8, align 4, !tbaa !10
  br label %53

53:                                               ; preds = %171, %49
  %54 = load i32, ptr %8, align 4, !tbaa !10
  %55 = getelementptr inbounds %class.IndexIntervalTest, ptr %23, i32 0, i32 2
  %56 = getelementptr inbounds %"struct.pica::Vector3", ptr %55, i32 0, i32 2
  %57 = load i32, ptr %56, align 4, !tbaa !20
  %58 = icmp slt i32 %54, %57
  br i1 %58, label %60, label %59

59:                                               ; preds = %53
  store i32 8, ptr %6, align 4
  br label %178

60:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %10) #7
  %61 = load i32, ptr %5, align 4, !tbaa !10
  %62 = load i32, ptr %7, align 4, !tbaa !10
  %63 = load i32, ptr %8, align 4, !tbaa !10
  call void @_ZN4pica7Vector3IiEC2Eiii(ptr noundef nonnull align 4 dereferenceable(12) %10, i32 noundef %61, i32 noundef %62, i32 noundef %63)
  %64 = getelementptr inbounds %"struct.pica::Vector3", ptr %10, i32 0, i32 0
  %65 = getelementptr inbounds %"struct.pica::Vector3", ptr %4, 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.139, ptr noundef nonnull align 4 dereferenceable(4) %64, ptr noundef nonnull align 4 dereferenceable(4) %65)
  call void @llvm.lifetime.end.p0(i64 12, ptr %10) #7
  %66 = invoke noundef zeroext i1 @_ZNK7testing15AssertionResultcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %67 unwind label %69

67:                                               ; preds = %60
  br i1 %66, label %68, label %73

68:                                               ; preds = %67
  br label %93

69:                                               ; preds = %60
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %11, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %12, align 4
  br label %105

73:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  invoke void @_ZN7testing7MessageC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %74 unwind label %79

74:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %75 = invoke noundef ptr @_ZNK7testing15AssertionResult15failure_messageEv(ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %76 unwind label %83

76:                                               ; preds = %74
  invoke void @_ZN7testing8internal12AssertHelperC1ENS_14TestPartResult4TypeEPKciS5_(ptr noundef nonnull align 8 dereferenceable(8) %14, i32 noundef 2, ptr noundef @.str.5, i32 noundef 142, ptr noundef %75)
          to label %77 unwind label %83

77:                                               ; preds = %76
  invoke void @_ZNK7testing8internal12AssertHelperaSERKNS_7MessageE(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %78 unwind label %87

78:                                               ; preds = %77
  call void @_ZN7testing8internal12AssertHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  store i32 1, ptr %6, align 4
  br label %94

79:                                               ; preds = %73
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %11, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %12, align 4
  br label %92

83:                                               ; preds = %76, %74
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %11, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %12, align 4
  br label %91

87:                                               ; preds = %77
  %88 = landingpad { ptr, i32 }
          cleanup
  %89 = extractvalue { ptr, i32 } %88, 0
  store ptr %89, ptr %11, align 8
  %90 = extractvalue { ptr, i32 } %88, 1
  store i32 %90, ptr %12, align 4
  call void @_ZN7testing8internal12AssertHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  br label %91

91:                                               ; preds = %87, %83
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  br label %92

92:                                               ; preds = %91, %79
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br label %105

93:                                               ; preds = %68
  store i32 0, ptr %6, align 4
  br label %94

94:                                               ; preds = %93, %78
  call void @_ZN7testing15AssertionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #7
  %95 = load i32, ptr %6, align 4
  switch i32 %95, label %178 [
    i32 0, label %96
  ]

96:                                               ; preds = %94
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %16) #7
  %97 = load i32, ptr %5, align 4, !tbaa !10
  %98 = load i32, ptr %7, align 4, !tbaa !10
  %99 = load i32, ptr %8, align 4, !tbaa !10
  call void @_ZN4pica7Vector3IiEC2Eiii(ptr noundef nonnull align 4 dereferenceable(12) %16, i32 noundef %97, i32 noundef %98, i32 noundef %99)
  %100 = getelementptr inbounds %"struct.pica::Vector3", ptr %16, i32 0, i32 1
  %101 = getelementptr inbounds %"struct.pica::Vector3", ptr %4, i32 0, i32 1
  call void @_ZN7testing8internal8EqHelperILb0EE7CompareIiiEENS_15AssertionResultEPKcS6_RKT_RKT0_(ptr dead_on_unwind writable sret(%"class.testing::AssertionResult") align 8 %15, ptr noundef @.str.140, ptr noundef @.str.141, ptr noundef nonnull align 4 dereferenceable(4) %100, ptr noundef nonnull align 4 dereferenceable(4) %101)
  call void @llvm.lifetime.end.p0(i64 12, ptr %16) #7
  %102 = invoke noundef zeroext i1 @_ZNK7testing15AssertionResultcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %15)
          to label %103 unwind label %106

103:                                              ; preds = %96
  br i1 %102, label %104, label %110

104:                                              ; preds = %103
  br label %130

105:                                              ; preds = %92, %69
  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 %180

106:                                              ; preds = %96
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %11, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %12, align 4
  br label %142

110:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  invoke void @_ZN7testing7MessageC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %111 unwind label %116

111:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %112 = invoke noundef ptr @_ZNK7testing15AssertionResult15failure_messageEv(ptr noundef nonnull align 8 dereferenceable(16) %15)
          to label %113 unwind label %120

113:                                              ; preds = %111
  invoke void @_ZN7testing8internal12AssertHelperC1ENS_14TestPartResult4TypeEPKciS5_(ptr noundef nonnull align 8 dereferenceable(8) %18, i32 noundef 2, ptr noundef @.str.5, i32 noundef 142, ptr noundef %112)
          to label %114 unwind label %120

114:                                              ; preds = %113
  invoke void @_ZNK7testing8internal12AssertHelperaSERKNS_7MessageE(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %115 unwind label %124

115:                                              ; preds = %114
  call void @_ZN7testing8internal12AssertHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  store i32 1, ptr %6, align 4
  br label %131

116:                                              ; preds = %110
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %11, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %12, align 4
  br label %129

120:                                              ; preds = %113, %111
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %11, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %12, align 4
  br label %128

124:                                              ; preds = %114
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %11, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %12, align 4
  call void @_ZN7testing8internal12AssertHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #7
  br label %128

128:                                              ; preds = %124, %120
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #7
  br label %129

129:                                              ; preds = %128, %116
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %142

130:                                              ; preds = %104
  store i32 0, ptr %6, align 4
  br label %131

131:                                              ; preds = %130, %115
  call void @_ZN7testing15AssertionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #7
  %132 = load i32, ptr %6, align 4
  switch i32 %132, label %178 [
    i32 0, label %133
  ]

133:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %20) #7
  %134 = load i32, ptr %5, align 4, !tbaa !10
  %135 = load i32, ptr %7, align 4, !tbaa !10
  %136 = load i32, ptr %8, align 4, !tbaa !10
  call void @_ZN4pica7Vector3IiEC2Eiii(ptr noundef nonnull align 4 dereferenceable(12) %20, i32 noundef %134, i32 noundef %135, i32 noundef %136)
  %137 = getelementptr inbounds %"struct.pica::Vector3", ptr %20, i32 0, i32 2
  %138 = getelementptr inbounds %"struct.pica::Vector3", ptr %4, i32 0, i32 2
  call void @_ZN7testing8internal8EqHelperILb0EE7CompareIiiEENS_15AssertionResultEPKcS6_RKT_RKT0_(ptr dead_on_unwind writable sret(%"class.testing::AssertionResult") align 8 %19, ptr noundef @.str.142, ptr noundef @.str.143, ptr noundef nonnull align 4 dereferenceable(4) %137, ptr noundef nonnull align 4 dereferenceable(4) %138)
  call void @llvm.lifetime.end.p0(i64 12, ptr %20) #7
  %139 = invoke noundef zeroext i1 @_ZNK7testing15AssertionResultcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %19)
          to label %140 unwind label %143

140:                                              ; preds = %133
  br i1 %139, label %141, label %147

141:                                              ; preds = %140
  br label %167

142:                                              ; preds = %129, %106
  call void @_ZN7testing15AssertionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #7
  br label %180

143:                                              ; preds = %133
  %144 = landingpad { ptr, i32 }
          cleanup
  %145 = extractvalue { ptr, i32 } %144, 0
  store ptr %145, ptr %11, align 8
  %146 = extractvalue { ptr, i32 } %144, 1
  store i32 %146, ptr %12, align 4
  br label %177

147:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  invoke void @_ZN7testing7MessageC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %148 unwind label %153

148:                                              ; preds = %147
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %149 = invoke noundef ptr @_ZNK7testing15AssertionResult15failure_messageEv(ptr noundef nonnull align 8 dereferenceable(16) %19)
          to label %150 unwind label %157

150:                                              ; preds = %148
  invoke void @_ZN7testing8internal12AssertHelperC1ENS_14TestPartResult4TypeEPKciS5_(ptr noundef nonnull align 8 dereferenceable(8) %22, i32 noundef 2, ptr noundef @.str.5, i32 noundef 142, ptr noundef %149)
          to label %151 unwind label %157

151:                                              ; preds = %150
  invoke void @_ZNK7testing8internal12AssertHelperaSERKNS_7MessageE(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %152 unwind label %161

152:                                              ; preds = %151
  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 %168

153:                                              ; preds = %147
  %154 = landingpad { ptr, i32 }
          cleanup
  %155 = extractvalue { ptr, i32 } %154, 0
  store ptr %155, ptr %11, align 8
  %156 = extractvalue { ptr, i32 } %154, 1
  store i32 %156, ptr %12, align 4
  br label %166

157:                                              ; preds = %150, %148
  %158 = landingpad { ptr, i32 }
          cleanup
  %159 = extractvalue { ptr, i32 } %158, 0
  store ptr %159, ptr %11, align 8
  %160 = extractvalue { ptr, i32 } %158, 1
  store i32 %160, ptr %12, align 4
  br label %165

161:                                              ; preds = %151
  %162 = landingpad { ptr, i32 }
          cleanup
  %163 = extractvalue { ptr, i32 } %162, 0
  store ptr %163, ptr %11, align 8
  %164 = extractvalue { ptr, i32 } %162, 1
  store i32 %164, ptr %12, align 4
  call void @_ZN7testing8internal12AssertHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #7
  br label %165

165:                                              ; preds = %161, %157
  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 %166

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

167:                                              ; preds = %141
  store i32 0, ptr %6, align 4
  br label %168

168:                                              ; preds = %167, %152
  call void @_ZN7testing15AssertionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #7
  %169 = load i32, ptr %6, align 4
  switch i32 %169, label %178 [
    i32 0, label %170
  ]

170:                                              ; preds = %168
  call void @_ZNK4pica13IndexIntervalINS_7Vector3IiEEE14incrementIndexERS2_(ptr noundef nonnull align 4 dereferenceable(60) %3, ptr noundef nonnull align 4 dereferenceable(12) %4)
  br label %171

171:                                              ; preds = %170
  %172 = getelementptr inbounds %class.IndexIntervalTest, ptr %23, i32 0, i32 3
  %173 = getelementptr inbounds %"struct.pica::Vector3", ptr %172, i32 0, i32 2
  %174 = load i32, ptr %173, align 8, !tbaa !21
  %175 = load i32, ptr %8, align 4, !tbaa !10
  %176 = add nsw i32 %175, %174
  store i32 %176, ptr %8, align 4, !tbaa !10
  br label %53, !llvm.loop !22

177:                                              ; preds = %166, %143
  call void @_ZN7testing15AssertionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #7
  br label %180

178:                                              ; preds = %168, %131, %94, %59
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  %179 = load i32, ptr %6, align 4
  switch i32 %179, label %188 [
    i32 8, label %181
  ]

180:                                              ; preds = %177, %142, %105
  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 12, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 60, ptr %3) #7
  br label %203

181:                                              ; preds = %178
  br label %182

182:                                              ; preds = %181
  %183 = getelementptr inbounds %class.IndexIntervalTest, ptr %23, i32 0, i32 3
  %184 = getelementptr inbounds %"struct.pica::Vector3", ptr %183, i32 0, i32 1
  %185 = load i32, ptr %184, align 4, !tbaa !24
  %186 = load i32, ptr %7, align 4, !tbaa !10
  %187 = add nsw i32 %186, %185
  store i32 %187, ptr %7, align 4, !tbaa !10
  br label %42, !llvm.loop !25

188:                                              ; preds = %178, %48
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  %189 = load i32, ptr %6, align 4
  switch i32 %189, label %197 [
    i32 5, label %190
  ]

190:                                              ; preds = %188
  br label %191

191:                                              ; preds = %190
  %192 = getelementptr inbounds %class.IndexIntervalTest, ptr %23, i32 0, i32 3
  %193 = getelementptr inbounds %"struct.pica::Vector3", ptr %192, i32 0, i32 0
  %194 = load i32, ptr %193, align 8, !tbaa !26
  %195 = load i32, ptr %5, align 4, !tbaa !10
  %196 = add nsw i32 %195, %194
  store i32 %196, ptr %5, align 4, !tbaa !10
  br label %31, !llvm.loop !27

197:                                              ; preds = %188, %37
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  %198 = load i32, ptr %6, align 4
  switch i32 %198, label %200 [
    i32 2, label %199
  ]

199:                                              ; preds = %197
  store i32 0, ptr %6, align 4
  br label %200

200:                                              ; preds = %199, %197
  call void @llvm.lifetime.end.p0(i64 12, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 60, ptr %3) #7
  %201 = load i32, ptr %6, align 4
  switch i32 %201, label %208 [
    i32 0, label %202
    i32 1, label %202
  ]

202:                                              ; preds = %200, %200
  ret void

203:                                              ; preds = %180
  %204 = load ptr, ptr %11, align 8
  %205 = load i32, ptr %12, align 4
  %206 = insertvalue { ptr, i32 } poison, ptr %204, 0
  %207 = insertvalue { ptr, i32 } %206, i32 %205, 1
  resume { ptr, i32 } %207

208:                                              ; preds = %200
  unreachable
}

; 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
declare dso_local void @_ZNK4pica13IndexIntervalINS_7Vector3IiEEE14incrementIndexERS2_(ptr noundef nonnull align 4 dereferenceable(60), ptr noundef nonnull align 4 dereferenceable(12)) #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 = !{i64 0, i64 4, !10, i64 4, i64 4, !10, i64 8, i64 4, !10}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !11, i64 16}
!13 = !{!"_ZTS17IndexIntervalTest", !14, i64 0, !15, i64 16, !15, i64 28, !15, i64 40}
!14 = !{!"_ZTSN7testing4TestE", !6, i64 8}
!15 = !{!"_ZTSN4pica7Vector3IiEE", !11, i64 0, !11, i64 4, !11, i64 8}
!16 = !{!13, !11, i64 28}
!17 = !{!13, !11, i64 20}
!18 = !{!13, !11, i64 32}
!19 = !{!13, !11, i64 24}
!20 = !{!13, !11, i64 36}
!21 = !{!13, !11, i64 48}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!13, !11, i64 44}
!25 = distinct !{!25, !23}
!26 = !{!13, !11, i64 40}
!27 = distinct !{!27, !23}


; 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.139 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.140 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.141 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.142 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.143 = external hidden unnamed_addr constant [6 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 @_ZN37IndexIntervalTest_IncrementIndex_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 %"struct.pica::Vector3", align 4
  %4 = alloca %"class.testing::AssertionResult", align 8
  %5 = alloca %"struct.pica::Vector3", align 4
  %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 %"class.testing::Message", align 8
  %11 = alloca %"class.testing::internal::AssertHelper", align 8
  %12 = alloca %"class.testing::AssertionResult", align 8
  %13 = alloca %"struct.pica::Vector3", align 4
  %14 = alloca %"class.testing::Message", align 8
  %15 = alloca %"class.testing::internal::AssertHelper", align 8
  call void @llvm.lifetime.start.p0(i64 60, ptr nonnull %2) #7
  %16 = getelementptr inbounds i8, ptr %0, i64 16
  %17 = getelementptr inbounds i8, ptr %0, i64 28
  %18 = 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) %16, ptr noundef nonnull align 4 dereferenceable(12) %17, ptr noundef nonnull align 4 dereferenceable(12) %18)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 8 dereferenceable(12) %16, i64 12, i1 false), !tbaa.struct !5
  %19 = load i32, ptr %16, align 8, !tbaa !10
  %20 = load i32, ptr %17, align 4, !tbaa !15
  %21 = icmp slt i32 %19, %20
  br i1 %21, label %.lr.ph69, label %.loopexit

.lr.ph69:                                         ; preds = %1
  %22 = getelementptr inbounds i8, ptr %0, i64 20
  %23 = getelementptr inbounds i8, ptr %0, i64 32
  %24 = getelementptr inbounds i8, ptr %0, i64 24
  %25 = getelementptr inbounds i8, ptr %0, i64 36
  %26 = getelementptr inbounds i8, ptr %9, i64 4
  %27 = getelementptr inbounds i8, ptr %3, i64 4
  %28 = getelementptr inbounds i8, ptr %13, i64 8
  %29 = getelementptr inbounds i8, ptr %3, i64 8
  %30 = getelementptr inbounds i8, ptr %0, i64 48
  %31 = getelementptr inbounds i8, ptr %0, i64 44
  %32 = load i32, ptr %22, align 4, !tbaa !16
  %33 = load i32, ptr %23, align 8, !tbaa !17
  %34 = icmp slt i32 %32, %33
  br i1 %34, label %.lr.ph69.split, label %.loopexit

.lr.ph69.split:                                   ; preds = %.lr.ph69, %.critedge61
  %35 = phi i32 [ %101, %.critedge61 ], [ %20, %.lr.ph69 ]
  %36 = phi i32 [ %102, %.critedge61 ], [ %33, %.lr.ph69 ]
  %37 = phi i32 [ %103, %.critedge61 ], [ %33, %.lr.ph69 ]
  %.04367 = phi i32 [ %105, %.critedge61 ], [ %19, %.lr.ph69 ]
  %38 = load i32, ptr %22, align 4, !tbaa !16
  %.not5364 = icmp slt i32 %38, %37
  br i1 %.not5364, label %.lr.ph66, label %.critedge61

.lr.ph66:                                         ; preds = %.lr.ph69.split
  %39 = load i32, ptr %24, align 8, !tbaa !18
  %40 = load i32, ptr %25, align 4, !tbaa !19
  %41 = icmp slt i32 %39, %40
  br i1 %41, label %.lr.ph66.split, label %.critedge61

.lr.ph66.split:                                   ; preds = %.lr.ph66, %.critedge59
  %42 = phi i32 [ %97, %.critedge59 ], [ %36, %.lr.ph66 ]
  %43 = phi i32 [ %98, %.critedge59 ], [ %40, %.lr.ph66 ]
  %.03665 = phi i32 [ %100, %.critedge59 ], [ %38, %.lr.ph66 ]
  %44 = load i32, ptr %24, align 8, !tbaa !18
  %.not62 = icmp slt i32 %44, %43
  br i1 %.not62, label %.lr.ph, label %.critedge59

.lr.ph:                                           ; preds = %.lr.ph66.split, %92
  %.03563 = phi i32 [ %94, %92 ], [ %44, %.lr.ph66.split ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #7
  call void @_ZN4pica7Vector3IiEC2Eiii(ptr noundef nonnull align 4 dereferenceable(12) %5, i32 noundef %.04367, i32 noundef %.03665, i32 noundef %.03563)
  call void @_ZN7testing8internal8EqHelperILb0EE7CompareIiiEENS_15AssertionResultEPKcS6_RKT_RKT0_(ptr dead_on_unwind nonnull writable sret(%"class.testing::AssertionResult") align 8 %4, ptr noundef nonnull @.str.138, ptr noundef nonnull @.str.139, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %3)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #7
  %45 = call noundef zeroext i1 @_ZNK7testing15AssertionResultcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
  br i1 %45, label %60, label %46

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

47:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %48 = invoke noundef ptr @_ZNK7testing15AssertionResult15failure_messageEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
          to label %49 unwind label %54

49:                                               ; preds = %47
  invoke void @_ZN7testing8internal12AssertHelperC1ENS_14TestPartResult4TypeEPKciS5_(ptr noundef nonnull align 8 dereferenceable(8) %7, i32 noundef 2, ptr noundef nonnull @.str.5, i32 noundef 142, ptr noundef %48)
          to label %50 unwind label %54

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

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

52:                                               ; preds = %46
  %53 = landingpad { ptr, i32 }
          cleanup
  br label %59

54:                                               ; preds = %49, %47
  %55 = landingpad { ptr, i32 }
          cleanup
  br label %58

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

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

59:                                               ; preds = %58, %52
  %.pn.pn = phi { ptr, i32 } [ %.pn, %58 ], [ %53, %52 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @_ZN7testing15AssertionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #7
  br label %96

60:                                               ; preds = %.lr.ph
  call void @_ZN7testing15AssertionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #7
  call void @_ZN4pica7Vector3IiEC2Eiii(ptr noundef nonnull align 4 dereferenceable(12) %9, i32 noundef %.04367, i32 noundef %.03665, i32 noundef %.03563)
  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.141, ptr noundef nonnull align 4 dereferenceable(4) %26, ptr noundef nonnull align 4 dereferenceable(4) %27)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #7
  %61 = call noundef zeroext i1 @_ZNK7testing15AssertionResultcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
  br i1 %61, label %76, label %62

62:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  invoke void @_ZN7testing7MessageC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %63 unwind label %68

63:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  %64 = invoke noundef ptr @_ZNK7testing15AssertionResult15failure_messageEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
          to label %65 unwind label %70

65:                                               ; preds = %63
  invoke void @_ZN7testing8internal12AssertHelperC1ENS_14TestPartResult4TypeEPKciS5_(ptr noundef nonnull align 8 dereferenceable(8) %11, i32 noundef 2, ptr noundef nonnull @.str.5, i32 noundef 142, ptr noundef %64)
          to label %66 unwind label %70

66:                                               ; preds = %65
  invoke void @_ZNK7testing8internal12AssertHelperaSERKNS_7MessageE(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %67 unwind label %72

67:                                               ; preds = %66
  call void @_ZN7testing8internal12AssertHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  call void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  call void @_ZN7testing15AssertionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  br label %.loopexit

68:                                               ; preds = %62
  %69 = landingpad { ptr, i32 }
          cleanup
  br label %75

70:                                               ; preds = %65, %63
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %74

72:                                               ; preds = %66
  %73 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7testing8internal12AssertHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #7
  br label %74

74:                                               ; preds = %72, %70
  %.pn46 = phi { ptr, i32 } [ %73, %72 ], [ %71, %70 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  call void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  br label %75

75:                                               ; preds = %74, %68
  %.pn46.pn = phi { ptr, i32 } [ %.pn46, %74 ], [ %69, %68 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  call void @_ZN7testing15AssertionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  br label %96

76:                                               ; preds = %60
  call void @_ZN7testing15AssertionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %13) #7
  call void @_ZN4pica7Vector3IiEC2Eiii(ptr noundef nonnull align 4 dereferenceable(12) %13, i32 noundef %.04367, i32 noundef %.03665, i32 noundef %.03563)
  call void @_ZN7testing8internal8EqHelperILb0EE7CompareIiiEENS_15AssertionResultEPKcS6_RKT_RKT0_(ptr dead_on_unwind nonnull writable sret(%"class.testing::AssertionResult") align 8 %12, ptr noundef nonnull @.str.142, ptr noundef nonnull @.str.143, 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 %13) #7
  %77 = call noundef zeroext i1 @_ZNK7testing15AssertionResultcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %12)
  br i1 %77, label %92, label %78

78:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #7
  invoke void @_ZN7testing7MessageC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %79 unwind label %84

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

81:                                               ; preds = %79
  invoke void @_ZN7testing8internal12AssertHelperC1ENS_14TestPartResult4TypeEPKciS5_(ptr noundef nonnull align 8 dereferenceable(8) %15, i32 noundef 2, ptr noundef nonnull @.str.5, i32 noundef 142, ptr noundef %80)
          to label %82 unwind label %86

82:                                               ; preds = %81
  invoke void @_ZNK7testing8internal12AssertHelperaSERKNS_7MessageE(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %83 unwind label %88

83:                                               ; preds = %82
  call void @_ZN7testing8internal12AssertHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  call void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  call void @_ZN7testing15AssertionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #7
  br label %.loopexit

84:                                               ; preds = %78
  %85 = landingpad { ptr, i32 }
          cleanup
  br label %91

86:                                               ; preds = %81, %79
  %87 = landingpad { ptr, i32 }
          cleanup
  br label %90

88:                                               ; preds = %82
  %89 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7testing8internal12AssertHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  br label %90

90:                                               ; preds = %88, %86
  %.pn49 = phi { ptr, i32 } [ %89, %88 ], [ %87, %86 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  call void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  br label %91

91:                                               ; preds = %90, %84
  %.pn49.pn = phi { ptr, i32 } [ %.pn49, %90 ], [ %85, %84 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  call void @_ZN7testing15AssertionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #7
  br label %96

92:                                               ; preds = %76
  call void @_ZN7testing15AssertionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #7
  call void @_ZNK4pica13IndexIntervalINS_7Vector3IiEEE14incrementIndexERS2_(ptr noundef nonnull align 4 dereferenceable(60) %2, ptr noundef nonnull align 4 dereferenceable(12) %3)
  %93 = load i32, ptr %30, align 8, !tbaa !20
  %94 = add nsw i32 %93, %.03563
  %95 = load i32, ptr %25, align 4, !tbaa !19
  %.not = icmp slt i32 %94, %95
  br i1 %.not, label %.lr.ph, label %.critedge59.loopexit, !llvm.loop !21

96:                                               ; preds = %91, %75, %59
  %.pn49.pn.pn = phi { ptr, i32 } [ %.pn49.pn, %91 ], [ %.pn46.pn, %75 ], [ %.pn.pn, %59 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 60, ptr nonnull %2) #7
  resume { ptr, i32 } %.pn49.pn.pn

.critedge59.loopexit:                             ; preds = %92
  %.pre = load i32, ptr %23, align 8, !tbaa !17
  br label %.critedge59

.critedge59:                                      ; preds = %.critedge59.loopexit, %.lr.ph66.split
  %97 = phi i32 [ %.pre, %.critedge59.loopexit ], [ %42, %.lr.ph66.split ]
  %98 = phi i32 [ %95, %.critedge59.loopexit ], [ %43, %.lr.ph66.split ]
  %99 = load i32, ptr %31, align 4, !tbaa !23
  %100 = add nsw i32 %99, %.03665
  %.not53 = icmp slt i32 %100, %97
  br i1 %.not53, label %.lr.ph66.split, label %.critedge61.loopexit, !llvm.loop !24

.critedge61.loopexit:                             ; preds = %.critedge59
  %.pre72 = load i32, ptr %17, align 4, !tbaa !15
  br label %.critedge61

.critedge61:                                      ; preds = %.lr.ph66, %.critedge61.loopexit, %.lr.ph69.split
  %101 = phi i32 [ %.pre72, %.critedge61.loopexit ], [ %35, %.lr.ph69.split ], [ %35, %.lr.ph66 ]
  %102 = phi i32 [ %97, %.critedge61.loopexit ], [ %36, %.lr.ph69.split ], [ %36, %.lr.ph66 ]
  %103 = phi i32 [ %97, %.critedge61.loopexit ], [ %37, %.lr.ph69.split ], [ %37, %.lr.ph66 ]
  %104 = load i32, ptr %18, align 8, !tbaa !26
  %105 = add nsw i32 %104, %.04367
  %106 = icmp slt i32 %105, %101
  br i1 %106, label %.lr.ph69.split, label %.loopexit, !llvm.loop !27

.loopexit:                                        ; preds = %.critedge61, %.lr.ph69, %1, %83, %67, %51
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 60, ptr nonnull %2) #7
  ret void
}

; Function Attrs: mustprogress 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
declare dso_local void @_ZNK4pica13IndexIntervalINS_7Vector3IiEEE14incrementIndexERS2_(ptr noundef nonnull align 4 dereferenceable(60), ptr noundef nonnull align 4 dereferenceable(12)) 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 = { mustprogress 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 = !{i64 0, i64 4, !6, i64 4, i64 4, !6, i64 8, i64 4, !6}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !7, i64 16}
!11 = !{!"_ZTS17IndexIntervalTest", !12, i64 0, !14, i64 16, !14, i64 28, !14, i64 40}
!12 = !{!"_ZTSN7testing4TestE", !13, i64 8}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!"_ZTSN4pica7Vector3IiEE", !7, i64 0, !7, i64 4, !7, i64 8}
!15 = !{!11, !7, i64 28}
!16 = !{!11, !7, i64 20}
!17 = !{!11, !7, i64 32}
!18 = !{!11, !7, i64 24}
!19 = !{!11, !7, i64 36}
!20 = !{!11, !7, i64 48}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!11, !7, i64 44}
!24 = distinct !{!24, !22, !25}
!25 = !{!"llvm.loop.unswitch.partial.disable"}
!26 = !{!11, !7, i64 40}
!27 = distinct !{!27, !22, !25}


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