; 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.ThreadData_threefry4x64_12 = type { i32, %struct.r123array4x64, %struct.r123array4x64, ptr }
%struct.test_info = type { double, i32, ptr }
%struct.ThreadInfo = type { i32, i64 }
%struct.ThreadArg_threefry4x64_12 = 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.65 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [75 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [76 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_threefry4x64_12(ptr noundef byval(%struct.r123array4x64) align 8, 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_threefry4x64_12(ptr noundef) #5

; Function Attrs: nounwind uwtable
define dso_local void @threefry4x64_12(ptr noundef byval(%struct.r123array4x64) align 8 %0, ptr noundef byval(%struct.r123array4x64) align 8 %1, ptr noundef byval(%struct.r123array4x64) align 8 %2, i32 noundef %3, ptr noundef %4) #5 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca double, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca %struct.ThreadData_threefry4x64_12, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i64, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca double, align 8
  store i32 %3, ptr %6, align 4, !tbaa !5
  store ptr %4, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #9
  store ptr @.str.65, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #9
  %26 = load i32, ptr @numtrials, align 4, !tbaa !5
  store i32 %26, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #9
  store double 0.000000e+00, ptr %13, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #9
  store double 0.000000e+00, ptr %14, align 8, !tbaa !11
  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 80, ptr %16) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #9
  %27 = call i64 @pthread_self() #10
  store i64 %27, ptr %18, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #9
  br label %28

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

36:                                               ; preds = %28
  br label %44

37:                                               ; preds = %28
  %38 = load ptr, ptr @stderr, align 8, !tbaa !9
  %39 = load ptr, ptr @progname, align 8, !tbaa !9
  %40 = call ptr @__errno_location() #10
  %41 = load i32, ptr %40, align 4, !tbaa !5
  %42 = call ptr @strerror(i32 noundef %41) #9
  %43 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %38, ptr noundef @.str.19, ptr noundef %39, ptr noundef @.str.20, i32 noundef 64, ptr noundef @.str.21, ptr noundef @.str.22, ptr noundef %42) #9
  call void @exit(i32 noundef 1) #12
  unreachable

44:                                               ; preds = %36
  br label %45

45:                                               ; preds = %44
  br label %46

46:                                               ; preds = %45
  br label %47

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

55:                                               ; preds = %47
  br label %63

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

63:                                               ; preds = %55
  br label %64

64:                                               ; preds = %63
  br label %65

65:                                               ; preds = %64
  br label %66

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

74:                                               ; preds = %66
  br label %82

75:                                               ; preds = %66
  %76 = load ptr, ptr @stderr, align 8, !tbaa !9
  %77 = load ptr, ptr @progname, align 8, !tbaa !9
  %78 = call ptr @__errno_location() #10
  %79 = load i32, ptr %78, align 4, !tbaa !5
  %80 = call ptr @strerror(i32 noundef %79) #9
  %81 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %76, ptr noundef @.str.19, ptr noundef %77, ptr noundef @.str.20, i32 noundef 64, ptr noundef @.str.24, ptr noundef @.str.22, ptr noundef %80) #9
  call void @exit(i32 noundef 1) #12
  unreachable

82:                                               ; preds = %74
  br label %83

83:                                               ; preds = %82
  br label %84

84:                                               ; preds = %83
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %85

85:                                               ; preds = %117, %84
  %86 = load i32, ptr %10, align 4, !tbaa !5
  %87 = load ptr, ptr %7, align 8, !tbaa !9
  %88 = getelementptr inbounds %struct.test_info, ptr %87, i32 0, i32 1
  %89 = load i32, ptr %88, align 8, !tbaa !15
  %90 = icmp slt i32 %86, %89
  br i1 %90, label %91, label %120

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

117:                                              ; preds = %91
  %118 = load i32, ptr %10, align 4, !tbaa !5
  %119 = add nsw i32 %118, 1
  store i32 %119, ptr %10, align 4, !tbaa !5
  br label %85, !llvm.loop !23

120:                                              ; preds = %85
  %121 = load ptr, ptr %7, align 8, !tbaa !9
  %122 = getelementptr inbounds %struct.test_info, ptr %121, i32 0, i32 1
  %123 = load i32, ptr %122, align 8, !tbaa !15
  store i32 %123, ptr @thread_count, align 4, !tbaa !5
  br label %124

124:                                              ; preds = %120
  %125 = load ptr, ptr %7, 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
  %128 = sext i32 %127 to i64
  %129 = mul i64 32, %128
  %130 = call noalias ptr @malloc(i64 noundef %129) #11
  %131 = getelementptr inbounds %struct.ThreadData_threefry4x64_12, ptr %16, i32 0, i32 3
  store ptr %130, ptr %131, align 8, !tbaa !25
  %132 = icmp ne ptr %130, null
  br i1 %132, label %133, label %134

133:                                              ; preds = %124
  br label %141

134:                                              ; preds = %124
  %135 = load ptr, ptr @stderr, align 8, !tbaa !9
  %136 = load ptr, ptr @progname, align 8, !tbaa !9
  %137 = call ptr @__errno_location() #10
  %138 = load i32, ptr %137, align 4, !tbaa !5
  %139 = call ptr @strerror(i32 noundef %138) #9
  %140 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %135, ptr noundef @.str.19, ptr noundef %136, ptr noundef @.str.20, i32 noundef 64, ptr noundef @.str.67, ptr noundef @.str.22, ptr noundef %139) #9
  call void @exit(i32 noundef 1) #12
  unreachable

141:                                              ; preds = %133
  br label %142

142:                                              ; preds = %141
  br label %143

143:                                              ; preds = %142
  %144 = getelementptr inbounds %struct.ThreadData_threefry4x64_12, ptr %16, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %144, ptr align 8 %0, i64 32, i1 false), !tbaa.struct !28
  %145 = getelementptr inbounds %struct.ThreadData_threefry4x64_12, ptr %16, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %145, ptr align 8 %1, i64 32, i1 false), !tbaa.struct !28
  %146 = getelementptr inbounds %struct.ThreadData_threefry4x64_12, ptr %16, i32 0, i32 0
  store i32 0, ptr %146, align 8, !tbaa !30
  store i32 -2, ptr %11, align 4, !tbaa !5
  br label %147

147:                                              ; preds = %464, %143
  %148 = load i32, ptr %11, align 4, !tbaa !5
  %149 = load i32, ptr %12, align 4, !tbaa !5
  %150 = icmp slt i32 %148, %149
  br i1 %150, label %151, label %467

151:                                              ; preds = %147
  %152 = load i32, ptr %11, align 4, !tbaa !5
  %153 = icmp eq i32 %152, -2
  br i1 %153, label %154, label %186

154:                                              ; preds = %151
  %155 = load i32, ptr %6, align 4, !tbaa !5
  %156 = icmp eq i32 %155, 0
  br i1 %156, label %157, label %183

157:                                              ; preds = %154
  %158 = load ptr, ptr %7, align 8, !tbaa !9
  %159 = getelementptr inbounds %struct.test_info, ptr %158, i32 0, i32 0
  %160 = load double, ptr %159, align 8, !tbaa !31
  %161 = fcmp une double %160, 0.000000e+00
  br i1 %161, label %162, label %167

162:                                              ; preds = %157
  %163 = load ptr, ptr %7, align 8, !tbaa !9
  %164 = getelementptr inbounds %struct.test_info, ptr %163, i32 0, i32 0
  %165 = load double, ptr %164, align 8, !tbaa !31
  %166 = fmul double %165, 1.000000e-03
  br label %168

167:                                              ; preds = %157
  br label %168

168:                                              ; preds = %167, %162
  %169 = phi double [ %166, %162 ], [ 1.000000e+05, %167 ]
  %170 = fptoui double %169 to i32
  store i32 %170, ptr %6, align 4, !tbaa !5
  br label %171

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

174:                                              ; preds = %171
  br label %180

175:                                              ; preds = %171
  %176 = load i32, ptr %6, align 4, !tbaa !5
  %177 = call i32 (ptr, ...) @printf(ptr noundef @.str.26, i32 noundef %176)
  %178 = load ptr, ptr @stdout, align 8, !tbaa !9
  %179 = call i32 @fflush(ptr noundef %178)
  br label %180

180:                                              ; preds = %175, %174
  br label %181

181:                                              ; preds = %180
  br label %182

182:                                              ; preds = %181
  br label %183

183:                                              ; preds = %182, %154
  %184 = load i32, ptr %6, align 4, !tbaa !5
  %185 = getelementptr inbounds %struct.ThreadData_threefry4x64_12, ptr %16, i32 0, i32 0
  store i32 %184, ptr %185, align 8, !tbaa !30
  br label %295

186:                                              ; preds = %151
  %187 = load i32, ptr %11, align 4, !tbaa !5
  %188 = icmp eq i32 %187, -1
  br i1 %188, label %189, label %214

189:                                              ; preds = %186
  %190 = load i32, ptr %6, align 4, !tbaa !5
  %191 = icmp ugt i32 %190, 1
  br i1 %191, label %192, label %212

192:                                              ; preds = %189
  %193 = load i32, ptr %6, align 4, !tbaa !5
  %194 = uitofp i32 %193 to double
  %195 = load double, ptr @sec_per_trial, align 8, !tbaa !11
  %196 = fmul double %194, %195
  %197 = load double, ptr %14, align 8, !tbaa !11
  %198 = fdiv double %196, %197
  %199 = fptoui double %198 to i32
  store i32 %199, ptr %6, align 4, !tbaa !5
  br label %200

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

203:                                              ; preds = %200
  br label %209

204:                                              ; preds = %200
  %205 = load i32, ptr %6, align 4, !tbaa !5
  %206 = call i32 (ptr, ...) @printf(ptr noundef @.str.27, i32 noundef %205)
  %207 = load ptr, ptr @stdout, align 8, !tbaa !9
  %208 = call i32 @fflush(ptr noundef %207)
  br label %209

209:                                              ; preds = %204, %203
  br label %210

210:                                              ; preds = %209
  br label %211

211:                                              ; preds = %210
  br label %212

212:                                              ; preds = %211, %189
  %213 = getelementptr inbounds %struct.ThreadData_threefry4x64_12, ptr %16, i32 0, i32 0
  store i32 1, ptr %213, align 8, !tbaa !30
  br label %294

214:                                              ; preds = %186
  %215 = load i32, ptr %11, align 4, !tbaa !5
  %216 = icmp eq i32 %215, 0
  br i1 %216, label %217, label %293

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

218:                                              ; preds = %262, %217
  %219 = load i32, ptr %21, align 4, !tbaa !5
  %220 = icmp slt i32 %219, 4
  br i1 %220, label %221, label %265

221:                                              ; preds = %218
  %222 = getelementptr inbounds %struct.r123array4x64, ptr %2, i32 0, i32 0
  %223 = load i32, ptr %21, align 4, !tbaa !5
  %224 = sext i32 %223 to i64
  %225 = getelementptr inbounds [4 x i64], ptr %222, i64 0, i64 %224
  %226 = load i64, ptr %225, align 8, !tbaa !13
  %227 = getelementptr inbounds %struct.ThreadData_threefry4x64_12, ptr %16, i32 0, i32 3
  %228 = load ptr, ptr %227, align 8, !tbaa !25
  %229 = getelementptr inbounds %struct.r123array4x64, ptr %228, i64 0
  %230 = getelementptr inbounds %struct.r123array4x64, ptr %229, i32 0, i32 0
  %231 = load i32, ptr %21, align 4, !tbaa !5
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds [4 x i64], ptr %230, i64 0, i64 %232
  %234 = load i64, ptr %233, align 8, !tbaa !13
  %235 = icmp ne i64 %226, %234
  br i1 %235, label %236, label %247

236:                                              ; preds = %221
  %237 = load ptr, ptr %8, align 8, !tbaa !9
  %238 = load i32, ptr %21, align 4, !tbaa !5
  %239 = call i32 (ptr, ...) @printf(ptr noundef @.str.28, ptr noundef %237, i32 noundef %238)
  call void @printline_threefry4x64_12(ptr noundef byval(%struct.r123array4x64) align 8 %0, ptr noundef byval(%struct.r123array4x64) align 8 %1, ptr noundef %2, i64 noundef 1)
  %240 = call i32 (ptr, ...) @printf(ptr noundef @.str.29)
  %241 = getelementptr inbounds %struct.ThreadData_threefry4x64_12, ptr %16, i32 0, i32 3
  %242 = load ptr, ptr %241, align 8, !tbaa !25
  call void @printline_threefry4x64_12(ptr noundef byval(%struct.r123array4x64) align 8 %0, ptr noundef byval(%struct.r123array4x64) align 8 %1, ptr noundef %242, i64 noundef 1)
  %243 = load i32, ptr @debug, align 4, !tbaa !5
  %244 = icmp ne i32 %243, 0
  br i1 %244, label %246, label %245

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

246:                                              ; preds = %236
  br label %265

247:                                              ; preds = %221
  br label %248

248:                                              ; preds = %247
  %249 = load i32, ptr @debug, align 4, !tbaa !5
  %250 = icmp slt i32 %249, 1
  br i1 %250, label %251, label %252

251:                                              ; preds = %248
  br label %258

252:                                              ; preds = %248
  %253 = load ptr, ptr %8, align 8, !tbaa !9
  %254 = load i32, ptr %21, align 4, !tbaa !5
  %255 = call i32 (ptr, ...) @printf(ptr noundef @.str.30, ptr noundef %253, i32 noundef %254)
  %256 = load ptr, ptr @stdout, align 8, !tbaa !9
  %257 = call i32 @fflush(ptr noundef %256)
  br label %258

258:                                              ; preds = %252, %251
  br label %259

259:                                              ; preds = %258
  br label %260

260:                                              ; preds = %259
  br label %261

261:                                              ; preds = %260
  br label %262

262:                                              ; preds = %261
  %263 = load i32, ptr %21, align 4, !tbaa !5
  %264 = add nsw i32 %263, 1
  store i32 %264, ptr %21, align 4, !tbaa !5
  br label %218, !llvm.loop !32

265:                                              ; preds = %246, %218
  %266 = load double, ptr %14, align 8, !tbaa !11
  store double %266, ptr %13, align 8, !tbaa !11
  %267 = load i32, ptr @verbose, align 4, !tbaa !5
  %268 = icmp ne i32 %267, 0
  br i1 %268, label %269, label %289

269:                                              ; preds = %265
  br label %270

270:                                              ; preds = %269
  %271 = load i32, ptr @debug, align 4, !tbaa !5
  %272 = icmp slt i32 %271, 1
  br i1 %272, label %273, label %274

273:                                              ; preds = %270
  br label %280

274:                                              ; preds = %270
  %275 = load ptr, ptr %8, align 8, !tbaa !9
  %276 = load double, ptr %13, align 8, !tbaa !11
  %277 = call i32 (ptr, ...) @printf(ptr noundef @.str.31, ptr noundef %275, double noundef %276)
  %278 = load ptr, ptr @stdout, align 8, !tbaa !9
  %279 = call i32 @fflush(ptr noundef %278)
  br label %280

280:                                              ; preds = %274, %273
  br label %281

281:                                              ; preds = %280
  br label %282

282:                                              ; preds = %281
  %283 = getelementptr inbounds %struct.ThreadData_threefry4x64_12, ptr %16, i32 0, i32 3
  %284 = load ptr, ptr %283, align 8, !tbaa !25
  %285 = load ptr, ptr %7, align 8, !tbaa !9
  %286 = getelementptr inbounds %struct.test_info, ptr %285, i32 0, i32 1
  %287 = load i32, ptr %286, align 8, !tbaa !15
  %288 = sext i32 %287 to i64
  call void @printline_threefry4x64_12(ptr noundef byval(%struct.r123array4x64) align 8 %0, ptr noundef byval(%struct.r123array4x64) align 8 %1, ptr noundef %284, i64 noundef %288)
  br label %289

289:                                              ; preds = %282, %265
  %290 = load i32, ptr %6, align 4, !tbaa !5
  %291 = add i32 %290, 1
  %292 = getelementptr inbounds %struct.ThreadData_threefry4x64_12, ptr %16, i32 0, i32 0
  store i32 %291, ptr %292, align 8, !tbaa !30
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #9
  br label %293

293:                                              ; preds = %289, %214
  br label %294

294:                                              ; preds = %293, %212
  br label %295

295:                                              ; preds = %294, %183
  br label %296

296:                                              ; preds = %295
  %297 = load i32, ptr @debug, align 4, !tbaa !5
  %298 = icmp slt i32 %297, 1
  br i1 %298, label %299, label %300

299:                                              ; preds = %296
  br label %305

300:                                              ; preds = %296
  %301 = load ptr, ptr %8, align 8, !tbaa !9
  %302 = call i32 (ptr, ...) @printf(ptr noundef @.str.32, ptr noundef %301)
  %303 = load ptr, ptr @stdout, align 8, !tbaa !9
  %304 = call i32 @fflush(ptr noundef %303)
  br label %305

305:                                              ; preds = %300, %299
  br label %306

306:                                              ; preds = %305
  br label %307

307:                                              ; preds = %306
  %308 = call double @timer(ptr noundef %9)
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %309

309:                                              ; preds = %350, %307
  %310 = load i32, ptr %10, align 4, !tbaa !5
  %311 = load ptr, ptr %7, align 8, !tbaa !9
  %312 = getelementptr inbounds %struct.test_info, ptr %311, i32 0, i32 1
  %313 = load i32, ptr %312, align 8, !tbaa !15
  %314 = icmp slt i32 %310, %313
  br i1 %314, label %315, label %353

315:                                              ; preds = %309
  br label %316

316:                                              ; preds = %315
  %317 = load ptr, ptr %19, align 8, !tbaa !9
  %318 = load i32, ptr %10, align 4, !tbaa !5
  %319 = sext i32 %318 to i64
  %320 = getelementptr inbounds i64, ptr %317, i64 %319
  %321 = load ptr, ptr %17, align 8, !tbaa !9
  %322 = load i32, ptr %10, align 4, !tbaa !5
  %323 = sext i32 %322 to i64
  %324 = getelementptr inbounds %struct.ThreadArg_threefry4x64_12, ptr %321, i64 %323
  %325 = call i32 @pthread_create(ptr noundef %320, ptr noundef null, ptr noundef @thread_run_threefry4x64_12, ptr noundef %324) #9
  %326 = icmp eq i32 %325, 0
  br i1 %326, label %327, label %328

327:                                              ; preds = %316
  br label %335

328:                                              ; preds = %316
  %329 = load ptr, ptr @stderr, align 8, !tbaa !9
  %330 = load ptr, ptr @progname, align 8, !tbaa !9
  %331 = call ptr @__errno_location() #10
  %332 = load i32, ptr %331, align 4, !tbaa !5
  %333 = call ptr @strerror(i32 noundef %332) #9
  %334 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %329, ptr noundef @.str.33, ptr noundef %330, ptr noundef @.str.20, i32 noundef 64, ptr noundef @.str.68, ptr noundef @.str.22, ptr noundef %333) #9
  call void @exit(i32 noundef 1) #12
  unreachable

335:                                              ; preds = %327
  br label %336

336:                                              ; preds = %335
  br label %337

337:                                              ; preds = %336
  br label %338

338:                                              ; preds = %337
  %339 = load i32, ptr @debug, align 4, !tbaa !5
  %340 = icmp slt i32 %339, 1
  br i1 %340, label %341, label %342

341:                                              ; preds = %338
  br label %347

342:                                              ; preds = %338
  %343 = load i32, ptr %10, align 4, !tbaa !5
  %344 = call i32 (ptr, ...) @printf(ptr noundef @.str.35, i32 noundef %343)
  %345 = load ptr, ptr @stdout, align 8, !tbaa !9
  %346 = call i32 @fflush(ptr noundef %345)
  br label %347

347:                                              ; preds = %342, %341
  br label %348

348:                                              ; preds = %347
  br label %349

349:                                              ; preds = %348
  br label %350

350:                                              ; preds = %349
  %351 = load i32, ptr %10, align 4, !tbaa !5
  %352 = add nsw i32 %351, 1
  store i32 %352, ptr %10, align 4, !tbaa !5
  br label %309, !llvm.loop !33

353:                                              ; preds = %309
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %354

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

358:                                              ; preds = %354
  br label %359

359:                                              ; preds = %358
  %360 = load ptr, ptr %19, align 8, !tbaa !9
  %361 = load i32, ptr %10, align 4, !tbaa !5
  %362 = sext i32 %361 to i64
  %363 = getelementptr inbounds i64, ptr %360, i64 %362
  %364 = load i64, ptr %363, align 8, !tbaa !13
  %365 = call i32 @pthread_join(i64 noundef %364, ptr noundef %20)
  %366 = icmp eq i32 %365, 0
  br i1 %366, label %367, label %368

367:                                              ; preds = %359
  br label %375

368:                                              ; preds = %359
  %369 = load ptr, ptr @stderr, align 8, !tbaa !9
  %370 = load ptr, ptr @progname, align 8, !tbaa !9
  %371 = call ptr @__errno_location() #10
  %372 = load i32, ptr %371, align 4, !tbaa !5
  %373 = call ptr @strerror(i32 noundef %372) #9
  %374 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %369, ptr noundef @.str.33, ptr noundef %370, ptr noundef @.str.20, i32 noundef 64, ptr noundef @.str.36, ptr noundef @.str.22, ptr noundef %373) #9
  call void @exit(i32 noundef 1) #12
  unreachable

375:                                              ; preds = %367
  br label %376

376:                                              ; preds = %375
  br label %377

377:                                              ; preds = %376
  br label %378

378:                                              ; preds = %377
  %379 = load i32, ptr @debug, align 4, !tbaa !5
  %380 = icmp slt i32 %379, 1
  br i1 %380, label %381, label %382

381:                                              ; preds = %378
  br label %387

382:                                              ; preds = %378
  %383 = load i32, ptr %10, align 4, !tbaa !5
  %384 = call i32 (ptr, ...) @printf(ptr noundef @.str.37, i32 noundef %383)
  %385 = load ptr, ptr @stdout, align 8, !tbaa !9
  %386 = call i32 @fflush(ptr noundef %385)
  br label %387

387:                                              ; preds = %382, %381
  br label %388

388:                                              ; preds = %387
  br label %389

389:                                              ; preds = %388
  br label %390

390:                                              ; preds = %389
  %391 = load i32, ptr %10, align 4, !tbaa !5
  %392 = add nsw i32 %391, 1
  store i32 %392, ptr %10, align 4, !tbaa !5
  br label %354, !llvm.loop !34

393:                                              ; preds = %354
  %394 = call double @timer(ptr noundef %9)
  store double %394, ptr %14, align 8, !tbaa !11
  br label %395

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

398:                                              ; preds = %395
  br label %405

399:                                              ; preds = %395
  %400 = load i32, ptr %11, align 4, !tbaa !5
  %401 = load double, ptr %14, align 8, !tbaa !11
  %402 = call i32 (ptr, ...) @printf(ptr noundef @.str.38, i32 noundef %400, double noundef %401)
  %403 = load ptr, ptr @stdout, align 8, !tbaa !9
  %404 = call i32 @fflush(ptr noundef %403)
  br label %405

405:                                              ; preds = %399, %398
  br label %406

406:                                              ; preds = %405
  br label %407

407:                                              ; preds = %406
  br label %408

408:                                              ; preds = %407
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #9
  store i32 1, ptr %22, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #9
  store i32 0, ptr %23, align 4, !tbaa !5
  br label %409

409:                                              ; preds = %438, %408
  %410 = load i32, ptr %23, align 4, !tbaa !5
  %411 = load ptr, ptr %7, align 8, !tbaa !9
  %412 = getelementptr inbounds %struct.test_info, ptr %411, i32 0, i32 1
  %413 = load i32, ptr %412, align 8, !tbaa !15
  %414 = icmp ult i32 %410, %413
  br i1 %414, label %415, label %441

415:                                              ; preds = %409
  store i32 0, ptr %24, align 4, !tbaa !5
  br label %416

416:                                              ; preds = %434, %415
  %417 = load i32, ptr %24, align 4, !tbaa !5
  %418 = icmp ult i32 %417, 4
  br i1 %418, label %419, label %437

419:                                              ; preds = %416
  %420 = load i32, ptr %22, align 4, !tbaa !5
  %421 = getelementptr inbounds %struct.ThreadData_threefry4x64_12, ptr %16, i32 0, i32 3
  %422 = load ptr, ptr %421, align 8, !tbaa !25
  %423 = load i32, ptr %23, align 4, !tbaa !5
  %424 = zext i32 %423 to i64
  %425 = getelementptr inbounds %struct.r123array4x64, ptr %422, i64 %424
  %426 = getelementptr inbounds %struct.r123array4x64, ptr %425, i32 0, i32 0
  %427 = load i32, ptr %24, align 4, !tbaa !5
  %428 = zext i32 %427 to i64
  %429 = getelementptr inbounds [4 x i64], ptr %426, i64 0, i64 %428
  %430 = load i64, ptr %429, align 8, !tbaa !13
  %431 = icmp eq i64 %430, 0
  %432 = zext i1 %431 to i32
  %433 = and i32 %420, %432
  store i32 %433, ptr %22, align 4, !tbaa !5
  br label %434

434:                                              ; preds = %419
  %435 = load i32, ptr %24, align 4, !tbaa !5
  %436 = add i32 %435, 1
  store i32 %436, ptr %24, align 4, !tbaa !5
  br label %416, !llvm.loop !35

437:                                              ; preds = %416
  br label %438

438:                                              ; preds = %437
  %439 = load i32, ptr %23, align 4, !tbaa !5
  %440 = add i32 %439, 1
  store i32 %440, ptr %23, align 4, !tbaa !5
  br label %409, !llvm.loop !36

441:                                              ; preds = %409
  %442 = load i32, ptr %22, align 4, !tbaa !5
  %443 = icmp ne i32 %442, 0
  br i1 %443, label %444, label %452

444:                                              ; preds = %441
  %445 = load ptr, ptr @stderr, align 8, !tbaa !9
  %446 = load ptr, ptr @progname, align 8, !tbaa !9
  %447 = load ptr, ptr %7, align 8, !tbaa !9
  %448 = getelementptr inbounds %struct.test_info, ptr %447, i32 0, i32 1
  %449 = load i32, ptr %448, align 8, !tbaa !15
  %450 = sext i32 %449 to i64
  %451 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %445, ptr noundef @.str.39, ptr noundef %446, i64 noundef %450, i32 noundef 4, i32 noundef 8) #9
  br label %452

452:                                              ; preds = %444, %441
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #9
  br label %453

453:                                              ; preds = %452
  br label %454

454:                                              ; preds = %453
  %455 = load i32, ptr %11, align 4, !tbaa !5
  %456 = icmp eq i32 %455, 0
  br i1 %456, label %461, label %457

457:                                              ; preds = %454
  %458 = load double, ptr %14, align 8, !tbaa !11
  %459 = load double, ptr %15, align 8, !tbaa !11
  %460 = fcmp olt double %458, %459
  br i1 %460, label %461, label %463

461:                                              ; preds = %457, %454
  %462 = load double, ptr %14, align 8, !tbaa !11
  store double %462, ptr %15, align 8, !tbaa !11
  br label %463

463:                                              ; preds = %461, %457
  br label %464

464:                                              ; preds = %463
  %465 = load i32, ptr %11, align 4, !tbaa !5
  %466 = add nsw i32 %465, 1
  store i32 %466, ptr %11, align 4, !tbaa !5
  br label %147, !llvm.loop !37

467:                                              ; preds = %147
  %468 = load i32, ptr %6, align 4, !tbaa !5
  %469 = icmp ugt i32 %468, 1
  br i1 %469, label %470, label %505

470:                                              ; preds = %467
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #9
  %471 = load double, ptr %15, align 8, !tbaa !11
  %472 = load double, ptr %13, align 8, !tbaa !11
  %473 = fsub double %471, %472
  %474 = getelementptr inbounds %struct.ThreadData_threefry4x64_12, ptr %16, i32 0, i32 0
  %475 = load i32, ptr %474, align 8, !tbaa !30
  %476 = uitofp i32 %475 to double
  %477 = fsub double %476, 1.000000e+00
  %478 = load ptr, ptr %7, align 8, !tbaa !9
  %479 = getelementptr inbounds %struct.test_info, ptr %478, i32 0, i32 1
  %480 = load i32, ptr %479, align 8, !tbaa !15
  %481 = sitofp i32 %480 to double
  %482 = fmul double %477, %481
  %483 = fmul double %482, 3.200000e+01
  %484 = fdiv double %473, %483
  store double %484, ptr %25, align 8, !tbaa !11
  %485 = load ptr, ptr %8, align 8, !tbaa !9
  %486 = load double, ptr %25, align 8, !tbaa !11
  %487 = load ptr, ptr %7, align 8, !tbaa !9
  %488 = getelementptr inbounds %struct.test_info, ptr %487, i32 0, i32 0
  %489 = load double, ptr %488, align 8, !tbaa !31
  %490 = fmul double %486, %489
  %491 = load ptr, ptr %7, align 8, !tbaa !9
  %492 = getelementptr inbounds %struct.test_info, ptr %491, i32 0, i32 1
  %493 = load i32, ptr %492, align 8, !tbaa !15
  %494 = sitofp i32 %493 to double
  %495 = fmul double %490, %494
  %496 = load double, ptr %25, align 8, !tbaa !11
  %497 = fdiv double 1.000000e-09, %496
  %498 = getelementptr inbounds %struct.ThreadData_threefry4x64_12, ptr %16, i32 0, i32 0
  %499 = load i32, ptr %498, align 8, !tbaa !30
  %500 = load double, ptr %15, align 8, !tbaa !11
  %501 = load double, ptr %13, align 8, !tbaa !11
  %502 = call i32 (ptr, ...) @printf(ptr noundef @.str.40, ptr noundef %485, double noundef %495, double noundef %497, i32 noundef 32, i32 noundef %499, double noundef %500, double noundef %501)
  %503 = load ptr, ptr @stdout, align 8, !tbaa !9
  %504 = call i32 @fflush(ptr noundef %503)
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  br label %505

505:                                              ; preds = %470, %467
  store i32 0, ptr @thread_count, align 4, !tbaa !5
  %506 = load ptr, ptr @thread_info, align 8, !tbaa !9
  call void @free(ptr noundef %506) #9
  store ptr null, ptr @thread_info, align 8, !tbaa !9
  %507 = getelementptr inbounds %struct.ThreadData_threefry4x64_12, ptr %16, i32 0, i32 3
  %508 = load ptr, ptr %507, align 8, !tbaa !25
  call void @free(ptr noundef %508) #9
  %509 = load ptr, ptr %17, align 8, !tbaa !9
  call void @free(ptr noundef %509) #9
  %510 = load ptr, ptr %19, align 8, !tbaa !9
  call void @free(ptr noundef %510) #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 8, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 80, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #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 72}
!26 = !{!"", !6, i64 0, !27, i64 8, !27, i64 40, !10, i64 72}
!27 = !{!"r123array4x64", !7, i64 0}
!28 = !{i64 0, i64 32, !29}
!29 = !{!7, !7, i64 0}
!30 = !{!26, !6, i64 0}
!31 = !{!16, !12, i64 0}
!32 = distinct !{!32, !24}
!33 = distinct !{!33, !24}
!34 = distinct !{!34, !24}
!35 = distinct !{!35, !24}
!36 = distinct !{!36, !24}
!37 = distinct !{!37, !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_threefry4x64_12 = type { i32, %struct.r123array4x64, %struct.r123array4x64, ptr }
%struct.ThreadInfo = type { i32, i64 }
%struct.ThreadArg_threefry4x64_12 = 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.65 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [75 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [76 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_threefry4x64_12(ptr noundef byval(%struct.r123array4x64) align 8, 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_threefry4x64_12(ptr noundef) #4

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

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

23:                                               ; preds = %5
  %24 = tail call noalias ptr @malloc(i64 noundef %14) #13
  %.not105 = icmp eq ptr %24, null
  br i1 %.not105, label %25, label %32

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

32:                                               ; preds = %23
  %33 = shl nsw i64 %13, 3
  %34 = tail call noalias ptr @malloc(i64 noundef %33) #13
  %.not106 = icmp eq ptr %34, null
  br i1 %.not106, label %37, label %.preheader114

.preheader114:                                    ; preds = %32
  %35 = icmp sgt i32 %.fr, 0
  br i1 %35, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %.preheader114
  %wide.trip.count = zext i32 %.fr to i64
  %xtraiter = and i64 %wide.trip.count, 1
  %36 = icmp eq i32 %.fr, 1
  br i1 %36, 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

37:                                               ; preds = %32
  %38 = load ptr, ptr @stderr, align 8, !tbaa !13
  %39 = load ptr, ptr @progname, align 8, !tbaa !13
  %40 = tail call ptr @__errno_location() #12
  %41 = load i32, ptr %40, align 4, !tbaa !5
  %42 = tail call ptr @strerror(i32 noundef %41) #11
  %43 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %38, ptr noundef nonnull @.str.19, ptr noundef %39, ptr noundef nonnull @.str.20, i32 noundef 64, ptr noundef nonnull @.str.24, ptr noundef nonnull @.str.22, ptr noundef %42) #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 ]
  %44 = getelementptr inbounds %struct.ThreadInfo, ptr %15, i64 %indvars.iv
  store volatile i32 0, ptr %44, align 8, !tbaa !14
  %45 = getelementptr inbounds %struct.ThreadInfo, ptr %15, i64 %indvars.iv, i32 1
  store volatile i64 %10, ptr %45, align 8, !tbaa !17
  %46 = getelementptr inbounds %struct.ThreadArg_threefry4x64_12, ptr %24, i64 %indvars.iv
  %47 = getelementptr inbounds i8, ptr %46, i64 8
  store ptr %44, ptr %47, align 8, !tbaa !18
  store ptr %7, ptr %46, align 8, !tbaa !20
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %48 = getelementptr inbounds %struct.ThreadInfo, ptr %15, i64 %indvars.iv.next
  store volatile i32 0, ptr %48, align 8, !tbaa !14
  %49 = getelementptr inbounds %struct.ThreadInfo, ptr %15, i64 %indvars.iv.next, i32 1
  store volatile i64 %10, ptr %49, align 8, !tbaa !17
  %50 = getelementptr inbounds %struct.ThreadArg_threefry4x64_12, ptr %24, i64 %indvars.iv.next
  %51 = getelementptr inbounds i8, ptr %50, i64 8
  store ptr %48, ptr %51, align 8, !tbaa !18
  store ptr %7, ptr %50, 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
  %52 = getelementptr inbounds %struct.ThreadInfo, ptr %15, i64 %indvars.iv.unr
  store volatile i32 0, ptr %52, align 8, !tbaa !14
  %53 = getelementptr inbounds %struct.ThreadInfo, ptr %15, i64 %indvars.iv.unr, i32 1
  store volatile i64 %10, ptr %53, align 8, !tbaa !17
  %54 = getelementptr inbounds %struct.ThreadArg_threefry4x64_12, ptr %24, i64 %indvars.iv.unr
  %55 = getelementptr inbounds i8, ptr %54, i64 8
  store ptr %52, ptr %55, align 8, !tbaa !18
  store ptr %7, ptr %54, align 8, !tbaa !20
  br label %._crit_edge

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

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

66:                                               ; preds = %._crit_edge
  %67 = getelementptr inbounds i8, ptr %7, i64 8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %67, ptr noundef nonnull align 8 dereferenceable(32) %0, i64 32, i1 false), !tbaa.struct !26
  %68 = getelementptr inbounds i8, ptr %7, i64 40
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %68, ptr noundef nonnull align 8 dereferenceable(32) %1, i64 32, i1 false), !tbaa.struct !26
  store i32 0, ptr %7, align 8, !tbaa !28
  %69 = icmp sgt i32 %9, -2
  br i1 %69, label %.lr.ph145.preheader, label %._crit_edge146

.lr.ph145.preheader:                              ; preds = %66
  %70 = getelementptr inbounds i8, ptr %2, i64 8
  %71 = getelementptr inbounds i8, ptr %2, i64 16
  %72 = getelementptr inbounds i8, ptr %2, i64 24
  br label %.lr.ph145

.lr.ph145:                                        ; preds = %.lr.ph145.preheader, %255
  %.0143 = phi i32 [ %.3, %255 ], [ %3, %.lr.ph145.preheader ]
  %.094142 = phi i32 [ %258, %255 ], [ -2, %.lr.ph145.preheader ]
  %.095141 = phi double [ %.196, %255 ], [ 0.000000e+00, %.lr.ph145.preheader ]
  %.097140 = phi double [ %.198, %255 ], [ 0.000000e+00, %.lr.ph145.preheader ]
  %.099139 = phi double [ %225, %255 ], [ 0.000000e+00, %.lr.ph145.preheader ]
  switch i32 %.094142, label %166 [
    i32 -2, label %76
    i32 -1, label %91
    i32 0, label %.preheader113.preheader
  ]

.preheader113.preheader:                          ; preds = %.lr.ph145
  %73 = load i64, ptr %2, align 8, !tbaa !29
  %74 = load ptr, ptr %58, align 8, !tbaa !23
  %75 = load i64, ptr %74, align 8, !tbaa !29
  %.not108 = icmp eq i64 %73, %75
  br i1 %.not108, label %112, label %106

76:                                               ; preds = %.lr.ph145
  %77 = icmp eq i32 %.0143, 0
  br i1 %77, label %78, label %90

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

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

90:                                               ; preds = %86, %78, %76
  %.1 = phi i32 [ %83, %78 ], [ %83, %86 ], [ %.0143, %76 ]
  store i32 %.1, ptr %7, align 8, !tbaa !28
  br label %166

91:                                               ; preds = %.lr.ph145
  %92 = icmp ugt i32 %.0143, 1
  br i1 %92, label %93, label %105

93:                                               ; preds = %91
  %94 = uitofp i32 %.0143 to double
  %95 = load double, ptr @sec_per_trial, align 8, !tbaa !31
  %96 = fmul double %95, %94
  %97 = fdiv double %96, %.099139
  %98 = fptoui double %97 to i32
  %99 = load i32, ptr @debug, align 4, !tbaa !5
  %100 = icmp slt i32 %99, 1
  br i1 %100, label %105, label %101

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

105:                                              ; preds = %101, %93, %91
  %.2 = phi i32 [ %98, %93 ], [ %98, %101 ], [ %.0143, %91 ]
  store i32 1, ptr %7, align 8, !tbaa !28
  br label %166

106:                                              ; preds = %.preheader113.3, %.preheader113.2, %.preheader113.1, %.preheader113.preheader
  %.090126.lcssa.wide = phi i32 [ 0, %.preheader113.preheader ], [ 1, %.preheader113.1 ], [ 2, %.preheader113.2 ], [ 3, %.preheader113.3 ]
  %107 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.28, ptr noundef nonnull @.str.65, i32 noundef %.090126.lcssa.wide)
  call void @printline_threefry4x64_12(ptr noundef nonnull byval(%struct.r123array4x64) align 8 %0, ptr noundef nonnull byval(%struct.r123array4x64) align 8 %1, ptr noundef nonnull %2, i64 noundef 1)
  %108 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.29)
  %109 = load ptr, ptr %58, align 8, !tbaa !23
  call void @printline_threefry4x64_12(ptr noundef nonnull byval(%struct.r123array4x64) align 8 %0, ptr noundef nonnull byval(%struct.r123array4x64) align 8 %1, ptr noundef %109, i64 noundef 1)
  %110 = load i32, ptr @debug, align 4, !tbaa !5
  %.not109 = icmp eq i32 %110, 0
  br i1 %.not109, label %111, label %.loopexit

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

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

115:                                              ; preds = %112
  %116 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.30, ptr noundef nonnull @.str.65, i32 noundef 0)
  %117 = load ptr, ptr @stdout, align 8, !tbaa !13
  %118 = call i32 @fflush(ptr noundef %117)
  %.pre = load ptr, ptr %58, align 8, !tbaa !23
  br label %.preheader113.1

.preheader113.1:                                  ; preds = %112, %115
  %119 = phi ptr [ %74, %112 ], [ %.pre, %115 ]
  %120 = load i64, ptr %70, align 8, !tbaa !29
  %121 = getelementptr inbounds i8, ptr %119, i64 8
  %122 = load i64, ptr %121, align 8, !tbaa !29
  %.not108.1 = icmp eq i64 %120, %122
  br i1 %.not108.1, label %123, label %106

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

126:                                              ; preds = %123
  %127 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.30, ptr noundef nonnull @.str.65, i32 noundef 1)
  %128 = load ptr, ptr @stdout, align 8, !tbaa !13
  %129 = call i32 @fflush(ptr noundef %128)
  %.pre177 = load ptr, ptr %58, align 8, !tbaa !23
  br label %.preheader113.2

.preheader113.2:                                  ; preds = %126, %123
  %130 = phi ptr [ %.pre177, %126 ], [ %119, %123 ]
  %131 = load i64, ptr %71, align 8, !tbaa !29
  %132 = getelementptr inbounds i8, ptr %130, i64 16
  %133 = load i64, ptr %132, align 8, !tbaa !29
  %.not108.2 = icmp eq i64 %131, %133
  br i1 %.not108.2, label %134, label %106

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

137:                                              ; preds = %134
  %138 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.30, ptr noundef nonnull @.str.65, i32 noundef 2)
  %139 = load ptr, ptr @stdout, align 8, !tbaa !13
  %140 = call i32 @fflush(ptr noundef %139)
  %.pre178 = load ptr, ptr %58, align 8, !tbaa !23
  br label %.preheader113.3

.preheader113.3:                                  ; preds = %137, %134
  %141 = phi ptr [ %.pre178, %137 ], [ %130, %134 ]
  %142 = load i64, ptr %72, align 8, !tbaa !29
  %143 = getelementptr inbounds i8, ptr %141, i64 24
  %144 = load i64, ptr %143, align 8, !tbaa !29
  %.not108.3 = icmp eq i64 %142, %144
  br i1 %.not108.3, label %145, label %106

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

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

.loopexit:                                        ; preds = %145, %148, %106
  %152 = load i32, ptr @verbose, align 4, !tbaa !5
  %.not110 = icmp eq i32 %152, 0
  br i1 %.not110, label %164, label %153

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

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

160:                                              ; preds = %153, %156
  %161 = load ptr, ptr %58, align 8, !tbaa !23
  %162 = load i32, ptr %11, align 8, !tbaa !9
  %163 = sext i32 %162 to i64
  call void @printline_threefry4x64_12(ptr noundef nonnull byval(%struct.r123array4x64) align 8 %0, ptr noundef nonnull byval(%struct.r123array4x64) align 8 %1, ptr noundef %161, i64 noundef %163)
  br label %164

164:                                              ; preds = %160, %.loopexit
  %165 = add i32 %.0143, 1
  store i32 %165, ptr %7, align 8, !tbaa !28
  br label %166

166:                                              ; preds = %.lr.ph145, %90, %164, %105
  %.196 = phi double [ %.095141, %90 ], [ %.095141, %105 ], [ %.099139, %164 ], [ %.095141, %.lr.ph145 ]
  %.3 = phi i32 [ %.1, %90 ], [ %.2, %105 ], [ %.0143, %164 ], [ %.0143, %.lr.ph145 ]
  %167 = load i32, ptr @debug, align 4, !tbaa !5
  %168 = icmp slt i32 %167, 1
  br i1 %168, label %173, label %169

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

173:                                              ; preds = %166, %169
  %174 = call double @timer(ptr noundef nonnull %6)
  %175 = load i32, ptr %11, align 8, !tbaa !9
  %176 = icmp sgt i32 %175, 0
  br i1 %176, label %.lr.ph129, label %.preheader112

.preheader112:                                    ; preds = %198, %173
  %177 = load i32, ptr @thread_count, align 4, !tbaa !5
  %178 = icmp sgt i32 %177, 0
  br i1 %178, label %.lr.ph131, label %._crit_edge132

.lr.ph129:                                        ; preds = %173, %198
  %indvars.iv161 = phi i64 [ %indvars.iv.next162, %198 ], [ 0, %173 ]
  %179 = getelementptr inbounds i64, ptr %34, i64 %indvars.iv161
  %180 = getelementptr inbounds %struct.ThreadArg_threefry4x64_12, ptr %24, i64 %indvars.iv161
  %181 = call i32 @pthread_create(ptr noundef nonnull %179, ptr noundef null, ptr noundef nonnull @thread_run_threefry4x64_12, ptr noundef nonnull %180) #11
  %182 = icmp eq i32 %181, 0
  br i1 %182, label %190, label %183

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

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

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

198:                                              ; preds = %193, %190
  %indvars.iv.next162 = add nuw nsw i64 %indvars.iv161, 1
  %199 = load i32, ptr %11, align 8, !tbaa !9
  %200 = sext i32 %199 to i64
  %201 = icmp slt i64 %indvars.iv.next162, %200
  br i1 %201, label %.lr.ph129, label %.preheader112, !llvm.loop !32

.lr.ph131:                                        ; preds = %.preheader112, %221
  %indvars.iv164 = phi i64 [ %indvars.iv.next165, %221 ], [ 0, %.preheader112 ]
  %202 = getelementptr inbounds i64, ptr %34, i64 %indvars.iv164
  %203 = load i64, ptr %202, align 8, !tbaa !29
  %204 = call i32 @pthread_join(i64 noundef %203, ptr noundef nonnull %8) #11
  %205 = icmp eq i32 %204, 0
  br i1 %205, label %213, label %206

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

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

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

221:                                              ; preds = %216, %213
  %indvars.iv.next165 = add nuw nsw i64 %indvars.iv164, 1
  %222 = load i32, ptr @thread_count, align 4, !tbaa !5
  %223 = sext i32 %222 to i64
  %224 = icmp slt i64 %indvars.iv.next165, %223
  br i1 %224, label %.lr.ph131, label %._crit_edge132, !llvm.loop !33

._crit_edge132:                                   ; preds = %221, %.preheader112
  %225 = call double @timer(ptr noundef nonnull %6)
  %226 = load i32, ptr @debug, align 4, !tbaa !5
  %227 = icmp slt i32 %226, 1
  br i1 %227, label %232, label %228

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

232:                                              ; preds = %228, %._crit_edge132
  %233 = load i32, ptr %11, align 8, !tbaa !9
  %.not150 = icmp eq i32 %233, 0
  br i1 %.not150, label %._crit_edge137.thread, label %.preheader.lr.ph

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

.preheader:                                       ; preds = %.preheader.lr.ph, %.preheader
  %indvars.iv171 = phi i64 [ 0, %.preheader.lr.ph ], [ %indvars.iv.next172, %.preheader ]
  %.088135 = phi i32 [ 1, %.preheader.lr.ph ], [ %250, %.preheader ]
  %235 = getelementptr inbounds %struct.r123array4x64, ptr %234, i64 %indvars.iv171
  %236 = load i64, ptr %235, align 8, !tbaa !29
  %237 = icmp eq i64 %236, 0
  %238 = getelementptr inbounds i8, ptr %235, i64 8
  %239 = load i64, ptr %238, align 8, !tbaa !29
  %240 = icmp eq i64 %239, 0
  %241 = getelementptr inbounds i8, ptr %235, i64 16
  %242 = load i64, ptr %241, align 8, !tbaa !29
  %243 = icmp eq i64 %242, 0
  %244 = getelementptr inbounds i8, ptr %235, i64 24
  %245 = load i64, ptr %244, align 8, !tbaa !29
  %246 = icmp eq i64 %245, 0
  %247 = select i1 %246, i1 %243, i1 false
  %248 = select i1 %247, i1 %240, i1 false
  %249 = select i1 %248, i1 %237, i1 false
  %250 = select i1 %249, i32 %.088135, i32 0
  %indvars.iv.next172 = add nuw nsw i64 %indvars.iv171, 1
  %exitcond175.not = icmp eq i64 %indvars.iv.next172, %wide.trip.count174
  br i1 %exitcond175.not, label %._crit_edge137, label %.preheader, !llvm.loop !34

._crit_edge137:                                   ; preds = %.preheader
  %.not111 = icmp eq i32 %250, 0
  br i1 %.not111, label %255, label %._crit_edge137.thread

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

255:                                              ; preds = %._crit_edge137.thread, %._crit_edge137
  %256 = icmp eq i32 %.094142, 0
  %257 = fcmp olt double %225, %.097140
  %or.cond = select i1 %256, i1 true, i1 %257
  %.198 = select i1 %or.cond, double %225, double %.097140
  %258 = add nsw i32 %.094142, 1
  %exitcond176.not = icmp eq i32 %258, %9
  br i1 %exitcond176.not, label %._crit_edge146, label %.lr.ph145, !llvm.loop !35

._crit_edge146:                                   ; preds = %255, %66
  %.097.lcssa = phi double [ 0.000000e+00, %66 ], [ %.198, %255 ]
  %.095.lcssa = phi double [ 0.000000e+00, %66 ], [ %.196, %255 ]
  %.0.lcssa = phi i32 [ %3, %66 ], [ %.3, %255 ]
  %259 = icmp ugt i32 %.0.lcssa, 1
  br i1 %259, label %260, label %277

260:                                              ; preds = %._crit_edge146
  %261 = fsub double %.097.lcssa, %.095.lcssa
  %262 = load i32, ptr %7, align 8, !tbaa !28
  %263 = uitofp i32 %262 to double
  %264 = fadd double %263, -1.000000e+00
  %265 = load i32, ptr %11, align 8, !tbaa !9
  %266 = sitofp i32 %265 to double
  %267 = fmul double %264, %266
  %268 = fmul double %267, 3.200000e+01
  %269 = fdiv double %261, %268
  %270 = load double, ptr %4, align 8, !tbaa !30
  %271 = fmul double %270, %269
  %272 = fmul double %271, %266
  %273 = fdiv double 1.000000e-09, %269
  %274 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.40, ptr noundef nonnull @.str.65, double noundef %272, double noundef %273, i32 noundef 32, i32 noundef %262, double noundef %.097.lcssa, double noundef %.095.lcssa)
  %275 = load ptr, ptr @stdout, align 8, !tbaa !13
  %276 = call i32 @fflush(ptr noundef %275)
  br label %277

277:                                              ; preds = %260, %._crit_edge146
  store i32 0, ptr @thread_count, align 4, !tbaa !5
  %278 = load ptr, ptr @thread_info, align 8, !tbaa !13
  call void @free(ptr noundef %278) #11
  store ptr null, ptr @thread_info, align 8, !tbaa !13
  %279 = load ptr, ptr %58, align 8, !tbaa !23
  call void @free(ptr noundef %279) #11
  call void @free(ptr noundef %24) #11
  call void @free(ptr noundef %34) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #11
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %7) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #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 72}
!24 = !{!"", !6, i64 0, !25, i64 8, !25, i64 40, !12, i64 72}
!25 = !{!"r123array4x64", !7, i64 0}
!26 = !{i64 0, i64 32, !27}
!27 = !{!7, !7, i64 0}
!28 = !{!24, !6, i64 0}
!29 = !{!16, !16, i64 0}
!30 = !{!10, !11, i64 0}
!31 = !{!11, !11, i64 0}
!32 = distinct !{!32, !22}
!33 = distinct !{!33, !22}
!34 = distinct !{!34, !22}
!35 = distinct !{!35, !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