; 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.r123array1x64 = type { [1 x i64] }
%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.31 = external hidden unnamed_addr constant [14 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_philox2x64_10(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 @philox2x64_10(i64 %0, i64 %1, i64 %2, i64 %3, i64 %4, i32 noundef %5, ptr noundef %6) #3 {
  %8 = alloca %struct.r123array1x64, align 8
  %9 = alloca %struct.r123array2x64, align 8
  %10 = alloca %struct.r123array2x64, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca double, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca %struct.r123array2x64, align 8
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca double, align 8
  %28 = getelementptr inbounds %struct.r123array1x64, ptr %8, i32 0, i32 0
  store i64 %0, ptr %28, align 8
  %29 = getelementptr inbounds { i64, i64 }, ptr %9, i32 0, i32 0
  store i64 %1, ptr %29, align 8
  %30 = getelementptr inbounds { i64, i64 }, ptr %9, i32 0, i32 1
  store i64 %2, ptr %30, align 8
  %31 = getelementptr inbounds { i64, i64 }, ptr %10, i32 0, i32 0
  store i64 %3, ptr %31, align 8
  %32 = getelementptr inbounds { i64, i64 }, ptr %10, i32 0, i32 1
  store i64 %4, ptr %32, align 8
  store i32 %5, ptr %11, align 4, !tbaa !5
  store ptr %6, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  store ptr @.str.31, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %33 = load i32, ptr @numtrials, align 4, !tbaa !5
  store i32 %33, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store i32 0, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  store double 0.000000e+00, ptr %18, align 8, !tbaa !11
  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 16, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  store ptr %21, ptr %22, align 8, !tbaa !9
  store i32 -2, ptr %15, align 4, !tbaa !5
  br label %34

34:                                               ; preds = %278, %7
  %35 = load i32, ptr %15, align 4, !tbaa !5
  %36 = load i32, ptr %16, align 4, !tbaa !5
  %37 = icmp slt i32 %35, %36
  br i1 %37, label %38, label %281

38:                                               ; preds = %34
  %39 = load i32, ptr %15, align 4, !tbaa !5
  %40 = icmp eq i32 %39, -2
  br i1 %40, label %41, label %72

41:                                               ; preds = %38
  %42 = load i32, ptr %11, align 4, !tbaa !5
  %43 = icmp eq i32 %42, 0
  br i1 %43, label %44, label %70

44:                                               ; preds = %41
  %45 = load ptr, ptr %12, align 8, !tbaa !9
  %46 = getelementptr inbounds %struct.test_info, ptr %45, i32 0, i32 0
  %47 = load double, ptr %46, align 8, !tbaa !13
  %48 = fcmp une double %47, 0.000000e+00
  br i1 %48, label %49, label %54

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

54:                                               ; preds = %44
  br label %55

55:                                               ; preds = %54, %49
  %56 = phi double [ %53, %49 ], [ 1.000000e+05, %54 ]
  %57 = fptoui double %56 to i32
  store i32 %57, ptr %11, align 4, !tbaa !5
  br label %58

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

61:                                               ; preds = %58
  br label %67

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

67:                                               ; preds = %62, %61
  br label %68

68:                                               ; preds = %67
  br label %69

69:                                               ; preds = %68
  br label %70

70:                                               ; preds = %69, %41
  %71 = load i32, ptr %11, align 4, !tbaa !5
  store i32 %71, ptr %17, align 4, !tbaa !5
  br label %193

72:                                               ; preds = %38
  %73 = load i32, ptr %15, align 4, !tbaa !5
  %74 = icmp eq i32 %73, -1
  br i1 %74, label %75, label %99

75:                                               ; preds = %72
  %76 = load i32, ptr %11, align 4, !tbaa !5
  %77 = icmp ugt i32 %76, 1
  br i1 %77, label %78, label %98

78:                                               ; preds = %75
  %79 = load i32, ptr %11, align 4, !tbaa !5
  %80 = uitofp i32 %79 to double
  %81 = load double, ptr @sec_per_trial, align 8, !tbaa !11
  %82 = fmul double %80, %81
  %83 = load double, ptr %19, align 8, !tbaa !11
  %84 = fdiv double %82, %83
  %85 = fptoui double %84 to i32
  store i32 %85, ptr %11, align 4, !tbaa !5
  br label %86

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

89:                                               ; preds = %86
  br label %95

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

95:                                               ; preds = %90, %89
  br label %96

96:                                               ; preds = %95
  br label %97

97:                                               ; preds = %96
  br label %98

98:                                               ; preds = %97, %75
  store i32 1, ptr %17, align 4, !tbaa !5
  br label %192

99:                                               ; preds = %72
  %100 = load i32, ptr %15, align 4, !tbaa !5
  %101 = icmp eq i32 %100, 0
  br i1 %101, label %102, label %191

102:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  store i32 0, ptr %23, align 4, !tbaa !5
  br label %103

103:                                              ; preds = %157, %102
  %104 = load i32, ptr %23, align 4, !tbaa !5
  %105 = icmp slt i32 %104, 2
  br i1 %105, label %106, label %160

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

120:                                              ; preds = %106
  %121 = load ptr, ptr %13, align 8, !tbaa !9
  %122 = load i32, ptr %23, align 4, !tbaa !5
  %123 = call i32 (ptr, ...) @printf(ptr noundef @.str.21, ptr noundef %121, i32 noundef %122)
  %124 = getelementptr inbounds %struct.r123array1x64, ptr %8, i32 0, i32 0
  %125 = load i64, ptr %124, align 8
  %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
  call void @printline_philox2x64_10(i64 %125, i64 %127, i64 %129, ptr noundef %10, i64 noundef 1)
  %130 = call i32 (ptr, ...) @printf(ptr noundef @.str.22)
  %131 = load ptr, ptr %22, align 8, !tbaa !9
  %132 = getelementptr inbounds %struct.r123array1x64, ptr %8, i32 0, i32 0
  %133 = load i64, ptr %132, align 8
  %134 = getelementptr inbounds { i64, i64 }, ptr %9, i32 0, i32 0
  %135 = load i64, ptr %134, align 8
  %136 = getelementptr inbounds { i64, i64 }, ptr %9, i32 0, i32 1
  %137 = load i64, ptr %136, align 8
  call void @printline_philox2x64_10(i64 %133, i64 %135, i64 %137, ptr noundef %131, i64 noundef 1)
  %138 = load i32, ptr @debug, align 4, !tbaa !5
  %139 = icmp ne i32 %138, 0
  br i1 %139, label %141, label %140

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

141:                                              ; preds = %120
  br label %160

142:                                              ; preds = %106
  br label %143

143:                                              ; preds = %142
  %144 = load i32, ptr @debug, align 4, !tbaa !5
  %145 = icmp slt i32 %144, 1
  br i1 %145, label %146, label %147

146:                                              ; preds = %143
  br label %153

147:                                              ; preds = %143
  %148 = load ptr, ptr %13, align 8, !tbaa !9
  %149 = load i32, ptr %23, align 4, !tbaa !5
  %150 = call i32 (ptr, ...) @printf(ptr noundef @.str.23, ptr noundef %148, i32 noundef %149)
  %151 = load ptr, ptr @stdout, align 8, !tbaa !9
  %152 = call i32 @fflush(ptr noundef %151)
  br label %153

153:                                              ; preds = %147, %146
  br label %154

154:                                              ; preds = %153
  br label %155

155:                                              ; preds = %154
  br label %156

156:                                              ; preds = %155
  br label %157

157:                                              ; preds = %156
  %158 = load i32, ptr %23, align 4, !tbaa !5
  %159 = add nsw i32 %158, 1
  store i32 %159, ptr %23, align 4, !tbaa !5
  br label %103, !llvm.loop !17

160:                                              ; preds = %141, %103
  %161 = load double, ptr %19, align 8, !tbaa !11
  store double %161, ptr %18, align 8, !tbaa !11
  %162 = load i32, ptr @debug, align 4, !tbaa !5
  %163 = icmp ne i32 %162, 0
  br i1 %163, label %167, label %164

164:                                              ; preds = %160
  %165 = load i32, ptr @verbose, align 4, !tbaa !5
  %166 = icmp ne i32 %165, 0
  br i1 %166, label %167, label %188

167:                                              ; preds = %164, %160
  br label %168

168:                                              ; preds = %167
  %169 = load i32, ptr @debug, align 4, !tbaa !5
  %170 = icmp slt i32 %169, 1
  br i1 %170, label %171, label %172

171:                                              ; preds = %168
  br label %178

172:                                              ; preds = %168
  %173 = load ptr, ptr %13, align 8, !tbaa !9
  %174 = load double, ptr %18, align 8, !tbaa !11
  %175 = call i32 (ptr, ...) @printf(ptr noundef @.str.24, ptr noundef %173, double noundef %174)
  %176 = load ptr, ptr @stdout, align 8, !tbaa !9
  %177 = call i32 @fflush(ptr noundef %176)
  br label %178

178:                                              ; preds = %172, %171
  br label %179

179:                                              ; preds = %178
  br label %180

180:                                              ; preds = %179
  %181 = load ptr, ptr %22, align 8, !tbaa !9
  %182 = getelementptr inbounds %struct.r123array1x64, ptr %8, i32 0, i32 0
  %183 = load i64, ptr %182, align 8
  %184 = getelementptr inbounds { i64, i64 }, ptr %9, i32 0, i32 0
  %185 = load i64, ptr %184, align 8
  %186 = getelementptr inbounds { i64, i64 }, ptr %9, i32 0, i32 1
  %187 = load i64, ptr %186, align 8
  call void @printline_philox2x64_10(i64 %183, i64 %185, i64 %187, ptr noundef %181, i64 noundef 1)
  br label %188

188:                                              ; preds = %180, %164
  %189 = load i32, ptr %11, align 4, !tbaa !5
  %190 = add i32 %189, 1
  store i32 %190, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  br label %191

191:                                              ; preds = %188, %99
  br label %192

192:                                              ; preds = %191, %98
  br label %193

193:                                              ; preds = %192, %70
  br label %194

194:                                              ; preds = %193
  %195 = load i32, ptr @debug, align 4, !tbaa !5
  %196 = icmp slt i32 %195, 1
  br i1 %196, label %197, label %198

197:                                              ; preds = %194
  br label %203

198:                                              ; preds = %194
  %199 = load ptr, ptr %13, align 8, !tbaa !9
  %200 = call i32 (ptr, ...) @printf(ptr noundef @.str.25, ptr noundef %199)
  %201 = load ptr, ptr @stdout, align 8, !tbaa !9
  %202 = call i32 @fflush(ptr noundef %201)
  br label %203

203:                                              ; preds = %198, %197
  br label %204

204:                                              ; preds = %203
  br label %205

205:                                              ; preds = %204
  %206 = call double @timer(ptr noundef %14)
  %207 = load i32, ptr %17, align 4, !tbaa !5
  %208 = zext i32 %207 to i64
  %209 = load ptr, ptr %22, align 8, !tbaa !9
  %210 = getelementptr inbounds %struct.r123array1x64, ptr %8, i32 0, i32 0
  %211 = load i64, ptr %210, align 8
  %212 = getelementptr inbounds { i64, i64 }, ptr %9, i32 0, i32 0
  %213 = load i64, ptr %212, align 8
  %214 = getelementptr inbounds { i64, i64 }, ptr %9, i32 0, i32 1
  %215 = load i64, ptr %214, align 8
  call void @test_philox2x64_10(i64 noundef %208, i64 %211, i64 %213, i64 %215, ptr noundef %209)
  %216 = call double @timer(ptr noundef %14)
  store double %216, ptr %19, align 8, !tbaa !11
  br label %217

217:                                              ; preds = %205
  %218 = load i32, ptr @debug, align 4, !tbaa !5
  %219 = icmp slt i32 %218, 1
  br i1 %219, label %220, label %221

220:                                              ; preds = %217
  br label %227

221:                                              ; preds = %217
  %222 = load i32, ptr %15, align 4, !tbaa !5
  %223 = load double, ptr %19, align 8, !tbaa !11
  %224 = call i32 (ptr, ...) @printf(ptr noundef @.str.26, i32 noundef %222, double noundef %223)
  %225 = load ptr, ptr @stdout, align 8, !tbaa !9
  %226 = call i32 @fflush(ptr noundef %225)
  br label %227

227:                                              ; preds = %221, %220
  br label %228

228:                                              ; preds = %227
  br label %229

229:                                              ; preds = %228
  br label %230

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

231:                                              ; preds = %256, %230
  %232 = load i32, ptr %25, align 4, !tbaa !5
  %233 = icmp ult i32 %232, 1
  br i1 %233, label %234, label %259

234:                                              ; preds = %231
  store i32 0, ptr %26, align 4, !tbaa !5
  br label %235

235:                                              ; preds = %252, %234
  %236 = load i32, ptr %26, align 4, !tbaa !5
  %237 = icmp ult i32 %236, 2
  br i1 %237, label %238, label %255

238:                                              ; preds = %235
  %239 = load i32, ptr %24, align 4, !tbaa !5
  %240 = load ptr, ptr %22, align 8, !tbaa !9
  %241 = load i32, ptr %25, align 4, !tbaa !5
  %242 = zext i32 %241 to i64
  %243 = getelementptr inbounds %struct.r123array2x64, ptr %240, i64 %242
  %244 = getelementptr inbounds %struct.r123array2x64, ptr %243, i32 0, i32 0
  %245 = load i32, ptr %26, align 4, !tbaa !5
  %246 = zext i32 %245 to i64
  %247 = getelementptr inbounds [2 x i64], ptr %244, i64 0, i64 %246
  %248 = load i64, ptr %247, align 8, !tbaa !15
  %249 = icmp eq i64 %248, 0
  %250 = zext i1 %249 to i32
  %251 = and i32 %239, %250
  store i32 %251, ptr %24, align 4, !tbaa !5
  br label %252

252:                                              ; preds = %238
  %253 = load i32, ptr %26, align 4, !tbaa !5
  %254 = add i32 %253, 1
  store i32 %254, ptr %26, align 4, !tbaa !5
  br label %235, !llvm.loop !19

255:                                              ; preds = %235
  br label %256

256:                                              ; preds = %255
  %257 = load i32, ptr %25, align 4, !tbaa !5
  %258 = add i32 %257, 1
  store i32 %258, ptr %25, align 4, !tbaa !5
  br label %231, !llvm.loop !20

259:                                              ; preds = %231
  %260 = load i32, ptr %24, align 4, !tbaa !5
  %261 = icmp ne i32 %260, 0
  br i1 %261, label %262, label %266

262:                                              ; preds = %259
  %263 = load ptr, ptr @stderr, align 8, !tbaa !9
  %264 = load ptr, ptr @progname, align 8, !tbaa !9
  %265 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %263, ptr noundef @.str.27, ptr noundef %264, i64 noundef 1, i32 noundef 2, i32 noundef 8) #6
  br label %266

266:                                              ; preds = %262, %259
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br label %267

267:                                              ; preds = %266
  br label %268

268:                                              ; preds = %267
  %269 = load i32, ptr %15, align 4, !tbaa !5
  %270 = icmp eq i32 %269, 0
  br i1 %270, label %275, label %271

271:                                              ; preds = %268
  %272 = load double, ptr %19, align 8, !tbaa !11
  %273 = load double, ptr %20, align 8, !tbaa !11
  %274 = fcmp olt double %272, %273
  br i1 %274, label %275, label %277

275:                                              ; preds = %271, %268
  %276 = load double, ptr %19, align 8, !tbaa !11
  store double %276, ptr %20, align 8, !tbaa !11
  br label %277

277:                                              ; preds = %275, %271
  br label %278

278:                                              ; preds = %277
  %279 = load i32, ptr %15, align 4, !tbaa !5
  %280 = add nsw i32 %279, 1
  store i32 %280, ptr %15, align 4, !tbaa !5
  br label %34, !llvm.loop !21

281:                                              ; preds = %34
  %282 = load i32, ptr %11, align 4, !tbaa !5
  %283 = icmp ugt i32 %282, 1
  br i1 %283, label %284, label %307

284:                                              ; preds = %281
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  %285 = load double, ptr %20, align 8, !tbaa !11
  %286 = load double, ptr %18, align 8, !tbaa !11
  %287 = fsub double %285, %286
  %288 = load i32, ptr %17, align 4, !tbaa !5
  %289 = uitofp i32 %288 to double
  %290 = fsub double %289, 1.000000e+00
  %291 = fmul double %290, 1.600000e+01
  %292 = fdiv double %287, %291
  store double %292, ptr %27, align 8, !tbaa !11
  %293 = load ptr, ptr %13, align 8, !tbaa !9
  %294 = load double, ptr %27, align 8, !tbaa !11
  %295 = load ptr, ptr %12, align 8, !tbaa !9
  %296 = getelementptr inbounds %struct.test_info, ptr %295, i32 0, i32 0
  %297 = load double, ptr %296, align 8, !tbaa !13
  %298 = fmul double %294, %297
  %299 = load double, ptr %27, align 8, !tbaa !11
  %300 = fdiv double 1.000000e-09, %299
  %301 = load i32, ptr %17, align 4, !tbaa !5
  %302 = load double, ptr %20, align 8, !tbaa !11
  %303 = load double, ptr %18, align 8, !tbaa !11
  %304 = call i32 (ptr, ...) @printf(ptr noundef @.str.28, ptr noundef %293, double noundef %298, double noundef %300, i32 noundef 16, i32 noundef %301, double noundef %302, double noundef %303)
  %305 = load ptr, ptr @stdout, align 8, !tbaa !9
  %306 = call i32 @fflush(ptr noundef %305)
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  br label %307

307:                                              ; preds = %284, %281
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 16, 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 8, 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 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  ret void
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @test_philox2x64_10(i64 noundef, 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.31 = external hidden unnamed_addr constant [14 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_philox2x64_10(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 @philox2x64_10(i64 %0, i64 %1, i64 %2, i64 %3, i64 %4, i32 noundef %5, ptr nocapture noundef readonly %6) local_unnamed_addr #2 {
  %8 = alloca %struct.r123array2x64, align 8
  %9 = alloca double, align 8
  %10 = alloca %struct.r123array2x64, align 8
  store i64 %3, ptr %8, align 8
  %11 = getelementptr inbounds i8, ptr %8, i64 8
  store i64 %4, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  %12 = load i32, ptr @numtrials, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #5
  %13 = icmp sgt i32 %12, -2
  br i1 %13, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %7
  %14 = getelementptr inbounds i8, ptr %10, i64 8
  %15 = getelementptr inbounds i8, ptr %10, i64 8
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %103
  %.0113 = phi i32 [ %.395, %103 ], [ %5, %.lr.ph.preheader ]
  %.074112 = phi i32 [ %106, %103 ], [ -2, %.lr.ph.preheader ]
  %.075111 = phi double [ %.176, %103 ], [ 0.000000e+00, %.lr.ph.preheader ]
  %.077110 = phi double [ %88, %103 ], [ 0.000000e+00, %.lr.ph.preheader ]
  %.078109 = phi double [ %.17994, %103 ], [ 0.000000e+00, %.lr.ph.preheader ]
  %.080108 = phi i32 [ %.18193, %103 ], [ 0, %.lr.ph.preheader ]
  switch i32 %.074112, label %80 [
    i32 -2, label %18
    i32 -1, label %32
    i32 0, label %.preheader98.preheader
  ]

.preheader98.preheader:                           ; preds = %.lr.ph
  %16 = load i64, ptr %8, align 8, !tbaa !9
  %17 = load i64, ptr %10, align 8, !tbaa !9
  %.not = icmp eq i64 %16, %17
  br i1 %.not, label %51, label %46

18:                                               ; preds = %.lr.ph
  %19 = icmp eq i32 %.0113, 0
  br i1 %19, label %20, label %80

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

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

32:                                               ; preds = %.lr.ph
  %33 = icmp ugt i32 %.0113, 1
  br i1 %33, label %34, label %80

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

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

46:                                               ; preds = %.preheader98.1, %.preheader98.preheader
  %.073104.lcssa.wide = phi i32 [ 0, %.preheader98.preheader ], [ 1, %.preheader98.1 ]
  %47 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.21, ptr noundef nonnull @.str.31, i32 noundef %.073104.lcssa.wide)
  call void @printline_philox2x64_10(i64 %0, i64 %1, i64 %2, ptr noundef nonnull %8, i64 noundef 1)
  %48 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.22)
  call void @printline_philox2x64_10(i64 %0, i64 %1, i64 %2, ptr noundef nonnull %10, i64 noundef 1)
  %49 = load i32, ptr @debug, align 4, !tbaa !5
  %.not83 = icmp eq i32 %49, 0
  br i1 %.not83, label %50, label %.thread96

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

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

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

.preheader98.1:                                   ; preds = %51, %54
  %58 = load i64, ptr %11, align 8, !tbaa !9
  %59 = load i64, ptr %14, align 8, !tbaa !9
  %.not.1 = icmp eq i64 %58, %59
  br i1 %.not.1, label %60, label %46

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

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

67:                                               ; preds = %63, %60
  %.pr = phi i32 [ %.pr.pre, %63 ], [ %61, %60 ]
  %68 = icmp ne i32 %.pr, 0
  %69 = load i32, ptr @verbose, align 4
  %70 = icmp ne i32 %69, 0
  %or.cond = select i1 %68, i1 true, i1 %70
  br i1 %or.cond, label %.thread96, label %78

.thread96:                                        ; preds = %46, %67
  %71 = phi i32 [ %.pr, %67 ], [ %49, %46 ]
  %72 = icmp slt i32 %71, 1
  br i1 %72, label %77, label %73

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

77:                                               ; preds = %.thread96, %73
  call void @printline_philox2x64_10(i64 %0, i64 %1, i64 %2, ptr noundef nonnull %10, i64 noundef 1)
  br label %78

78:                                               ; preds = %67, %77
  %79 = add i32 %.0113, 1
  br label %80

80:                                               ; preds = %.lr.ph, %32, %42, %18, %28, %78
  %.181.ph = phi i32 [ %.080108, %.lr.ph ], [ 1, %32 ], [ 1, %42 ], [ %.0113, %18 ], [ %25, %28 ], [ %79, %78 ]
  %.179.ph = phi double [ %.078109, %.lr.ph ], [ %.078109, %32 ], [ %.078109, %42 ], [ %.078109, %18 ], [ %.078109, %28 ], [ %.077110, %78 ]
  %.3.ph = phi i32 [ %.0113, %.lr.ph ], [ %.0113, %32 ], [ %39, %42 ], [ %.0113, %18 ], [ %25, %28 ], [ %.0113, %78 ]
  %.pr87 = load i32, ptr @debug, align 4, !tbaa !5
  %81 = icmp slt i32 %.pr87, 1
  br i1 %81, label %.thread, label %82

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

.thread:                                          ; preds = %20, %34, %80, %82
  %.395 = phi i32 [ %.3.ph, %80 ], [ %.3.ph, %82 ], [ %39, %34 ], [ %25, %20 ]
  %.17994 = phi double [ %.179.ph, %80 ], [ %.179.ph, %82 ], [ %.078109, %34 ], [ %.078109, %20 ]
  %.18193 = phi i32 [ %.181.ph, %80 ], [ %.181.ph, %82 ], [ 1, %34 ], [ %25, %20 ]
  %86 = call double @timer(ptr noundef nonnull %9)
  %87 = zext i32 %.18193 to i64
  call void @test_philox2x64_10(i64 noundef %87, i64 %0, i64 %1, i64 %2, ptr noundef nonnull %10)
  %88 = call double @timer(ptr noundef nonnull %9)
  %89 = load i32, ptr @debug, align 4, !tbaa !5
  %90 = icmp slt i32 %89, 1
  br i1 %90, label %.preheader, label %91

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

.preheader:                                       ; preds = %.thread, %91
  %95 = load i64, ptr %10, align 8, !tbaa !9
  %96 = icmp ne i64 %95, 0
  %97 = load i64, ptr %15, align 8, !tbaa !9
  %98 = icmp ne i64 %97, 0
  %narrow.not = select i1 %98, i1 true, i1 %96
  br i1 %narrow.not, label %103, label %99

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

103:                                              ; preds = %99, %.preheader
  %104 = icmp eq i32 %.074112, 0
  %105 = fcmp olt double %88, %.075111
  %or.cond85 = select i1 %104, i1 true, i1 %105
  %.176 = select i1 %or.cond85, double %88, double %.075111
  %106 = add nsw i32 %.074112, 1
  %exitcond.not = icmp eq i32 %106, %12
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !17

._crit_edge:                                      ; preds = %103, %7
  %.080.lcssa = phi i32 [ 0, %7 ], [ %.18193, %103 ]
  %.078.lcssa = phi double [ 0.000000e+00, %7 ], [ %.17994, %103 ]
  %.075.lcssa = phi double [ 0.000000e+00, %7 ], [ %.176, %103 ]
  %.0.lcssa = phi i32 [ %5, %7 ], [ %.395, %103 ]
  %107 = icmp ugt i32 %.0.lcssa, 1
  br i1 %107, label %108, label %120

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @test_philox2x64_10(i64 noundef, 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