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

; 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.r123array4x64 = type { [4 x i64] }
%struct.r123array2x64 = type { [2 x i64] }
%struct.ThreadData_philox4x64_10 = type { i32, %struct.r123array2x64, %struct.r123array4x64, ptr }
%struct.test_info = type { double, i32, ptr }
%struct.ThreadInfo = type { i32, i64 }
%struct.ThreadArg_philox4x64_10 = type { ptr, 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
@thread_info = external hidden global ptr, align 8
@.str.19 = external hidden unnamed_addr constant [36 x i8], align 1
@progname = external dso_local global ptr, align 8
@.str.20 = external hidden unnamed_addr constant [104 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [58 x i8], align 1
@thread_count = external hidden global i32, align 4
@.str.26 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [74 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 allocsize(0)
declare noalias ptr @malloc(i64 noundef) #1

; Function Attrs: nounwind willreturn memory(none)
declare ptr @__errno_location() #2

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

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

declare i32 @fflush(ptr noundef) #4

; Function Attrs: nounwind uwtable
declare dso_local void @printline_philox4x64_10(i64, i64, ptr noundef byval(%struct.r123array4x64) align 8, ptr noundef, i64 noundef) #5

; Function Attrs: nounwind
declare void @free(ptr noundef) #3

; Function Attrs: nounwind willreturn memory(none)
declare i64 @pthread_self() #2

; Function Attrs: nounwind
declare ptr @strerror(i32 noundef) #3

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #7

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

; Function Attrs: nounwind
declare i32 @pthread_create(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

declare i32 @pthread_join(i64 noundef, ptr noundef) #4

; Function Attrs: nounwind uwtable
declare dso_local ptr @thread_run_philox4x64_10(ptr noundef) #5

; Function Attrs: nounwind uwtable
define dso_local void @philox4x64_10(i64 %0, i64 %1, ptr noundef byval(%struct.r123array4x64) align 8 %2, ptr noundef byval(%struct.r123array4x64) align 8 %3, i32 noundef %4, ptr noundef %5) #5 {
  %7 = alloca %struct.r123array2x64, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca double, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca %struct.ThreadData_philox4x64_10, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i64, align 8
  %21 = alloca ptr, 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 { i64, i64 }, ptr %7, i32 0, i32 0
  store i64 %0, ptr %28, align 8
  %29 = getelementptr inbounds { i64, i64 }, ptr %7, i32 0, i32 1
  store i64 %1, ptr %29, align 8
  store i32 %4, ptr %8, align 4, !tbaa !5
  store ptr %5, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #9
  store ptr @.str.55, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #9
  %30 = load i32, ptr @numtrials, align 4, !tbaa !5
  store i32 %30, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #9
  store double 0.000000e+00, ptr %15, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #9
  store double 0.000000e+00, ptr %16, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #9
  store double 0.000000e+00, ptr %17, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 64, ptr %18) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #9
  %31 = call i64 @pthread_self() #10
  store i64 %31, ptr %20, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #9
  br label %32

32:                                               ; preds = %6
  %33 = load ptr, ptr %9, align 8, !tbaa !9
  %34 = getelementptr inbounds %struct.test_info, ptr %33, i32 0, i32 1
  %35 = load i32, ptr %34, align 8, !tbaa !15
  %36 = sext i32 %35 to i64
  %37 = mul i64 16, %36
  %38 = call noalias ptr @malloc(i64 noundef %37) #11
  store ptr %38, ptr @thread_info, align 8, !tbaa !9
  %39 = icmp ne ptr %38, null
  br i1 %39, label %40, label %41

40:                                               ; preds = %32
  br label %48

41:                                               ; preds = %32
  %42 = load ptr, ptr @stderr, align 8, !tbaa !9
  %43 = load ptr, ptr @progname, align 8, !tbaa !9
  %44 = call ptr @__errno_location() #10
  %45 = load i32, ptr %44, align 4, !tbaa !5
  %46 = call ptr @strerror(i32 noundef %45) #9
  %47 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef @.str.19, ptr noundef %43, ptr noundef @.str.20, i32 noundef 60, ptr noundef @.str.21, ptr noundef @.str.22, ptr noundef %46) #9
  call void @exit(i32 noundef 1) #12
  unreachable

48:                                               ; preds = %40
  br label %49

49:                                               ; preds = %48
  br label %50

50:                                               ; preds = %49
  br label %51

51:                                               ; preds = %50
  %52 = load ptr, ptr %9, align 8, !tbaa !9
  %53 = getelementptr inbounds %struct.test_info, ptr %52, i32 0, i32 1
  %54 = load i32, ptr %53, align 8, !tbaa !15
  %55 = sext i32 %54 to i64
  %56 = mul i64 16, %55
  %57 = call noalias ptr @malloc(i64 noundef %56) #11
  store ptr %57, ptr %19, align 8, !tbaa !9
  %58 = icmp ne ptr %57, null
  br i1 %58, label %59, label %60

59:                                               ; preds = %51
  br label %67

60:                                               ; preds = %51
  %61 = load ptr, ptr @stderr, align 8, !tbaa !9
  %62 = load ptr, ptr @progname, align 8, !tbaa !9
  %63 = call ptr @__errno_location() #10
  %64 = load i32, ptr %63, align 4, !tbaa !5
  %65 = call ptr @strerror(i32 noundef %64) #9
  %66 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %61, ptr noundef @.str.19, ptr noundef %62, ptr noundef @.str.20, i32 noundef 60, ptr noundef @.str.56, ptr noundef @.str.22, ptr noundef %65) #9
  call void @exit(i32 noundef 1) #12
  unreachable

67:                                               ; preds = %59
  br label %68

68:                                               ; preds = %67
  br label %69

69:                                               ; preds = %68
  br label %70

70:                                               ; preds = %69
  %71 = load ptr, ptr %9, align 8, !tbaa !9
  %72 = getelementptr inbounds %struct.test_info, ptr %71, i32 0, i32 1
  %73 = load i32, ptr %72, align 8, !tbaa !15
  %74 = sext i32 %73 to i64
  %75 = mul i64 8, %74
  %76 = call noalias ptr @malloc(i64 noundef %75) #11
  store ptr %76, ptr %21, align 8, !tbaa !9
  %77 = icmp ne ptr %76, null
  br i1 %77, label %78, label %79

78:                                               ; preds = %70
  br label %86

79:                                               ; preds = %70
  %80 = load ptr, ptr @stderr, align 8, !tbaa !9
  %81 = load ptr, ptr @progname, align 8, !tbaa !9
  %82 = call ptr @__errno_location() #10
  %83 = load i32, ptr %82, align 4, !tbaa !5
  %84 = call ptr @strerror(i32 noundef %83) #9
  %85 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %80, ptr noundef @.str.19, ptr noundef %81, ptr noundef @.str.20, i32 noundef 60, ptr noundef @.str.24, ptr noundef @.str.22, ptr noundef %84) #9
  call void @exit(i32 noundef 1) #12
  unreachable

86:                                               ; preds = %78
  br label %87

87:                                               ; preds = %86
  br label %88

88:                                               ; preds = %87
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %89

89:                                               ; preds = %121, %88
  %90 = load i32, ptr %12, align 4, !tbaa !5
  %91 = load ptr, ptr %9, align 8, !tbaa !9
  %92 = getelementptr inbounds %struct.test_info, ptr %91, i32 0, i32 1
  %93 = load i32, ptr %92, align 8, !tbaa !15
  %94 = icmp slt i32 %90, %93
  br i1 %94, label %95, label %124

95:                                               ; preds = %89
  %96 = load ptr, ptr @thread_info, align 8, !tbaa !9
  %97 = load i32, ptr %12, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds %struct.ThreadInfo, ptr %96, i64 %98
  %100 = getelementptr inbounds %struct.ThreadInfo, ptr %99, i32 0, i32 0
  store volatile i32 0, ptr %100, align 8, !tbaa !17
  %101 = load i64, ptr %20, align 8, !tbaa !13
  %102 = load ptr, ptr @thread_info, align 8, !tbaa !9
  %103 = load i32, ptr %12, align 4, !tbaa !5
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds %struct.ThreadInfo, ptr %102, i64 %104
  %106 = getelementptr inbounds %struct.ThreadInfo, ptr %105, i32 0, i32 1
  store volatile i64 %101, ptr %106, align 8, !tbaa !19
  %107 = load ptr, ptr @thread_info, align 8, !tbaa !9
  %108 = load i32, ptr %12, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds %struct.ThreadInfo, ptr %107, i64 %109
  %111 = load ptr, ptr %19, align 8, !tbaa !9
  %112 = load i32, ptr %12, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds %struct.ThreadArg_philox4x64_10, ptr %111, i64 %113
  %115 = getelementptr inbounds %struct.ThreadArg_philox4x64_10, ptr %114, i32 0, i32 1
  store ptr %110, ptr %115, align 8, !tbaa !20
  %116 = load ptr, ptr %19, align 8, !tbaa !9
  %117 = load i32, ptr %12, align 4, !tbaa !5
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds %struct.ThreadArg_philox4x64_10, ptr %116, i64 %118
  %120 = getelementptr inbounds %struct.ThreadArg_philox4x64_10, ptr %119, i32 0, i32 0
  store ptr %18, ptr %120, align 8, !tbaa !22
  br label %121

121:                                              ; preds = %95
  %122 = load i32, ptr %12, align 4, !tbaa !5
  %123 = add nsw i32 %122, 1
  store i32 %123, ptr %12, align 4, !tbaa !5
  br label %89, !llvm.loop !23

124:                                              ; preds = %89
  %125 = load ptr, ptr %9, align 8, !tbaa !9
  %126 = getelementptr inbounds %struct.test_info, ptr %125, i32 0, i32 1
  %127 = load i32, ptr %126, align 8, !tbaa !15
  store i32 %127, ptr @thread_count, align 4, !tbaa !5
  br label %128

128:                                              ; preds = %124
  %129 = load ptr, ptr %9, align 8, !tbaa !9
  %130 = getelementptr inbounds %struct.test_info, ptr %129, i32 0, i32 1
  %131 = load i32, ptr %130, align 8, !tbaa !15
  %132 = sext i32 %131 to i64
  %133 = mul i64 32, %132
  %134 = call noalias ptr @malloc(i64 noundef %133) #11
  %135 = getelementptr inbounds %struct.ThreadData_philox4x64_10, ptr %18, i32 0, i32 3
  store ptr %134, ptr %135, align 8, !tbaa !25
  %136 = icmp ne ptr %134, null
  br i1 %136, label %137, label %138

137:                                              ; preds = %128
  br label %145

138:                                              ; preds = %128
  %139 = load ptr, ptr @stderr, align 8, !tbaa !9
  %140 = load ptr, ptr @progname, align 8, !tbaa !9
  %141 = call ptr @__errno_location() #10
  %142 = load i32, ptr %141, align 4, !tbaa !5
  %143 = call ptr @strerror(i32 noundef %142) #9
  %144 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %139, ptr noundef @.str.19, ptr noundef %140, ptr noundef @.str.20, i32 noundef 60, ptr noundef @.str.53, ptr noundef @.str.22, ptr noundef %143) #9
  call void @exit(i32 noundef 1) #12
  unreachable

145:                                              ; preds = %137
  br label %146

146:                                              ; preds = %145
  br label %147

147:                                              ; preds = %146
  %148 = getelementptr inbounds %struct.ThreadData_philox4x64_10, ptr %18, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %148, ptr align 8 %7, i64 16, i1 false), !tbaa.struct !29
  %149 = getelementptr inbounds %struct.ThreadData_philox4x64_10, ptr %18, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %149, ptr align 8 %2, i64 32, i1 false), !tbaa.struct !31
  %150 = getelementptr inbounds %struct.ThreadData_philox4x64_10, ptr %18, i32 0, i32 0
  store i32 0, ptr %150, align 8, !tbaa !32
  store i32 -2, ptr %13, align 4, !tbaa !5
  br label %151

151:                                              ; preds = %480, %147
  %152 = load i32, ptr %13, align 4, !tbaa !5
  %153 = load i32, ptr %14, align 4, !tbaa !5
  %154 = icmp slt i32 %152, %153
  br i1 %154, label %155, label %483

155:                                              ; preds = %151
  %156 = load i32, ptr %13, align 4, !tbaa !5
  %157 = icmp eq i32 %156, -2
  br i1 %157, label %158, label %190

158:                                              ; preds = %155
  %159 = load i32, ptr %8, align 4, !tbaa !5
  %160 = icmp eq i32 %159, 0
  br i1 %160, label %161, label %187

161:                                              ; preds = %158
  %162 = load ptr, ptr %9, align 8, !tbaa !9
  %163 = getelementptr inbounds %struct.test_info, ptr %162, i32 0, i32 0
  %164 = load double, ptr %163, align 8, !tbaa !33
  %165 = fcmp une double %164, 0.000000e+00
  br i1 %165, label %166, label %171

166:                                              ; preds = %161
  %167 = load ptr, ptr %9, align 8, !tbaa !9
  %168 = getelementptr inbounds %struct.test_info, ptr %167, i32 0, i32 0
  %169 = load double, ptr %168, align 8, !tbaa !33
  %170 = fmul double %169, 1.000000e-03
  br label %172

171:                                              ; preds = %161
  br label %172

172:                                              ; preds = %171, %166
  %173 = phi double [ %170, %166 ], [ 1.000000e+05, %171 ]
  %174 = fptoui double %173 to i32
  store i32 %174, ptr %8, align 4, !tbaa !5
  br label %175

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

178:                                              ; preds = %175
  br label %184

179:                                              ; preds = %175
  %180 = load i32, ptr %8, align 4, !tbaa !5
  %181 = call i32 (ptr, ...) @printf(ptr noundef @.str.26, i32 noundef %180)
  %182 = load ptr, ptr @stdout, align 8, !tbaa !9
  %183 = call i32 @fflush(ptr noundef %182)
  br label %184

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

185:                                              ; preds = %184
  br label %186

186:                                              ; preds = %185
  br label %187

187:                                              ; preds = %186, %158
  %188 = load i32, ptr %8, align 4, !tbaa !5
  %189 = getelementptr inbounds %struct.ThreadData_philox4x64_10, ptr %18, i32 0, i32 0
  store i32 %188, ptr %189, align 8, !tbaa !32
  br label %311

190:                                              ; preds = %155
  %191 = load i32, ptr %13, align 4, !tbaa !5
  %192 = icmp eq i32 %191, -1
  br i1 %192, label %193, label %218

193:                                              ; preds = %190
  %194 = load i32, ptr %8, align 4, !tbaa !5
  %195 = icmp ugt i32 %194, 1
  br i1 %195, label %196, label %216

196:                                              ; preds = %193
  %197 = load i32, ptr %8, align 4, !tbaa !5
  %198 = uitofp i32 %197 to double
  %199 = load double, ptr @sec_per_trial, align 8, !tbaa !11
  %200 = fmul double %198, %199
  %201 = load double, ptr %16, align 8, !tbaa !11
  %202 = fdiv double %200, %201
  %203 = fptoui double %202 to i32
  store i32 %203, ptr %8, align 4, !tbaa !5
  br label %204

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

207:                                              ; preds = %204
  br label %213

208:                                              ; preds = %204
  %209 = load i32, ptr %8, align 4, !tbaa !5
  %210 = call i32 (ptr, ...) @printf(ptr noundef @.str.27, i32 noundef %209)
  %211 = load ptr, ptr @stdout, align 8, !tbaa !9
  %212 = call i32 @fflush(ptr noundef %211)
  br label %213

213:                                              ; preds = %208, %207
  br label %214

214:                                              ; preds = %213
  br label %215

215:                                              ; preds = %214
  br label %216

216:                                              ; preds = %215, %193
  %217 = getelementptr inbounds %struct.ThreadData_philox4x64_10, ptr %18, i32 0, i32 0
  store i32 1, ptr %217, align 8, !tbaa !32
  br label %310

218:                                              ; preds = %190
  %219 = load i32, ptr %13, align 4, !tbaa !5
  %220 = icmp eq i32 %219, 0
  br i1 %220, label %221, label %309

221:                                              ; preds = %218
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #9
  store i32 0, ptr %23, align 4, !tbaa !5
  br label %222

222:                                              ; preds = %274, %221
  %223 = load i32, ptr %23, align 4, !tbaa !5
  %224 = icmp slt i32 %223, 4
  br i1 %224, label %225, label %277

225:                                              ; preds = %222
  %226 = getelementptr inbounds %struct.r123array4x64, ptr %3, i32 0, i32 0
  %227 = load i32, ptr %23, align 4, !tbaa !5
  %228 = sext i32 %227 to i64
  %229 = getelementptr inbounds [4 x i64], ptr %226, i64 0, i64 %228
  %230 = load i64, ptr %229, align 8, !tbaa !13
  %231 = getelementptr inbounds %struct.ThreadData_philox4x64_10, ptr %18, i32 0, i32 3
  %232 = load ptr, ptr %231, align 8, !tbaa !25
  %233 = getelementptr inbounds %struct.r123array4x64, ptr %232, i64 0
  %234 = getelementptr inbounds %struct.r123array4x64, ptr %233, i32 0, i32 0
  %235 = load i32, ptr %23, align 4, !tbaa !5
  %236 = sext i32 %235 to i64
  %237 = getelementptr inbounds [4 x i64], ptr %234, i64 0, i64 %236
  %238 = load i64, ptr %237, align 8, !tbaa !13
  %239 = icmp ne i64 %230, %238
  br i1 %239, label %240, label %259

240:                                              ; preds = %225
  %241 = load ptr, ptr %10, align 8, !tbaa !9
  %242 = load i32, ptr %23, align 4, !tbaa !5
  %243 = call i32 (ptr, ...) @printf(ptr noundef @.str.28, ptr noundef %241, i32 noundef %242)
  %244 = getelementptr inbounds { i64, i64 }, ptr %7, i32 0, i32 0
  %245 = load i64, ptr %244, align 8
  %246 = getelementptr inbounds { i64, i64 }, ptr %7, i32 0, i32 1
  %247 = load i64, ptr %246, align 8
  call void @printline_philox4x64_10(i64 %245, i64 %247, ptr noundef byval(%struct.r123array4x64) align 8 %2, ptr noundef %3, i64 noundef 1)
  %248 = call i32 (ptr, ...) @printf(ptr noundef @.str.29)
  %249 = getelementptr inbounds %struct.ThreadData_philox4x64_10, ptr %18, i32 0, i32 3
  %250 = load ptr, ptr %249, align 8, !tbaa !25
  %251 = getelementptr inbounds { i64, i64 }, ptr %7, i32 0, i32 0
  %252 = load i64, ptr %251, align 8
  %253 = getelementptr inbounds { i64, i64 }, ptr %7, i32 0, i32 1
  %254 = load i64, ptr %253, align 8
  call void @printline_philox4x64_10(i64 %252, i64 %254, ptr noundef byval(%struct.r123array4x64) align 8 %2, ptr noundef %250, i64 noundef 1)
  %255 = load i32, ptr @debug, align 4, !tbaa !5
  %256 = icmp ne i32 %255, 0
  br i1 %256, label %258, label %257

257:                                              ; preds = %240
  call void @exit(i32 noundef 1) #12
  unreachable

258:                                              ; preds = %240
  br label %277

259:                                              ; preds = %225
  br label %260

260:                                              ; preds = %259
  %261 = load i32, ptr @debug, align 4, !tbaa !5
  %262 = icmp slt i32 %261, 1
  br i1 %262, label %263, label %264

263:                                              ; preds = %260
  br label %270

264:                                              ; preds = %260
  %265 = load ptr, ptr %10, align 8, !tbaa !9
  %266 = load i32, ptr %23, align 4, !tbaa !5
  %267 = call i32 (ptr, ...) @printf(ptr noundef @.str.30, ptr noundef %265, i32 noundef %266)
  %268 = load ptr, ptr @stdout, align 8, !tbaa !9
  %269 = call i32 @fflush(ptr noundef %268)
  br label %270

270:                                              ; preds = %264, %263
  br label %271

271:                                              ; preds = %270
  br label %272

272:                                              ; preds = %271
  br label %273

273:                                              ; preds = %272
  br label %274

274:                                              ; preds = %273
  %275 = load i32, ptr %23, align 4, !tbaa !5
  %276 = add nsw i32 %275, 1
  store i32 %276, ptr %23, align 4, !tbaa !5
  br label %222, !llvm.loop !34

277:                                              ; preds = %258, %222
  %278 = load double, ptr %16, align 8, !tbaa !11
  store double %278, ptr %15, align 8, !tbaa !11
  %279 = load i32, ptr @verbose, align 4, !tbaa !5
  %280 = icmp ne i32 %279, 0
  br i1 %280, label %281, label %305

281:                                              ; preds = %277
  br label %282

282:                                              ; preds = %281
  %283 = load i32, ptr @debug, align 4, !tbaa !5
  %284 = icmp slt i32 %283, 1
  br i1 %284, label %285, label %286

285:                                              ; preds = %282
  br label %292

286:                                              ; preds = %282
  %287 = load ptr, ptr %10, align 8, !tbaa !9
  %288 = load double, ptr %15, align 8, !tbaa !11
  %289 = call i32 (ptr, ...) @printf(ptr noundef @.str.31, ptr noundef %287, double noundef %288)
  %290 = load ptr, ptr @stdout, align 8, !tbaa !9
  %291 = call i32 @fflush(ptr noundef %290)
  br label %292

292:                                              ; preds = %286, %285
  br label %293

293:                                              ; preds = %292
  br label %294

294:                                              ; preds = %293
  %295 = getelementptr inbounds %struct.ThreadData_philox4x64_10, ptr %18, i32 0, i32 3
  %296 = load ptr, ptr %295, align 8, !tbaa !25
  %297 = load ptr, ptr %9, align 8, !tbaa !9
  %298 = getelementptr inbounds %struct.test_info, ptr %297, i32 0, i32 1
  %299 = load i32, ptr %298, align 8, !tbaa !15
  %300 = sext i32 %299 to i64
  %301 = getelementptr inbounds { i64, i64 }, ptr %7, i32 0, i32 0
  %302 = load i64, ptr %301, align 8
  %303 = getelementptr inbounds { i64, i64 }, ptr %7, i32 0, i32 1
  %304 = load i64, ptr %303, align 8
  call void @printline_philox4x64_10(i64 %302, i64 %304, ptr noundef byval(%struct.r123array4x64) align 8 %2, ptr noundef %296, i64 noundef %300)
  br label %305

305:                                              ; preds = %294, %277
  %306 = load i32, ptr %8, align 4, !tbaa !5
  %307 = add i32 %306, 1
  %308 = getelementptr inbounds %struct.ThreadData_philox4x64_10, ptr %18, i32 0, i32 0
  store i32 %307, ptr %308, align 8, !tbaa !32
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #9
  br label %309

309:                                              ; preds = %305, %218
  br label %310

310:                                              ; preds = %309, %216
  br label %311

311:                                              ; preds = %310, %187
  br label %312

312:                                              ; preds = %311
  %313 = load i32, ptr @debug, align 4, !tbaa !5
  %314 = icmp slt i32 %313, 1
  br i1 %314, label %315, label %316

315:                                              ; preds = %312
  br label %321

316:                                              ; preds = %312
  %317 = load ptr, ptr %10, align 8, !tbaa !9
  %318 = call i32 (ptr, ...) @printf(ptr noundef @.str.32, ptr noundef %317)
  %319 = load ptr, ptr @stdout, align 8, !tbaa !9
  %320 = call i32 @fflush(ptr noundef %319)
  br label %321

321:                                              ; preds = %316, %315
  br label %322

322:                                              ; preds = %321
  br label %323

323:                                              ; preds = %322
  %324 = call double @timer(ptr noundef %11)
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %325

325:                                              ; preds = %366, %323
  %326 = load i32, ptr %12, align 4, !tbaa !5
  %327 = load ptr, ptr %9, align 8, !tbaa !9
  %328 = getelementptr inbounds %struct.test_info, ptr %327, i32 0, i32 1
  %329 = load i32, ptr %328, align 8, !tbaa !15
  %330 = icmp slt i32 %326, %329
  br i1 %330, label %331, label %369

331:                                              ; preds = %325
  br label %332

332:                                              ; preds = %331
  %333 = load ptr, ptr %21, align 8, !tbaa !9
  %334 = load i32, ptr %12, align 4, !tbaa !5
  %335 = sext i32 %334 to i64
  %336 = getelementptr inbounds i64, ptr %333, i64 %335
  %337 = load ptr, ptr %19, align 8, !tbaa !9
  %338 = load i32, ptr %12, align 4, !tbaa !5
  %339 = sext i32 %338 to i64
  %340 = getelementptr inbounds %struct.ThreadArg_philox4x64_10, ptr %337, i64 %339
  %341 = call i32 @pthread_create(ptr noundef %336, ptr noundef null, ptr noundef @thread_run_philox4x64_10, ptr noundef %340) #9
  %342 = icmp eq i32 %341, 0
  br i1 %342, label %343, label %344

343:                                              ; preds = %332
  br label %351

344:                                              ; preds = %332
  %345 = load ptr, ptr @stderr, align 8, !tbaa !9
  %346 = load ptr, ptr @progname, align 8, !tbaa !9
  %347 = call ptr @__errno_location() #10
  %348 = load i32, ptr %347, align 4, !tbaa !5
  %349 = call ptr @strerror(i32 noundef %348) #9
  %350 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %345, ptr noundef @.str.33, ptr noundef %346, ptr noundef @.str.20, i32 noundef 60, ptr noundef @.str.57, ptr noundef @.str.22, ptr noundef %349) #9
  call void @exit(i32 noundef 1) #12
  unreachable

351:                                              ; preds = %343
  br label %352

352:                                              ; preds = %351
  br label %353

353:                                              ; preds = %352
  br label %354

354:                                              ; preds = %353
  %355 = load i32, ptr @debug, align 4, !tbaa !5
  %356 = icmp slt i32 %355, 1
  br i1 %356, label %357, label %358

357:                                              ; preds = %354
  br label %363

358:                                              ; preds = %354
  %359 = load i32, ptr %12, align 4, !tbaa !5
  %360 = call i32 (ptr, ...) @printf(ptr noundef @.str.35, i32 noundef %359)
  %361 = load ptr, ptr @stdout, align 8, !tbaa !9
  %362 = call i32 @fflush(ptr noundef %361)
  br label %363

363:                                              ; preds = %358, %357
  br label %364

364:                                              ; preds = %363
  br label %365

365:                                              ; preds = %364
  br label %366

366:                                              ; preds = %365
  %367 = load i32, ptr %12, align 4, !tbaa !5
  %368 = add nsw i32 %367, 1
  store i32 %368, ptr %12, align 4, !tbaa !5
  br label %325, !llvm.loop !35

369:                                              ; preds = %325
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %370

370:                                              ; preds = %406, %369
  %371 = load i32, ptr %12, align 4, !tbaa !5
  %372 = load i32, ptr @thread_count, align 4, !tbaa !5
  %373 = icmp slt i32 %371, %372
  br i1 %373, label %374, label %409

374:                                              ; preds = %370
  br label %375

375:                                              ; preds = %374
  %376 = load ptr, ptr %21, align 8, !tbaa !9
  %377 = load i32, ptr %12, align 4, !tbaa !5
  %378 = sext i32 %377 to i64
  %379 = getelementptr inbounds i64, ptr %376, i64 %378
  %380 = load i64, ptr %379, align 8, !tbaa !13
  %381 = call i32 @pthread_join(i64 noundef %380, ptr noundef %22)
  %382 = icmp eq i32 %381, 0
  br i1 %382, label %383, label %384

383:                                              ; preds = %375
  br label %391

384:                                              ; preds = %375
  %385 = load ptr, ptr @stderr, align 8, !tbaa !9
  %386 = load ptr, ptr @progname, align 8, !tbaa !9
  %387 = call ptr @__errno_location() #10
  %388 = load i32, ptr %387, align 4, !tbaa !5
  %389 = call ptr @strerror(i32 noundef %388) #9
  %390 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %385, ptr noundef @.str.33, ptr noundef %386, ptr noundef @.str.20, i32 noundef 60, ptr noundef @.str.36, ptr noundef @.str.22, ptr noundef %389) #9
  call void @exit(i32 noundef 1) #12
  unreachable

391:                                              ; preds = %383
  br label %392

392:                                              ; preds = %391
  br label %393

393:                                              ; preds = %392
  br label %394

394:                                              ; preds = %393
  %395 = load i32, ptr @debug, align 4, !tbaa !5
  %396 = icmp slt i32 %395, 1
  br i1 %396, label %397, label %398

397:                                              ; preds = %394
  br label %403

398:                                              ; preds = %394
  %399 = load i32, ptr %12, align 4, !tbaa !5
  %400 = call i32 (ptr, ...) @printf(ptr noundef @.str.37, i32 noundef %399)
  %401 = load ptr, ptr @stdout, align 8, !tbaa !9
  %402 = call i32 @fflush(ptr noundef %401)
  br label %403

403:                                              ; preds = %398, %397
  br label %404

404:                                              ; preds = %403
  br label %405

405:                                              ; preds = %404
  br label %406

406:                                              ; preds = %405
  %407 = load i32, ptr %12, align 4, !tbaa !5
  %408 = add nsw i32 %407, 1
  store i32 %408, ptr %12, align 4, !tbaa !5
  br label %370, !llvm.loop !36

409:                                              ; preds = %370
  %410 = call double @timer(ptr noundef %11)
  store double %410, ptr %16, align 8, !tbaa !11
  br label %411

411:                                              ; preds = %409
  %412 = load i32, ptr @debug, align 4, !tbaa !5
  %413 = icmp slt i32 %412, 1
  br i1 %413, label %414, label %415

414:                                              ; preds = %411
  br label %421

415:                                              ; preds = %411
  %416 = load i32, ptr %13, align 4, !tbaa !5
  %417 = load double, ptr %16, align 8, !tbaa !11
  %418 = call i32 (ptr, ...) @printf(ptr noundef @.str.38, i32 noundef %416, double noundef %417)
  %419 = load ptr, ptr @stdout, align 8, !tbaa !9
  %420 = call i32 @fflush(ptr noundef %419)
  br label %421

421:                                              ; preds = %415, %414
  br label %422

422:                                              ; preds = %421
  br label %423

423:                                              ; preds = %422
  br label %424

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

425:                                              ; preds = %454, %424
  %426 = load i32, ptr %25, align 4, !tbaa !5
  %427 = load ptr, ptr %9, align 8, !tbaa !9
  %428 = getelementptr inbounds %struct.test_info, ptr %427, i32 0, i32 1
  %429 = load i32, ptr %428, align 8, !tbaa !15
  %430 = icmp ult i32 %426, %429
  br i1 %430, label %431, label %457

431:                                              ; preds = %425
  store i32 0, ptr %26, align 4, !tbaa !5
  br label %432

432:                                              ; preds = %450, %431
  %433 = load i32, ptr %26, align 4, !tbaa !5
  %434 = icmp ult i32 %433, 4
  br i1 %434, label %435, label %453

435:                                              ; preds = %432
  %436 = load i32, ptr %24, align 4, !tbaa !5
  %437 = getelementptr inbounds %struct.ThreadData_philox4x64_10, ptr %18, i32 0, i32 3
  %438 = load ptr, ptr %437, align 8, !tbaa !25
  %439 = load i32, ptr %25, align 4, !tbaa !5
  %440 = zext i32 %439 to i64
  %441 = getelementptr inbounds %struct.r123array4x64, ptr %438, i64 %440
  %442 = getelementptr inbounds %struct.r123array4x64, ptr %441, i32 0, i32 0
  %443 = load i32, ptr %26, align 4, !tbaa !5
  %444 = zext i32 %443 to i64
  %445 = getelementptr inbounds [4 x i64], ptr %442, i64 0, i64 %444
  %446 = load i64, ptr %445, align 8, !tbaa !13
  %447 = icmp eq i64 %446, 0
  %448 = zext i1 %447 to i32
  %449 = and i32 %436, %448
  store i32 %449, ptr %24, align 4, !tbaa !5
  br label %450

450:                                              ; preds = %435
  %451 = load i32, ptr %26, align 4, !tbaa !5
  %452 = add i32 %451, 1
  store i32 %452, ptr %26, align 4, !tbaa !5
  br label %432, !llvm.loop !37

453:                                              ; preds = %432
  br label %454

454:                                              ; preds = %453
  %455 = load i32, ptr %25, align 4, !tbaa !5
  %456 = add i32 %455, 1
  store i32 %456, ptr %25, align 4, !tbaa !5
  br label %425, !llvm.loop !38

457:                                              ; preds = %425
  %458 = load i32, ptr %24, align 4, !tbaa !5
  %459 = icmp ne i32 %458, 0
  br i1 %459, label %460, label %468

460:                                              ; preds = %457
  %461 = load ptr, ptr @stderr, align 8, !tbaa !9
  %462 = load ptr, ptr @progname, align 8, !tbaa !9
  %463 = load ptr, ptr %9, align 8, !tbaa !9
  %464 = getelementptr inbounds %struct.test_info, ptr %463, i32 0, i32 1
  %465 = load i32, ptr %464, align 8, !tbaa !15
  %466 = sext i32 %465 to i64
  %467 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %461, ptr noundef @.str.39, ptr noundef %462, i64 noundef %466, i32 noundef 4, i32 noundef 8) #9
  br label %468

468:                                              ; preds = %460, %457
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #9
  br label %469

469:                                              ; preds = %468
  br label %470

470:                                              ; preds = %469
  %471 = load i32, ptr %13, align 4, !tbaa !5
  %472 = icmp eq i32 %471, 0
  br i1 %472, label %477, label %473

473:                                              ; preds = %470
  %474 = load double, ptr %16, align 8, !tbaa !11
  %475 = load double, ptr %17, align 8, !tbaa !11
  %476 = fcmp olt double %474, %475
  br i1 %476, label %477, label %479

477:                                              ; preds = %473, %470
  %478 = load double, ptr %16, align 8, !tbaa !11
  store double %478, ptr %17, align 8, !tbaa !11
  br label %479

479:                                              ; preds = %477, %473
  br label %480

480:                                              ; preds = %479
  %481 = load i32, ptr %13, align 4, !tbaa !5
  %482 = add nsw i32 %481, 1
  store i32 %482, ptr %13, align 4, !tbaa !5
  br label %151, !llvm.loop !39

483:                                              ; preds = %151
  %484 = load i32, ptr %8, align 4, !tbaa !5
  %485 = icmp ugt i32 %484, 1
  br i1 %485, label %486, label %521

486:                                              ; preds = %483
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #9
  %487 = load double, ptr %17, align 8, !tbaa !11
  %488 = load double, ptr %15, align 8, !tbaa !11
  %489 = fsub double %487, %488
  %490 = getelementptr inbounds %struct.ThreadData_philox4x64_10, ptr %18, i32 0, i32 0
  %491 = load i32, ptr %490, align 8, !tbaa !32
  %492 = uitofp i32 %491 to double
  %493 = fsub double %492, 1.000000e+00
  %494 = load ptr, ptr %9, align 8, !tbaa !9
  %495 = getelementptr inbounds %struct.test_info, ptr %494, i32 0, i32 1
  %496 = load i32, ptr %495, align 8, !tbaa !15
  %497 = sitofp i32 %496 to double
  %498 = fmul double %493, %497
  %499 = fmul double %498, 3.200000e+01
  %500 = fdiv double %489, %499
  store double %500, ptr %27, align 8, !tbaa !11
  %501 = load ptr, ptr %10, align 8, !tbaa !9
  %502 = load double, ptr %27, align 8, !tbaa !11
  %503 = load ptr, ptr %9, align 8, !tbaa !9
  %504 = getelementptr inbounds %struct.test_info, ptr %503, i32 0, i32 0
  %505 = load double, ptr %504, align 8, !tbaa !33
  %506 = fmul double %502, %505
  %507 = load ptr, ptr %9, align 8, !tbaa !9
  %508 = getelementptr inbounds %struct.test_info, ptr %507, i32 0, i32 1
  %509 = load i32, ptr %508, align 8, !tbaa !15
  %510 = sitofp i32 %509 to double
  %511 = fmul double %506, %510
  %512 = load double, ptr %27, align 8, !tbaa !11
  %513 = fdiv double 1.000000e-09, %512
  %514 = getelementptr inbounds %struct.ThreadData_philox4x64_10, ptr %18, i32 0, i32 0
  %515 = load i32, ptr %514, align 8, !tbaa !32
  %516 = load double, ptr %17, align 8, !tbaa !11
  %517 = load double, ptr %15, align 8, !tbaa !11
  %518 = call i32 (ptr, ...) @printf(ptr noundef @.str.40, ptr noundef %501, double noundef %511, double noundef %513, i32 noundef 32, i32 noundef %515, double noundef %516, double noundef %517)
  %519 = load ptr, ptr @stdout, align 8, !tbaa !9
  %520 = call i32 @fflush(ptr noundef %519)
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #9
  br label %521

521:                                              ; preds = %486, %483
  store i32 0, ptr @thread_count, align 4, !tbaa !5
  %522 = load ptr, ptr @thread_info, align 8, !tbaa !9
  call void @free(ptr noundef %522) #9
  store ptr null, ptr @thread_info, align 8, !tbaa !9
  %523 = getelementptr inbounds %struct.ThreadData_philox4x64_10, ptr %18, i32 0, i32 3
  %524 = load ptr, ptr %523, align 8, !tbaa !25
  call void @free(ptr noundef %524) #9
  %525 = load ptr, ptr %19, align 8, !tbaa !9
  call void @free(ptr noundef %525) #9
  %526 = load ptr, ptr %21, align 8, !tbaa !9
  call void @free(ptr noundef %526) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind allocsize(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 = { nounwind willreturn memory(none) "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 "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 = { "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 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 = { 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 #7 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #8 = { 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 #9 = { nounwind }
attributes #10 = { nounwind willreturn memory(none) }
attributes #11 = { nounwind allocsize(0) }
attributes #12 = { 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, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!16, !6, i64 8}
!16 = !{!"test_info", !12, i64 0, !6, i64 8, !10, i64 16}
!17 = !{!18, !6, i64 0}
!18 = !{!"", !6, i64 0, !14, i64 8}
!19 = !{!18, !14, i64 8}
!20 = !{!21, !10, i64 8}
!21 = !{!"", !10, i64 0, !10, i64 8}
!22 = !{!21, !10, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!26, !10, i64 56}
!26 = !{!"", !6, i64 0, !27, i64 8, !28, i64 24, !10, i64 56}
!27 = !{!"r123array2x64", !7, i64 0}
!28 = !{!"r123array4x64", !7, i64 0}
!29 = !{i64 0, i64 16, !30}
!30 = !{!7, !7, i64 0}
!31 = !{i64 0, i64 32, !30}
!32 = !{!26, !6, i64 0}
!33 = !{!16, !12, i64 0}
!34 = distinct !{!34, !24}
!35 = distinct !{!35, !24}
!36 = distinct !{!36, !24}
!37 = distinct !{!37, !24}
!38 = distinct !{!38, !24}
!39 = distinct !{!39, !24}


; 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.r123array4x64 = type { [4 x i64] }
%struct.ThreadData_philox4x64_10 = type { i32, %struct.r123array2x64, %struct.r123array4x64, ptr }
%struct.r123array2x64 = type { [2 x i64] }
%struct.ThreadInfo = type { i32, i64 }
%struct.ThreadArg_philox4x64_10 = type { ptr, ptr }

@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
@thread_info = external hidden local_unnamed_addr global ptr, align 8
@.str.19 = external hidden unnamed_addr constant [36 x i8], align 1
@progname = external dso_local local_unnamed_addr global ptr, align 8
@.str.20 = external hidden unnamed_addr constant [104 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [58 x i8], align 1
@thread_count = external hidden local_unnamed_addr global i32, align 4
@.str.26 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [74 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: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__errno_location() local_unnamed_addr #2

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @printline_philox4x64_10(i64, i64, ptr noundef byval(%struct.r123array4x64) align 8, ptr noundef, i64 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare i64 @pthread_self() local_unnamed_addr #2

; Function Attrs: nounwind
declare ptr @strerror(i32 noundef) local_unnamed_addr #6

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #8

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

; Function Attrs: nounwind
declare i32 @pthread_create(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #6

declare i32 @pthread_join(i64 noundef, ptr noundef) local_unnamed_addr #10

; Function Attrs: nounwind uwtable
declare dso_local ptr @thread_run_philox4x64_10(ptr noundef) #4

; Function Attrs: nounwind uwtable
define dso_local void @philox4x64_10(i64 %0, i64 %1, ptr noundef byval(%struct.r123array4x64) align 8 %2, ptr noundef byval(%struct.r123array4x64) align 8 %3, i32 noundef %4, ptr nocapture noundef readonly %5) local_unnamed_addr #4 {
  %7 = alloca double, align 8
  %8 = alloca %struct.ThreadData_philox4x64_10, align 8
  %9 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #11
  %10 = load i32, ptr @numtrials, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %8) #11
  %11 = tail call i64 @pthread_self() #12
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #11
  %12 = getelementptr inbounds i8, ptr %5, i64 8
  %13 = load i32, ptr %12, align 8, !tbaa !9
  %.fr = freeze i32 %13
  %14 = sext i32 %.fr to i64
  %15 = shl nsw i64 %14, 4
  %16 = tail call noalias ptr @malloc(i64 noundef %15) #13
  store ptr %16, ptr @thread_info, align 8, !tbaa !13
  %.not = icmp eq ptr %16, null
  br i1 %.not, label %17, label %24

17:                                               ; preds = %6
  %18 = load ptr, ptr @stderr, align 8, !tbaa !13
  %19 = load ptr, ptr @progname, align 8, !tbaa !13
  %20 = tail call ptr @__errno_location() #12
  %21 = load i32, ptr %20, align 4, !tbaa !5
  %22 = tail call ptr @strerror(i32 noundef %21) #11
  %23 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef nonnull @.str.19, ptr noundef %19, ptr noundef nonnull @.str.20, i32 noundef 60, ptr noundef nonnull @.str.21, ptr noundef nonnull @.str.22, ptr noundef %22) #14
  tail call void @exit(i32 noundef 1) #15
  unreachable

24:                                               ; preds = %6
  %25 = tail call noalias ptr @malloc(i64 noundef %15) #13
  %.not109 = icmp eq ptr %25, null
  br i1 %.not109, label %26, label %33

26:                                               ; preds = %24
  %27 = load ptr, ptr @stderr, align 8, !tbaa !13
  %28 = load ptr, ptr @progname, align 8, !tbaa !13
  %29 = tail call ptr @__errno_location() #12
  %30 = load i32, ptr %29, align 4, !tbaa !5
  %31 = tail call ptr @strerror(i32 noundef %30) #11
  %32 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %27, ptr noundef nonnull @.str.19, ptr noundef %28, ptr noundef nonnull @.str.20, i32 noundef 60, ptr noundef nonnull @.str.56, ptr noundef nonnull @.str.22, ptr noundef %31) #14
  tail call void @exit(i32 noundef 1) #15
  unreachable

33:                                               ; preds = %24
  %34 = shl nsw i64 %14, 3
  %35 = tail call noalias ptr @malloc(i64 noundef %34) #13
  %.not110 = icmp eq ptr %35, null
  br i1 %.not110, label %38, label %.preheader118

.preheader118:                                    ; preds = %33
  %36 = icmp sgt i32 %.fr, 0
  br i1 %36, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %.preheader118
  %wide.trip.count = zext i32 %.fr to i64
  %xtraiter = and i64 %wide.trip.count, 1
  %37 = icmp eq i32 %.fr, 1
  br i1 %37, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %wide.trip.count, 4294967294
  br label %.lr.ph

38:                                               ; preds = %33
  %39 = load ptr, ptr @stderr, align 8, !tbaa !13
  %40 = load ptr, ptr @progname, align 8, !tbaa !13
  %41 = tail call ptr @__errno_location() #12
  %42 = load i32, ptr %41, align 4, !tbaa !5
  %43 = tail call ptr @strerror(i32 noundef %42) #11
  %44 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %39, ptr noundef nonnull @.str.19, ptr noundef %40, ptr noundef nonnull @.str.20, i32 noundef 60, ptr noundef nonnull @.str.24, ptr noundef nonnull @.str.22, ptr noundef %43) #14
  tail call void @exit(i32 noundef 1) #15
  unreachable

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader.new ], [ %indvars.iv.next.1, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.1, %.lr.ph ]
  %45 = getelementptr inbounds %struct.ThreadInfo, ptr %16, i64 %indvars.iv
  store volatile i32 0, ptr %45, align 8, !tbaa !14
  %46 = getelementptr inbounds %struct.ThreadInfo, ptr %16, i64 %indvars.iv, i32 1
  store volatile i64 %11, ptr %46, align 8, !tbaa !17
  %47 = getelementptr inbounds %struct.ThreadArg_philox4x64_10, ptr %25, i64 %indvars.iv
  %48 = getelementptr inbounds i8, ptr %47, i64 8
  store ptr %45, ptr %48, align 8, !tbaa !18
  store ptr %8, ptr %47, align 8, !tbaa !20
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %49 = getelementptr inbounds %struct.ThreadInfo, ptr %16, i64 %indvars.iv.next
  store volatile i32 0, ptr %49, align 8, !tbaa !14
  %50 = getelementptr inbounds %struct.ThreadInfo, ptr %16, i64 %indvars.iv.next, i32 1
  store volatile i64 %11, ptr %50, align 8, !tbaa !17
  %51 = getelementptr inbounds %struct.ThreadArg_philox4x64_10, ptr %25, i64 %indvars.iv.next
  %52 = getelementptr inbounds i8, ptr %51, i64 8
  store ptr %49, ptr %52, align 8, !tbaa !18
  store ptr %8, ptr %51, align 8, !tbaa !20
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !21

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.lr.ph, %.lr.ph.preheader
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next.1, %.lr.ph ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %._crit_edge.loopexit.unr-lcssa
  %53 = getelementptr inbounds %struct.ThreadInfo, ptr %16, i64 %indvars.iv.unr
  store volatile i32 0, ptr %53, align 8, !tbaa !14
  %54 = getelementptr inbounds %struct.ThreadInfo, ptr %16, i64 %indvars.iv.unr, i32 1
  store volatile i64 %11, ptr %54, align 8, !tbaa !17
  %55 = getelementptr inbounds %struct.ThreadArg_philox4x64_10, ptr %25, i64 %indvars.iv.unr
  %56 = getelementptr inbounds i8, ptr %55, i64 8
  store ptr %53, ptr %56, align 8, !tbaa !18
  store ptr %8, ptr %55, align 8, !tbaa !20
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph.epil, %._crit_edge.loopexit.unr-lcssa, %.preheader118
  store i32 %.fr, ptr @thread_count, align 4, !tbaa !5
  %57 = shl nsw i64 %14, 5
  %58 = call noalias ptr @malloc(i64 noundef %57) #13
  %59 = getelementptr inbounds i8, ptr %8, i64 56
  store ptr %58, ptr %59, align 8, !tbaa !23
  %.not111 = icmp eq ptr %58, null
  br i1 %.not111, label %60, label %67

60:                                               ; preds = %._crit_edge
  %61 = load ptr, ptr @stderr, align 8, !tbaa !13
  %62 = load ptr, ptr @progname, align 8, !tbaa !13
  %63 = tail call ptr @__errno_location() #12
  %64 = load i32, ptr %63, align 4, !tbaa !5
  %65 = call ptr @strerror(i32 noundef %64) #11
  %66 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %61, ptr noundef nonnull @.str.19, ptr noundef %62, ptr noundef nonnull @.str.20, i32 noundef 60, ptr noundef nonnull @.str.53, ptr noundef nonnull @.str.22, ptr noundef %65) #14
  call void @exit(i32 noundef 1) #15
  unreachable

67:                                               ; preds = %._crit_edge
  %68 = getelementptr inbounds i8, ptr %8, i64 8
  store i64 %0, ptr %68, align 8
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %8, i64 16
  store i64 %1, ptr %.sroa.5.0..sroa_idx, align 8, !tbaa !27
  %69 = getelementptr inbounds i8, ptr %8, i64 24
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %69, ptr noundef nonnull align 8 dereferenceable(32) %2, i64 32, i1 false), !tbaa.struct !28
  store i32 0, ptr %8, align 8, !tbaa !29
  %70 = icmp sgt i32 %10, -2
  br i1 %70, label %.lr.ph149.preheader, label %._crit_edge150

.lr.ph149.preheader:                              ; preds = %67
  %71 = getelementptr inbounds i8, ptr %3, i64 8
  %72 = getelementptr inbounds i8, ptr %3, i64 16
  %73 = getelementptr inbounds i8, ptr %3, i64 24
  br label %.lr.ph149

.lr.ph149:                                        ; preds = %.lr.ph149.preheader, %256
  %.0147 = phi i32 [ %.3, %256 ], [ %4, %.lr.ph149.preheader ]
  %.098146 = phi i32 [ %259, %256 ], [ -2, %.lr.ph149.preheader ]
  %.099145 = phi double [ %.1100, %256 ], [ 0.000000e+00, %.lr.ph149.preheader ]
  %.0101144 = phi double [ %.1102, %256 ], [ 0.000000e+00, %.lr.ph149.preheader ]
  %.0103143 = phi double [ %226, %256 ], [ 0.000000e+00, %.lr.ph149.preheader ]
  switch i32 %.098146, label %167 [
    i32 -2, label %77
    i32 -1, label %92
    i32 0, label %.preheader117.preheader
  ]

.preheader117.preheader:                          ; preds = %.lr.ph149
  %74 = load i64, ptr %3, align 8, !tbaa !30
  %75 = load ptr, ptr %59, align 8, !tbaa !23
  %76 = load i64, ptr %75, align 8, !tbaa !30
  %.not112 = icmp eq i64 %74, %76
  br i1 %.not112, label %113, label %107

77:                                               ; preds = %.lr.ph149
  %78 = icmp eq i32 %.0147, 0
  br i1 %78, label %79, label %91

79:                                               ; preds = %77
  %80 = load double, ptr %5, align 8, !tbaa !31
  %81 = fcmp une double %80, 0.000000e+00
  %82 = fmul double %80, 1.000000e-03
  %83 = select i1 %81, double %82, double 1.000000e+05
  %84 = fptoui double %83 to i32
  %85 = load i32, ptr @debug, align 4, !tbaa !5
  %86 = icmp slt i32 %85, 1
  br i1 %86, label %91, label %87

87:                                               ; preds = %79
  %88 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.26, i32 noundef %84)
  %89 = load ptr, ptr @stdout, align 8, !tbaa !13
  %90 = call i32 @fflush(ptr noundef %89)
  br label %91

91:                                               ; preds = %87, %79, %77
  %.1 = phi i32 [ %84, %79 ], [ %84, %87 ], [ %.0147, %77 ]
  store i32 %.1, ptr %8, align 8, !tbaa !29
  br label %167

92:                                               ; preds = %.lr.ph149
  %93 = icmp ugt i32 %.0147, 1
  br i1 %93, label %94, label %106

94:                                               ; preds = %92
  %95 = uitofp i32 %.0147 to double
  %96 = load double, ptr @sec_per_trial, align 8, !tbaa !32
  %97 = fmul double %96, %95
  %98 = fdiv double %97, %.0103143
  %99 = fptoui double %98 to i32
  %100 = load i32, ptr @debug, align 4, !tbaa !5
  %101 = icmp slt i32 %100, 1
  br i1 %101, label %106, label %102

102:                                              ; preds = %94
  %103 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.27, i32 noundef %99)
  %104 = load ptr, ptr @stdout, align 8, !tbaa !13
  %105 = call i32 @fflush(ptr noundef %104)
  br label %106

106:                                              ; preds = %102, %94, %92
  %.2 = phi i32 [ %99, %94 ], [ %99, %102 ], [ %.0147, %92 ]
  store i32 1, ptr %8, align 8, !tbaa !29
  br label %167

107:                                              ; preds = %.preheader117.3, %.preheader117.2, %.preheader117.1, %.preheader117.preheader
  %.094130.lcssa.wide = phi i32 [ 0, %.preheader117.preheader ], [ 1, %.preheader117.1 ], [ 2, %.preheader117.2 ], [ 3, %.preheader117.3 ]
  %108 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.28, ptr noundef nonnull @.str.55, i32 noundef %.094130.lcssa.wide)
  call void @printline_philox4x64_10(i64 %0, i64 %1, ptr noundef nonnull byval(%struct.r123array4x64) align 8 %2, ptr noundef nonnull %3, i64 noundef 1)
  %109 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.29)
  %110 = load ptr, ptr %59, align 8, !tbaa !23
  call void @printline_philox4x64_10(i64 %0, i64 %1, ptr noundef nonnull byval(%struct.r123array4x64) align 8 %2, ptr noundef %110, i64 noundef 1)
  %111 = load i32, ptr @debug, align 4, !tbaa !5
  %.not113 = icmp eq i32 %111, 0
  br i1 %.not113, label %112, label %.loopexit

112:                                              ; preds = %107
  call void @exit(i32 noundef 1) #15
  unreachable

113:                                              ; preds = %.preheader117.preheader
  %114 = load i32, ptr @debug, align 4, !tbaa !5
  %115 = icmp slt i32 %114, 1
  br i1 %115, label %.preheader117.1, label %116

116:                                              ; preds = %113
  %117 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.30, ptr noundef nonnull @.str.55, i32 noundef 0)
  %118 = load ptr, ptr @stdout, align 8, !tbaa !13
  %119 = call i32 @fflush(ptr noundef %118)
  %.pre = load ptr, ptr %59, align 8, !tbaa !23
  br label %.preheader117.1

.preheader117.1:                                  ; preds = %113, %116
  %120 = phi ptr [ %75, %113 ], [ %.pre, %116 ]
  %121 = load i64, ptr %71, align 8, !tbaa !30
  %122 = getelementptr inbounds i8, ptr %120, i64 8
  %123 = load i64, ptr %122, align 8, !tbaa !30
  %.not112.1 = icmp eq i64 %121, %123
  br i1 %.not112.1, label %124, label %107

124:                                              ; preds = %.preheader117.1
  %125 = load i32, ptr @debug, align 4, !tbaa !5
  %126 = icmp slt i32 %125, 1
  br i1 %126, label %.preheader117.2, label %127

127:                                              ; preds = %124
  %128 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.30, ptr noundef nonnull @.str.55, i32 noundef 1)
  %129 = load ptr, ptr @stdout, align 8, !tbaa !13
  %130 = call i32 @fflush(ptr noundef %129)
  %.pre181 = load ptr, ptr %59, align 8, !tbaa !23
  br label %.preheader117.2

.preheader117.2:                                  ; preds = %127, %124
  %131 = phi ptr [ %.pre181, %127 ], [ %120, %124 ]
  %132 = load i64, ptr %72, align 8, !tbaa !30
  %133 = getelementptr inbounds i8, ptr %131, i64 16
  %134 = load i64, ptr %133, align 8, !tbaa !30
  %.not112.2 = icmp eq i64 %132, %134
  br i1 %.not112.2, label %135, label %107

135:                                              ; preds = %.preheader117.2
  %136 = load i32, ptr @debug, align 4, !tbaa !5
  %137 = icmp slt i32 %136, 1
  br i1 %137, label %.preheader117.3, label %138

138:                                              ; preds = %135
  %139 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.30, ptr noundef nonnull @.str.55, i32 noundef 2)
  %140 = load ptr, ptr @stdout, align 8, !tbaa !13
  %141 = call i32 @fflush(ptr noundef %140)
  %.pre182 = load ptr, ptr %59, align 8, !tbaa !23
  br label %.preheader117.3

.preheader117.3:                                  ; preds = %138, %135
  %142 = phi ptr [ %.pre182, %138 ], [ %131, %135 ]
  %143 = load i64, ptr %73, align 8, !tbaa !30
  %144 = getelementptr inbounds i8, ptr %142, i64 24
  %145 = load i64, ptr %144, align 8, !tbaa !30
  %.not112.3 = icmp eq i64 %143, %145
  br i1 %.not112.3, label %146, label %107

146:                                              ; preds = %.preheader117.3
  %147 = load i32, ptr @debug, align 4, !tbaa !5
  %148 = icmp slt i32 %147, 1
  br i1 %148, label %.loopexit, label %149

149:                                              ; preds = %146
  %150 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.30, ptr noundef nonnull @.str.55, i32 noundef 3)
  %151 = load ptr, ptr @stdout, align 8, !tbaa !13
  %152 = call i32 @fflush(ptr noundef %151)
  br label %.loopexit

.loopexit:                                        ; preds = %146, %149, %107
  %153 = load i32, ptr @verbose, align 4, !tbaa !5
  %.not114 = icmp eq i32 %153, 0
  br i1 %.not114, label %165, label %154

154:                                              ; preds = %.loopexit
  %155 = load i32, ptr @debug, align 4, !tbaa !5
  %156 = icmp slt i32 %155, 1
  br i1 %156, label %161, label %157

157:                                              ; preds = %154
  %158 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.31, ptr noundef nonnull @.str.55, double noundef %.0103143)
  %159 = load ptr, ptr @stdout, align 8, !tbaa !13
  %160 = call i32 @fflush(ptr noundef %159)
  br label %161

161:                                              ; preds = %154, %157
  %162 = load ptr, ptr %59, align 8, !tbaa !23
  %163 = load i32, ptr %12, align 8, !tbaa !9
  %164 = sext i32 %163 to i64
  call void @printline_philox4x64_10(i64 %0, i64 %1, ptr noundef nonnull byval(%struct.r123array4x64) align 8 %2, ptr noundef %162, i64 noundef %164)
  br label %165

165:                                              ; preds = %161, %.loopexit
  %166 = add i32 %.0147, 1
  store i32 %166, ptr %8, align 8, !tbaa !29
  br label %167

167:                                              ; preds = %.lr.ph149, %91, %165, %106
  %.1100 = phi double [ %.099145, %91 ], [ %.099145, %106 ], [ %.0103143, %165 ], [ %.099145, %.lr.ph149 ]
  %.3 = phi i32 [ %.1, %91 ], [ %.2, %106 ], [ %.0147, %165 ], [ %.0147, %.lr.ph149 ]
  %168 = load i32, ptr @debug, align 4, !tbaa !5
  %169 = icmp slt i32 %168, 1
  br i1 %169, label %174, label %170

170:                                              ; preds = %167
  %171 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.32, ptr noundef nonnull @.str.55)
  %172 = load ptr, ptr @stdout, align 8, !tbaa !13
  %173 = call i32 @fflush(ptr noundef %172)
  br label %174

174:                                              ; preds = %167, %170
  %175 = call double @timer(ptr noundef nonnull %7)
  %176 = load i32, ptr %12, align 8, !tbaa !9
  %177 = icmp sgt i32 %176, 0
  br i1 %177, label %.lr.ph133, label %.preheader116

.preheader116:                                    ; preds = %199, %174
  %178 = load i32, ptr @thread_count, align 4, !tbaa !5
  %179 = icmp sgt i32 %178, 0
  br i1 %179, label %.lr.ph135, label %._crit_edge136

.lr.ph133:                                        ; preds = %174, %199
  %indvars.iv165 = phi i64 [ %indvars.iv.next166, %199 ], [ 0, %174 ]
  %180 = getelementptr inbounds i64, ptr %35, i64 %indvars.iv165
  %181 = getelementptr inbounds %struct.ThreadArg_philox4x64_10, ptr %25, i64 %indvars.iv165
  %182 = call i32 @pthread_create(ptr noundef nonnull %180, ptr noundef null, ptr noundef nonnull @thread_run_philox4x64_10, ptr noundef nonnull %181) #11
  %183 = icmp eq i32 %182, 0
  br i1 %183, label %191, label %184

184:                                              ; preds = %.lr.ph133
  %185 = load ptr, ptr @stderr, align 8, !tbaa !13
  %186 = load ptr, ptr @progname, align 8, !tbaa !13
  %187 = tail call ptr @__errno_location() #12
  %188 = load i32, ptr %187, align 4, !tbaa !5
  %189 = call ptr @strerror(i32 noundef %188) #11
  %190 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %185, ptr noundef nonnull @.str.33, ptr noundef %186, ptr noundef nonnull @.str.20, i32 noundef 60, ptr noundef nonnull @.str.57, ptr noundef nonnull @.str.22, ptr noundef %189) #14
  call void @exit(i32 noundef 1) #15
  unreachable

191:                                              ; preds = %.lr.ph133
  %192 = load i32, ptr @debug, align 4, !tbaa !5
  %193 = icmp slt i32 %192, 1
  br i1 %193, label %199, label %194

194:                                              ; preds = %191
  %195 = trunc nuw nsw i64 %indvars.iv165 to i32
  %196 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.35, i32 noundef %195)
  %197 = load ptr, ptr @stdout, align 8, !tbaa !13
  %198 = call i32 @fflush(ptr noundef %197)
  br label %199

199:                                              ; preds = %194, %191
  %indvars.iv.next166 = add nuw nsw i64 %indvars.iv165, 1
  %200 = load i32, ptr %12, align 8, !tbaa !9
  %201 = sext i32 %200 to i64
  %202 = icmp slt i64 %indvars.iv.next166, %201
  br i1 %202, label %.lr.ph133, label %.preheader116, !llvm.loop !33

.lr.ph135:                                        ; preds = %.preheader116, %222
  %indvars.iv168 = phi i64 [ %indvars.iv.next169, %222 ], [ 0, %.preheader116 ]
  %203 = getelementptr inbounds i64, ptr %35, i64 %indvars.iv168
  %204 = load i64, ptr %203, align 8, !tbaa !30
  %205 = call i32 @pthread_join(i64 noundef %204, ptr noundef nonnull %9) #11
  %206 = icmp eq i32 %205, 0
  br i1 %206, label %214, label %207

207:                                              ; preds = %.lr.ph135
  %208 = load ptr, ptr @stderr, align 8, !tbaa !13
  %209 = load ptr, ptr @progname, align 8, !tbaa !13
  %210 = tail call ptr @__errno_location() #12
  %211 = load i32, ptr %210, align 4, !tbaa !5
  %212 = call ptr @strerror(i32 noundef %211) #11
  %213 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %208, ptr noundef nonnull @.str.33, ptr noundef %209, ptr noundef nonnull @.str.20, i32 noundef 60, ptr noundef nonnull @.str.36, ptr noundef nonnull @.str.22, ptr noundef %212) #14
  call void @exit(i32 noundef 1) #15
  unreachable

214:                                              ; preds = %.lr.ph135
  %215 = load i32, ptr @debug, align 4, !tbaa !5
  %216 = icmp slt i32 %215, 1
  br i1 %216, label %222, label %217

217:                                              ; preds = %214
  %218 = trunc nuw nsw i64 %indvars.iv168 to i32
  %219 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.37, i32 noundef %218)
  %220 = load ptr, ptr @stdout, align 8, !tbaa !13
  %221 = call i32 @fflush(ptr noundef %220)
  br label %222

222:                                              ; preds = %217, %214
  %indvars.iv.next169 = add nuw nsw i64 %indvars.iv168, 1
  %223 = load i32, ptr @thread_count, align 4, !tbaa !5
  %224 = sext i32 %223 to i64
  %225 = icmp slt i64 %indvars.iv.next169, %224
  br i1 %225, label %.lr.ph135, label %._crit_edge136, !llvm.loop !34

._crit_edge136:                                   ; preds = %222, %.preheader116
  %226 = call double @timer(ptr noundef nonnull %7)
  %227 = load i32, ptr @debug, align 4, !tbaa !5
  %228 = icmp slt i32 %227, 1
  br i1 %228, label %233, label %229

229:                                              ; preds = %._crit_edge136
  %230 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.38, i32 noundef %.098146, double noundef %226)
  %231 = load ptr, ptr @stdout, align 8, !tbaa !13
  %232 = call i32 @fflush(ptr noundef %231)
  br label %233

233:                                              ; preds = %229, %._crit_edge136
  %234 = load i32, ptr %12, align 8, !tbaa !9
  %.not154 = icmp eq i32 %234, 0
  br i1 %.not154, label %._crit_edge141.thread, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %233
  %235 = load ptr, ptr %59, align 8, !tbaa !23
  %wide.trip.count178 = zext i32 %234 to i64
  br label %.preheader

.preheader:                                       ; preds = %.preheader.lr.ph, %.preheader
  %indvars.iv175 = phi i64 [ 0, %.preheader.lr.ph ], [ %indvars.iv.next176, %.preheader ]
  %.092139 = phi i32 [ 1, %.preheader.lr.ph ], [ %251, %.preheader ]
  %236 = getelementptr inbounds %struct.r123array4x64, ptr %235, i64 %indvars.iv175
  %237 = load i64, ptr %236, align 8, !tbaa !30
  %238 = icmp eq i64 %237, 0
  %239 = getelementptr inbounds i8, ptr %236, i64 8
  %240 = load i64, ptr %239, align 8, !tbaa !30
  %241 = icmp eq i64 %240, 0
  %242 = getelementptr inbounds i8, ptr %236, i64 16
  %243 = load i64, ptr %242, align 8, !tbaa !30
  %244 = icmp eq i64 %243, 0
  %245 = getelementptr inbounds i8, ptr %236, i64 24
  %246 = load i64, ptr %245, align 8, !tbaa !30
  %247 = icmp eq i64 %246, 0
  %248 = select i1 %247, i1 %244, i1 false
  %249 = select i1 %248, i1 %241, i1 false
  %250 = select i1 %249, i1 %238, i1 false
  %251 = select i1 %250, i32 %.092139, i32 0
  %indvars.iv.next176 = add nuw nsw i64 %indvars.iv175, 1
  %exitcond179.not = icmp eq i64 %indvars.iv.next176, %wide.trip.count178
  br i1 %exitcond179.not, label %._crit_edge141, label %.preheader, !llvm.loop !35

._crit_edge141:                                   ; preds = %.preheader
  %.not115 = icmp eq i32 %251, 0
  br i1 %.not115, label %256, label %._crit_edge141.thread

._crit_edge141.thread:                            ; preds = %233, %._crit_edge141
  %252 = load ptr, ptr @stderr, align 8, !tbaa !13
  %253 = load ptr, ptr @progname, align 8, !tbaa !13
  %254 = sext i32 %234 to i64
  %255 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %252, ptr noundef nonnull @.str.39, ptr noundef %253, i64 noundef %254, i32 noundef 4, i32 noundef 8) #14
  br label %256

256:                                              ; preds = %._crit_edge141.thread, %._crit_edge141
  %257 = icmp eq i32 %.098146, 0
  %258 = fcmp olt double %226, %.0101144
  %or.cond = select i1 %257, i1 true, i1 %258
  %.1102 = select i1 %or.cond, double %226, double %.0101144
  %259 = add nsw i32 %.098146, 1
  %exitcond180.not = icmp eq i32 %259, %10
  br i1 %exitcond180.not, label %._crit_edge150, label %.lr.ph149, !llvm.loop !36

._crit_edge150:                                   ; preds = %256, %67
  %.0101.lcssa = phi double [ 0.000000e+00, %67 ], [ %.1102, %256 ]
  %.099.lcssa = phi double [ 0.000000e+00, %67 ], [ %.1100, %256 ]
  %.0.lcssa = phi i32 [ %4, %67 ], [ %.3, %256 ]
  %260 = icmp ugt i32 %.0.lcssa, 1
  br i1 %260, label %261, label %278

261:                                              ; preds = %._crit_edge150
  %262 = fsub double %.0101.lcssa, %.099.lcssa
  %263 = load i32, ptr %8, align 8, !tbaa !29
  %264 = uitofp i32 %263 to double
  %265 = fadd double %264, -1.000000e+00
  %266 = load i32, ptr %12, align 8, !tbaa !9
  %267 = sitofp i32 %266 to double
  %268 = fmul double %265, %267
  %269 = fmul double %268, 3.200000e+01
  %270 = fdiv double %262, %269
  %271 = load double, ptr %5, align 8, !tbaa !31
  %272 = fmul double %271, %270
  %273 = fmul double %272, %267
  %274 = fdiv double 1.000000e-09, %270
  %275 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.40, ptr noundef nonnull @.str.55, double noundef %273, double noundef %274, i32 noundef 32, i32 noundef %263, double noundef %.0101.lcssa, double noundef %.099.lcssa)
  %276 = load ptr, ptr @stdout, align 8, !tbaa !13
  %277 = call i32 @fflush(ptr noundef %276)
  br label %278

278:                                              ; preds = %261, %._crit_edge150
  store i32 0, ptr @thread_count, align 4, !tbaa !5
  %279 = load ptr, ptr @thread_info, align 8, !tbaa !13
  call void @free(ptr noundef %279) #11
  store ptr null, ptr @thread_info, align 8, !tbaa !13
  %280 = load ptr, ptr %59, align 8, !tbaa !23
  call void @free(ptr noundef %280) #11
  call void @free(ptr noundef %25) #11
  call void @free(ptr noundef %35) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #11
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #11
  ret void
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nofree nosync nounwind willreturn memory(none) "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 = { 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 #4 = { 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 nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 "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 = { 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 #8 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #9 = { 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 #10 = { "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 #11 = { nounwind }
attributes #12 = { nounwind willreturn memory(none) }
attributes #13 = { nounwind allocsize(0) }
attributes #14 = { cold nounwind }
attributes #15 = { 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, !6, i64 8}
!10 = !{!"test_info", !11, i64 0, !6, i64 8, !12, i64 16}
!11 = !{!"double", !7, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!12, !12, i64 0}
!14 = !{!15, !6, i64 0}
!15 = !{!"", !6, i64 0, !16, i64 8}
!16 = !{!"long", !7, i64 0}
!17 = !{!15, !16, i64 8}
!18 = !{!19, !12, i64 8}
!19 = !{!"", !12, i64 0, !12, i64 8}
!20 = !{!19, !12, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!24, !12, i64 56}
!24 = !{!"", !6, i64 0, !25, i64 8, !26, i64 24, !12, i64 56}
!25 = !{!"r123array2x64", !7, i64 0}
!26 = !{!"r123array4x64", !7, i64 0}
!27 = !{!7, !7, i64 0}
!28 = !{i64 0, i64 32, !27}
!29 = !{!24, !6, i64 0}
!30 = !{!16, !16, i64 0}
!31 = !{!10, !11, i64 0}
!32 = !{!11, !11, i64 0}
!33 = distinct !{!33, !22}
!34 = distinct !{!34, !22}
!35 = distinct !{!35, !22}
!36 = distinct !{!36, !22}


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