; LLVM IR from interpretml/interpret :: shared/libebm (CutUniform)

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

@.str = external hidden unnamed_addr constant [84 x i8], align 1
@g_traceLevel = external global i32, align 4
@_ZZ10CutUniformE13LOG__sMessage = external hidden constant [69 x i8], align 16
@_ZZ10CutUniformE13LOG__sMessage_0 = external hidden constant [71 x i8], align 16
@_ZZ10CutUniformE13LOG__sMessage_1 = external hidden constant [65 x i8], align 16
@_ZZ10CutUniformE13LOG__sMessage_2 = external hidden constant [67 x i8], align 16
@_ZZ10CutUniformE13LOG__sMessage_3 = external hidden constant [44 x i8], align 16
@__func__.CutUniform = external hidden unnamed_addr constant [11 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [23 x i8], align 1
@__PRETTY_FUNCTION__.CutUniform = external hidden unnamed_addr constant [76 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [19 x i8], align 1
@_ZZ10CutUniformE13LOG__sMessage_4 = external hidden constant [59 x i8], align 16
@.str.23 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [19 x i8], align 1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSt5isnand(double noundef) #1

declare void @LogAssertFailure(i64 noundef, ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSt5isinfd(double noundef) #1

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZN14NAMESPACE_MAINL14IsConvertErrorImlEENSt9enable_ifIXaaaantsr3std9is_signedIT_EE5valuesr3std9is_signedIT0_EE5valueleclsr3std14numeric_limitsIS3_EE3maxEclsr3std14numeric_limitsIS2_EE3maxEEbE4typeES3_(i64 noundef) #4

declare void @InteralLogWithoutArguments(i32 noundef, ptr noundef) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZN14NAMESPACE_MAINL15IsMultiplyErrorImEEbT_S1_(i64 noundef, i64 noundef) #4

; Function Attrs: mustprogress uwtable
define dso_local i64 @CutUniform(i64 noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3) #5 {
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca i64, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca i64, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca i64, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i64, align 8
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i64, align 8
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i64, align 8
  %36 = alloca i64, align 8
  %37 = alloca i64, align 8
  store i64 %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !9
  store i64 %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  %38 = load i64, ptr %8, align 8, !tbaa !5
  %39 = icmp eq i64 0, %38
  br i1 %39, label %40, label %41

40:                                               ; preds = %4
  store i64 0, ptr %5, align 8
  store i32 1, ptr %26, align 4
  br label %420

41:                                               ; preds = %4
  %42 = load i64, ptr %8, align 8, !tbaa !5
  %43 = call noundef zeroext i1 @_ZN14NAMESPACE_MAINL14IsConvertErrorImlEENSt9enable_ifIXaaaantsr3std9is_signedIT_EE5valuesr3std9is_signedIT0_EE5valueleclsr3std14numeric_limitsIS3_EE3maxEclsr3std14numeric_limitsIS2_EE3maxEEbE4typeES3_(i64 noundef %42) #7
  br i1 %43, label %44, label %52

44:                                               ; preds = %41
  br label %45

45:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  store i32 1, ptr %27, align 4, !tbaa !11
  %46 = load i32, ptr @g_traceLevel, align 4, !tbaa !11
  %47 = icmp sle i32 1, %46
  br i1 %47, label %48, label %49

48:                                               ; preds = %45
  call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef @_ZZ10CutUniformE13LOG__sMessage)
  br label %49

49:                                               ; preds = %48, %45
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  br label %50

50:                                               ; preds = %49
  br label %51

51:                                               ; preds = %50
  store i64 0, ptr %5, align 8
  store i32 1, ptr %26, align 4
  br label %420

52:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  %53 = load i64, ptr %8, align 8, !tbaa !5
  store i64 %53, ptr %28, align 8, !tbaa !5
  %54 = load i64, ptr %28, align 8, !tbaa !5
  %55 = call noundef zeroext i1 @_ZN14NAMESPACE_MAINL15IsMultiplyErrorImEEbT_S1_(i64 noundef 8, i64 noundef %54) #7
  br i1 %55, label %56, label %64

56:                                               ; preds = %52
  br label %57

57:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  store i32 1, ptr %29, align 4, !tbaa !11
  %58 = load i32, ptr @g_traceLevel, align 4, !tbaa !11
  %59 = icmp sle i32 1, %58
  br i1 %59, label %60, label %61

60:                                               ; preds = %57
  call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef @_ZZ10CutUniformE13LOG__sMessage_0)
  br label %61

61:                                               ; preds = %60, %57
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  br label %62

62:                                               ; preds = %61
  br label %63

63:                                               ; preds = %62
  store i64 0, ptr %5, align 8
  store i32 1, ptr %26, align 4
  br label %419

64:                                               ; preds = %52
  %65 = load i64, ptr %6, align 8, !tbaa !5
  %66 = call noundef zeroext i1 @_ZN14NAMESPACE_MAINL14IsConvertErrorImlEENSt9enable_ifIXaaaantsr3std9is_signedIT_EE5valuesr3std9is_signedIT0_EE5valueleclsr3std14numeric_limitsIS3_EE3maxEclsr3std14numeric_limitsIS2_EE3maxEEbE4typeES3_(i64 noundef %65) #7
  br i1 %66, label %67, label %75

67:                                               ; preds = %64
  br label %68

68:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #7
  store i32 1, ptr %30, align 4, !tbaa !11
  %69 = load i32, ptr @g_traceLevel, align 4, !tbaa !11
  %70 = icmp sle i32 1, %69
  br i1 %70, label %71, label %72

71:                                               ; preds = %68
  call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef @_ZZ10CutUniformE13LOG__sMessage_1)
  br label %72

72:                                               ; preds = %71, %68
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  br label %73

73:                                               ; preds = %72
  br label %74

74:                                               ; preds = %73
  store i64 0, ptr %5, align 8
  store i32 1, ptr %26, align 4
  br label %419

75:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #7
  %76 = load i64, ptr %6, align 8, !tbaa !5
  store i64 %76, ptr %31, align 8, !tbaa !5
  %77 = load i64, ptr %31, align 8, !tbaa !5
  %78 = call noundef zeroext i1 @_ZN14NAMESPACE_MAINL15IsMultiplyErrorImEEbT_S1_(i64 noundef 8, i64 noundef %77) #7
  br i1 %78, label %79, label %87

79:                                               ; preds = %75
  br label %80

80:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #7
  store i32 1, ptr %32, align 4, !tbaa !11
  %81 = load i32, ptr @g_traceLevel, align 4, !tbaa !11
  %82 = icmp sle i32 1, %81
  br i1 %82, label %83, label %84

83:                                               ; preds = %80
  call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef @_ZZ10CutUniformE13LOG__sMessage_2)
  br label %84

84:                                               ; preds = %83, %80
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  br label %85

85:                                               ; preds = %84
  br label %86

86:                                               ; preds = %85
  store i64 0, ptr %5, align 8
  store i32 1, ptr %26, align 4
  br label %418

87:                                               ; preds = %75
  %88 = load ptr, ptr %7, align 8, !tbaa !9
  %89 = icmp eq ptr null, %88
  br i1 %89, label %90, label %98

90:                                               ; preds = %87
  br label %91

91:                                               ; preds = %90
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #7
  store i32 1, ptr %33, align 4, !tbaa !11
  %92 = load i32, ptr @g_traceLevel, align 4, !tbaa !11
  %93 = icmp sle i32 1, %92
  br i1 %93, label %94, label %95

94:                                               ; preds = %91
  call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef @_ZZ10CutUniformE13LOG__sMessage_3)
  br label %95

95:                                               ; preds = %94, %91
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #7
  br label %96

96:                                               ; preds = %95
  br label %97

97:                                               ; preds = %96
  store i64 0, ptr %5, align 8
  store i32 1, ptr %26, align 4
  br label %418

98:                                               ; preds = %87
  store double 0x7FEFFFFFFFFFFFFF, ptr %10, align 8, !tbaa !13
  store double 0xFFEFFFFFFFFFFFFF, ptr %11, align 8, !tbaa !13
  store i64 0, ptr %12, align 8, !tbaa !5
  br label %99

99:                                               ; preds = %124, %98
  %100 = load i64, ptr %12, align 8, !tbaa !5
  %101 = load i64, ptr %31, align 8, !tbaa !5
  %102 = icmp ult i64 %100, %101
  br i1 %102, label %103, label %127

103:                                              ; preds = %99
  %104 = load ptr, ptr %7, align 8, !tbaa !9
  %105 = load i64, ptr %12, align 8, !tbaa !5
  %106 = getelementptr inbounds double, ptr %104, i64 %105
  %107 = load double, ptr %106, align 8, !tbaa !13
  store double %107, ptr %13, align 8, !tbaa !13
  %108 = load double, ptr %13, align 8, !tbaa !13
  %109 = call noundef zeroext i1 @_ZSt5isnand(double noundef %108)
  br i1 %109, label %123, label %110

110:                                              ; preds = %103
  %111 = load double, ptr %11, align 8, !tbaa !13
  %112 = load double, ptr %13, align 8, !tbaa !13
  %113 = fcmp olt double %111, %112
  br i1 %113, label %114, label %116

114:                                              ; preds = %110
  %115 = load double, ptr %13, align 8, !tbaa !13
  store double %115, ptr %11, align 8, !tbaa !13
  br label %116

116:                                              ; preds = %114, %110
  %117 = load double, ptr %13, align 8, !tbaa !13
  %118 = load double, ptr %10, align 8, !tbaa !13
  %119 = fcmp olt double %117, %118
  br i1 %119, label %120, label %122

120:                                              ; preds = %116
  %121 = load double, ptr %13, align 8, !tbaa !13
  store double %121, ptr %10, align 8, !tbaa !13
  br label %122

122:                                              ; preds = %120, %116
  br label %123

123:                                              ; preds = %122, %103
  br label %124

124:                                              ; preds = %123
  %125 = load i64, ptr %12, align 8, !tbaa !5
  %126 = add i64 %125, 1
  store i64 %126, ptr %12, align 8, !tbaa !5
  br label %99, !llvm.loop !15

127:                                              ; preds = %99
  %128 = load double, ptr %10, align 8, !tbaa !13
  %129 = call noundef zeroext i1 @_ZSt5isnand(double noundef %128)
  br i1 %129, label %130, label %132

130:                                              ; preds = %127
  call void @LogAssertFailure(i64 noundef 516, ptr noundef @.str, ptr noundef @__func__.CutUniform, ptr noundef @.str.13)
  call void @__assert_fail(ptr noundef @.str.14, ptr noundef @.str, i32 noundef 516, ptr noundef @__PRETTY_FUNCTION__.CutUniform) #8
  unreachable

131:                                              ; No predecessors!
  br label %132

132:                                              ; preds = %131, %127
  %133 = phi i1 [ true, %127 ], [ false, %131 ]
  %134 = load double, ptr %11, align 8, !tbaa !13
  %135 = call noundef zeroext i1 @_ZSt5isnand(double noundef %134)
  br i1 %135, label %136, label %138

136:                                              ; preds = %132
  call void @LogAssertFailure(i64 noundef 517, ptr noundef @.str, ptr noundef @__func__.CutUniform, ptr noundef @.str.15)
  call void @__assert_fail(ptr noundef @.str.16, ptr noundef @.str, i32 noundef 517, ptr noundef @__PRETTY_FUNCTION__.CutUniform) #8
  unreachable

137:                                              ; No predecessors!
  br label %138

138:                                              ; preds = %137, %132
  %139 = phi i1 [ true, %132 ], [ false, %137 ]
  %140 = call noundef double @_ZNSt14numeric_limitsIdE8infinityEv() #7
  %141 = fneg double %140
  %142 = load double, ptr %11, align 8, !tbaa !13
  %143 = fcmp une double %141, %142
  br i1 %143, label %146, label %144

144:                                              ; preds = %138
  call void @LogAssertFailure(i64 noundef 519, ptr noundef @.str, ptr noundef @__func__.CutUniform, ptr noundef @.str.17)
  call void @__assert_fail(ptr noundef @.str.18, ptr noundef @.str, i32 noundef 519, ptr noundef @__PRETTY_FUNCTION__.CutUniform) #8
  unreachable

145:                                              ; No predecessors!
  br label %146

146:                                              ; preds = %145, %138
  %147 = phi i1 [ true, %138 ], [ false, %145 ]
  %148 = call noundef double @_ZNSt14numeric_limitsIdE8infinityEv() #7
  %149 = load double, ptr %10, align 8, !tbaa !13
  %150 = fcmp une double %148, %149
  br i1 %150, label %153, label %151

151:                                              ; preds = %146
  call void @LogAssertFailure(i64 noundef 520, ptr noundef @.str, ptr noundef @__func__.CutUniform, ptr noundef @.str.19)
  call void @__assert_fail(ptr noundef @.str.20, ptr noundef @.str, i32 noundef 520, ptr noundef @__PRETTY_FUNCTION__.CutUniform) #8
  unreachable

152:                                              ; No predecessors!
  br label %153

153:                                              ; preds = %152, %146
  %154 = phi i1 [ true, %146 ], [ false, %152 ]
  %155 = load double, ptr %10, align 8, !tbaa !13
  %156 = fcmp oeq double 0x7FEFFFFFFFFFFFFF, %155
  br i1 %156, label %157, label %161

157:                                              ; preds = %153
  %158 = load double, ptr %11, align 8, !tbaa !13
  %159 = fcmp oeq double 0xFFEFFFFFFFFFFFFF, %158
  br i1 %159, label %160, label %161

160:                                              ; preds = %157
  store i64 0, ptr %5, align 8
  store i32 1, ptr %26, align 4
  br label %418

161:                                              ; preds = %157, %153
  %162 = load double, ptr %10, align 8, !tbaa !13
  %163 = fcmp ole double %162, 0xFFEFFFFFFFFFFFFF
  br i1 %163, label %164, label %165

164:                                              ; preds = %161
  store double 0xFFEFFFFFFFFFFFFF, ptr %10, align 8, !tbaa !13
  br label %165

165:                                              ; preds = %164, %161
  %166 = load double, ptr %11, align 8, !tbaa !13
  %167 = fcmp ole double 0x7FEFFFFFFFFFFFFF, %166
  br i1 %167, label %168, label %169

168:                                              ; preds = %165
  store double 0x7FEFFFFFFFFFFFFF, ptr %11, align 8, !tbaa !13
  br label %169

169:                                              ; preds = %168, %165
  %170 = load double, ptr %10, align 8, !tbaa !13
  %171 = call noundef double @_ZN14NAMESPACE_MAINL10CleanFloatEd(double noundef %170) #7
  store double %171, ptr %10, align 8, !tbaa !13
  %172 = load double, ptr %11, align 8, !tbaa !13
  %173 = call noundef double @_ZN14NAMESPACE_MAINL10CleanFloatEd(double noundef %172) #7
  store double %173, ptr %11, align 8, !tbaa !13
  %174 = load double, ptr %10, align 8, !tbaa !13
  %175 = load double, ptr %11, align 8, !tbaa !13
  %176 = fcmp oeq double %174, %175
  br i1 %176, label %177, label %178

177:                                              ; preds = %169
  store i64 0, ptr %5, align 8
  store i32 1, ptr %26, align 4
  br label %418

178:                                              ; preds = %169
  %179 = load double, ptr %10, align 8, !tbaa !13
  %180 = load double, ptr %11, align 8, !tbaa !13
  %181 = fcmp olt double %179, %180
  br i1 %181, label %184, label %182

182:                                              ; preds = %178
  call void @LogAssertFailure(i64 noundef 544, ptr noundef @.str, ptr noundef @__func__.CutUniform, ptr noundef @.str.21)
  call void @__assert_fail(ptr noundef @.str.22, ptr noundef @.str, i32 noundef 544, ptr noundef @__PRETTY_FUNCTION__.CutUniform) #8
  unreachable

183:                                              ; No predecessors!
  br label %184

184:                                              ; preds = %183, %178
  %185 = phi i1 [ true, %178 ], [ false, %183 ]
  %186 = load ptr, ptr %9, align 8, !tbaa !9
  %187 = icmp eq ptr null, %186
  br i1 %187, label %188, label %196

188:                                              ; preds = %184
  br label %189

189:                                              ; preds = %188
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #7
  store i32 1, ptr %34, align 4, !tbaa !11
  %190 = load i32, ptr @g_traceLevel, align 4, !tbaa !11
  %191 = icmp sle i32 1, %190
  br i1 %191, label %192, label %193

192:                                              ; preds = %189
  call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef @_ZZ10CutUniformE13LOG__sMessage_4)
  br label %193

193:                                              ; preds = %192, %189
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #7
  br label %194

194:                                              ; preds = %193
  br label %195

195:                                              ; preds = %194
  store i64 0, ptr %5, align 8
  store i32 1, ptr %26, align 4
  br label %418

196:                                              ; preds = %184
  %197 = load double, ptr %10, align 8, !tbaa !13
  store double %197, ptr %14, align 8, !tbaa !13
  store i64 0, ptr %15, align 8, !tbaa !5
  br label %198

198:                                              ; preds = %224, %196
  %199 = load i64, ptr %28, align 8, !tbaa !5
  %200 = load i64, ptr %15, align 8, !tbaa !5
  %201 = icmp ne i64 %199, %200
  br i1 %201, label %202, label %227

202:                                              ; preds = %198
  %203 = load double, ptr %14, align 8, !tbaa !13
  %204 = load double, ptr %11, align 8, !tbaa !13
  %205 = fcmp olt double %203, %204
  br i1 %205, label %208, label %206

206:                                              ; preds = %202
  call void @LogAssertFailure(i64 noundef 553, ptr noundef @.str, ptr noundef @__func__.CutUniform, ptr noundef @.str.23)
  call void @__assert_fail(ptr noundef @.str.24, ptr noundef @.str, i32 noundef 553, ptr noundef @__PRETTY_FUNCTION__.CutUniform) #8
  unreachable

207:                                              ; No predecessors!
  br label %208

208:                                              ; preds = %207, %202
  %209 = phi i1 [ true, %202 ], [ false, %207 ]
  %210 = load double, ptr %14, align 8, !tbaa !13
  %211 = call noundef double @_ZN14NAMESPACE_MAINL18FloatTickIncrementEd(double noundef %210) #7
  store double %211, ptr %14, align 8, !tbaa !13
  %212 = load double, ptr %14, align 8, !tbaa !13
  %213 = load ptr, ptr %9, align 8, !tbaa !9
  %214 = load i64, ptr %15, align 8, !tbaa !5
  %215 = getelementptr inbounds double, ptr %213, i64 %214
  store double %212, ptr %215, align 8, !tbaa !13
  %216 = load double, ptr %14, align 8, !tbaa !13
  %217 = load double, ptr %11, align 8, !tbaa !13
  %218 = fcmp oeq double %216, %217
  br i1 %218, label %219, label %223

219:                                              ; preds = %208
  %220 = load i64, ptr %15, align 8, !tbaa !5
  %221 = add i64 %220, 1
  store i64 %221, ptr %15, align 8, !tbaa !5
  %222 = load i64, ptr %15, align 8, !tbaa !5
  store i64 %222, ptr %5, align 8
  store i32 1, ptr %26, align 4
  br label %418

223:                                              ; preds = %208
  br label %224

224:                                              ; preds = %223
  %225 = load i64, ptr %15, align 8, !tbaa !5
  %226 = add i64 %225, 1
  store i64 %226, ptr %15, align 8, !tbaa !5
  br label %198, !llvm.loop !17

227:                                              ; preds = %198
  %228 = load double, ptr %14, align 8, !tbaa !13
  %229 = load double, ptr %11, align 8, !tbaa !13
  %230 = fcmp olt double %228, %229
  br i1 %230, label %233, label %231

231:                                              ; preds = %227
  call void @LogAssertFailure(i64 noundef 561, ptr noundef @.str, ptr noundef @__func__.CutUniform, ptr noundef @.str.23)
  call void @__assert_fail(ptr noundef @.str.24, ptr noundef @.str, i32 noundef 561, ptr noundef @__PRETTY_FUNCTION__.CutUniform) #8
  unreachable

232:                                              ; No predecessors!
  br label %233

233:                                              ; preds = %232, %227
  %234 = phi i1 [ true, %227 ], [ false, %232 ]
  store double 1.000000e+00, ptr %16, align 8, !tbaa !13
  br label %235

235:                                              ; preds = %269, %233
  %236 = load double, ptr %11, align 8, !tbaa !13
  %237 = fcmp olt double %236, 0x7FE0000000000000
  br i1 %237, label %238, label %244

238:                                              ; preds = %235
  %239 = load double, ptr %10, align 8, !tbaa !13
  %240 = fcmp olt double 0xFFE0000000000000, %239
  br i1 %240, label %241, label %244

241:                                              ; preds = %238
  %242 = load double, ptr %16, align 8, !tbaa !13
  %243 = fcmp olt double %242, 0x7FE0000000000000
  br label %244

244:                                              ; preds = %241, %238, %235
  %245 = phi i1 [ false, %238 ], [ false, %235 ], [ %243, %241 ]
  br i1 %245, label %246, label %271

246:                                              ; preds = %244
  %247 = load double, ptr %11, align 8, !tbaa !13
  %248 = fmul double %247, 2.000000e+00
  store double %248, ptr %11, align 8, !tbaa !13
  %249 = load double, ptr %11, align 8, !tbaa !13
  %250 = call noundef zeroext i1 @_ZSt5isinfd(double noundef %249)
  br i1 %250, label %251, label %253

251:                                              ; preds = %246
  call void @LogAssertFailure(i64 noundef 581, ptr noundef @.str, ptr noundef @__func__.CutUniform, ptr noundef @.str.25)
  call void @__assert_fail(ptr noundef @.str.26, ptr noundef @.str, i32 noundef 581, ptr noundef @__PRETTY_FUNCTION__.CutUniform) #8
  unreachable

252:                                              ; No predecessors!
  br label %253

253:                                              ; preds = %252, %246
  %254 = phi i1 [ true, %246 ], [ false, %252 ]
  %255 = load double, ptr %10, align 8, !tbaa !13
  %256 = fmul double %255, 2.000000e+00
  store double %256, ptr %10, align 8, !tbaa !13
  %257 = load double, ptr %10, align 8, !tbaa !13
  %258 = call noundef zeroext i1 @_ZSt5isinfd(double noundef %257)
  br i1 %258, label %259, label %261

259:                                              ; preds = %253
  call void @LogAssertFailure(i64 noundef 583, ptr noundef @.str, ptr noundef @__func__.CutUniform, ptr noundef @.str.27)
  call void @__assert_fail(ptr noundef @.str.28, ptr noundef @.str, i32 noundef 583, ptr noundef @__PRETTY_FUNCTION__.CutUniform) #8
  unreachable

260:                                              ; No predecessors!
  br label %261

261:                                              ; preds = %260, %253
  %262 = phi i1 [ true, %253 ], [ false, %260 ]
  %263 = load double, ptr %16, align 8, !tbaa !13
  %264 = fmul double %263, 2.000000e+00
  store double %264, ptr %16, align 8, !tbaa !13
  %265 = load double, ptr %16, align 8, !tbaa !13
  %266 = call noundef zeroext i1 @_ZSt5isinfd(double noundef %265)
  br i1 %266, label %267, label %269

267:                                              ; preds = %261
  call void @LogAssertFailure(i64 noundef 585, ptr noundef @.str, ptr noundef @__func__.CutUniform, ptr noundef @.str.29)
  call void @__assert_fail(ptr noundef @.str.30, ptr noundef @.str, i32 noundef 585, ptr noundef @__PRETTY_FUNCTION__.CutUniform) #8
  unreachable

268:                                              ; No predecessors!
  br label %269

269:                                              ; preds = %268, %261
  %270 = phi i1 [ true, %261 ], [ false, %268 ]
  br label %235, !llvm.loop !18

271:                                              ; preds = %244
  %272 = load double, ptr %11, align 8, !tbaa !13
  %273 = fdiv double %272, 2.000000e+00
  %274 = load double, ptr %10, align 8, !tbaa !13
  %275 = fdiv double %274, 2.000000e+00
  %276 = fsub double %273, %275
  %277 = call noundef double @_ZN14NAMESPACE_MAINL10CleanFloatEd(double noundef %276) #7
  store double %277, ptr %17, align 8, !tbaa !13
  %278 = load double, ptr %17, align 8, !tbaa !13
  %279 = call noundef zeroext i1 @_ZSt5isinfd(double noundef %278)
  br i1 %279, label %280, label %282

280:                                              ; preds = %271
  call void @LogAssertFailure(i64 noundef 597, ptr noundef @.str, ptr noundef @__func__.CutUniform, ptr noundef @.str.31)
  call void @__assert_fail(ptr noundef @.str.32, ptr noundef @.str, i32 noundef 597, ptr noundef @__PRETTY_FUNCTION__.CutUniform) #8
  unreachable

281:                                              ; No predecessors!
  br label %282

282:                                              ; preds = %281, %271
  %283 = phi i1 [ true, %271 ], [ false, %281 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #7
  %284 = load i64, ptr %28, align 8, !tbaa !5
  %285 = add i64 %284, 1
  store i64 %285, ptr %35, align 8, !tbaa !5
  %286 = load i64, ptr %35, align 8, !tbaa !5
  %287 = uitofp i64 %286 to double
  %288 = call noundef double @_ZN14NAMESPACE_MAINL10CleanFloatEd(double noundef %287) #7
  store double %288, ptr %18, align 8, !tbaa !13
  %289 = load i64, ptr %28, align 8, !tbaa !5
  %290 = udiv i64 %289, 2
  store i64 %290, ptr %19, align 8, !tbaa !5
  store double 0.000000e+00, ptr %20, align 8, !tbaa !13
  %291 = load i64, ptr %28, align 8, !tbaa !5
  store i64 %291, ptr %15, align 8, !tbaa !5
  br label %292

292:                                              ; preds = %356, %282
  %293 = load i64, ptr %19, align 8, !tbaa !5
  %294 = load i64, ptr %15, align 8, !tbaa !5
  %295 = icmp ult i64 %293, %294
  br i1 %295, label %296, label %357

296:                                              ; preds = %292
  %297 = load i64, ptr %15, align 8, !tbaa !5
  %298 = add i64 %297, -1
  store i64 %298, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #7
  %299 = load i64, ptr %28, align 8, !tbaa !5
  %300 = load i64, ptr %15, align 8, !tbaa !5
  %301 = sub i64 %299, %300
  %302 = shl i64 %301, 1
  store i64 %302, ptr %36, align 8, !tbaa !5
  %303 = load i64, ptr %36, align 8, !tbaa !5
  %304 = uitofp i64 %303 to double
  %305 = call noundef double @_ZN14NAMESPACE_MAINL10CleanFloatEd(double noundef %304) #7
  store double %305, ptr %21, align 8, !tbaa !13
  %306 = load double, ptr %21, align 8, !tbaa !13
  %307 = load double, ptr %18, align 8, !tbaa !13
  %308 = fdiv double %306, %307
  %309 = call noundef double @_ZN14NAMESPACE_MAINL10CleanFloatEd(double noundef %308) #7
  store double %309, ptr %22, align 8, !tbaa !13
  %310 = load double, ptr %22, align 8, !tbaa !13
  %311 = fcmp ole double %310, 1.000000e+00
  br i1 %311, label %314, label %312

312:                                              ; preds = %296
  call void @LogAssertFailure(i64 noundef 618, ptr noundef @.str, ptr noundef @__func__.CutUniform, ptr noundef @.str.33)
  call void @__assert_fail(ptr noundef @.str.34, ptr noundef @.str, i32 noundef 618, ptr noundef @__PRETTY_FUNCTION__.CutUniform) #8
  unreachable

313:                                              ; No predecessors!
  br label %314

314:                                              ; preds = %313, %296
  %315 = phi i1 [ true, %296 ], [ false, %313 ]
  %316 = load double, ptr %22, align 8, !tbaa !13
  %317 = load double, ptr %17, align 8, !tbaa !13
  %318 = fmul double %316, %317
  %319 = call noundef double @_ZN14NAMESPACE_MAINL10CleanFloatEd(double noundef %318) #7
  store double %319, ptr %23, align 8, !tbaa !13
  %320 = load double, ptr %11, align 8, !tbaa !13
  %321 = load double, ptr %23, align 8, !tbaa !13
  %322 = fsub double %320, %321
  %323 = call noundef double @_ZN14NAMESPACE_MAINL10CleanFloatEd(double noundef %322) #7
  store double %323, ptr %24, align 8, !tbaa !13
  %324 = load double, ptr %24, align 8, !tbaa !13
  %325 = load double, ptr %16, align 8, !tbaa !13
  %326 = fdiv double %324, %325
  %327 = call noundef double @_ZN14NAMESPACE_MAINL10CleanFloatEd(double noundef %326) #7
  store double %327, ptr %25, align 8, !tbaa !13
  %328 = load double, ptr %20, align 8, !tbaa !13
  %329 = load double, ptr %25, align 8, !tbaa !13
  %330 = fcmp ole double %328, %329
  br i1 %330, label %331, label %339

331:                                              ; preds = %314
  %332 = load i64, ptr %28, align 8, !tbaa !5
  %333 = load i64, ptr %15, align 8, !tbaa !5
  %334 = add i64 %333, 1
  %335 = icmp ne i64 %332, %334
  br i1 %335, label %336, label %339

336:                                              ; preds = %331
  %337 = load double, ptr %20, align 8, !tbaa !13
  %338 = call noundef double @_ZN14NAMESPACE_MAINL18FloatTickDecrementEd(double noundef %337) #7
  store double %338, ptr %25, align 8, !tbaa !13
  br label %339

339:                                              ; preds = %336, %331, %314
  %340 = load double, ptr %25, align 8, !tbaa !13
  %341 = load ptr, ptr %9, align 8, !tbaa !9
  %342 = load i64, ptr %15, align 8, !tbaa !5
  %343 = getelementptr inbounds double, ptr %341, i64 %342
  %344 = load double, ptr %343, align 8, !tbaa !13
  %345 = fcmp ole double %340, %344
  br i1 %345, label %346, label %348

346:                                              ; preds = %339
  %347 = load i64, ptr %8, align 8, !tbaa !5
  store i64 %347, ptr %5, align 8
  store i32 1, ptr %26, align 4
  br label %354

348:                                              ; preds = %339
  %349 = load double, ptr %25, align 8, !tbaa !13
  %350 = load ptr, ptr %9, align 8, !tbaa !9
  %351 = load i64, ptr %15, align 8, !tbaa !5
  %352 = getelementptr inbounds double, ptr %350, i64 %351
  store double %349, ptr %352, align 8, !tbaa !13
  %353 = load double, ptr %25, align 8, !tbaa !13
  store double %353, ptr %20, align 8, !tbaa !13
  store i32 0, ptr %26, align 4
  br label %354

354:                                              ; preds = %348, %346
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #7
  %355 = load i32, ptr %26, align 4
  switch i32 %355, label %417 [
    i32 0, label %356
  ]

356:                                              ; preds = %354
  br label %292, !llvm.loop !19

357:                                              ; preds = %292
  br label %358

358:                                              ; preds = %414, %357
  %359 = load i64, ptr %15, align 8, !tbaa !5
  %360 = icmp ne i64 0, %359
  br i1 %360, label %361, label %415

361:                                              ; preds = %358
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #7
  %362 = load i64, ptr %15, align 8, !tbaa !5
  %363 = shl i64 %362, 1
  store i64 %363, ptr %37, align 8, !tbaa !5
  %364 = load i64, ptr %37, align 8, !tbaa !5
  %365 = uitofp i64 %364 to double
  %366 = call noundef double @_ZN14NAMESPACE_MAINL10CleanFloatEd(double noundef %365) #7
  store double %366, ptr %21, align 8, !tbaa !13
  %367 = load double, ptr %21, align 8, !tbaa !13
  %368 = load double, ptr %18, align 8, !tbaa !13
  %369 = fdiv double %367, %368
  %370 = call noundef double @_ZN14NAMESPACE_MAINL10CleanFloatEd(double noundef %369) #7
  store double %370, ptr %22, align 8, !tbaa !13
  %371 = load double, ptr %22, align 8, !tbaa !13
  %372 = fcmp ole double %371, 1.000000e+00
  br i1 %372, label %375, label %373

373:                                              ; preds = %361
  call void @LogAssertFailure(i64 noundef 641, ptr noundef @.str, ptr noundef @__func__.CutUniform, ptr noundef @.str.33)
  call void @__assert_fail(ptr noundef @.str.34, ptr noundef @.str, i32 noundef 641, ptr noundef @__PRETTY_FUNCTION__.CutUniform) #8
  unreachable

374:                                              ; No predecessors!
  br label %375

375:                                              ; preds = %374, %361
  %376 = phi i1 [ true, %361 ], [ false, %374 ]
  %377 = load double, ptr %22, align 8, !tbaa !13
  %378 = load double, ptr %17, align 8, !tbaa !13
  %379 = fmul double %377, %378
  %380 = call noundef double @_ZN14NAMESPACE_MAINL10CleanFloatEd(double noundef %379) #7
  store double %380, ptr %23, align 8, !tbaa !13
  %381 = load double, ptr %10, align 8, !tbaa !13
  %382 = load double, ptr %23, align 8, !tbaa !13
  %383 = fadd double %381, %382
  %384 = call noundef double @_ZN14NAMESPACE_MAINL10CleanFloatEd(double noundef %383) #7
  store double %384, ptr %24, align 8, !tbaa !13
  %385 = load double, ptr %24, align 8, !tbaa !13
  %386 = load double, ptr %16, align 8, !tbaa !13
  %387 = fdiv double %385, %386
  %388 = call noundef double @_ZN14NAMESPACE_MAINL10CleanFloatEd(double noundef %387) #7
  store double %388, ptr %25, align 8, !tbaa !13
  %389 = load i64, ptr %15, align 8, !tbaa !5
  %390 = add i64 %389, -1
  store i64 %390, ptr %15, align 8, !tbaa !5
  %391 = load double, ptr %20, align 8, !tbaa !13
  %392 = load double, ptr %25, align 8, !tbaa !13
  %393 = fcmp ole double %391, %392
  br i1 %393, label %394, label %397

394:                                              ; preds = %375
  %395 = load double, ptr %20, align 8, !tbaa !13
  %396 = call noundef double @_ZN14NAMESPACE_MAINL18FloatTickDecrementEd(double noundef %395) #7
  store double %396, ptr %25, align 8, !tbaa !13
  br label %397

397:                                              ; preds = %394, %375
  %398 = load double, ptr %25, align 8, !tbaa !13
  %399 = load ptr, ptr %9, align 8, !tbaa !9
  %400 = load i64, ptr %15, align 8, !tbaa !5
  %401 = getelementptr inbounds double, ptr %399, i64 %400
  %402 = load double, ptr %401, align 8, !tbaa !13
  %403 = fcmp ole double %398, %402
  br i1 %403, label %404, label %406

404:                                              ; preds = %397
  %405 = load i64, ptr %8, align 8, !tbaa !5
  store i64 %405, ptr %5, align 8
  store i32 1, ptr %26, align 4
  br label %412

406:                                              ; preds = %397
  %407 = load double, ptr %25, align 8, !tbaa !13
  %408 = load ptr, ptr %9, align 8, !tbaa !9
  %409 = load i64, ptr %15, align 8, !tbaa !5
  %410 = getelementptr inbounds double, ptr %408, i64 %409
  store double %407, ptr %410, align 8, !tbaa !13
  %411 = load double, ptr %25, align 8, !tbaa !13
  store double %411, ptr %20, align 8, !tbaa !13
  store i32 0, ptr %26, align 4
  br label %412

412:                                              ; preds = %406, %404
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #7
  %413 = load i32, ptr %26, align 4
  switch i32 %413, label %417 [
    i32 0, label %414
  ]

414:                                              ; preds = %412
  br label %358, !llvm.loop !20

415:                                              ; preds = %358
  %416 = load i64, ptr %8, align 8, !tbaa !5
  store i64 %416, ptr %5, align 8
  store i32 1, ptr %26, align 4
  br label %417

417:                                              ; preds = %415, %412, %354
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #7
  br label %418

418:                                              ; preds = %417, %219, %195, %177, %160, %97, %86
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  br label %419

419:                                              ; preds = %418, %74, %63
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  br label %420

420:                                              ; preds = %419, %51, %40
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  %421 = load i64, ptr %5, align 8
  ret i64 %421
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNSt14numeric_limitsIdE8infinityEv() #1 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef double @_ZN14NAMESPACE_MAINL10CleanFloatEd(double noundef) #6

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef double @_ZN14NAMESPACE_MAINL18FloatTickIncrementEd(double noundef) #6

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef double @_ZN14NAMESPACE_MAINL18FloatTickDecrementEd(double noundef) #6

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "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 = { noreturn 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 #4 = { 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 #5 = { 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 #6 = { alwaysinline 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 #7 = { nounwind }
attributes #8 = { noreturn 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !16}
!20 = distinct !{!20, !16}


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

@.str = external hidden unnamed_addr constant [84 x i8], align 1
@g_traceLevel = external local_unnamed_addr global i32, align 4
@_ZZ10CutUniformE13LOG__sMessage = external hidden constant [69 x i8], align 16
@_ZZ10CutUniformE13LOG__sMessage_0 = external hidden constant [71 x i8], align 16
@_ZZ10CutUniformE13LOG__sMessage_1 = external hidden constant [65 x i8], align 16
@_ZZ10CutUniformE13LOG__sMessage_2 = external hidden constant [67 x i8], align 16
@_ZZ10CutUniformE13LOG__sMessage_3 = external hidden constant [44 x i8], align 16
@__func__.CutUniform = external hidden unnamed_addr constant [11 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [23 x i8], align 1
@__PRETTY_FUNCTION__.CutUniform = external hidden unnamed_addr constant [76 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [19 x i8], align 1
@_ZZ10CutUniformE13LOG__sMessage_4 = external hidden constant [59 x i8], align 16
@.str.23 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [19 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSt5isnand(double noundef) local_unnamed_addr #0

declare void @LogAssertFailure(i64 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSt5isinfd(double noundef) local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZN14NAMESPACE_MAINL14IsConvertErrorImlEENSt9enable_ifIXaaaantsr3std9is_signedIT_EE5valuesr3std9is_signedIT0_EE5valueleclsr3std14numeric_limitsIS3_EE3maxEclsr3std14numeric_limitsIS2_EE3maxEEbE4typeES3_(i64 noundef) local_unnamed_addr #3

declare void @InteralLogWithoutArguments(i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZN14NAMESPACE_MAINL15IsMultiplyErrorImEEbT_S1_(i64 noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local i64 @CutUniform(i64 noundef %0, ptr noundef readonly %1, i64 noundef %2, ptr noundef %3) local_unnamed_addr #4 {
  %5 = icmp eq i64 %2, 0
  br i1 %5, label %.thread, label %6

6:                                                ; preds = %4
  %7 = tail call noundef zeroext i1 @_ZN14NAMESPACE_MAINL14IsConvertErrorImlEENSt9enable_ifIXaaaantsr3std9is_signedIT_EE5valuesr3std9is_signedIT0_EE5valueleclsr3std14numeric_limitsIS3_EE3maxEclsr3std14numeric_limitsIS2_EE3maxEEbE4typeES3_(i64 noundef %2) #6
  br i1 %7, label %8, label %11

8:                                                ; preds = %6
  %9 = load i32, ptr @g_traceLevel, align 4, !tbaa !5
  %10 = icmp sgt i32 %9, 0
  br i1 %10, label %.thread.sink.split, label %.thread

11:                                               ; preds = %6
  %12 = tail call noundef zeroext i1 @_ZN14NAMESPACE_MAINL15IsMultiplyErrorImEEbT_S1_(i64 noundef 8, i64 noundef %2) #6
  br i1 %12, label %13, label %16

13:                                               ; preds = %11
  %14 = load i32, ptr @g_traceLevel, align 4, !tbaa !5
  %15 = icmp sgt i32 %14, 0
  br i1 %15, label %.thread.sink.split, label %.thread

16:                                               ; preds = %11
  %17 = tail call noundef zeroext i1 @_ZN14NAMESPACE_MAINL14IsConvertErrorImlEENSt9enable_ifIXaaaantsr3std9is_signedIT_EE5valuesr3std9is_signedIT0_EE5valueleclsr3std14numeric_limitsIS3_EE3maxEclsr3std14numeric_limitsIS2_EE3maxEEbE4typeES3_(i64 noundef %0) #6
  br i1 %17, label %18, label %21

18:                                               ; preds = %16
  %19 = load i32, ptr @g_traceLevel, align 4, !tbaa !5
  %20 = icmp sgt i32 %19, 0
  br i1 %20, label %.thread.sink.split, label %.thread

21:                                               ; preds = %16
  %22 = tail call noundef zeroext i1 @_ZN14NAMESPACE_MAINL15IsMultiplyErrorImEEbT_S1_(i64 noundef 8, i64 noundef %0) #6
  br i1 %22, label %23, label %26

23:                                               ; preds = %21
  %24 = load i32, ptr @g_traceLevel, align 4, !tbaa !5
  %25 = icmp sgt i32 %24, 0
  br i1 %25, label %.thread.sink.split, label %.thread

26:                                               ; preds = %21
  %27 = icmp eq ptr %1, null
  br i1 %27, label %28, label %.preheader176

.preheader176:                                    ; preds = %26
  %.not207 = icmp eq i64 %0, 0
  br i1 %.not207, label %._crit_edge, label %.lr.ph

28:                                               ; preds = %26
  %29 = load i32, ptr @g_traceLevel, align 4, !tbaa !5
  %30 = icmp sgt i32 %29, 0
  br i1 %30, label %.thread.sink.split, label %.thread

.lr.ph:                                           ; preds = %.preheader176, %38
  %.0128196 = phi double [ %.1129, %38 ], [ 0x7FEFFFFFFFFFFFFF, %.preheader176 ]
  %.0132195 = phi double [ %.2134, %38 ], [ 0xFFEFFFFFFFFFFFFF, %.preheader176 ]
  %.0137194 = phi i64 [ %39, %38 ], [ 0, %.preheader176 ]
  %31 = getelementptr inbounds double, ptr %1, i64 %.0137194
  %32 = load double, ptr %31, align 8, !tbaa !9
  %33 = tail call noundef zeroext i1 @_ZSt5isnand(double noundef %32)
  br i1 %33, label %38, label %34

34:                                               ; preds = %.lr.ph
  %35 = fcmp olt double %.0132195, %32
  %.1133 = select i1 %35, double %32, double %.0132195
  %36 = fcmp olt double %32, %.0128196
  br i1 %36, label %37, label %38

37:                                               ; preds = %34
  br label %38

38:                                               ; preds = %.lr.ph, %37, %34
  %.2134 = phi double [ %.0132195, %.lr.ph ], [ %.1133, %37 ], [ %.1133, %34 ]
  %.1129 = phi double [ %.0128196, %.lr.ph ], [ %32, %37 ], [ %.0128196, %34 ]
  %39 = add nuw i64 %.0137194, 1
  %exitcond.not = icmp eq i64 %39, %0
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !11

._crit_edge:                                      ; preds = %38, %.preheader176
  %.0132.lcssa = phi double [ 0xFFEFFFFFFFFFFFFF, %.preheader176 ], [ %.2134, %38 ]
  %.0128.lcssa = phi double [ 0x7FEFFFFFFFFFFFFF, %.preheader176 ], [ %.1129, %38 ]
  %40 = tail call noundef zeroext i1 @_ZSt5isnand(double noundef %.0128.lcssa)
  br i1 %40, label %41, label %42

41:                                               ; preds = %._crit_edge
  tail call void @LogAssertFailure(i64 noundef 516, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.CutUniform, ptr noundef nonnull @.str.13)
  tail call void @__assert_fail(ptr noundef nonnull @.str.14, ptr noundef nonnull @.str, i32 noundef 516, ptr noundef nonnull @__PRETTY_FUNCTION__.CutUniform) #7
  unreachable

42:                                               ; preds = %._crit_edge
  %43 = tail call noundef zeroext i1 @_ZSt5isnand(double noundef %.0132.lcssa)
  br i1 %43, label %44, label %45

44:                                               ; preds = %42
  tail call void @LogAssertFailure(i64 noundef 517, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.CutUniform, ptr noundef nonnull @.str.15)
  tail call void @__assert_fail(ptr noundef nonnull @.str.16, ptr noundef nonnull @.str, i32 noundef 517, ptr noundef nonnull @__PRETTY_FUNCTION__.CutUniform) #7
  unreachable

45:                                               ; preds = %42
  %46 = tail call noundef double @_ZNSt14numeric_limitsIdE8infinityEv() #6
  %47 = fneg double %46
  %48 = fcmp une double %.0132.lcssa, %47
  br i1 %48, label %50, label %49

49:                                               ; preds = %45
  tail call void @LogAssertFailure(i64 noundef 519, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.CutUniform, ptr noundef nonnull @.str.17)
  tail call void @__assert_fail(ptr noundef nonnull @.str.18, ptr noundef nonnull @.str, i32 noundef 519, ptr noundef nonnull @__PRETTY_FUNCTION__.CutUniform) #7
  unreachable

50:                                               ; preds = %45
  %51 = tail call noundef double @_ZNSt14numeric_limitsIdE8infinityEv() #6
  %52 = fcmp une double %51, %.0128.lcssa
  br i1 %52, label %54, label %53

53:                                               ; preds = %50
  tail call void @LogAssertFailure(i64 noundef 520, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.CutUniform, ptr noundef nonnull @.str.19)
  tail call void @__assert_fail(ptr noundef nonnull @.str.20, ptr noundef nonnull @.str, i32 noundef 520, ptr noundef nonnull @__PRETTY_FUNCTION__.CutUniform) #7
  unreachable

54:                                               ; preds = %50
  %55 = fcmp oeq double %.0128.lcssa, 0x7FEFFFFFFFFFFFFF
  %56 = fcmp oeq double %.0132.lcssa, 0xFFEFFFFFFFFFFFFF
  %or.cond = select i1 %55, i1 %56, i1 false
  br i1 %or.cond, label %.thread, label %57

57:                                               ; preds = %54
  %.inv = fcmp ole double %.0128.lcssa, 0xFFEFFFFFFFFFFFFF
  %.2130 = select i1 %.inv, double 0xFFEFFFFFFFFFFFFF, double %.0128.lcssa
  %.inv172 = fcmp oge double %.0132.lcssa, 0x7FEFFFFFFFFFFFFF
  %.3135 = select i1 %.inv172, double 0x7FEFFFFFFFFFFFFF, double %.0132.lcssa
  %58 = tail call noundef double @_ZN14NAMESPACE_MAINL10CleanFloatEd(double noundef %.2130) #6
  %59 = tail call noundef double @_ZN14NAMESPACE_MAINL10CleanFloatEd(double noundef %.3135) #6
  %60 = fcmp oeq double %58, %59
  br i1 %60, label %.thread, label %61

61:                                               ; preds = %57
  %62 = fcmp olt double %58, %59
  br i1 %62, label %64, label %63

63:                                               ; preds = %61
  tail call void @LogAssertFailure(i64 noundef 544, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.CutUniform, ptr noundef nonnull @.str.21)
  tail call void @__assert_fail(ptr noundef nonnull @.str.22, ptr noundef nonnull @.str, i32 noundef 544, ptr noundef nonnull @__PRETTY_FUNCTION__.CutUniform) #7
  unreachable

64:                                               ; preds = %61
  %65 = icmp eq ptr %3, null
  br i1 %65, label %66, label %.preheader175

66:                                               ; preds = %64
  %67 = load i32, ptr @g_traceLevel, align 4, !tbaa !5
  %68 = icmp sgt i32 %67, 0
  br i1 %68, label %.thread.sink.split, label %.thread

.preheader175:                                    ; preds = %64, %76
  %.0138199 = phi double [ %72, %76 ], [ %58, %64 ]
  %.0139198 = phi i64 [ %75, %76 ], [ 0, %64 ]
  %69 = fcmp olt double %.0138199, %59
  br i1 %69, label %71, label %70

70:                                               ; preds = %.preheader175
  tail call void @LogAssertFailure(i64 noundef 553, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.CutUniform, ptr noundef nonnull @.str.23)
  tail call void @__assert_fail(ptr noundef nonnull @.str.24, ptr noundef nonnull @.str, i32 noundef 553, ptr noundef nonnull @__PRETTY_FUNCTION__.CutUniform) #7
  unreachable

71:                                               ; preds = %.preheader175
  %72 = tail call noundef double @_ZN14NAMESPACE_MAINL18FloatTickIncrementEd(double noundef %.0138199) #6
  %73 = getelementptr inbounds double, ptr %3, i64 %.0139198
  store double %72, ptr %73, align 8, !tbaa !9
  %74 = fcmp oeq double %72, %59
  %75 = add i64 %.0139198, 1
  br i1 %74, label %.thread, label %76

76:                                               ; preds = %71
  %.not = icmp eq i64 %75, %2
  br i1 %.not, label %77, label %.preheader175, !llvm.loop !13

77:                                               ; preds = %76
  %78 = fcmp olt double %72, %59
  br i1 %78, label %.preheader174, label %79

79:                                               ; preds = %77
  tail call void @LogAssertFailure(i64 noundef 561, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.CutUniform, ptr noundef nonnull @.str.23)
  tail call void @__assert_fail(ptr noundef nonnull @.str.24, ptr noundef nonnull @.str, i32 noundef 561, ptr noundef nonnull @__PRETTY_FUNCTION__.CutUniform) #7
  unreachable

.preheader174:                                    ; preds = %77, %91
  %.0142 = phi double [ %92, %91 ], [ 1.000000e+00, %77 ]
  %.4136 = phi double [ %84, %91 ], [ %59, %77 ]
  %.3131 = phi double [ %88, %91 ], [ %58, %77 ]
  %80 = fcmp olt double %.4136, 0x7FE0000000000000
  %81 = fcmp ogt double %.3131, 0xFFE0000000000000
  %or.cond4 = and i1 %80, %81
  %82 = fcmp olt double %.0142, 0x7FE0000000000000
  %or.cond6 = and i1 %82, %or.cond4
  br i1 %or.cond6, label %83, label %.critedge

83:                                               ; preds = %.preheader174
  %84 = fmul double %.4136, 2.000000e+00
  %85 = tail call noundef zeroext i1 @_ZSt5isinfd(double noundef %84)
  br i1 %85, label %86, label %87

86:                                               ; preds = %83
  tail call void @LogAssertFailure(i64 noundef 581, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.CutUniform, ptr noundef nonnull @.str.25)
  tail call void @__assert_fail(ptr noundef nonnull @.str.26, ptr noundef nonnull @.str, i32 noundef 581, ptr noundef nonnull @__PRETTY_FUNCTION__.CutUniform) #7
  unreachable

87:                                               ; preds = %83
  %88 = fmul double %.3131, 2.000000e+00
  %89 = tail call noundef zeroext i1 @_ZSt5isinfd(double noundef %88)
  br i1 %89, label %90, label %91

90:                                               ; preds = %87
  tail call void @LogAssertFailure(i64 noundef 583, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.CutUniform, ptr noundef nonnull @.str.27)
  tail call void @__assert_fail(ptr noundef nonnull @.str.28, ptr noundef nonnull @.str, i32 noundef 583, ptr noundef nonnull @__PRETTY_FUNCTION__.CutUniform) #7
  unreachable

91:                                               ; preds = %87
  %92 = fmul double %.0142, 2.000000e+00
  %93 = tail call noundef zeroext i1 @_ZSt5isinfd(double noundef %92)
  br i1 %93, label %94, label %.preheader174, !llvm.loop !14

94:                                               ; preds = %91
  tail call void @LogAssertFailure(i64 noundef 585, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.CutUniform, ptr noundef nonnull @.str.29)
  tail call void @__assert_fail(ptr noundef nonnull @.str.30, ptr noundef nonnull @.str, i32 noundef 585, ptr noundef nonnull @__PRETTY_FUNCTION__.CutUniform) #7
  unreachable

.critedge:                                        ; preds = %.preheader174
  %95 = fmul double %.4136, 5.000000e-01
  %96 = fmul double %.3131, 5.000000e-01
  %97 = fsub double %95, %96
  %98 = tail call noundef double @_ZN14NAMESPACE_MAINL10CleanFloatEd(double noundef %97) #6
  %99 = tail call noundef zeroext i1 @_ZSt5isinfd(double noundef %98)
  br i1 %99, label %100, label %101

100:                                              ; preds = %.critedge
  tail call void @LogAssertFailure(i64 noundef 597, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.CutUniform, ptr noundef nonnull @.str.31)
  tail call void @__assert_fail(ptr noundef nonnull @.str.32, ptr noundef nonnull @.str, i32 noundef 597, ptr noundef nonnull @__PRETTY_FUNCTION__.CutUniform) #7
  unreachable

101:                                              ; preds = %.critedge
  %102 = add i64 %2, 1
  %103 = uitofp i64 %102 to double
  %104 = tail call noundef double @_ZN14NAMESPACE_MAINL10CleanFloatEd(double noundef %103) #6
  %105 = lshr i64 %2, 1
  br label %106

.preheader:                                       ; preds = %130
  %.not164202 = icmp eq i64 %107, 0
  br i1 %.not164202, label %.thread, label %.lr.ph205

106:                                              ; preds = %101, %130
  %.1140201 = phi i64 [ %2, %101 ], [ %107, %130 ]
  %.0143200 = phi double [ 0.000000e+00, %101 ], [ %.0149, %130 ]
  %107 = add i64 %.1140201, -1
  %108 = sub i64 %2, %107
  %109 = shl i64 %108, 1
  %110 = uitofp i64 %109 to double
  %111 = tail call noundef double @_ZN14NAMESPACE_MAINL10CleanFloatEd(double noundef %110) #6
  %112 = fdiv double %111, %104
  %113 = tail call noundef double @_ZN14NAMESPACE_MAINL10CleanFloatEd(double noundef %112) #6
  %114 = fcmp ugt double %113, 1.000000e+00
  br i1 %114, label %115, label %116

115:                                              ; preds = %106
  tail call void @LogAssertFailure(i64 noundef 618, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.CutUniform, ptr noundef nonnull @.str.33)
  tail call void @__assert_fail(ptr noundef nonnull @.str.34, ptr noundef nonnull @.str, i32 noundef 618, ptr noundef nonnull @__PRETTY_FUNCTION__.CutUniform) #7
  unreachable

116:                                              ; preds = %106
  %117 = fmul double %98, %113
  %118 = tail call noundef double @_ZN14NAMESPACE_MAINL10CleanFloatEd(double noundef %117) #6
  %119 = fsub double %.4136, %118
  %120 = tail call noundef double @_ZN14NAMESPACE_MAINL10CleanFloatEd(double noundef %119) #6
  %121 = fdiv double %120, %.0142
  %122 = tail call noundef double @_ZN14NAMESPACE_MAINL10CleanFloatEd(double noundef %121) #6
  %123 = fcmp ugt double %.0143200, %122
  %.not165 = icmp eq i64 %.1140201, %2
  %or.cond166 = or i1 %.not165, %123
  br i1 %or.cond166, label %126, label %124

124:                                              ; preds = %116
  %125 = tail call noundef double @_ZN14NAMESPACE_MAINL18FloatTickDecrementEd(double noundef %.0143200) #6
  br label %126

126:                                              ; preds = %124, %116
  %.0149 = phi double [ %125, %124 ], [ %122, %116 ]
  %127 = getelementptr inbounds double, ptr %3, i64 %107
  %128 = load double, ptr %127, align 8, !tbaa !9
  %129 = fcmp ugt double %.0149, %128
  br i1 %129, label %130, label %.thread

130:                                              ; preds = %126
  store double %.0149, ptr %127, align 8, !tbaa !9
  %131 = icmp ult i64 %105, %107
  br i1 %131, label %106, label %.preheader

.lr.ph205:                                        ; preds = %.preheader, %154
  %.2141204 = phi i64 [ %146, %154 ], [ %107, %.preheader ]
  %.2145203 = phi double [ %.1150, %154 ], [ %.0149, %.preheader ]
  %132 = shl nuw i64 %.2141204, 1
  %133 = uitofp i64 %132 to double
  %134 = tail call noundef double @_ZN14NAMESPACE_MAINL10CleanFloatEd(double noundef %133) #6
  %135 = fdiv double %134, %104
  %136 = tail call noundef double @_ZN14NAMESPACE_MAINL10CleanFloatEd(double noundef %135) #6
  %137 = fcmp ugt double %136, 1.000000e+00
  br i1 %137, label %138, label %139

138:                                              ; preds = %.lr.ph205
  tail call void @LogAssertFailure(i64 noundef 641, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.CutUniform, ptr noundef nonnull @.str.33)
  tail call void @__assert_fail(ptr noundef nonnull @.str.34, ptr noundef nonnull @.str, i32 noundef 641, ptr noundef nonnull @__PRETTY_FUNCTION__.CutUniform) #7
  unreachable

139:                                              ; preds = %.lr.ph205
  %140 = fmul double %98, %136
  %141 = tail call noundef double @_ZN14NAMESPACE_MAINL10CleanFloatEd(double noundef %140) #6
  %142 = fadd double %.3131, %141
  %143 = tail call noundef double @_ZN14NAMESPACE_MAINL10CleanFloatEd(double noundef %142) #6
  %144 = fdiv double %143, %.0142
  %145 = tail call noundef double @_ZN14NAMESPACE_MAINL10CleanFloatEd(double noundef %144) #6
  %146 = add nsw i64 %.2141204, -1
  %147 = fcmp ugt double %.2145203, %145
  br i1 %147, label %150, label %148

148:                                              ; preds = %139
  %149 = tail call noundef double @_ZN14NAMESPACE_MAINL18FloatTickDecrementEd(double noundef %.2145203) #6
  br label %150

150:                                              ; preds = %148, %139
  %.1150 = phi double [ %149, %148 ], [ %145, %139 ]
  %151 = getelementptr inbounds double, ptr %3, i64 %146
  %152 = load double, ptr %151, align 8, !tbaa !9
  %153 = fcmp ugt double %.1150, %152
  br i1 %153, label %154, label %.thread

154:                                              ; preds = %150
  store double %.1150, ptr %151, align 8, !tbaa !9
  %.not164 = icmp eq i64 %146, 0
  br i1 %.not164, label %.thread, label %.lr.ph205

.thread.sink.split:                               ; preds = %66, %28, %23, %18, %13, %8
  %_ZZ10CutUniformE13LOG__sMessage_0.sink = phi ptr [ @_ZZ10CutUniformE13LOG__sMessage, %8 ], [ @_ZZ10CutUniformE13LOG__sMessage_0, %13 ], [ @_ZZ10CutUniformE13LOG__sMessage_1, %18 ], [ @_ZZ10CutUniformE13LOG__sMessage_2, %23 ], [ @_ZZ10CutUniformE13LOG__sMessage_3, %28 ], [ @_ZZ10CutUniformE13LOG__sMessage_4, %66 ]
  tail call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef nonnull %_ZZ10CutUniformE13LOG__sMessage_0.sink)
  br label %.thread

.thread:                                          ; preds = %71, %126, %154, %150, %.thread.sink.split, %.preheader, %13, %18, %66, %57, %54, %28, %23, %8, %4
  %.7 = phi i64 [ 0, %4 ], [ 0, %8 ], [ 0, %13 ], [ 0, %18 ], [ 0, %23 ], [ 0, %28 ], [ 0, %54 ], [ 0, %57 ], [ 0, %66 ], [ %2, %.preheader ], [ 0, %.thread.sink.split ], [ %2, %150 ], [ %2, %154 ], [ %2, %126 ], [ %75, %71 ]
  ret i64 %.7
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNSt14numeric_limitsIdE8infinityEv() local_unnamed_addr #0 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef double @_ZN14NAMESPACE_MAINL10CleanFloatEd(double noundef) local_unnamed_addr #5

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef double @_ZN14NAMESPACE_MAINL18FloatTickIncrementEd(double noundef) local_unnamed_addr #5

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef double @_ZN14NAMESPACE_MAINL18FloatTickDecrementEd(double noundef) local_unnamed_addr #5

attributes #0 = { 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 #1 = { "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 = { noreturn 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 #3 = { 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 #4 = { 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 #5 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { noreturn 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass