; LLVM IR from stivalaa/EstimNetDirected :: src/Random123-1.09/examples (time_serial)

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

%struct.r123array2x64 = type { [2 x i64] }
%struct.test_info = type { double, i32, ptr }

@stderr = external global ptr, align 8
@verbose = external dso_local global i32, align 4
@debug = external dso_local global i32, align 4
@numtrials = external dso_local global i32, align 4
@sec_per_trial = external dso_local global double, align 8
@stdout = external global ptr, align 8
@.str.19 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [58 x i8], align 1
@progname = external dso_local global ptr, align 8
@.str.28 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [16 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1

declare i32 @printf(ptr noundef, ...) #2

declare i32 @fflush(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @printline_threefry2x64_13(i64, i64, i64, i64, ptr noundef, i64 noundef) #3

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden double @timer(ptr noundef) #5

; Function Attrs: nounwind uwtable
define dso_local void @threefry2x64_13(i64 %0, i64 %1, i64 %2, i64 %3, i64 %4, i64 %5, i32 noundef %6, ptr noundef %7) #3 {
  %9 = alloca %struct.r123array2x64, align 8
  %10 = alloca %struct.r123array2x64, align 8
  %11 = alloca %struct.r123array2x64, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca double, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca %struct.r123array2x64, align 8
  %23 = alloca ptr, align 8
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca double, align 8
  %29 = getelementptr inbounds { i64, i64 }, ptr %9, i32 0, i32 0
  store i64 %0, ptr %29, align 8
  %30 = getelementptr inbounds { i64, i64 }, ptr %9, i32 0, i32 1
  store i64 %1, ptr %30, align 8
  %31 = getelementptr inbounds { i64, i64 }, ptr %10, i32 0, i32 0
  store i64 %2, ptr %31, align 8
  %32 = getelementptr inbounds { i64, i64 }, ptr %10, i32 0, i32 1
  store i64 %3, ptr %32, align 8
  %33 = getelementptr inbounds { i64, i64 }, ptr %11, i32 0, i32 0
  store i64 %4, ptr %33, align 8
  %34 = getelementptr inbounds { i64, i64 }, ptr %11, i32 0, i32 1
  store i64 %5, ptr %34, align 8
  store i32 %6, ptr %12, align 4, !tbaa !5
  store ptr %7, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  store ptr @.str.34, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %35 = load i32, ptr @numtrials, align 4, !tbaa !5
  store i32 %35, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store i32 0, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  store double 0.000000e+00, ptr %19, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  store double 0.000000e+00, ptr %20, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  store double 0.000000e+00, ptr %21, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  store ptr %22, ptr %23, align 8, !tbaa !9
  store i32 -2, ptr %16, align 4, !tbaa !5
  br label %36

36:                                               ; preds = %288, %8
  %37 = load i32, ptr %16, align 4, !tbaa !5
  %38 = load i32, ptr %17, align 4, !tbaa !5
  %39 = icmp slt i32 %37, %38
  br i1 %39, label %40, label %291

40:                                               ; preds = %36
  %41 = load i32, ptr %16, align 4, !tbaa !5
  %42 = icmp eq i32 %41, -2
  br i1 %42, label %43, label %74

43:                                               ; preds = %40
  %44 = load i32, ptr %12, align 4, !tbaa !5
  %45 = icmp eq i32 %44, 0
  br i1 %45, label %46, label %72

46:                                               ; preds = %43
  %47 = load ptr, ptr %13, align 8, !tbaa !9
  %48 = getelementptr inbounds %struct.test_info, ptr %47, i32 0, i32 0
  %49 = load double, ptr %48, align 8, !tbaa !13
  %50 = fcmp une double %49, 0.000000e+00
  br i1 %50, label %51, label %56

51:                                               ; preds = %46
  %52 = load ptr, ptr %13, align 8, !tbaa !9
  %53 = getelementptr inbounds %struct.test_info, ptr %52, i32 0, i32 0
  %54 = load double, ptr %53, align 8, !tbaa !13
  %55 = fmul double %54, 1.000000e-05
  br label %57

56:                                               ; preds = %46
  br label %57

57:                                               ; preds = %56, %51
  %58 = phi double [ %55, %51 ], [ 1.000000e+05, %56 ]
  %59 = fptoui double %58 to i32
  store i32 %59, ptr %12, align 4, !tbaa !5
  br label %60

60:                                               ; preds = %57
  %61 = load i32, ptr @debug, align 4, !tbaa !5
  %62 = icmp slt i32 %61, 1
  br i1 %62, label %63, label %64

63:                                               ; preds = %60
  br label %69

64:                                               ; preds = %60
  %65 = load i32, ptr %12, align 4, !tbaa !5
  %66 = call i32 (ptr, ...) @printf(ptr noundef @.str.19, i32 noundef %65)
  %67 = load ptr, ptr @stdout, align 8, !tbaa !9
  %68 = call i32 @fflush(ptr noundef %67)
  br label %69

69:                                               ; preds = %64, %63
  br label %70

70:                                               ; preds = %69
  br label %71

71:                                               ; preds = %70
  br label %72

72:                                               ; preds = %71, %43
  %73 = load i32, ptr %12, align 4, !tbaa !5
  store i32 %73, ptr %18, align 4, !tbaa !5
  br label %201

74:                                               ; preds = %40
  %75 = load i32, ptr %16, align 4, !tbaa !5
  %76 = icmp eq i32 %75, -1
  br i1 %76, label %77, label %101

77:                                               ; preds = %74
  %78 = load i32, ptr %12, align 4, !tbaa !5
  %79 = icmp ugt i32 %78, 1
  br i1 %79, label %80, label %100

80:                                               ; preds = %77
  %81 = load i32, ptr %12, align 4, !tbaa !5
  %82 = uitofp i32 %81 to double
  %83 = load double, ptr @sec_per_trial, align 8, !tbaa !11
  %84 = fmul double %82, %83
  %85 = load double, ptr %20, align 8, !tbaa !11
  %86 = fdiv double %84, %85
  %87 = fptoui double %86 to i32
  store i32 %87, ptr %12, align 4, !tbaa !5
  br label %88

88:                                               ; preds = %80
  %89 = load i32, ptr @debug, align 4, !tbaa !5
  %90 = icmp slt i32 %89, 1
  br i1 %90, label %91, label %92

91:                                               ; preds = %88
  br label %97

92:                                               ; preds = %88
  %93 = load i32, ptr %12, align 4, !tbaa !5
  %94 = call i32 (ptr, ...) @printf(ptr noundef @.str.20, i32 noundef %93)
  %95 = load ptr, ptr @stdout, align 8, !tbaa !9
  %96 = call i32 @fflush(ptr noundef %95)
  br label %97

97:                                               ; preds = %92, %91
  br label %98

98:                                               ; preds = %97
  br label %99

99:                                               ; preds = %98
  br label %100

100:                                              ; preds = %99, %77
  store i32 1, ptr %18, align 4, !tbaa !5
  br label %200

101:                                              ; preds = %74
  %102 = load i32, ptr %16, align 4, !tbaa !5
  %103 = icmp eq i32 %102, 0
  br i1 %103, label %104, label %199

104:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  store i32 0, ptr %24, align 4, !tbaa !5
  br label %105

105:                                              ; preds = %163, %104
  %106 = load i32, ptr %24, align 4, !tbaa !5
  %107 = icmp slt i32 %106, 2
  br i1 %107, label %108, label %166

108:                                              ; preds = %105
  %109 = getelementptr inbounds %struct.r123array2x64, ptr %11, i32 0, i32 0
  %110 = load i32, ptr %24, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [2 x i64], ptr %109, i64 0, i64 %111
  %113 = load i64, ptr %112, align 8, !tbaa !15
  %114 = load ptr, ptr %23, align 8, !tbaa !9
  %115 = getelementptr inbounds %struct.r123array2x64, ptr %114, i64 0
  %116 = getelementptr inbounds %struct.r123array2x64, ptr %115, i32 0, i32 0
  %117 = load i32, ptr %24, align 4, !tbaa !5
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [2 x i64], ptr %116, i64 0, i64 %118
  %120 = load i64, ptr %119, align 8, !tbaa !15
  %121 = icmp ne i64 %113, %120
  br i1 %121, label %122, label %148

122:                                              ; preds = %108
  %123 = load ptr, ptr %14, align 8, !tbaa !9
  %124 = load i32, ptr %24, align 4, !tbaa !5
  %125 = call i32 (ptr, ...) @printf(ptr noundef @.str.21, ptr noundef %123, i32 noundef %124)
  %126 = getelementptr inbounds { i64, i64 }, ptr %9, i32 0, i32 0
  %127 = load i64, ptr %126, align 8
  %128 = getelementptr inbounds { i64, i64 }, ptr %9, i32 0, i32 1
  %129 = load i64, ptr %128, align 8
  %130 = getelementptr inbounds { i64, i64 }, ptr %10, i32 0, i32 0
  %131 = load i64, ptr %130, align 8
  %132 = getelementptr inbounds { i64, i64 }, ptr %10, i32 0, i32 1
  %133 = load i64, ptr %132, align 8
  call void @printline_threefry2x64_13(i64 %127, i64 %129, i64 %131, i64 %133, ptr noundef %11, i64 noundef 1)
  %134 = call i32 (ptr, ...) @printf(ptr noundef @.str.22)
  %135 = load ptr, ptr %23, align 8, !tbaa !9
  %136 = getelementptr inbounds { i64, i64 }, ptr %9, i32 0, i32 0
  %137 = load i64, ptr %136, align 8
  %138 = getelementptr inbounds { i64, i64 }, ptr %9, i32 0, i32 1
  %139 = load i64, ptr %138, align 8
  %140 = getelementptr inbounds { i64, i64 }, ptr %10, i32 0, i32 0
  %141 = load i64, ptr %140, align 8
  %142 = getelementptr inbounds { i64, i64 }, ptr %10, i32 0, i32 1
  %143 = load i64, ptr %142, align 8
  call void @printline_threefry2x64_13(i64 %137, i64 %139, i64 %141, i64 %143, ptr noundef %135, i64 noundef 1)
  %144 = load i32, ptr @debug, align 4, !tbaa !5
  %145 = icmp ne i32 %144, 0
  br i1 %145, label %147, label %146

146:                                              ; preds = %122
  call void @exit(i32 noundef 1) #7
  unreachable

147:                                              ; preds = %122
  br label %166

148:                                              ; preds = %108
  br label %149

149:                                              ; preds = %148
  %150 = load i32, ptr @debug, align 4, !tbaa !5
  %151 = icmp slt i32 %150, 1
  br i1 %151, label %152, label %153

152:                                              ; preds = %149
  br label %159

153:                                              ; preds = %149
  %154 = load ptr, ptr %14, align 8, !tbaa !9
  %155 = load i32, ptr %24, align 4, !tbaa !5
  %156 = call i32 (ptr, ...) @printf(ptr noundef @.str.23, ptr noundef %154, i32 noundef %155)
  %157 = load ptr, ptr @stdout, align 8, !tbaa !9
  %158 = call i32 @fflush(ptr noundef %157)
  br label %159

159:                                              ; preds = %153, %152
  br label %160

160:                                              ; preds = %159
  br label %161

161:                                              ; preds = %160
  br label %162

162:                                              ; preds = %161
  br label %163

163:                                              ; preds = %162
  %164 = load i32, ptr %24, align 4, !tbaa !5
  %165 = add nsw i32 %164, 1
  store i32 %165, ptr %24, align 4, !tbaa !5
  br label %105, !llvm.loop !17

166:                                              ; preds = %147, %105
  %167 = load double, ptr %20, align 8, !tbaa !11
  store double %167, ptr %19, align 8, !tbaa !11
  %168 = load i32, ptr @debug, align 4, !tbaa !5
  %169 = icmp ne i32 %168, 0
  br i1 %169, label %173, label %170

170:                                              ; preds = %166
  %171 = load i32, ptr @verbose, align 4, !tbaa !5
  %172 = icmp ne i32 %171, 0
  br i1 %172, label %173, label %196

173:                                              ; preds = %170, %166
  br label %174

174:                                              ; preds = %173
  %175 = load i32, ptr @debug, align 4, !tbaa !5
  %176 = icmp slt i32 %175, 1
  br i1 %176, label %177, label %178

177:                                              ; preds = %174
  br label %184

178:                                              ; preds = %174
  %179 = load ptr, ptr %14, align 8, !tbaa !9
  %180 = load double, ptr %19, align 8, !tbaa !11
  %181 = call i32 (ptr, ...) @printf(ptr noundef @.str.24, ptr noundef %179, double noundef %180)
  %182 = load ptr, ptr @stdout, align 8, !tbaa !9
  %183 = call i32 @fflush(ptr noundef %182)
  br label %184

184:                                              ; preds = %178, %177
  br label %185

185:                                              ; preds = %184
  br label %186

186:                                              ; preds = %185
  %187 = load ptr, ptr %23, align 8, !tbaa !9
  %188 = getelementptr inbounds { i64, i64 }, ptr %9, i32 0, i32 0
  %189 = load i64, ptr %188, align 8
  %190 = getelementptr inbounds { i64, i64 }, ptr %9, i32 0, i32 1
  %191 = load i64, ptr %190, align 8
  %192 = getelementptr inbounds { i64, i64 }, ptr %10, i32 0, i32 0
  %193 = load i64, ptr %192, align 8
  %194 = getelementptr inbounds { i64, i64 }, ptr %10, i32 0, i32 1
  %195 = load i64, ptr %194, align 8
  call void @printline_threefry2x64_13(i64 %189, i64 %191, i64 %193, i64 %195, ptr noundef %187, i64 noundef 1)
  br label %196

196:                                              ; preds = %186, %170
  %197 = load i32, ptr %12, align 4, !tbaa !5
  %198 = add i32 %197, 1
  store i32 %198, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br label %199

199:                                              ; preds = %196, %101
  br label %200

200:                                              ; preds = %199, %100
  br label %201

201:                                              ; preds = %200, %72
  br label %202

202:                                              ; preds = %201
  %203 = load i32, ptr @debug, align 4, !tbaa !5
  %204 = icmp slt i32 %203, 1
  br i1 %204, label %205, label %206

205:                                              ; preds = %202
  br label %211

206:                                              ; preds = %202
  %207 = load ptr, ptr %14, align 8, !tbaa !9
  %208 = call i32 (ptr, ...) @printf(ptr noundef @.str.25, ptr noundef %207)
  %209 = load ptr, ptr @stdout, align 8, !tbaa !9
  %210 = call i32 @fflush(ptr noundef %209)
  br label %211

211:                                              ; preds = %206, %205
  br label %212

212:                                              ; preds = %211
  br label %213

213:                                              ; preds = %212
  %214 = call double @timer(ptr noundef %15)
  %215 = load i32, ptr %18, align 4, !tbaa !5
  %216 = zext i32 %215 to i64
  %217 = load ptr, ptr %23, align 8, !tbaa !9
  %218 = getelementptr inbounds { i64, i64 }, ptr %9, i32 0, i32 0
  %219 = load i64, ptr %218, align 8
  %220 = getelementptr inbounds { i64, i64 }, ptr %9, i32 0, i32 1
  %221 = load i64, ptr %220, align 8
  %222 = getelementptr inbounds { i64, i64 }, ptr %10, i32 0, i32 0
  %223 = load i64, ptr %222, align 8
  %224 = getelementptr inbounds { i64, i64 }, ptr %10, i32 0, i32 1
  %225 = load i64, ptr %224, align 8
  call void @test_threefry2x64_13(i64 noundef %216, i64 %219, i64 %221, i64 %223, i64 %225, ptr noundef %217)
  %226 = call double @timer(ptr noundef %15)
  store double %226, ptr %20, align 8, !tbaa !11
  br label %227

227:                                              ; preds = %213
  %228 = load i32, ptr @debug, align 4, !tbaa !5
  %229 = icmp slt i32 %228, 1
  br i1 %229, label %230, label %231

230:                                              ; preds = %227
  br label %237

231:                                              ; preds = %227
  %232 = load i32, ptr %16, align 4, !tbaa !5
  %233 = load double, ptr %20, align 8, !tbaa !11
  %234 = call i32 (ptr, ...) @printf(ptr noundef @.str.26, i32 noundef %232, double noundef %233)
  %235 = load ptr, ptr @stdout, align 8, !tbaa !9
  %236 = call i32 @fflush(ptr noundef %235)
  br label %237

237:                                              ; preds = %231, %230
  br label %238

238:                                              ; preds = %237
  br label %239

239:                                              ; preds = %238
  br label %240

240:                                              ; preds = %239
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  store i32 1, ptr %25, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  store i32 0, ptr %26, align 4, !tbaa !5
  br label %241

241:                                              ; preds = %266, %240
  %242 = load i32, ptr %26, align 4, !tbaa !5
  %243 = icmp ult i32 %242, 1
  br i1 %243, label %244, label %269

244:                                              ; preds = %241
  store i32 0, ptr %27, align 4, !tbaa !5
  br label %245

245:                                              ; preds = %262, %244
  %246 = load i32, ptr %27, align 4, !tbaa !5
  %247 = icmp ult i32 %246, 2
  br i1 %247, label %248, label %265

248:                                              ; preds = %245
  %249 = load i32, ptr %25, align 4, !tbaa !5
  %250 = load ptr, ptr %23, align 8, !tbaa !9
  %251 = load i32, ptr %26, align 4, !tbaa !5
  %252 = zext i32 %251 to i64
  %253 = getelementptr inbounds %struct.r123array2x64, ptr %250, i64 %252
  %254 = getelementptr inbounds %struct.r123array2x64, ptr %253, i32 0, i32 0
  %255 = load i32, ptr %27, align 4, !tbaa !5
  %256 = zext i32 %255 to i64
  %257 = getelementptr inbounds [2 x i64], ptr %254, i64 0, i64 %256
  %258 = load i64, ptr %257, align 8, !tbaa !15
  %259 = icmp eq i64 %258, 0
  %260 = zext i1 %259 to i32
  %261 = and i32 %249, %260
  store i32 %261, ptr %25, align 4, !tbaa !5
  br label %262

262:                                              ; preds = %248
  %263 = load i32, ptr %27, align 4, !tbaa !5
  %264 = add i32 %263, 1
  store i32 %264, ptr %27, align 4, !tbaa !5
  br label %245, !llvm.loop !19

265:                                              ; preds = %245
  br label %266

266:                                              ; preds = %265
  %267 = load i32, ptr %26, align 4, !tbaa !5
  %268 = add i32 %267, 1
  store i32 %268, ptr %26, align 4, !tbaa !5
  br label %241, !llvm.loop !20

269:                                              ; preds = %241
  %270 = load i32, ptr %25, align 4, !tbaa !5
  %271 = icmp ne i32 %270, 0
  br i1 %271, label %272, label %276

272:                                              ; preds = %269
  %273 = load ptr, ptr @stderr, align 8, !tbaa !9
  %274 = load ptr, ptr @progname, align 8, !tbaa !9
  %275 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %273, ptr noundef @.str.27, ptr noundef %274, i64 noundef 1, i32 noundef 2, i32 noundef 8) #6
  br label %276

276:                                              ; preds = %272, %269
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  br label %277

277:                                              ; preds = %276
  br label %278

278:                                              ; preds = %277
  %279 = load i32, ptr %16, align 4, !tbaa !5
  %280 = icmp eq i32 %279, 0
  br i1 %280, label %285, label %281

281:                                              ; preds = %278
  %282 = load double, ptr %20, align 8, !tbaa !11
  %283 = load double, ptr %21, align 8, !tbaa !11
  %284 = fcmp olt double %282, %283
  br i1 %284, label %285, label %287

285:                                              ; preds = %281, %278
  %286 = load double, ptr %20, align 8, !tbaa !11
  store double %286, ptr %21, align 8, !tbaa !11
  br label %287

287:                                              ; preds = %285, %281
  br label %288

288:                                              ; preds = %287
  %289 = load i32, ptr %16, align 4, !tbaa !5
  %290 = add nsw i32 %289, 1
  store i32 %290, ptr %16, align 4, !tbaa !5
  br label %36, !llvm.loop !21

291:                                              ; preds = %36
  %292 = load i32, ptr %12, align 4, !tbaa !5
  %293 = icmp ugt i32 %292, 1
  br i1 %293, label %294, label %317

294:                                              ; preds = %291
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  %295 = load double, ptr %21, align 8, !tbaa !11
  %296 = load double, ptr %19, align 8, !tbaa !11
  %297 = fsub double %295, %296
  %298 = load i32, ptr %18, align 4, !tbaa !5
  %299 = uitofp i32 %298 to double
  %300 = fsub double %299, 1.000000e+00
  %301 = fmul double %300, 1.600000e+01
  %302 = fdiv double %297, %301
  store double %302, ptr %28, align 8, !tbaa !11
  %303 = load ptr, ptr %14, align 8, !tbaa !9
  %304 = load double, ptr %28, align 8, !tbaa !11
  %305 = load ptr, ptr %13, align 8, !tbaa !9
  %306 = getelementptr inbounds %struct.test_info, ptr %305, i32 0, i32 0
  %307 = load double, ptr %306, align 8, !tbaa !13
  %308 = fmul double %304, %307
  %309 = load double, ptr %28, align 8, !tbaa !11
  %310 = fdiv double 1.000000e-09, %309
  %311 = load i32, ptr %18, align 4, !tbaa !5
  %312 = load double, ptr %21, align 8, !tbaa !11
  %313 = load double, ptr %19, align 8, !tbaa !11
  %314 = call i32 (ptr, ...) @printf(ptr noundef @.str.28, ptr noundef %303, double noundef %308, double noundef %310, i32 noundef 16, i32 noundef %311, double noundef %312, double noundef %313)
  %315 = load ptr, ptr @stdout, align 8, !tbaa !9
  %316 = call i32 @fflush(ptr noundef %315)
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  br label %317

317:                                              ; preds = %294, %291
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  ret void
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @test_threefry2x64_13(i64 noundef, i64, i64, i64, i64, ptr noundef) #5

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


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

%struct.r123array2x64 = type { [2 x i64] }

@stderr = external local_unnamed_addr global ptr, align 8
@verbose = external dso_local local_unnamed_addr global i32, align 4
@debug = external dso_local local_unnamed_addr global i32, align 4
@numtrials = external dso_local local_unnamed_addr global i32, align 4
@sec_per_trial = external dso_local local_unnamed_addr global double, align 8
@stdout = external local_unnamed_addr global ptr, align 8
@.str.19 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [58 x i8], align 1
@progname = external dso_local local_unnamed_addr global ptr, align 8
@.str.28 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [16 x i8], align 1

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i32 @fflush(ptr nocapture noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @printline_threefry2x64_13(i64, i64, i64, i64, ptr noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden double @timer(ptr noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
define dso_local void @threefry2x64_13(i64 %0, i64 %1, i64 %2, i64 %3, i64 %4, i64 %5, i32 noundef %6, ptr nocapture noundef readonly %7) local_unnamed_addr #2 {
  %9 = alloca %struct.r123array2x64, align 8
  %10 = alloca double, align 8
  %11 = alloca %struct.r123array2x64, align 8
  store i64 %4, ptr %9, align 8
  %12 = getelementptr inbounds i8, ptr %9, i64 8
  store i64 %5, ptr %12, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  %13 = load i32, ptr @numtrials, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #5
  %14 = icmp sgt i32 %13, -2
  br i1 %14, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %8
  %15 = getelementptr inbounds i8, ptr %11, i64 8
  %16 = getelementptr inbounds i8, ptr %11, i64 8
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %104
  %.0117 = phi i32 [ %.399, %104 ], [ %6, %.lr.ph.preheader ]
  %.078116 = phi i32 [ %107, %104 ], [ -2, %.lr.ph.preheader ]
  %.079115 = phi double [ %.180, %104 ], [ 0.000000e+00, %.lr.ph.preheader ]
  %.081114 = phi double [ %89, %104 ], [ 0.000000e+00, %.lr.ph.preheader ]
  %.082113 = phi double [ %.18398, %104 ], [ 0.000000e+00, %.lr.ph.preheader ]
  %.084112 = phi i32 [ %.18597, %104 ], [ 0, %.lr.ph.preheader ]
  switch i32 %.078116, label %81 [
    i32 -2, label %19
    i32 -1, label %33
    i32 0, label %.preheader102.preheader
  ]

.preheader102.preheader:                          ; preds = %.lr.ph
  %17 = load i64, ptr %9, align 8, !tbaa !9
  %18 = load i64, ptr %11, align 8, !tbaa !9
  %.not = icmp eq i64 %17, %18
  br i1 %.not, label %52, label %47

19:                                               ; preds = %.lr.ph
  %20 = icmp eq i32 %.0117, 0
  br i1 %20, label %21, label %81

21:                                               ; preds = %19
  %22 = load double, ptr %7, align 8, !tbaa !11
  %23 = fcmp une double %22, 0.000000e+00
  %24 = fmul double %22, 1.000000e-05
  %25 = select i1 %23, double %24, double 1.000000e+05
  %26 = fptoui double %25 to i32
  %27 = load i32, ptr @debug, align 4, !tbaa !5
  %28 = icmp slt i32 %27, 1
  br i1 %28, label %.thread, label %29

29:                                               ; preds = %21
  %30 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.19, i32 noundef %26)
  %31 = load ptr, ptr @stdout, align 8, !tbaa !15
  %32 = call i32 @fflush(ptr noundef %31)
  br label %81

33:                                               ; preds = %.lr.ph
  %34 = icmp ugt i32 %.0117, 1
  br i1 %34, label %35, label %81

35:                                               ; preds = %33
  %36 = uitofp i32 %.0117 to double
  %37 = load double, ptr @sec_per_trial, align 8, !tbaa !16
  %38 = fmul double %37, %36
  %39 = fdiv double %38, %.081114
  %40 = fptoui double %39 to i32
  %41 = load i32, ptr @debug, align 4, !tbaa !5
  %42 = icmp slt i32 %41, 1
  br i1 %42, label %.thread, label %43

43:                                               ; preds = %35
  %44 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.20, i32 noundef %40)
  %45 = load ptr, ptr @stdout, align 8, !tbaa !15
  %46 = call i32 @fflush(ptr noundef %45)
  br label %81

47:                                               ; preds = %.preheader102.1, %.preheader102.preheader
  %.077108.lcssa.wide = phi i32 [ 0, %.preheader102.preheader ], [ 1, %.preheader102.1 ]
  %48 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.21, ptr noundef nonnull @.str.34, i32 noundef %.077108.lcssa.wide)
  call void @printline_threefry2x64_13(i64 %0, i64 %1, i64 %2, i64 %3, ptr noundef nonnull %9, i64 noundef 1)
  %49 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.22)
  call void @printline_threefry2x64_13(i64 %0, i64 %1, i64 %2, i64 %3, ptr noundef nonnull %11, i64 noundef 1)
  %50 = load i32, ptr @debug, align 4, !tbaa !5
  %.not87 = icmp eq i32 %50, 0
  br i1 %.not87, label %51, label %.thread100

51:                                               ; preds = %47
  call void @exit(i32 noundef 1) #6
  unreachable

52:                                               ; preds = %.preheader102.preheader
  %53 = load i32, ptr @debug, align 4, !tbaa !5
  %54 = icmp slt i32 %53, 1
  br i1 %54, label %.preheader102.1, label %55

55:                                               ; preds = %52
  %56 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.23, ptr noundef nonnull @.str.34, i32 noundef 0)
  %57 = load ptr, ptr @stdout, align 8, !tbaa !15
  %58 = call i32 @fflush(ptr noundef %57)
  br label %.preheader102.1

.preheader102.1:                                  ; preds = %52, %55
  %59 = load i64, ptr %12, align 8, !tbaa !9
  %60 = load i64, ptr %15, align 8, !tbaa !9
  %.not.1 = icmp eq i64 %59, %60
  br i1 %.not.1, label %61, label %47

61:                                               ; preds = %.preheader102.1
  %62 = load i32, ptr @debug, align 4, !tbaa !5
  %63 = icmp slt i32 %62, 1
  br i1 %63, label %68, label %64

64:                                               ; preds = %61
  %65 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.23, ptr noundef nonnull @.str.34, i32 noundef 1)
  %66 = load ptr, ptr @stdout, align 8, !tbaa !15
  %67 = call i32 @fflush(ptr noundef %66)
  %.pr.pre = load i32, ptr @debug, align 4, !tbaa !5
  br label %68

68:                                               ; preds = %64, %61
  %.pr = phi i32 [ %.pr.pre, %64 ], [ %62, %61 ]
  %69 = icmp ne i32 %.pr, 0
  %70 = load i32, ptr @verbose, align 4
  %71 = icmp ne i32 %70, 0
  %or.cond = select i1 %69, i1 true, i1 %71
  br i1 %or.cond, label %.thread100, label %79

.thread100:                                       ; preds = %47, %68
  %72 = phi i32 [ %.pr, %68 ], [ %50, %47 ]
  %73 = icmp slt i32 %72, 1
  br i1 %73, label %78, label %74

74:                                               ; preds = %.thread100
  %75 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.24, ptr noundef nonnull @.str.34, double noundef %.081114)
  %76 = load ptr, ptr @stdout, align 8, !tbaa !15
  %77 = call i32 @fflush(ptr noundef %76)
  br label %78

78:                                               ; preds = %.thread100, %74
  call void @printline_threefry2x64_13(i64 %0, i64 %1, i64 %2, i64 %3, ptr noundef nonnull %11, i64 noundef 1)
  br label %79

79:                                               ; preds = %68, %78
  %80 = add i32 %.0117, 1
  br label %81

81:                                               ; preds = %.lr.ph, %33, %43, %19, %29, %79
  %.185.ph = phi i32 [ %.084112, %.lr.ph ], [ 1, %33 ], [ 1, %43 ], [ %.0117, %19 ], [ %26, %29 ], [ %80, %79 ]
  %.183.ph = phi double [ %.082113, %.lr.ph ], [ %.082113, %33 ], [ %.082113, %43 ], [ %.082113, %19 ], [ %.082113, %29 ], [ %.081114, %79 ]
  %.3.ph = phi i32 [ %.0117, %.lr.ph ], [ %.0117, %33 ], [ %40, %43 ], [ %.0117, %19 ], [ %26, %29 ], [ %.0117, %79 ]
  %.pr91 = load i32, ptr @debug, align 4, !tbaa !5
  %82 = icmp slt i32 %.pr91, 1
  br i1 %82, label %.thread, label %83

83:                                               ; preds = %81
  %84 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.25, ptr noundef nonnull @.str.34)
  %85 = load ptr, ptr @stdout, align 8, !tbaa !15
  %86 = call i32 @fflush(ptr noundef %85)
  br label %.thread

.thread:                                          ; preds = %21, %35, %81, %83
  %.399 = phi i32 [ %.3.ph, %81 ], [ %.3.ph, %83 ], [ %40, %35 ], [ %26, %21 ]
  %.18398 = phi double [ %.183.ph, %81 ], [ %.183.ph, %83 ], [ %.082113, %35 ], [ %.082113, %21 ]
  %.18597 = phi i32 [ %.185.ph, %81 ], [ %.185.ph, %83 ], [ 1, %35 ], [ %26, %21 ]
  %87 = call double @timer(ptr noundef nonnull %10)
  %88 = zext i32 %.18597 to i64
  call void @test_threefry2x64_13(i64 noundef %88, i64 %0, i64 %1, i64 %2, i64 %3, ptr noundef nonnull %11)
  %89 = call double @timer(ptr noundef nonnull %10)
  %90 = load i32, ptr @debug, align 4, !tbaa !5
  %91 = icmp slt i32 %90, 1
  br i1 %91, label %.preheader, label %92

92:                                               ; preds = %.thread
  %93 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.26, i32 noundef %.078116, double noundef %89)
  %94 = load ptr, ptr @stdout, align 8, !tbaa !15
  %95 = call i32 @fflush(ptr noundef %94)
  br label %.preheader

.preheader:                                       ; preds = %.thread, %92
  %96 = load i64, ptr %11, align 8, !tbaa !9
  %97 = icmp ne i64 %96, 0
  %98 = load i64, ptr %16, align 8, !tbaa !9
  %99 = icmp ne i64 %98, 0
  %narrow.not = select i1 %99, i1 true, i1 %97
  br i1 %narrow.not, label %104, label %100

100:                                              ; preds = %.preheader
  %101 = load ptr, ptr @stderr, align 8, !tbaa !15
  %102 = load ptr, ptr @progname, align 8, !tbaa !15
  %103 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %101, ptr noundef nonnull @.str.27, ptr noundef %102, i64 noundef 1, i32 noundef 2, i32 noundef 8) #7
  br label %104

104:                                              ; preds = %100, %.preheader
  %105 = icmp eq i32 %.078116, 0
  %106 = fcmp olt double %89, %.079115
  %or.cond89 = select i1 %105, i1 true, i1 %106
  %.180 = select i1 %or.cond89, double %89, double %.079115
  %107 = add nsw i32 %.078116, 1
  %exitcond.not = icmp eq i32 %107, %13
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !17

._crit_edge:                                      ; preds = %104, %8
  %.084.lcssa = phi i32 [ 0, %8 ], [ %.18597, %104 ]
  %.082.lcssa = phi double [ 0.000000e+00, %8 ], [ %.18398, %104 ]
  %.079.lcssa = phi double [ 0.000000e+00, %8 ], [ %.180, %104 ]
  %.0.lcssa = phi i32 [ %6, %8 ], [ %.399, %104 ]
  %108 = icmp ugt i32 %.0.lcssa, 1
  br i1 %108, label %109, label %121

109:                                              ; preds = %._crit_edge
  %110 = fsub double %.079.lcssa, %.082.lcssa
  %111 = uitofp i32 %.084.lcssa to double
  %112 = fadd double %111, -1.000000e+00
  %113 = fmul double %112, 1.600000e+01
  %114 = fdiv double %110, %113
  %115 = load double, ptr %7, align 8, !tbaa !11
  %116 = fmul double %114, %115
  %117 = fdiv double 1.000000e-09, %114
  %118 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.28, ptr noundef nonnull @.str.34, double noundef %116, double noundef %117, i32 noundef 16, i32 noundef %.084.lcssa, double noundef %.079.lcssa, double noundef %.082.lcssa)
  %119 = load ptr, ptr @stdout, align 8, !tbaa !15
  %120 = call i32 @fflush(ptr noundef %119)
  br label %121

121:                                              ; preds = %109, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  ret void
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @test_threefry2x64_13(i64 noundef, i64, i64, i64, i64, ptr noundef) local_unnamed_addr #4

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


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