; LLVM IR from golems/ach :: src (ach-bench)

; 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.vtab = type { ptr, ptr, ptr, ptr }
%struct.timespec = type { i64, i64 }

@FREQUENCY = external dso_local global double, align 8
@SECS = external dso_local global double, align 8
@RECV_RT = external dso_local global i64, align 8
@RECV_NRT = external dso_local global i64, align 8
@SEND_RT = external dso_local global i64, align 8
@PASS_NO_RT = external dso_local global i32, align 4
@KERNDEV = external dso_local global i32, align 4
@overhead = external dso_local global double, align 8
@stderr = external global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [60 x i8], align 1
@vtab_ach = external dso_local global %struct.vtab, align 8
@vtab_pipe = external dso_local global %struct.vtab, align 8
@.str.12 = external hidden unnamed_addr constant [18 x i8], align 1
@optarg = external global ptr, align 8
@.str.13 = external hidden unnamed_addr constant [7 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [23 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [502 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [20 x i8], align 1

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @calibrate() #3

; Function Attrs: nounwind uwtable
declare hidden { i64, i64 } @get_ticks() #3

; Function Attrs: nounwind uwtable
declare dso_local void @init_time_chan() #3

; Function Attrs: nounwind uwtable
declare dso_local void @print_times() #3

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

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #3 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = alloca %struct.timespec, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  store ptr null, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  store ptr @vtab_ach, ptr %8, align 8, !tbaa !9
  br label %18

18:                                               ; preds = %65, %2
  %19 = load i32, ptr %4, align 4, !tbaa !5
  %20 = load ptr, ptr %5, align 8, !tbaa !9
  %21 = call i32 @getopt(i32 noundef %19, ptr noundef %20, ptr noundef @.str.12) #7
  store i32 %21, ptr %6, align 4, !tbaa !5
  %22 = icmp ne i32 %21, -1
  br i1 %22, label %23, label %66

23:                                               ; preds = %18
  %24 = load i32, ptr %6, align 4, !tbaa !5
  switch i32 %24, label %63 [
    i32 102, label %25
    i32 115, label %33
    i32 112, label %41
    i32 107, label %50
    i32 114, label %51
    i32 108, label %55
    i32 103, label %59
    i32 80, label %60
    i32 86, label %61
    i32 104, label %62
    i32 72, label %62
    i32 63, label %62
  ]

25:                                               ; preds = %23
  %26 = load ptr, ptr @optarg, align 8, !tbaa !9
  %27 = call double @strtod(ptr noundef %26, ptr noundef %7) #7
  store double %27, ptr @FREQUENCY, align 8, !tbaa !11
  %28 = load ptr, ptr %7, align 8, !tbaa !9
  %29 = icmp ne ptr %28, null
  br i1 %29, label %30, label %31

30:                                               ; preds = %25
  br label %32

31:                                               ; preds = %25
  call void @__assert_fail(ptr noundef @.str.13, ptr noundef @.str.4, i32 noundef 345, ptr noundef @__PRETTY_FUNCTION__.main) #8
  unreachable

32:                                               ; preds = %30
  br label %65

33:                                               ; preds = %23
  %34 = load ptr, ptr @optarg, align 8, !tbaa !9
  %35 = call double @strtod(ptr noundef %34, ptr noundef %7) #7
  store double %35, ptr @SECS, align 8, !tbaa !11
  %36 = load ptr, ptr %7, align 8, !tbaa !9
  %37 = icmp ne ptr %36, null
  br i1 %37, label %38, label %39

38:                                               ; preds = %33
  br label %40

39:                                               ; preds = %33
  call void @__assert_fail(ptr noundef @.str.13, ptr noundef @.str.4, i32 noundef 349, ptr noundef @__PRETTY_FUNCTION__.main) #8
  unreachable

40:                                               ; preds = %38
  br label %65

41:                                               ; preds = %23
  %42 = load ptr, ptr @optarg, align 8, !tbaa !9
  %43 = call i32 @atoi(ptr noundef %42) #9
  %44 = sext i32 %43 to i64
  store i64 %44, ptr @SEND_RT, align 8, !tbaa !13
  %45 = load i64, ptr @SEND_RT, align 8, !tbaa !13
  %46 = icmp ne i64 %45, 0
  br i1 %46, label %47, label %48

47:                                               ; preds = %41
  br label %49

48:                                               ; preds = %41
  call void @__assert_fail(ptr noundef @.str.14, ptr noundef @.str.4, i32 noundef 353, ptr noundef @__PRETTY_FUNCTION__.main) #8
  unreachable

49:                                               ; preds = %47
  br label %65

50:                                               ; preds = %23
  store i32 1, ptr @KERNDEV, align 4, !tbaa !5
  br label %65

51:                                               ; preds = %23
  %52 = load ptr, ptr @optarg, align 8, !tbaa !9
  %53 = call i32 @atoi(ptr noundef %52) #9
  %54 = sext i32 %53 to i64
  store i64 %54, ptr @RECV_RT, align 8, !tbaa !13
  br label %65

55:                                               ; preds = %23
  %56 = load ptr, ptr @optarg, align 8, !tbaa !9
  %57 = call i32 @atoi(ptr noundef %56) #9
  %58 = sext i32 %57 to i64
  store i64 %58, ptr @RECV_NRT, align 8, !tbaa !13
  br label %65

59:                                               ; preds = %23
  store i32 1, ptr @PASS_NO_RT, align 4, !tbaa !5
  br label %65

60:                                               ; preds = %23
  store ptr @vtab_pipe, ptr %8, align 8, !tbaa !9
  br label %65

61:                                               ; preds = %23
  call void @ach_print_version(ptr noundef @.str.15)
  call void @exit(i32 noundef 0) #8
  unreachable

62:                                               ; preds = %23, %23, %23
  br label %63

63:                                               ; preds = %62, %23
  %64 = call i32 @puts(ptr noundef @.str.16)
  call void @exit(i32 noundef 0) #8
  unreachable

65:                                               ; preds = %60, %59, %55, %51, %50, %49, %40, %32
  br label %18, !llvm.loop !15

66:                                               ; preds = %18
  %67 = load ptr, ptr @stderr, align 8, !tbaa !9
  %68 = load double, ptr @FREQUENCY, align 8, !tbaa !11
  %69 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %67, ptr noundef @.str.17, double noundef %68) #7
  %70 = load ptr, ptr @stderr, align 8, !tbaa !9
  %71 = load double, ptr @SECS, align 8, !tbaa !11
  %72 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %70, ptr noundef @.str.18, double noundef %71) #7
  %73 = load ptr, ptr @stderr, align 8, !tbaa !9
  %74 = load i64, ptr @RECV_RT, align 8, !tbaa !13
  %75 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %73, ptr noundef @.str.19, i64 noundef %74) #7
  %76 = load ptr, ptr @stderr, align 8, !tbaa !9
  %77 = load i64, ptr @RECV_NRT, align 8, !tbaa !13
  %78 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %76, ptr noundef @.str.20, i64 noundef %77) #7
  %79 = load ptr, ptr @stderr, align 8, !tbaa !9
  %80 = load i64, ptr @SEND_RT, align 8, !tbaa !13
  %81 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %79, ptr noundef @.str.21, i64 noundef %80) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  call void @init_time_chan()
  %82 = load ptr, ptr %8, align 8, !tbaa !9
  %83 = getelementptr inbounds %struct.vtab, ptr %82, i32 0, i32 2
  %84 = load ptr, ptr %83, align 8, !tbaa !17
  call void %84()
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %85 = call i32 @fork() #7
  store i32 %85, ptr %10, align 4, !tbaa !5
  %86 = load i32, ptr %10, align 4, !tbaa !5
  %87 = icmp sge i32 %86, 0
  br i1 %87, label %88, label %89

88:                                               ; preds = %66
  br label %90

89:                                               ; preds = %66
  call void @__assert_fail(ptr noundef @.str.22, ptr noundef @.str.4, i32 noundef 411, ptr noundef @__PRETTY_FUNCTION__.main) #8
  unreachable

90:                                               ; preds = %88
  %91 = load i32, ptr %10, align 4, !tbaa !5
  %92 = icmp eq i32 0, %91
  br i1 %92, label %93, label %94

93:                                               ; preds = %90
  call void @print_times()
  call void @exit(i32 noundef 0) #8
  unreachable

94:                                               ; preds = %90
  store i64 0, ptr %9, align 8, !tbaa !13
  br label %95

95:                                               ; preds = %104, %94
  %96 = load i64, ptr %9, align 8, !tbaa !13
  %97 = icmp ult i64 %96, 10
  br i1 %97, label %98, label %107

98:                                               ; preds = %95
  %99 = call { i64, i64 } @get_ticks()
  %100 = getelementptr inbounds { i64, i64 }, ptr %11, i32 0, i32 0
  %101 = extractvalue { i64, i64 } %99, 0
  store i64 %101, ptr %100, align 8
  %102 = getelementptr inbounds { i64, i64 }, ptr %11, i32 0, i32 1
  %103 = extractvalue { i64, i64 } %99, 1
  store i64 %103, ptr %102, align 8
  br label %104

104:                                              ; preds = %98
  %105 = load i64, ptr %9, align 8, !tbaa !13
  %106 = add i64 %105, 1
  store i64 %106, ptr %9, align 8, !tbaa !13
  br label %95, !llvm.loop !19

107:                                              ; preds = %95
  call void @calibrate()
  %108 = load ptr, ptr @stderr, align 8, !tbaa !9
  %109 = load double, ptr @overhead, align 8, !tbaa !11
  %110 = fmul double %109, 1.000000e+06
  %111 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %108, ptr noundef @.str.23, double noundef %110) #7
  %112 = load i64, ptr @RECV_RT, align 8, !tbaa !13
  %113 = load i64, ptr @RECV_NRT, align 8, !tbaa !13
  %114 = add i64 %112, %113
  %115 = call ptr @llvm.stacksave.p0()
  store ptr %115, ptr %12, align 8
  %116 = alloca i32, i64 %114, align 16
  store i64 %114, ptr %13, align 8
  store i64 0, ptr %9, align 8, !tbaa !13
  br label %117

117:                                              ; preds = %141, %107
  %118 = load i64, ptr %9, align 8, !tbaa !13
  %119 = load i64, ptr @RECV_NRT, align 8, !tbaa !13
  %120 = icmp ult i64 %118, %119
  br i1 %120, label %121, label %144

121:                                              ; preds = %117
  %122 = call i32 @fork() #7
  %123 = load i64, ptr %9, align 8, !tbaa !13
  %124 = getelementptr inbounds i32, ptr %116, i64 %123
  store i32 %122, ptr %124, align 4, !tbaa !5
  %125 = load i64, ptr %9, align 8, !tbaa !13
  %126 = getelementptr inbounds i32, ptr %116, i64 %125
  %127 = load i32, ptr %126, align 4, !tbaa !5
  %128 = icmp sge i32 %127, 0
  br i1 %128, label %129, label %130

129:                                              ; preds = %121
  br label %131

130:                                              ; preds = %121
  call void @__assert_fail(ptr noundef @.str.24, ptr noundef @.str.4, i32 noundef 430, ptr noundef @__PRETTY_FUNCTION__.main) #8
  unreachable

131:                                              ; preds = %129
  %132 = load i64, ptr %9, align 8, !tbaa !13
  %133 = getelementptr inbounds i32, ptr %116, i64 %132
  %134 = load i32, ptr %133, align 4, !tbaa !5
  %135 = icmp eq i32 0, %134
  br i1 %135, label %136, label %140

136:                                              ; preds = %131
  %137 = load ptr, ptr %8, align 8, !tbaa !9
  %138 = getelementptr inbounds %struct.vtab, ptr %137, i32 0, i32 1
  %139 = load ptr, ptr %138, align 8, !tbaa !20
  call void %139(i32 noundef 0)
  call void @exit(i32 noundef 0) #8
  unreachable

140:                                              ; preds = %131
  br label %141

141:                                              ; preds = %140
  %142 = load i64, ptr %9, align 8, !tbaa !13
  %143 = add i64 %142, 1
  store i64 %143, ptr %9, align 8, !tbaa !13
  br label %117, !llvm.loop !21

144:                                              ; preds = %117
  %145 = load i64, ptr @RECV_NRT, align 8, !tbaa !13
  store i64 %145, ptr %9, align 8, !tbaa !13
  br label %146

146:                                              ; preds = %172, %144
  %147 = load i64, ptr %9, align 8, !tbaa !13
  %148 = load i64, ptr @RECV_NRT, align 8, !tbaa !13
  %149 = load i64, ptr @RECV_RT, align 8, !tbaa !13
  %150 = add i64 %148, %149
  %151 = icmp ult i64 %147, %150
  br i1 %151, label %152, label %175

152:                                              ; preds = %146
  %153 = call i32 @fork() #7
  %154 = load i64, ptr %9, align 8, !tbaa !13
  %155 = getelementptr inbounds i32, ptr %116, i64 %154
  store i32 %153, ptr %155, align 4, !tbaa !5
  %156 = load i64, ptr %9, align 8, !tbaa !13
  %157 = getelementptr inbounds i32, ptr %116, i64 %156
  %158 = load i32, ptr %157, align 4, !tbaa !5
  %159 = icmp sge i32 %158, 0
  br i1 %159, label %160, label %161

160:                                              ; preds = %152
  br label %162

161:                                              ; preds = %152
  call void @__assert_fail(ptr noundef @.str.24, ptr noundef @.str.4, i32 noundef 439, ptr noundef @__PRETTY_FUNCTION__.main) #8
  unreachable

162:                                              ; preds = %160
  %163 = load i64, ptr %9, align 8, !tbaa !13
  %164 = getelementptr inbounds i32, ptr %116, i64 %163
  %165 = load i32, ptr %164, align 4, !tbaa !5
  %166 = icmp eq i32 0, %165
  br i1 %166, label %167, label %171

167:                                              ; preds = %162
  %168 = load ptr, ptr %8, align 8, !tbaa !9
  %169 = getelementptr inbounds %struct.vtab, ptr %168, i32 0, i32 1
  %170 = load ptr, ptr %169, align 8, !tbaa !20
  call void %170(i32 noundef 1)
  call void @exit(i32 noundef 0) #8
  unreachable

171:                                              ; preds = %162
  br label %172

172:                                              ; preds = %171
  %173 = load i64, ptr %9, align 8, !tbaa !13
  %174 = add i64 %173, 1
  store i64 %174, ptr %9, align 8, !tbaa !13
  br label %146, !llvm.loop !22

175:                                              ; preds = %146
  %176 = load i64, ptr @SEND_RT, align 8, !tbaa !13
  %177 = alloca i32, i64 %176, align 16
  store i64 %176, ptr %14, align 8
  store i64 0, ptr %9, align 8, !tbaa !13
  br label %178

178:                                              ; preds = %202, %175
  %179 = load i64, ptr %9, align 8, !tbaa !13
  %180 = load i64, ptr @SEND_RT, align 8, !tbaa !13
  %181 = icmp ult i64 %179, %180
  br i1 %181, label %182, label %205

182:                                              ; preds = %178
  %183 = call i32 @fork() #7
  %184 = load i64, ptr %9, align 8, !tbaa !13
  %185 = getelementptr inbounds i32, ptr %177, i64 %184
  store i32 %183, ptr %185, align 4, !tbaa !5
  %186 = load i64, ptr %9, align 8, !tbaa !13
  %187 = getelementptr inbounds i32, ptr %177, i64 %186
  %188 = load i32, ptr %187, align 4, !tbaa !5
  %189 = icmp sge i32 %188, 0
  br i1 %189, label %190, label %191

190:                                              ; preds = %182
  br label %192

191:                                              ; preds = %182
  call void @__assert_fail(ptr noundef @.str.25, ptr noundef @.str.4, i32 noundef 450, ptr noundef @__PRETTY_FUNCTION__.main) #8
  unreachable

192:                                              ; preds = %190
  %193 = load i64, ptr %9, align 8, !tbaa !13
  %194 = getelementptr inbounds i32, ptr %177, i64 %193
  %195 = load i32, ptr %194, align 4, !tbaa !5
  %196 = icmp eq i32 0, %195
  br i1 %196, label %197, label %201

197:                                              ; preds = %192
  %198 = load ptr, ptr %8, align 8, !tbaa !9
  %199 = getelementptr inbounds %struct.vtab, ptr %198, i32 0, i32 0
  %200 = load ptr, ptr %199, align 8, !tbaa !23
  call void %200()
  call void @exit(i32 noundef 0) #8
  unreachable

201:                                              ; preds = %192
  br label %202

202:                                              ; preds = %201
  %203 = load i64, ptr %9, align 8, !tbaa !13
  %204 = add i64 %203, 1
  store i64 %204, ptr %9, align 8, !tbaa !13
  br label %178, !llvm.loop !24

205:                                              ; preds = %178
  store i64 0, ptr %9, align 8, !tbaa !13
  br label %206

206:                                              ; preds = %215, %205
  %207 = load i64, ptr %9, align 8, !tbaa !13
  %208 = load i64, ptr @SEND_RT, align 8, !tbaa !13
  %209 = icmp ult i64 %207, %208
  br i1 %209, label %210, label %218

210:                                              ; preds = %206
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %211 = load i64, ptr %9, align 8, !tbaa !13
  %212 = getelementptr inbounds i32, ptr %177, i64 %211
  %213 = load i32, ptr %212, align 4, !tbaa !5
  %214 = call i32 @waitpid(i32 noundef %213, ptr noundef %15, i32 noundef 0)
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %215

215:                                              ; preds = %210
  %216 = load i64, ptr %9, align 8, !tbaa !13
  %217 = add i64 %216, 1
  store i64 %217, ptr %9, align 8, !tbaa !13
  br label %206, !llvm.loop !25

218:                                              ; preds = %206
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  %219 = load i32, ptr %10, align 4, !tbaa !5
  %220 = call i32 @waitpid(i32 noundef %219, ptr noundef %16, i32 noundef 0)
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  store i64 0, ptr %9, align 8, !tbaa !13
  br label %221

221:                                              ; preds = %240, %218
  %222 = load i64, ptr %9, align 8, !tbaa !13
  %223 = load i64, ptr @RECV_RT, align 8, !tbaa !13
  %224 = load i64, ptr @RECV_NRT, align 8, !tbaa !13
  %225 = add i64 %223, %224
  %226 = icmp ult i64 %222, %225
  br i1 %226, label %227, label %243

227:                                              ; preds = %221
  %228 = load ptr, ptr %8, align 8, !tbaa !9
  %229 = icmp eq ptr %228, @vtab_pipe
  br i1 %229, label %230, label %235

230:                                              ; preds = %227
  %231 = load i64, ptr %9, align 8, !tbaa !13
  %232 = getelementptr inbounds i32, ptr %116, i64 %231
  %233 = load i32, ptr %232, align 4, !tbaa !5
  %234 = call i32 @kill(i32 noundef %233, i32 noundef 15) #7
  br label %235

235:                                              ; preds = %230, %227
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %236 = load i64, ptr %9, align 8, !tbaa !13
  %237 = getelementptr inbounds i32, ptr %116, i64 %236
  %238 = load i32, ptr %237, align 4, !tbaa !5
  %239 = call i32 @waitpid(i32 noundef %238, ptr noundef %17, i32 noundef 0)
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %240

240:                                              ; preds = %235
  %241 = load i64, ptr %9, align 8, !tbaa !13
  %242 = add i64 %241, 1
  store i64 %242, ptr %9, align 8, !tbaa !13
  br label %221, !llvm.loop !26

243:                                              ; preds = %221
  %244 = load ptr, ptr %8, align 8, !tbaa !9
  %245 = getelementptr inbounds %struct.vtab, ptr %244, i32 0, i32 3
  %246 = load ptr, ptr %245, align 8, !tbaa !27
  call void %246()
  call void @exit(i32 noundef 0) #8
  unreachable
}

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

; Function Attrs: nounwind
declare double @strtod(ptr noundef, ptr noundef) #1

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr noundef nonnull) #4

declare void @ach_print_version(ptr noundef) #5

declare i32 @puts(ptr noundef) #5

; Function Attrs: nounwind
declare i32 @fork() #1

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #6

declare i32 @waitpid(i32 noundef, ptr noundef, i32 noundef) #5

; Function Attrs: nounwind
declare i32 @kill(i32 noundef, i32 noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint nounwind willreturn memory(read) 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 = { "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 = { nocallback nofree nosync nounwind willreturn }
attributes #7 = { nounwind }
attributes #8 = { noreturn nounwind }
attributes #9 = { nounwind willreturn memory(read) }

!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 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!18, !10, i64 16}
!18 = !{!"vtab", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!19 = distinct !{!19, !16}
!20 = !{!18, !10, i64 8}
!21 = distinct !{!21, !16}
!22 = distinct !{!22, !16}
!23 = !{!18, !10, i64 0}
!24 = distinct !{!24, !16}
!25 = distinct !{!25, !16}
!26 = distinct !{!26, !16}
!27 = !{!18, !10, i64 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.vtab = type { ptr, ptr, ptr, ptr }

@FREQUENCY = external dso_local local_unnamed_addr global double, align 8
@SECS = external dso_local local_unnamed_addr global double, align 8
@RECV_RT = external dso_local local_unnamed_addr global i64, align 8
@RECV_NRT = external dso_local local_unnamed_addr global i64, align 8
@SEND_RT = external dso_local local_unnamed_addr global i64, align 8
@PASS_NO_RT = external dso_local local_unnamed_addr global i32, align 4
@KERNDEV = external dso_local local_unnamed_addr global i32, align 4
@overhead = external dso_local local_unnamed_addr global double, align 8
@stderr = external local_unnamed_addr global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [60 x i8], align 1
@vtab_ach = external dso_local global %struct.vtab, align 8
@vtab_pipe = external dso_local global %struct.vtab, align 8
@.str.12 = external hidden unnamed_addr constant [18 x i8], align 1
@optarg = external local_unnamed_addr global ptr, align 8
@.str.13 = external hidden unnamed_addr constant [7 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [23 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [502 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [20 x i8], align 1

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @calibrate() local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden { i64, i64 } @get_ticks() local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local void @init_time_chan() local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local void @print_times() local_unnamed_addr #3

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

; Function Attrs: noreturn nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #4 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #9
  store ptr null, ptr %3, align 8, !tbaa !5
  br label %7

7:                                                ; preds = %.backedge, %2
  %.0 = phi ptr [ @vtab_ach, %2 ], [ %.0.be, %.backedge ]
  %8 = tail call i32 @getopt(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.12) #9
  switch i32 %8, label %35 [
    i32 -1, label %37
    i32 102, label %9
    i32 115, label %14
    i32 112, label %19
    i32 107, label %24
    i32 114, label %25
    i32 108, label %29
    i32 103, label %33
    i32 80, label %.backedge
    i32 86, label %34
  ]

.backedge:                                        ; preds = %7, %19, %14, %9, %33, %29, %25, %24
  %.0.be = phi ptr [ %.0, %33 ], [ %.0, %29 ], [ %.0, %25 ], [ %.0, %24 ], [ %.0, %19 ], [ %.0, %14 ], [ %.0, %9 ], [ @vtab_pipe, %7 ]
  br label %7, !llvm.loop !9

9:                                                ; preds = %7
  %10 = load ptr, ptr @optarg, align 8, !tbaa !5
  %11 = call double @strtod(ptr noundef %10, ptr noundef nonnull %3) #9
  store double %11, ptr @FREQUENCY, align 8, !tbaa !11
  %12 = load ptr, ptr %3, align 8, !tbaa !5
  %.not45 = icmp eq ptr %12, null
  br i1 %.not45, label %13, label %.backedge

13:                                               ; preds = %9
  tail call void @__assert_fail(ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.4, i32 noundef 345, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #10
  unreachable

14:                                               ; preds = %7
  %15 = load ptr, ptr @optarg, align 8, !tbaa !5
  %16 = call double @strtod(ptr noundef %15, ptr noundef nonnull %3) #9
  store double %16, ptr @SECS, align 8, !tbaa !11
  %17 = load ptr, ptr %3, align 8, !tbaa !5
  %.not44 = icmp eq ptr %17, null
  br i1 %.not44, label %18, label %.backedge

18:                                               ; preds = %14
  tail call void @__assert_fail(ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.4, i32 noundef 349, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #10
  unreachable

19:                                               ; preds = %7
  %20 = load ptr, ptr @optarg, align 8, !tbaa !5
  %21 = tail call i32 @atoi(ptr nocapture noundef %20) #11
  %22 = sext i32 %21 to i64
  store i64 %22, ptr @SEND_RT, align 8, !tbaa !13
  %.not43 = icmp eq i32 %21, 0
  br i1 %.not43, label %23, label %.backedge

23:                                               ; preds = %19
  tail call void @__assert_fail(ptr noundef nonnull @.str.14, ptr noundef nonnull @.str.4, i32 noundef 353, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #10
  unreachable

24:                                               ; preds = %7
  store i32 1, ptr @KERNDEV, align 4, !tbaa !15
  br label %.backedge

25:                                               ; preds = %7
  %26 = load ptr, ptr @optarg, align 8, !tbaa !5
  %27 = tail call i32 @atoi(ptr nocapture noundef %26) #11
  %28 = sext i32 %27 to i64
  store i64 %28, ptr @RECV_RT, align 8, !tbaa !13
  br label %.backedge

29:                                               ; preds = %7
  %30 = load ptr, ptr @optarg, align 8, !tbaa !5
  %31 = tail call i32 @atoi(ptr nocapture noundef %30) #11
  %32 = sext i32 %31 to i64
  store i64 %32, ptr @RECV_NRT, align 8, !tbaa !13
  br label %.backedge

33:                                               ; preds = %7
  store i32 1, ptr @PASS_NO_RT, align 4, !tbaa !15
  br label %.backedge

34:                                               ; preds = %7
  tail call void @ach_print_version(ptr noundef nonnull @.str.15) #9
  tail call void @exit(i32 noundef 0) #10
  unreachable

35:                                               ; preds = %7
  %36 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.16)
  tail call void @exit(i32 noundef 0) #10
  unreachable

37:                                               ; preds = %7
  %38 = load ptr, ptr @stderr, align 8, !tbaa !5
  %39 = load double, ptr @FREQUENCY, align 8, !tbaa !11
  %40 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %38, ptr noundef nonnull @.str.17, double noundef %39) #12
  %41 = load ptr, ptr @stderr, align 8, !tbaa !5
  %42 = load double, ptr @SECS, align 8, !tbaa !11
  %43 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %41, ptr noundef nonnull @.str.18, double noundef %42) #12
  %44 = load ptr, ptr @stderr, align 8, !tbaa !5
  %45 = load i64, ptr @RECV_RT, align 8, !tbaa !13
  %46 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %44, ptr noundef nonnull @.str.19, i64 noundef %45) #12
  %47 = load ptr, ptr @stderr, align 8, !tbaa !5
  %48 = load i64, ptr @RECV_NRT, align 8, !tbaa !13
  %49 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %47, ptr noundef nonnull @.str.20, i64 noundef %48) #12
  %50 = load ptr, ptr @stderr, align 8, !tbaa !5
  %51 = load i64, ptr @SEND_RT, align 8, !tbaa !13
  %52 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %50, ptr noundef nonnull @.str.21, i64 noundef %51) #12
  tail call void @init_time_chan()
  %53 = getelementptr inbounds i8, ptr %.0, i64 16
  %54 = load ptr, ptr %53, align 8, !tbaa !17
  tail call void %54() #9
  %55 = tail call i32 @fork() #9
  %56 = icmp sgt i32 %55, -1
  br i1 %56, label %58, label %57

57:                                               ; preds = %37
  tail call void @__assert_fail(ptr noundef nonnull @.str.22, ptr noundef nonnull @.str.4, i32 noundef 411, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #10
  unreachable

58:                                               ; preds = %37
  %59 = icmp eq i32 %55, 0
  br i1 %59, label %78, label %.preheader47.preheader

.preheader47.preheader:                           ; preds = %58
  %60 = tail call { i64, i64 } @get_ticks()
  %61 = tail call { i64, i64 } @get_ticks()
  %62 = tail call { i64, i64 } @get_ticks()
  %63 = tail call { i64, i64 } @get_ticks()
  %64 = tail call { i64, i64 } @get_ticks()
  %65 = tail call { i64, i64 } @get_ticks()
  %66 = tail call { i64, i64 } @get_ticks()
  %67 = tail call { i64, i64 } @get_ticks()
  %68 = tail call { i64, i64 } @get_ticks()
  %69 = tail call { i64, i64 } @get_ticks()
  tail call void @calibrate()
  %70 = load ptr, ptr @stderr, align 8, !tbaa !5
  %71 = load double, ptr @overhead, align 8, !tbaa !11
  %72 = fmul double %71, 1.000000e+06
  %73 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %70, ptr noundef nonnull @.str.23, double noundef %72) #12
  %74 = load i64, ptr @RECV_RT, align 8, !tbaa !13
  %75 = load i64, ptr @RECV_NRT, align 8, !tbaa !13
  %76 = add i64 %75, %74
  %77 = alloca i32, i64 %76, align 16
  %.not = icmp eq i64 %75, 0
  br i1 %.not, label %.preheader46, label %.lr.ph

78:                                               ; preds = %58
  tail call void @print_times()
  tail call void @exit(i32 noundef 0) #10
  unreachable

79:                                               ; preds = %91
  %80 = add nuw i64 %.13656, 1
  %81 = load i64, ptr @RECV_NRT, align 8, !tbaa !13
  %82 = icmp ult i64 %80, %81
  br i1 %82, label %.lr.ph, label %.preheader46.loopexit, !llvm.loop !19

.preheader46.loopexit:                            ; preds = %79
  %.pre = load i64, ptr @RECV_RT, align 8, !tbaa !13
  br label %.preheader46

.preheader46:                                     ; preds = %.preheader46.loopexit, %.preheader47.preheader
  %83 = phi i64 [ %74, %.preheader47.preheader ], [ %.pre, %.preheader46.loopexit ]
  %84 = phi i64 [ 0, %.preheader47.preheader ], [ %81, %.preheader46.loopexit ]
  %85 = add i64 %83, %84
  %86 = icmp ult i64 %84, %85
  br i1 %86, label %.lr.ph58, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader47.preheader, %79
  %.13656 = phi i64 [ %80, %79 ], [ 0, %.preheader47.preheader ]
  %87 = tail call i32 @fork() #9
  %88 = getelementptr inbounds i32, ptr %77, i64 %.13656
  store i32 %87, ptr %88, align 4, !tbaa !15
  %89 = icmp sgt i32 %87, -1
  br i1 %89, label %91, label %90

90:                                               ; preds = %.lr.ph
  tail call void @__assert_fail(ptr noundef nonnull @.str.24, ptr noundef nonnull @.str.4, i32 noundef 430, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #10
  unreachable

91:                                               ; preds = %.lr.ph
  %92 = icmp eq i32 %87, 0
  br i1 %92, label %93, label %79

93:                                               ; preds = %91
  %94 = getelementptr inbounds i8, ptr %.0, i64 8
  %95 = load ptr, ptr %94, align 8, !tbaa !20
  tail call void %95(i32 noundef 0) #9
  tail call void @exit(i32 noundef 0) #10
  unreachable

96:                                               ; preds = %106
  %97 = add nuw i64 %.257, 1
  %98 = load i64, ptr @RECV_NRT, align 8, !tbaa !13
  %99 = load i64, ptr @RECV_RT, align 8, !tbaa !13
  %100 = add i64 %99, %98
  %101 = icmp ult i64 %97, %100
  br i1 %101, label %.lr.ph58, label %._crit_edge, !llvm.loop !21

.lr.ph58:                                         ; preds = %.preheader46, %96
  %.257 = phi i64 [ %97, %96 ], [ %84, %.preheader46 ]
  %102 = tail call i32 @fork() #9
  %103 = getelementptr inbounds i32, ptr %77, i64 %.257
  store i32 %102, ptr %103, align 4, !tbaa !15
  %104 = icmp sgt i32 %102, -1
  br i1 %104, label %106, label %105

105:                                              ; preds = %.lr.ph58
  tail call void @__assert_fail(ptr noundef nonnull @.str.24, ptr noundef nonnull @.str.4, i32 noundef 439, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #10
  unreachable

106:                                              ; preds = %.lr.ph58
  %107 = icmp eq i32 %102, 0
  br i1 %107, label %108, label %96

108:                                              ; preds = %106
  %109 = getelementptr inbounds i8, ptr %.0, i64 8
  %110 = load ptr, ptr %109, align 8, !tbaa !20
  tail call void %110(i32 noundef 1) #9
  tail call void @exit(i32 noundef 0) #10
  unreachable

._crit_edge:                                      ; preds = %96, %.preheader46
  %111 = load i64, ptr @SEND_RT, align 8, !tbaa !13
  %112 = alloca i32, i64 %111, align 16
  %.not69 = icmp eq i64 %111, 0
  br i1 %.not69, label %._crit_edge64, label %.lr.ph61

113:                                              ; preds = %122
  %114 = add nuw i64 %.359, 1
  %115 = load i64, ptr @SEND_RT, align 8, !tbaa !13
  %116 = icmp ult i64 %114, %115
  br i1 %116, label %.lr.ph61, label %.preheader, !llvm.loop !22

.preheader:                                       ; preds = %113
  %117 = icmp eq i64 %115, 0
  br i1 %117, label %._crit_edge64, label %.lr.ph63

.lr.ph61:                                         ; preds = %._crit_edge, %113
  %.359 = phi i64 [ %114, %113 ], [ 0, %._crit_edge ]
  %118 = tail call i32 @fork() #9
  %119 = getelementptr inbounds i32, ptr %112, i64 %.359
  store i32 %118, ptr %119, align 4, !tbaa !15
  %120 = icmp sgt i32 %118, -1
  br i1 %120, label %122, label %121

121:                                              ; preds = %.lr.ph61
  tail call void @__assert_fail(ptr noundef nonnull @.str.25, ptr noundef nonnull @.str.4, i32 noundef 450, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #10
  unreachable

122:                                              ; preds = %.lr.ph61
  %123 = icmp eq i32 %118, 0
  br i1 %123, label %124, label %113

124:                                              ; preds = %122
  %125 = load ptr, ptr %.0, align 8, !tbaa !23
  tail call void %125() #9
  tail call void @exit(i32 noundef 0) #10
  unreachable

.lr.ph63:                                         ; preds = %.preheader, %.lr.ph63
  %.462 = phi i64 [ %129, %.lr.ph63 ], [ 0, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #9
  %126 = getelementptr inbounds i32, ptr %112, i64 %.462
  %127 = load i32, ptr %126, align 4, !tbaa !15
  %128 = call i32 @waitpid(i32 noundef %127, ptr noundef nonnull %4, i32 noundef 0) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  %129 = add nuw i64 %.462, 1
  %130 = load i64, ptr @SEND_RT, align 8, !tbaa !13
  %131 = icmp ult i64 %129, %130
  br i1 %131, label %.lr.ph63, label %._crit_edge64, !llvm.loop !24

._crit_edge64:                                    ; preds = %.lr.ph63, %._crit_edge, %.preheader
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #9
  %132 = call i32 @waitpid(i32 noundef %55, ptr noundef nonnull %5, i32 noundef 0) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #9
  %133 = load i64, ptr @RECV_RT, align 8, !tbaa !13
  %134 = load i64, ptr @RECV_NRT, align 8, !tbaa !13
  %135 = sub i64 0, %133
  %.not71 = icmp eq i64 %134, %135
  br i1 %.not71, label %._crit_edge68, label %.lr.ph67

.lr.ph67:                                         ; preds = %._crit_edge64
  %136 = icmp eq ptr %.0, @vtab_pipe
  br i1 %136, label %.lr.ph67.split.us, label %.lr.ph67.split

.lr.ph67.split.us:                                ; preds = %.lr.ph67, %.lr.ph67.split.us
  %.565.us = phi i64 [ %141, %.lr.ph67.split.us ], [ 0, %.lr.ph67 ]
  %137 = getelementptr inbounds i32, ptr %77, i64 %.565.us
  %138 = load i32, ptr %137, align 4, !tbaa !15
  %139 = call i32 @kill(i32 noundef %138, i32 noundef 15) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #9
  %140 = call i32 @waitpid(i32 noundef %138, ptr noundef nonnull %6, i32 noundef 0) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #9
  %141 = add nuw i64 %.565.us, 1
  %142 = load i64, ptr @RECV_RT, align 8, !tbaa !13
  %143 = load i64, ptr @RECV_NRT, align 8, !tbaa !13
  %144 = add i64 %143, %142
  %145 = icmp ult i64 %141, %144
  br i1 %145, label %.lr.ph67.split.us, label %._crit_edge68, !llvm.loop !25

.lr.ph67.split:                                   ; preds = %.lr.ph67, %.lr.ph67.split
  %.565 = phi i64 [ %149, %.lr.ph67.split ], [ 0, %.lr.ph67 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #9
  %146 = getelementptr inbounds i32, ptr %77, i64 %.565
  %147 = load i32, ptr %146, align 4, !tbaa !15
  %148 = call i32 @waitpid(i32 noundef %147, ptr noundef nonnull %6, i32 noundef 0) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #9
  %149 = add nuw i64 %.565, 1
  %150 = load i64, ptr @RECV_RT, align 8, !tbaa !13
  %151 = load i64, ptr @RECV_NRT, align 8, !tbaa !13
  %152 = add i64 %151, %150
  %153 = icmp ult i64 %149, %152
  br i1 %153, label %.lr.ph67.split, label %._crit_edge68, !llvm.loop !25

._crit_edge68:                                    ; preds = %.lr.ph67.split, %.lr.ph67.split.us, %._crit_edge64
  %154 = getelementptr inbounds i8, ptr %.0, i64 24
  %155 = load ptr, ptr %154, align 8, !tbaa !26
  call void %155() #9
  call void @exit(i32 noundef 0) #10
  unreachable
}

; Function Attrs: nounwind
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nofree nounwind willreturn
declare double @strtod(ptr noundef readonly, ptr nocapture noundef) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr nocapture noundef nonnull) local_unnamed_addr #7

declare void @ach_print_version(ptr noundef) local_unnamed_addr #8

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

; Function Attrs: nofree nounwind
declare i32 @fork() local_unnamed_addr #1

declare i32 @waitpid(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #8

; Function Attrs: nounwind
declare i32 @kill(i32 noundef, i32 noundef) local_unnamed_addr #5

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind "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 = { mustprogress nofree nounwind willreturn "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 = { inlinehint mustprogress nofree nounwind willreturn memory(read) 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 #8 = { "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 = { noreturn nounwind }
attributes #11 = { nounwind willreturn memory(read) }
attributes #12 = { cold nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = !{!18, !6, i64 16}
!18 = !{!"vtab", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!19 = distinct !{!19, !10}
!20 = !{!18, !6, i64 8}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !10}
!23 = !{!18, !6, i64 0}
!24 = distinct !{!24, !10}
!25 = distinct !{!25, !10}
!26 = !{!18, !6, i64 24}


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