; LLVM IR from rigtorp/ipc-bench :: src (tcp_thr)

; 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.timespec = type { i64, i64 }
%struct.sockaddr_storage = type { i16, [118 x i8], i64 }
%struct.addrinfo = type { i32, i32, i32, i32, i32, ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [47 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@stderr = external global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [30 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %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 i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca %struct.timespec, align 8
  %12 = alloca %struct.timespec, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %struct.sockaddr_storage, align 8
  %18 = alloca i32, align 4
  %19 = alloca %struct.addrinfo, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = 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
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 1, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.start.p0(i64 128, ptr %17) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.start.p0(i64 48, ptr %19) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  %24 = load i32, ptr %4, align 4, !tbaa !5
  %25 = icmp ne i32 %24, 3
  br i1 %25, label %26, label %28

26:                                               ; preds = %2
  %27 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %23, align 4
  br label %209

28:                                               ; preds = %2
  %29 = load ptr, ptr %5, align 8, !tbaa !9
  %30 = getelementptr inbounds ptr, ptr %29, i64 1
  %31 = load ptr, ptr %30, align 8, !tbaa !9
  %32 = call i32 @atoi(ptr noundef %31) #8
  store i32 %32, ptr %6, align 4, !tbaa !5
  %33 = load ptr, ptr %5, align 8, !tbaa !9
  %34 = getelementptr inbounds ptr, ptr %33, i64 2
  %35 = load ptr, ptr %34, align 8, !tbaa !9
  %36 = call i64 @atol(ptr noundef %35) #8
  store i64 %36, ptr %8, align 8, !tbaa !11
  %37 = load i32, ptr %6, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = call noalias ptr @malloc(i64 noundef %38) #9
  store ptr %39, ptr %7, align 8, !tbaa !9
  %40 = load ptr, ptr %7, align 8, !tbaa !9
  %41 = icmp eq ptr %40, null
  br i1 %41, label %42, label %43

42:                                               ; preds = %28
  call void @perror(ptr noundef @.str.1)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %23, align 4
  br label %209

43:                                               ; preds = %28
  call void @llvm.memset.p0.i64(ptr align 8 %19, i8 0, i64 48, i1 false)
  %44 = getelementptr inbounds %struct.addrinfo, ptr %19, i32 0, i32 1
  store i32 0, ptr %44, align 4, !tbaa !13
  %45 = getelementptr inbounds %struct.addrinfo, ptr %19, i32 0, i32 2
  store i32 1, ptr %45, align 8, !tbaa !15
  %46 = getelementptr inbounds %struct.addrinfo, ptr %19, i32 0, i32 0
  store i32 1, ptr %46, align 8, !tbaa !16
  %47 = call i32 @getaddrinfo(ptr noundef @.str.2, ptr noundef @.str.3, ptr noundef %19, ptr noundef %20)
  store i32 %47, ptr %16, align 4, !tbaa !5
  %48 = icmp ne i32 %47, 0
  br i1 %48, label %49, label %54

49:                                               ; preds = %43
  %50 = load ptr, ptr @stderr, align 8, !tbaa !9
  %51 = load i32, ptr %16, align 4, !tbaa !5
  %52 = call ptr @gai_strerror(i32 noundef %51) #7
  %53 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %50, ptr noundef @.str.4, ptr noundef %52) #7
  store i32 1, ptr %3, align 4
  store i32 1, ptr %23, align 4
  br label %209

54:                                               ; preds = %43
  %55 = load i32, ptr %6, align 4, !tbaa !5
  %56 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %55)
  %57 = load i64, ptr %8, align 8, !tbaa !11
  %58 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i64 noundef %57)
  %59 = call i32 @fork() #7
  %60 = icmp ne i32 %59, 0
  br i1 %60, label %122, label %61

61:                                               ; preds = %54
  %62 = load ptr, ptr %20, align 8, !tbaa !9
  %63 = getelementptr inbounds %struct.addrinfo, ptr %62, i32 0, i32 1
  %64 = load i32, ptr %63, align 4, !tbaa !13
  %65 = load ptr, ptr %20, align 8, !tbaa !9
  %66 = getelementptr inbounds %struct.addrinfo, ptr %65, i32 0, i32 2
  %67 = load i32, ptr %66, align 8, !tbaa !15
  %68 = load ptr, ptr %20, align 8, !tbaa !9
  %69 = getelementptr inbounds %struct.addrinfo, ptr %68, i32 0, i32 3
  %70 = load i32, ptr %69, align 4, !tbaa !17
  %71 = call i32 @socket(i32 noundef %64, i32 noundef %67, i32 noundef %70) #7
  store i32 %71, ptr %21, align 4, !tbaa !5
  %72 = icmp eq i32 %71, -1
  br i1 %72, label %73, label %74

73:                                               ; preds = %61
  call void @perror(ptr noundef @.str.7)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %23, align 4
  br label %209

74:                                               ; preds = %61
  %75 = load i32, ptr %21, align 4, !tbaa !5
  %76 = call i32 @setsockopt(i32 noundef %75, i32 noundef 1, i32 noundef 2, ptr noundef %15, i32 noundef 4) #7
  %77 = icmp eq i32 %76, -1
  br i1 %77, label %78, label %79

78:                                               ; preds = %74
  call void @perror(ptr noundef @.str.8)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %23, align 4
  br label %209

79:                                               ; preds = %74
  %80 = load i32, ptr %21, align 4, !tbaa !5
  %81 = load ptr, ptr %20, align 8, !tbaa !9
  %82 = getelementptr inbounds %struct.addrinfo, ptr %81, i32 0, i32 5
  %83 = load ptr, ptr %82, align 8, !tbaa !18
  %84 = load ptr, ptr %20, align 8, !tbaa !9
  %85 = getelementptr inbounds %struct.addrinfo, ptr %84, i32 0, i32 4
  %86 = load i32, ptr %85, align 8, !tbaa !19
  %87 = call i32 @bind(i32 noundef %80, ptr noundef %83, i32 noundef %86) #7
  %88 = icmp eq i32 %87, -1
  br i1 %88, label %89, label %90

89:                                               ; preds = %79
  call void @perror(ptr noundef @.str.9)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %23, align 4
  br label %209

90:                                               ; preds = %79
  %91 = load i32, ptr %21, align 4, !tbaa !5
  %92 = call i32 @listen(i32 noundef %91, i32 noundef 1) #7
  %93 = icmp eq i32 %92, -1
  br i1 %93, label %94, label %95

94:                                               ; preds = %90
  call void @perror(ptr noundef @.str.10)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %23, align 4
  br label %209

95:                                               ; preds = %90
  store i32 128, ptr %18, align 4, !tbaa !5
  %96 = load i32, ptr %21, align 4, !tbaa !5
  %97 = call i32 @accept(i32 noundef %96, ptr noundef %17, ptr noundef %18)
  store i32 %97, ptr %22, align 4, !tbaa !5
  %98 = icmp eq i32 %97, -1
  br i1 %98, label %99, label %100

99:                                               ; preds = %95
  call void @perror(ptr noundef @.str.11)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %23, align 4
  br label %209

100:                                              ; preds = %95
  store i64 0, ptr %14, align 8, !tbaa !11
  br label %101

101:                                              ; preds = %117, %100
  %102 = load i64, ptr %14, align 8, !tbaa !11
  %103 = load i64, ptr %8, align 8, !tbaa !11
  %104 = load i32, ptr %6, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = mul nsw i64 %103, %105
  %107 = icmp ult i64 %102, %106
  br i1 %107, label %108, label %121

108:                                              ; preds = %101
  %109 = load i32, ptr %22, align 4, !tbaa !5
  %110 = load ptr, ptr %7, align 8, !tbaa !9
  %111 = load i32, ptr %6, align 4, !tbaa !5
  %112 = sext i32 %111 to i64
  %113 = call i64 @read(i32 noundef %109, ptr noundef %110, i64 noundef %112)
  store i64 %113, ptr %13, align 8, !tbaa !11
  %114 = load i64, ptr %13, align 8, !tbaa !11
  %115 = icmp eq i64 %114, -1
  br i1 %115, label %116, label %117

116:                                              ; preds = %108
  call void @perror(ptr noundef @.str.12)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %23, align 4
  br label %209

117:                                              ; preds = %108
  %118 = load i64, ptr %13, align 8, !tbaa !11
  %119 = load i64, ptr %14, align 8, !tbaa !11
  %120 = add i64 %119, %118
  store i64 %120, ptr %14, align 8, !tbaa !11
  br label %101, !llvm.loop !20

121:                                              ; preds = %101
  br label %208

122:                                              ; preds = %54
  %123 = call i32 @sleep(i32 noundef 1)
  %124 = load ptr, ptr %20, align 8, !tbaa !9
  %125 = getelementptr inbounds %struct.addrinfo, ptr %124, i32 0, i32 1
  %126 = load i32, ptr %125, align 4, !tbaa !13
  %127 = load ptr, ptr %20, align 8, !tbaa !9
  %128 = getelementptr inbounds %struct.addrinfo, ptr %127, i32 0, i32 2
  %129 = load i32, ptr %128, align 8, !tbaa !15
  %130 = load ptr, ptr %20, align 8, !tbaa !9
  %131 = getelementptr inbounds %struct.addrinfo, ptr %130, i32 0, i32 3
  %132 = load i32, ptr %131, align 4, !tbaa !17
  %133 = call i32 @socket(i32 noundef %126, i32 noundef %129, i32 noundef %132) #7
  store i32 %133, ptr %21, align 4, !tbaa !5
  %134 = icmp eq i32 %133, -1
  br i1 %134, label %135, label %136

135:                                              ; preds = %122
  call void @perror(ptr noundef @.str.7)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %23, align 4
  br label %209

136:                                              ; preds = %122
  %137 = load i32, ptr %21, align 4, !tbaa !5
  %138 = load ptr, ptr %20, align 8, !tbaa !9
  %139 = getelementptr inbounds %struct.addrinfo, ptr %138, i32 0, i32 5
  %140 = load ptr, ptr %139, align 8, !tbaa !18
  %141 = load ptr, ptr %20, align 8, !tbaa !9
  %142 = getelementptr inbounds %struct.addrinfo, ptr %141, i32 0, i32 4
  %143 = load i32, ptr %142, align 8, !tbaa !19
  %144 = call i32 @connect(i32 noundef %137, ptr noundef %140, i32 noundef %143)
  %145 = icmp eq i32 %144, -1
  br i1 %145, label %146, label %147

146:                                              ; preds = %136
  call void @perror(ptr noundef @.str.13)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %23, align 4
  br label %209

147:                                              ; preds = %136
  %148 = load i32, ptr %21, align 4, !tbaa !5
  %149 = call i32 @setsockopt(i32 noundef %148, i32 noundef 6, i32 noundef 1, ptr noundef %15, i32 noundef 4) #7
  %150 = icmp eq i32 %149, -1
  br i1 %150, label %151, label %152

151:                                              ; preds = %147
  call void @perror(ptr noundef @.str.8)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %23, align 4
  br label %209

152:                                              ; preds = %147
  %153 = call i32 @clock_gettime(i32 noundef 1, ptr noundef %11) #7
  %154 = icmp eq i32 %153, -1
  br i1 %154, label %155, label %156

155:                                              ; preds = %152
  call void @perror(ptr noundef @.str.14)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %23, align 4
  br label %209

156:                                              ; preds = %152
  store i64 0, ptr %9, align 8, !tbaa !11
  br label %157

157:                                              ; preds = %172, %156
  %158 = load i64, ptr %9, align 8, !tbaa !11
  %159 = load i64, ptr %8, align 8, !tbaa !11
  %160 = icmp slt i64 %158, %159
  br i1 %160, label %161, label %175

161:                                              ; preds = %157
  %162 = load i32, ptr %21, align 4, !tbaa !5
  %163 = load ptr, ptr %7, align 8, !tbaa !9
  %164 = load i32, ptr %6, align 4, !tbaa !5
  %165 = sext i32 %164 to i64
  %166 = call i64 @write(i32 noundef %162, ptr noundef %163, i64 noundef %165)
  %167 = load i32, ptr %6, align 4, !tbaa !5
  %168 = sext i32 %167 to i64
  %169 = icmp ne i64 %166, %168
  br i1 %169, label %170, label %171

170:                                              ; preds = %161
  call void @perror(ptr noundef @.str.15)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %23, align 4
  br label %209

171:                                              ; preds = %161
  br label %172

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

175:                                              ; preds = %157
  %176 = call i32 @clock_gettime(i32 noundef 1, ptr noundef %12) #7
  %177 = icmp eq i32 %176, -1
  br i1 %177, label %178, label %179

178:                                              ; preds = %175
  call void @perror(ptr noundef @.str.14)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %23, align 4
  br label %209

179:                                              ; preds = %175
  %180 = getelementptr inbounds %struct.timespec, ptr %12, i32 0, i32 0
  %181 = load i64, ptr %180, align 8, !tbaa !23
  %182 = getelementptr inbounds %struct.timespec, ptr %11, i32 0, i32 0
  %183 = load i64, ptr %182, align 8, !tbaa !23
  %184 = sub nsw i64 %181, %183
  %185 = mul nsw i64 %184, 1000000
  %186 = getelementptr inbounds %struct.timespec, ptr %12, i32 0, i32 1
  %187 = load i64, ptr %186, align 8, !tbaa !25
  %188 = getelementptr inbounds %struct.timespec, ptr %11, i32 0, i32 1
  %189 = load i64, ptr %188, align 8, !tbaa !25
  %190 = sub nsw i64 %187, %189
  %191 = sdiv i64 %190, 1000
  %192 = add nsw i64 %185, %191
  store i64 %192, ptr %10, align 8, !tbaa !11
  %193 = load i64, ptr %8, align 8, !tbaa !11
  %194 = mul nsw i64 %193, 1000000
  %195 = load i64, ptr %10, align 8, !tbaa !11
  %196 = sdiv i64 %194, %195
  %197 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, i64 noundef %196)
  %198 = load i64, ptr %8, align 8, !tbaa !11
  %199 = mul nsw i64 %198, 1000000
  %200 = load i64, ptr %10, align 8, !tbaa !11
  %201 = sdiv i64 %199, %200
  %202 = load i32, ptr %6, align 4, !tbaa !5
  %203 = sext i32 %202 to i64
  %204 = mul nsw i64 %201, %203
  %205 = mul nsw i64 %204, 8
  %206 = sdiv i64 %205, 1000000
  %207 = call i32 (ptr, ...) @printf(ptr noundef @.str.17, i64 noundef %206)
  br label %208

208:                                              ; preds = %179, %121
  store i32 0, ptr %3, align 4
  store i32 1, ptr %23, align 4
  br label %209

209:                                              ; preds = %208, %178, %170, %155, %151, %146, %135, %116, %99, %94, %89, %78, %73, %49, %42, %26
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 128, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  %210 = load i32, ptr %3, align 4
  ret i32 %210
}

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

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

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

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare i64 @atol(ptr noundef nonnull) #3

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #4

declare void @perror(ptr noundef) #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

declare i32 @getaddrinfo(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

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

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

; Function Attrs: nounwind
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #6

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

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

; Function Attrs: nounwind
declare i32 @listen(i32 noundef, i32 noundef) #6

declare i32 @accept(i32 noundef, ptr noundef, ptr noundef) #2

declare i64 @read(i32 noundef, ptr noundef, i64 noundef) #2

declare i32 @sleep(i32 noundef) #2

declare i32 @connect(i32 noundef, ptr noundef, i32 noundef) #2

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

declare i64 @write(i32 noundef, ptr noundef, i64 noundef) #2

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

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

!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 = !{!"long", !7, i64 0}
!13 = !{!14, !6, i64 4}
!14 = !{!"addrinfo", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !10, i64 24, !10, i64 32, !10, i64 40}
!15 = !{!14, !6, i64 8}
!16 = !{!14, !6, i64 0}
!17 = !{!14, !6, i64 12}
!18 = !{!14, !10, i64 24}
!19 = !{!14, !6, i64 16}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = !{!24, !12, i64 0}
!24 = !{!"timespec", !12, i64 0, !12, i64 8}
!25 = !{!24, !12, i64 8}


; 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.timespec = type { i64, i64 }
%struct.sockaddr_storage = type { i16, [118 x i8], i64 }
%struct.addrinfo = type { i32, i32, i32, i32, i32, ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [47 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [30 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @main(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = alloca %struct.timespec, align 8
  %4 = alloca %struct.timespec, align 8
  %5 = alloca i32, align 4
  %6 = alloca %struct.sockaddr_storage, align 8
  %7 = alloca i32, align 4
  %8 = alloca %struct.addrinfo, align 8
  %9 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #9
  store i32 1, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %6) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #9
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %8) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #9
  %.not = icmp eq i32 %0, 3
  br i1 %.not, label %12, label %10

10:                                               ; preds = %2
  %11 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  br label %.loopexit

12:                                               ; preds = %2
  %13 = getelementptr inbounds i8, ptr %1, i64 8
  %14 = load ptr, ptr %13, align 8, !tbaa !9
  %15 = tail call i32 @atoi(ptr nocapture noundef %14) #10
  %16 = getelementptr inbounds i8, ptr %1, i64 16
  %17 = load ptr, ptr %16, align 8, !tbaa !9
  %18 = tail call i64 @atol(ptr nocapture noundef %17) #10
  %19 = sext i32 %15 to i64
  %20 = tail call noalias ptr @malloc(i64 noundef %19) #11
  %21 = icmp eq ptr %20, null
  br i1 %21, label %22, label %23

22:                                               ; preds = %12
  tail call void @perror(ptr noundef nonnull @.str.1) #12
  br label %.loopexit

23:                                               ; preds = %12
  %24 = getelementptr inbounds i8, ptr %8, i64 8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %8, i8 0, i64 48, i1 false)
  store i32 1, ptr %24, align 8, !tbaa !11
  store i32 1, ptr %8, align 8, !tbaa !13
  %25 = call i32 @getaddrinfo(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, ptr noundef nonnull %8, ptr noundef nonnull %9) #9
  %.not44 = icmp eq i32 %25, 0
  br i1 %.not44, label %30, label %26

26:                                               ; preds = %23
  %27 = load ptr, ptr @stderr, align 8, !tbaa !9
  %28 = call ptr @gai_strerror(i32 noundef %25) #9
  %29 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %27, ptr noundef nonnull @.str.4, ptr noundef %28) #13
  br label %.loopexit

30:                                               ; preds = %23
  %31 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i32 noundef %15)
  %32 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i64 noundef %18)
  %33 = call i32 @fork() #9
  %.not45 = icmp eq i32 %33, 0
  br i1 %.not45, label %34, label %73

34:                                               ; preds = %30
  %35 = load ptr, ptr %9, align 8, !tbaa !9
  %36 = getelementptr inbounds i8, ptr %35, i64 4
  %37 = load i32, ptr %36, align 4, !tbaa !14
  %38 = getelementptr inbounds i8, ptr %35, i64 8
  %39 = load i32, ptr %38, align 8, !tbaa !11
  %40 = getelementptr inbounds i8, ptr %35, i64 12
  %41 = load i32, ptr %40, align 4, !tbaa !15
  %42 = call i32 @socket(i32 noundef %37, i32 noundef %39, i32 noundef %41) #9
  %43 = icmp eq i32 %42, -1
  br i1 %43, label %44, label %45

44:                                               ; preds = %34
  call void @perror(ptr noundef nonnull @.str.7) #12
  br label %.loopexit

45:                                               ; preds = %34
  %46 = call i32 @setsockopt(i32 noundef %42, i32 noundef 1, i32 noundef 2, ptr noundef nonnull %5, i32 noundef 4) #9
  %47 = icmp eq i32 %46, -1
  br i1 %47, label %48, label %49

48:                                               ; preds = %45
  call void @perror(ptr noundef nonnull @.str.8) #12
  br label %.loopexit

49:                                               ; preds = %45
  %50 = load ptr, ptr %9, align 8, !tbaa !9
  %51 = getelementptr inbounds i8, ptr %50, i64 24
  %52 = load ptr, ptr %51, align 8, !tbaa !16
  %53 = getelementptr inbounds i8, ptr %50, i64 16
  %54 = load i32, ptr %53, align 8, !tbaa !17
  %55 = call i32 @bind(i32 noundef %42, ptr noundef %52, i32 noundef %54) #9
  %56 = icmp eq i32 %55, -1
  br i1 %56, label %57, label %58

57:                                               ; preds = %49
  call void @perror(ptr noundef nonnull @.str.9) #12
  br label %.loopexit

58:                                               ; preds = %49
  %59 = call i32 @listen(i32 noundef %42, i32 noundef 1) #9
  %60 = icmp eq i32 %59, -1
  br i1 %60, label %61, label %62

61:                                               ; preds = %58
  call void @perror(ptr noundef nonnull @.str.10) #12
  br label %.loopexit

62:                                               ; preds = %58
  store i32 128, ptr %7, align 4, !tbaa !5
  %63 = call i32 @accept(i32 noundef %42, ptr noundef nonnull %6, ptr noundef nonnull %7) #9
  %64 = icmp eq i32 %63, -1
  br i1 %64, label %66, label %.preheader

.preheader:                                       ; preds = %62
  %65 = mul nsw i64 %18, %19
  %.not51 = icmp eq i64 %65, 0
  br i1 %.not51, label %.loopexit, label %.lr.ph50

66:                                               ; preds = %62
  call void @perror(ptr noundef nonnull @.str.11) #12
  br label %.loopexit

67:                                               ; preds = %.lr.ph50
  %68 = add i64 %70, %.03649
  %69 = icmp ult i64 %68, %65
  br i1 %69, label %.lr.ph50, label %.loopexit, !llvm.loop !18

.lr.ph50:                                         ; preds = %.preheader, %67
  %.03649 = phi i64 [ %68, %67 ], [ 0, %.preheader ]
  %70 = call i64 @read(i32 noundef %63, ptr noundef nonnull %20, i64 noundef %19) #9
  %71 = icmp eq i64 %70, -1
  br i1 %71, label %72, label %67

72:                                               ; preds = %.lr.ph50
  call void @perror(ptr noundef nonnull @.str.12) #12
  br label %.loopexit

73:                                               ; preds = %30
  %74 = call i32 @sleep(i32 noundef 1) #9
  %75 = load ptr, ptr %9, align 8, !tbaa !9
  %76 = getelementptr inbounds i8, ptr %75, i64 4
  %77 = load i32, ptr %76, align 4, !tbaa !14
  %78 = getelementptr inbounds i8, ptr %75, i64 8
  %79 = load i32, ptr %78, align 8, !tbaa !11
  %80 = getelementptr inbounds i8, ptr %75, i64 12
  %81 = load i32, ptr %80, align 4, !tbaa !15
  %82 = call i32 @socket(i32 noundef %77, i32 noundef %79, i32 noundef %81) #9
  %83 = icmp eq i32 %82, -1
  br i1 %83, label %84, label %85

84:                                               ; preds = %73
  call void @perror(ptr noundef nonnull @.str.7) #12
  br label %.loopexit

85:                                               ; preds = %73
  %86 = load ptr, ptr %9, align 8, !tbaa !9
  %87 = getelementptr inbounds i8, ptr %86, i64 24
  %88 = load ptr, ptr %87, align 8, !tbaa !16
  %89 = getelementptr inbounds i8, ptr %86, i64 16
  %90 = load i32, ptr %89, align 8, !tbaa !17
  %91 = call i32 @connect(i32 noundef %82, ptr noundef %88, i32 noundef %90) #9
  %92 = icmp eq i32 %91, -1
  br i1 %92, label %93, label %94

93:                                               ; preds = %85
  call void @perror(ptr noundef nonnull @.str.13) #12
  br label %.loopexit

94:                                               ; preds = %85
  %95 = call i32 @setsockopt(i32 noundef %82, i32 noundef 6, i32 noundef 1, ptr noundef nonnull %5, i32 noundef 4) #9
  %96 = icmp eq i32 %95, -1
  br i1 %96, label %97, label %98

97:                                               ; preds = %94
  call void @perror(ptr noundef nonnull @.str.8) #12
  br label %.loopexit

98:                                               ; preds = %94
  %99 = call i32 @clock_gettime(i32 noundef 1, ptr noundef nonnull %3) #9
  %100 = icmp eq i32 %99, -1
  br i1 %100, label %102, label %.preheader47

.preheader47:                                     ; preds = %98
  %101 = icmp sgt i64 %18, 0
  br i1 %101, label %.lr.ph, label %._crit_edge

102:                                              ; preds = %98
  call void @perror(ptr noundef nonnull @.str.14) #12
  br label %.loopexit

103:                                              ; preds = %.lr.ph
  %104 = add nuw nsw i64 %.03548, 1
  %exitcond.not = icmp eq i64 %104, %18
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !20

.lr.ph:                                           ; preds = %.preheader47, %103
  %.03548 = phi i64 [ %104, %103 ], [ 0, %.preheader47 ]
  %105 = call i64 @write(i32 noundef %82, ptr noundef nonnull %20, i64 noundef %19) #9
  %.not46 = icmp eq i64 %105, %19
  br i1 %.not46, label %103, label %106

106:                                              ; preds = %.lr.ph
  call void @perror(ptr noundef nonnull @.str.15) #12
  br label %.loopexit

._crit_edge:                                      ; preds = %103, %.preheader47
  %107 = call i32 @clock_gettime(i32 noundef 1, ptr noundef nonnull %4) #9
  %108 = icmp eq i32 %107, -1
  br i1 %108, label %109, label %110

109:                                              ; preds = %._crit_edge
  call void @perror(ptr noundef nonnull @.str.14) #12
  br label %.loopexit

110:                                              ; preds = %._crit_edge
  %111 = load i64, ptr %4, align 8, !tbaa !21
  %112 = load i64, ptr %3, align 8, !tbaa !21
  %113 = sub nsw i64 %111, %112
  %114 = mul nsw i64 %113, 1000000
  %115 = getelementptr inbounds i8, ptr %4, i64 8
  %116 = load i64, ptr %115, align 8, !tbaa !24
  %117 = getelementptr inbounds i8, ptr %3, i64 8
  %118 = load i64, ptr %117, align 8, !tbaa !24
  %119 = sub nsw i64 %116, %118
  %120 = sdiv i64 %119, 1000
  %121 = add nsw i64 %120, %114
  %122 = mul nsw i64 %18, 1000000
  %123 = sdiv i64 %122, %121
  %124 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i64 noundef %123)
  %125 = mul nsw i64 %123, %19
  %126 = sdiv i64 %125, 125000
  %127 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.17, i64 noundef %126)
  br label %.loopexit

.loopexit:                                        ; preds = %67, %.preheader, %110, %109, %106, %102, %97, %93, %84, %72, %66, %61, %57, %48, %44, %26, %22, %10
  %.0 = phi i32 [ 1, %10 ], [ 1, %22 ], [ 1, %26 ], [ 1, %84 ], [ 1, %93 ], [ 1, %97 ], [ 1, %102 ], [ 1, %106 ], [ 1, %109 ], [ 1, %44 ], [ 1, %48 ], [ 1, %57 ], [ 1, %61 ], [ 1, %66 ], [ 1, %72 ], [ 0, %110 ], [ 0, %.preheader ], [ 0, %67 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #9
  ret i32 %.0
}

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

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

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

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare i64 @atol(ptr nocapture noundef nonnull) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #4

; Function Attrs: nofree nounwind
declare void @perror(ptr nocapture noundef readonly) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

declare i32 @getaddrinfo(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #6

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

; Function Attrs: nounwind
declare ptr @gai_strerror(i32 noundef) local_unnamed_addr #7

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

; Function Attrs: nounwind
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #7

; Function Attrs: nounwind
declare i32 @setsockopt(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #7

; Function Attrs: nounwind
declare i32 @bind(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #7

; Function Attrs: nounwind
declare i32 @listen(i32 noundef, i32 noundef) local_unnamed_addr #7

declare i32 @accept(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #6

; Function Attrs: nofree
declare noundef i64 @read(i32 noundef, ptr nocapture noundef, i64 noundef) local_unnamed_addr #8

declare i32 @sleep(i32 noundef) local_unnamed_addr #6

declare i32 @connect(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #6

; Function Attrs: nounwind
declare i32 @clock_gettime(i32 noundef, ptr noundef) local_unnamed_addr #7

; Function Attrs: nofree
declare noundef i64 @write(i32 noundef, ptr nocapture noundef readonly, i64 noundef) local_unnamed_addr #8

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { 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 #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { "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 = { 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 = { nofree "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(read) }
attributes #11 = { nounwind allocsize(0) }
attributes #12 = { cold }
attributes #13 = { cold nounwind }

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

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


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