; LLVM IR from pictools/pica :: test/src/grid/YeeGridTests.ll (ZN31YeeGridTest2d_GetCellIndex_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::internal::String" = type { ptr, i64 }
%"struct.pica::Vector2.7" = type { i32, i32 }
%"struct.pica::Vector2" = type { double, double }
%"class.testing::AssertionResult" = type { i8, %"class.testing::internal::scoped_ptr" }
%"class.testing::internal::scoped_ptr" = type { ptr }
%"class.testing::Message" = type { %"class.testing::internal::scoped_ptr.1" }
%"class.testing::internal::scoped_ptr.1" = type { ptr }
%"class.testing::internal::AssertHelper" = type { ptr }
%class.YeeGridTest2d = type { %"class.testing::Test", %"class.std::auto_ptr.6", %"struct.pica::Vector2", %"struct.pica::Vector2", %"struct.pica::Vector2.7" }
%"class.testing::Test" = type { ptr, ptr }
%"class.std::auto_ptr.6" = type { ptr }

@.str.3 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [48 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: mustprogress uwtable
declare dso_local void @_ZN7testing15AssertionResultC2Eb(ptr noundef nonnull align 8 dereferenceable(16), i1 noundef zeroext) unnamed_addr #1 align 2

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

; 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

declare void @_ZN7testing8internal30GetBoolAssertionFailureMessageERKNS_15AssertionResultEPKcS5_S5_(ptr dead_on_unwind writable sret(%"class.testing::internal::String") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK7testing8internal6String5c_strEv(ptr noundef nonnull align 8 dereferenceable(16)) #2 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: mustprogress nounwind uwtable
declare dso_local void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

; 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 noundef ptr @_ZNKSt8auto_ptrIN4pica7YeeGridILNS0_9DimensionE2EdEEEptEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { double, double } @_ZNK4pica4GridILNS_9DimensionE2EdE9getOriginEv(ptr noundef nonnull align 8 dereferenceable(320)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { double, double } @_ZNK4pica4GridILNS_9DimensionE2EdE7getStepEv(ptr noundef nonnull align 8 dereferenceable(320)) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN4picaeqIiEEbRKNS_7Vector2IT_EES5_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #5

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN31YeeGridTest2d_GetCellIndex_Test8TestBodyEv(ptr noundef nonnull align 8 dereferenceable(64) %0) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca %"struct.pica::Vector2.7", align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %"struct.pica::Vector2.7", align 4
  %8 = alloca %"struct.pica::Vector2", align 8
  %9 = alloca %"struct.pica::Vector2", align 8
  %10 = alloca %"struct.pica::Vector2", align 8
  %11 = alloca %"struct.pica::Vector2", align 8
  %12 = alloca %"struct.pica::Vector2", align 8
  %13 = alloca %"class.testing::AssertionResult", align 8
  %14 = alloca %"struct.pica::Vector2.7", align 4
  %15 = alloca %"struct.pica::Vector2.7", align 4
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca %"class.testing::Message", align 8
  %19 = alloca %"class.testing::internal::AssertHelper", align 8
  %20 = alloca %"class.testing::internal::String", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %21 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %22

22:                                               ; preds = %117, %1
  %23 = load i32, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  %24 = getelementptr inbounds %class.YeeGridTest2d, ptr %21, i32 0, i32 1
  %25 = call noundef ptr @_ZNKSt8auto_ptrIN4pica7YeeGridILNS0_9DimensionE2EdEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #7
  %26 = call i64 @_ZNK4pica4GridILNS_9DimensionE2EdE7getSizeEv(ptr noundef nonnull align 8 dereferenceable(320) %25)
  store i64 %26, ptr %4, align 4
  %27 = getelementptr inbounds %"struct.pica::Vector2.7", ptr %4, i32 0, i32 0
  %28 = load i32, ptr %27, align 4, !tbaa !11
  %29 = icmp slt i32 %23, %28
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  br i1 %29, label %31, label %30

30:                                               ; preds = %22
  store i32 2, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  br label %120

31:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %32

32:                                               ; preds = %112, %31
  %33 = load i32, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %34 = getelementptr inbounds %class.YeeGridTest2d, ptr %21, i32 0, i32 1
  %35 = call noundef ptr @_ZNKSt8auto_ptrIN4pica7YeeGridILNS0_9DimensionE2EdEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %34) #7
  %36 = call i64 @_ZNK4pica4GridILNS_9DimensionE2EdE7getSizeEv(ptr noundef nonnull align 8 dereferenceable(320) %35)
  store i64 %36, ptr %7, align 4
  %37 = getelementptr inbounds %"struct.pica::Vector2.7", ptr %7, i32 0, i32 1
  %38 = load i32, ptr %37, align 4, !tbaa !13
  %39 = icmp slt i32 %33, %38
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  br i1 %39, label %41, label %40

40:                                               ; preds = %32
  store i32 5, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  br label %116

41:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #7
  %42 = getelementptr inbounds %class.YeeGridTest2d, ptr %21, i32 0, i32 1
  %43 = call noundef ptr @_ZNKSt8auto_ptrIN4pica7YeeGridILNS0_9DimensionE2EdEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %42) #7
  %44 = call { double, double } @_ZNK4pica4GridILNS_9DimensionE2EdE9getOriginEv(ptr noundef nonnull align 8 dereferenceable(320) %43)
  %45 = getelementptr inbounds { double, double }, ptr %9, i32 0, i32 0
  %46 = extractvalue { double, double } %44, 0
  store double %46, ptr %45, align 8
  %47 = getelementptr inbounds { double, double }, ptr %9, i32 0, i32 1
  %48 = extractvalue { double, double } %44, 1
  store double %48, ptr %47, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #7
  %49 = getelementptr inbounds %class.YeeGridTest2d, ptr %21, i32 0, i32 1
  %50 = call noundef ptr @_ZNKSt8auto_ptrIN4pica7YeeGridILNS0_9DimensionE2EdEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %49) #7
  %51 = call { double, double } @_ZNK4pica4GridILNS_9DimensionE2EdE7getStepEv(ptr noundef nonnull align 8 dereferenceable(320) %50)
  %52 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 0
  %53 = extractvalue { double, double } %51, 0
  store double %53, ptr %52, align 8
  %54 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 1
  %55 = extractvalue { double, double } %51, 1
  store double %55, ptr %54, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #7
  %56 = load i32, ptr %3, align 4, !tbaa !9
  %57 = sitofp i32 %56 to double
  %58 = fadd double %57, 5.000000e-01
  %59 = load i32, ptr %6, align 4, !tbaa !9
  %60 = sitofp i32 %59 to double
  %61 = fadd double %60, 5.000000e-01
  call void @_ZN4pica7Vector2IdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %12, double noundef %58, double noundef %61)
  %62 = call { double, double } @_ZN4picamlIdEEKNS_7Vector2IT_EERS4_S5_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %12)
  %63 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 0
  %64 = extractvalue { double, double } %62, 0
  store double %64, ptr %63, align 8
  %65 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 1
  %66 = extractvalue { double, double } %62, 1
  store double %66, ptr %65, align 8
  %67 = call { double, double } @_ZN4picaplIdEEKNS_7Vector2IT_EERS4_S5_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %10)
  %68 = getelementptr inbounds { double, double }, ptr %8, i32 0, i32 0
  %69 = extractvalue { double, double } %67, 0
  store double %69, ptr %68, align 8
  %70 = getelementptr inbounds { double, double }, ptr %8, i32 0, i32 1
  %71 = extractvalue { double, double } %67, 1
  store double %71, ptr %70, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %72 = load i32, ptr %3, align 4, !tbaa !9
  %73 = load i32, ptr %6, align 4, !tbaa !9
  call void @_ZN4pica7Vector2IiEC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %14, i32 noundef %72, i32 noundef %73)
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %74 = getelementptr inbounds %class.YeeGridTest2d, ptr %21, i32 0, i32 1
  %75 = call noundef ptr @_ZNKSt8auto_ptrIN4pica7YeeGridILNS0_9DimensionE2EdEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %74) #7
  %76 = call i64 @_ZN4pica4GridILNS_9DimensionE2EdE12getCellIndexERKNS_7Vector2IdEE(ptr noundef nonnull align 8 dereferenceable(320) %75, ptr noundef nonnull align 8 dereferenceable(16) %8)
  store i64 %76, ptr %15, align 4
  %77 = call noundef zeroext i1 @_ZN4picaeqIiEEbRKNS_7Vector2IT_EES5_(ptr noundef nonnull align 4 dereferenceable(8) %14, ptr noundef nonnull align 4 dereferenceable(8) %15)
  call void @_ZN7testing15AssertionResultC2Eb(ptr noundef nonnull align 8 dereferenceable(16) %13, i1 noundef zeroext %77)
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  %78 = invoke noundef zeroext i1 @_ZNK7testing15AssertionResultcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %79 unwind label %81

79:                                               ; preds = %41
  br i1 %78, label %80, label %85

80:                                               ; preds = %79
  br label %111

81:                                               ; preds = %41
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %16, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %17, align 4
  br label %115

85:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  invoke void @_ZN7testing7MessageC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %86 unwind label %92

86:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #7
  invoke void @_ZN7testing8internal30GetBoolAssertionFailureMessageERKNS_15AssertionResultEPKcS5_S5_(ptr dead_on_unwind writable sret(%"class.testing::internal::String") align 8 %20, ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef @.str.21, ptr noundef @.str.5, ptr noundef @.str.6)
          to label %87 unwind label %96

87:                                               ; preds = %86
  %88 = invoke noundef ptr @_ZNK7testing8internal6String5c_strEv(ptr noundef nonnull align 8 dereferenceable(16) %20)
          to label %89 unwind label %100

89:                                               ; preds = %87
  invoke void @_ZN7testing8internal12AssertHelperC1ENS_14TestPartResult4TypeEPKciS5_(ptr noundef nonnull align 8 dereferenceable(8) %19, i32 noundef 1, ptr noundef @.str.3, i32 noundef 89, ptr noundef %88)
          to label %90 unwind label %100

90:                                               ; preds = %89
  invoke void @_ZNK7testing8internal12AssertHelperaSERKNS_7MessageE(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %91 unwind label %104

91:                                               ; preds = %90
  call void @_ZN7testing8internal12AssertHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #7
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  br label %111

92:                                               ; preds = %85
  %93 = landingpad { ptr, i32 }
          cleanup
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %16, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %17, align 4
  br label %110

96:                                               ; preds = %86
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %16, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %17, align 4
  br label %109

100:                                              ; preds = %89, %87
  %101 = landingpad { ptr, i32 }
          cleanup
  %102 = extractvalue { ptr, i32 } %101, 0
  store ptr %102, ptr %16, align 8
  %103 = extractvalue { ptr, i32 } %101, 1
  store i32 %103, ptr %17, align 4
  br label %108

104:                                              ; preds = %90
  %105 = landingpad { ptr, i32 }
          cleanup
  %106 = extractvalue { ptr, i32 } %105, 0
  store ptr %106, ptr %16, align 8
  %107 = extractvalue { ptr, i32 } %105, 1
  store i32 %107, ptr %17, align 4
  call void @_ZN7testing8internal12AssertHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #7
  br label %108

108:                                              ; preds = %104, %100
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #7
  br label %109

109:                                              ; preds = %108, %96
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @_ZN7testing7MessageD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #7
  br label %110

110:                                              ; preds = %109, %92
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  br label %115

111:                                              ; preds = %91, %80
  call void @_ZN7testing15AssertionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #7
  br label %112

112:                                              ; preds = %111
  %113 = load i32, ptr %6, align 4, !tbaa !9
  %114 = add nsw i32 %113, 1
  store i32 %114, ptr %6, align 4, !tbaa !9
  br label %32, !llvm.loop !14

115:                                              ; preds = %110, %81
  call void @_ZN7testing15AssertionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  br label %121

116:                                              ; preds = %40
  br label %117

117:                                              ; preds = %116
  %118 = load i32, ptr %3, align 4, !tbaa !9
  %119 = add nsw i32 %118, 1
  store i32 %119, ptr %3, align 4, !tbaa !9
  br label %22, !llvm.loop !16

120:                                              ; preds = %30
  ret void

121:                                              ; preds = %115
  %122 = load ptr, ptr %16, align 8
  %123 = load i32, ptr %17, align 4
  %124 = insertvalue { ptr, i32 } poison, ptr %122, 0
  %125 = insertvalue { ptr, i32 } %124, i32 %123, 1
  resume { ptr, i32 } %125
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { double, double } @_ZN4picaplIdEEKNS_7Vector2IT_EERS4_S5_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { double, double } @_ZN4picamlIdEEKNS_7Vector2IT_EERS4_S5_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4pica7Vector2IdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16), double noundef, double noundef) unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZN4pica4GridILNS_9DimensionE2EdE12getCellIndexERKNS_7Vector2IdEE(ptr noundef nonnull align 8 dereferenceable(320), ptr noundef nonnull align 8 dereferenceable(16)) #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 = { inlinehint 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 #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 0}
!12 = !{!"_ZTSN4pica7Vector2IiEE", !10, i64 0, !10, i64 4}
!13 = !{!12, !10, i64 4}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}


; 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::internal::String" = type { ptr, i64 }
%"struct.pica::Vector2" = type { double, double }
%"class.testing::AssertionResult" = type { i8, %"class.testing::internal::scoped_ptr" }
%"class.testing::internal::scoped_ptr" = type { ptr }
%"struct.pica::Vector2.7" = type { i32, i32 }
%"class.testing::Message" = type { %"class.testing::internal::scoped_ptr.1" }
%"class.testing::internal::scoped_ptr.1" = type { ptr }
%"class.testing::internal::AssertHelper" = type { ptr }

@.str.3 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [48 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 uwtable
declare dso_local void @_ZN7testing15AssertionResultC2Eb(ptr noundef nonnull align 8 dereferenceable(16), i1 noundef zeroext) unnamed_addr #1 align 2

; 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 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

declare void @_ZN7testing8internal30GetBoolAssertionFailureMessageERKNS_15AssertionResultEPKcS5_S5_(ptr dead_on_unwind writable sret(%"class.testing::internal::String") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK7testing8internal6String5c_strEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 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: mustprogress nounwind uwtable
declare dso_local void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

; 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 noundef ptr @_ZNKSt8auto_ptrIN4pica7YeeGridILNS0_9DimensionE2EdEEEptEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { double, double } @_ZNK4pica4GridILNS_9DimensionE2EdE9getOriginEv(ptr noundef nonnull align 8 dereferenceable(320)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { double, double } @_ZNK4pica4GridILNS_9DimensionE2EdE7getStepEv(ptr noundef nonnull align 8 dereferenceable(320)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN4picaeqIiEEbRKNS_7Vector2IT_EES5_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #5

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN31YeeGridTest2d_GetCellIndex_Test8TestBodyEv(ptr noundef nonnull align 8 dereferenceable(64) %0) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"struct.pica::Vector2", align 8
  %3 = alloca %"struct.pica::Vector2", align 8
  %4 = alloca %"struct.pica::Vector2", align 8
  %5 = alloca %"struct.pica::Vector2", align 8
  %6 = alloca %"struct.pica::Vector2", align 8
  %7 = alloca %"class.testing::AssertionResult", align 8
  %8 = alloca %"struct.pica::Vector2.7", align 4
  %9 = alloca %"struct.pica::Vector2.7", align 8
  %10 = alloca %"class.testing::Message", align 8
  %11 = alloca %"class.testing::internal::AssertHelper", align 8
  %12 = alloca %"class.testing::internal::String", align 8
  %13 = getelementptr inbounds i8, ptr %0, i64 16
  %14 = tail call noundef ptr @_ZNKSt8auto_ptrIN4pica7YeeGridILNS0_9DimensionE2EdEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  %15 = tail call i64 @_ZNK4pica4GridILNS_9DimensionE2EdE7getSizeEv(ptr noundef nonnull align 8 dereferenceable(320) %14)
  %.sroa.05.0.extract.trunc22 = trunc i64 %15 to i32
  %16 = icmp sgt i32 %.sroa.05.0.extract.trunc22, 0
  br i1 %16, label %.preheader.lr.ph, label %._crit_edge24

.preheader.lr.ph:                                 ; preds = %1
  %17 = getelementptr inbounds i8, ptr %3, i64 8
  %18 = getelementptr inbounds i8, ptr %5, i64 8
  %19 = getelementptr inbounds i8, ptr %4, i64 8
  %20 = getelementptr inbounds i8, ptr %2, i64 8
  br label %.preheader

.preheader:                                       ; preds = %.preheader.lr.ph, %._crit_edge
  %.01423 = phi i32 [ 0, %.preheader.lr.ph ], [ %26, %._crit_edge ]
  %21 = call noundef ptr @_ZNKSt8auto_ptrIN4pica7YeeGridILNS0_9DimensionE2EdEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  %22 = call i64 @_ZNK4pica4GridILNS_9DimensionE2EdE7getSizeEv(ptr noundef nonnull align 8 dereferenceable(320) %21)
  %.sroa.3.0.extract.shift19 = lshr i64 %22, 32
  %.sroa.3.0.extract.trunc20 = trunc nuw i64 %.sroa.3.0.extract.shift19 to i32
  %23 = icmp sgt i32 %.sroa.3.0.extract.trunc20, 0
  br i1 %23, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader
  %24 = uitofp nneg i32 %.01423 to double
  %25 = fadd double %24, 5.000000e-01
  br label %30

._crit_edge24:                                    ; preds = %._crit_edge, %1
  ret void

._crit_edge:                                      ; preds = %68, %.preheader
  %26 = add nuw nsw i32 %.01423, 1
  %27 = call noundef ptr @_ZNKSt8auto_ptrIN4pica7YeeGridILNS0_9DimensionE2EdEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  %28 = call i64 @_ZNK4pica4GridILNS_9DimensionE2EdE7getSizeEv(ptr noundef nonnull align 8 dereferenceable(320) %27)
  %.sroa.05.0.extract.trunc = trunc i64 %28 to i32
  %29 = icmp slt i32 %26, %.sroa.05.0.extract.trunc
  br i1 %29, label %.preheader, label %._crit_edge24, !llvm.loop !5

30:                                               ; preds = %.lr.ph, %68
  %.01521 = phi i32 [ 0, %.lr.ph ], [ %69, %68 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #7
  %31 = call noundef ptr @_ZNKSt8auto_ptrIN4pica7YeeGridILNS0_9DimensionE2EdEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  %32 = call { double, double } @_ZNK4pica4GridILNS_9DimensionE2EdE9getOriginEv(ptr noundef nonnull align 8 dereferenceable(320) %31)
  %33 = extractvalue { double, double } %32, 0
  store double %33, ptr %3, align 8
  %34 = extractvalue { double, double } %32, 1
  store double %34, ptr %17, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #7
  %35 = call noundef ptr @_ZNKSt8auto_ptrIN4pica7YeeGridILNS0_9DimensionE2EdEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  %36 = call { double, double } @_ZNK4pica4GridILNS_9DimensionE2EdE7getStepEv(ptr noundef nonnull align 8 dereferenceable(320) %35)
  %37 = extractvalue { double, double } %36, 0
  store double %37, ptr %5, align 8
  %38 = extractvalue { double, double } %36, 1
  store double %38, ptr %18, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #7
  %39 = uitofp nneg i32 %.01521 to double
  %40 = fadd double %39, 5.000000e-01
  call void @_ZN4pica7Vector2IdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %6, double noundef %25, double noundef %40)
  %41 = call { double, double } @_ZN4picamlIdEEKNS_7Vector2IT_EERS4_S5_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %6)
  %42 = extractvalue { double, double } %41, 0
  store double %42, ptr %4, align 8
  %43 = extractvalue { double, double } %41, 1
  store double %43, ptr %19, align 8
  %44 = call { double, double } @_ZN4picaplIdEEKNS_7Vector2IT_EERS4_S5_(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(16) %4)
  %45 = extractvalue { double, double } %44, 0
  store double %45, ptr %2, align 8
  %46 = extractvalue { double, double } %44, 1
  store double %46, ptr %20, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  call void @_ZN4pica7Vector2IiEC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %8, i32 noundef %.01423, i32 noundef %.01521)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  %47 = call noundef ptr @_ZNKSt8auto_ptrIN4pica7YeeGridILNS0_9DimensionE2EdEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  %48 = call i64 @_ZN4pica4GridILNS_9DimensionE2EdE12getCellIndexERKNS_7Vector2IdEE(ptr noundef nonnull align 8 dereferenceable(320) %47, ptr noundef nonnull align 8 dereferenceable(16) %2)
  store i64 %48, ptr %9, align 8
  %49 = call noundef zeroext i1 @_ZN4picaeqIiEEbRKNS_7Vector2IT_EES5_(ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(8) %9)
  call void @_ZN7testing15AssertionResultC2Eb(ptr noundef nonnull align 8 dereferenceable(16) %7, i1 noundef zeroext %49)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  %50 = call noundef zeroext i1 @_ZNK7testing15AssertionResultcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %7)
  br i1 %50, label %68, label %51

51:                                               ; preds = %30
  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 %52 unwind label %57

52:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #7
  invoke void @_ZN7testing8internal30GetBoolAssertionFailureMessageERKNS_15AssertionResultEPKcS5_S5_(ptr dead_on_unwind nonnull writable sret(%"class.testing::internal::String") align 8 %12, ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull @.str.21, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6)
          to label %53 unwind label %59

53:                                               ; preds = %52
  %54 = call noundef ptr @_ZNK7testing8internal6String5c_strEv(ptr noundef nonnull align 8 dereferenceable(16) %12)
  invoke void @_ZN7testing8internal12AssertHelperC1ENS_14TestPartResult4TypeEPKciS5_(ptr noundef nonnull align 8 dereferenceable(8) %11, i32 noundef 1, ptr noundef nonnull @.str.3, i32 noundef 89, ptr noundef %54)
          to label %55 unwind label %61

55:                                               ; preds = %53
  invoke void @_ZNK7testing8internal12AssertHelperaSERKNS_7MessageE(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %56 unwind label %63

56:                                               ; preds = %55
  call void @_ZN7testing8internal12AssertHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #7
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #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
  br label %68

57:                                               ; preds = %51
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %67

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

61:                                               ; preds = %53
  %62 = landingpad { ptr, i32 }
          cleanup
  br label %65

63:                                               ; preds = %55
  %64 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7testing8internal12AssertHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #7
  br label %65

65:                                               ; preds = %63, %61
  %.pn = phi { ptr, i32 } [ %64, %63 ], [ %62, %61 ]
  call void @_ZN7testing8internal6StringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #7
  br label %66

66:                                               ; preds = %65, %59
  %.pn.pn = phi { ptr, i32 } [ %.pn, %65 ], [ %60, %59 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #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
  br label %67

67:                                               ; preds = %66, %57
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %66 ], [ %58, %57 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  call void @_ZN7testing15AssertionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #7
  resume { ptr, i32 } %.pn.pn.pn

68:                                               ; preds = %30, %56
  call void @_ZN7testing15AssertionResultD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #7
  %69 = add nuw nsw i32 %.01521, 1
  %70 = call noundef ptr @_ZNKSt8auto_ptrIN4pica7YeeGridILNS0_9DimensionE2EdEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  %71 = call i64 @_ZNK4pica4GridILNS_9DimensionE2EdE7getSizeEv(ptr noundef nonnull align 8 dereferenceable(320) %70)
  %.sroa.3.0.extract.shift = lshr i64 %71, 32
  %.sroa.3.0.extract.trunc = trunc nuw i64 %.sroa.3.0.extract.shift to i32
  %72 = icmp slt i32 %69, %.sroa.3.0.extract.trunc
  br i1 %72, label %30, label %._crit_edge, !llvm.loop !7
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { double, double } @_ZN4picaplIdEEKNS_7Vector2IT_EERS4_S5_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { double, double } @_ZN4picamlIdEEKNS_7Vector2IT_EERS4_S5_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4pica7Vector2IdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16), double noundef, double noundef) unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZN4pica4GridILNS_9DimensionE2EdE12getCellIndexERKNS_7Vector2IdEE(ptr noundef nonnull align 8 dereferenceable(320), ptr noundef nonnull align 8 dereferenceable(16)) 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 = { inlinehint 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 #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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass