; LLVM IR from openanolis/openssl :: test (timing_load_creds)

; 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.stat = type { i64, i64, i64, i32, i32, i32, i32, i64, i64, i64, i64, %struct.timespec, %struct.timespec, %struct.timespec, [3 x i64] }
%struct.timespec = type { i64, i64 }
%struct.rusage = type { %struct.timeval, %struct.timeval, %union.anon, %union.anon.0, %union.anon.1, %union.anon.2, %union.anon.3, %union.anon.4, %union.anon.5, %union.anon.6, %union.anon.7, %union.anon.8, %union.anon.9, %union.anon.10, %union.anon.11, %union.anon.12 }
%struct.timeval = type { i64, i64 }
%union.anon = type { i64 }
%union.anon.0 = type { i64 }
%union.anon.1 = type { i64 }
%union.anon.2 = type { i64 }
%union.anon.3 = type { i64 }
%union.anon.4 = type { i64 }
%union.anon.5 = type { i64 }
%union.anon.6 = type { i64 }
%union.anon.7 = type { i64 }
%union.anon.8 = type { i64 }
%union.anon.9 = type { i64 }
%union.anon.10 = type { i64 }
%union.anon.11 = type { i64 }
%union.anon.12 = type { i64 }

@prog = external hidden global ptr, align 8
@.str = external hidden unnamed_addr constant [6 x i8], align 1
@optarg = external global ptr, align 8
@optind = external global i32, align 4
@.str.1 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [10 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 i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %struct.stat, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca %struct.rusage, align 8
  %14 = alloca %struct.rusage, align 8
  %15 = alloca %struct.rusage, align 8
  %16 = alloca %struct.timeval, align 8
  %17 = alloca %struct.timeval, align 8
  %18 = alloca %struct.timeval, align 8
  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) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 0, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 100, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 99, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 144, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 144, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 144, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 144, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #6
  %19 = load ptr, ptr %5, align 8, !tbaa !9
  %20 = getelementptr inbounds ptr, ptr %19, i64 0
  %21 = load ptr, ptr %20, align 8, !tbaa !9
  store ptr %21, ptr @prog, align 8, !tbaa !9
  br label %22

22:                                               ; preds = %54, %2
  %23 = load i32, ptr %4, align 4, !tbaa !5
  %24 = load ptr, ptr %5, align 8, !tbaa !9
  %25 = call i32 @getopt(i32 noundef %23, ptr noundef %24, ptr noundef @.str) #6
  store i32 %25, ptr %6, align 4, !tbaa !5
  %26 = icmp ne i32 %25, -1
  br i1 %26, label %27, label %55

27:                                               ; preds = %22
  %28 = load i32, ptr %6, align 4, !tbaa !5
  switch i32 %28, label %29 [
    i32 99, label %30
    i32 100, label %36
    i32 119, label %37
  ]

29:                                               ; preds = %27
  call void @usage()
  br label %54

30:                                               ; preds = %27
  %31 = load ptr, ptr @optarg, align 8, !tbaa !9
  %32 = call i32 @atoi(ptr noundef %31) #7
  store i32 %32, ptr %8, align 4, !tbaa !5
  %33 = icmp slt i32 %32, 0
  br i1 %33, label %34, label %35

34:                                               ; preds = %30
  call void @usage()
  br label %35

35:                                               ; preds = %34, %30
  br label %54

36:                                               ; preds = %27
  store i32 1, ptr %7, align 4, !tbaa !5
  br label %54

37:                                               ; preds = %27
  %38 = load ptr, ptr @optarg, align 8, !tbaa !9
  %39 = getelementptr inbounds i8, ptr %38, i64 1
  %40 = load i8, ptr %39, align 1, !tbaa !11
  %41 = sext i8 %40 to i32
  %42 = icmp ne i32 %41, 0
  br i1 %42, label %43, label %44

43:                                               ; preds = %37
  call void @usage()
  br label %44

44:                                               ; preds = %43, %37
  %45 = load ptr, ptr @optarg, align 8, !tbaa !9
  %46 = load i8, ptr %45, align 1, !tbaa !11
  %47 = sext i8 %46 to i32
  switch i32 %47, label %48 [
    i32 99, label %49
    i32 112, label %49
  ]

48:                                               ; preds = %44
  call void @usage()
  br label %53

49:                                               ; preds = %44, %44
  %50 = load ptr, ptr @optarg, align 8, !tbaa !9
  %51 = load i8, ptr %50, align 1, !tbaa !11
  %52 = sext i8 %51 to i32
  store i32 %52, ptr %9, align 4, !tbaa !5
  br label %53

53:                                               ; preds = %49, %48
  br label %54

54:                                               ; preds = %53, %36, %35, %29
  br label %22, !llvm.loop !12

55:                                               ; preds = %22
  %56 = load i32, ptr @optind, align 4, !tbaa !5
  %57 = load i32, ptr %4, align 4, !tbaa !5
  %58 = sub nsw i32 %57, %56
  store i32 %58, ptr %4, align 4, !tbaa !5
  %59 = load i32, ptr @optind, align 4, !tbaa !5
  %60 = load ptr, ptr %5, align 8, !tbaa !9
  %61 = sext i32 %59 to i64
  %62 = getelementptr inbounds ptr, ptr %60, i64 %61
  store ptr %62, ptr %5, align 8, !tbaa !9
  %63 = load ptr, ptr %5, align 8, !tbaa !9
  %64 = getelementptr inbounds ptr, ptr %63, i64 0
  %65 = load ptr, ptr %64, align 8, !tbaa !9
  %66 = icmp eq ptr %65, null
  br i1 %66, label %67, label %68

67:                                               ; preds = %55
  call void @usage()
  br label %68

68:                                               ; preds = %67, %55
  %69 = load ptr, ptr %5, align 8, !tbaa !9
  %70 = getelementptr inbounds ptr, ptr %69, i64 0
  %71 = load ptr, ptr %70, align 8, !tbaa !9
  %72 = call i32 @stat(ptr noundef %71, ptr noundef %10) #6
  %73 = icmp slt i32 %72, 0
  br i1 %73, label %74, label %78

74:                                               ; preds = %68
  %75 = load ptr, ptr %5, align 8, !tbaa !9
  %76 = getelementptr inbounds ptr, ptr %75, i64 0
  %77 = load ptr, ptr %76, align 8, !tbaa !9
  call void @perror(ptr noundef %77)
  call void @exit(i32 noundef 1) #8
  unreachable

78:                                               ; preds = %68
  %79 = getelementptr inbounds %struct.stat, ptr %10, i32 0, i32 8
  %80 = load i64, ptr %79, align 8, !tbaa !14
  %81 = add nsw i64 %80, 1
  %82 = call ptr @CRYPTO_malloc(i64 noundef %81, ptr noundef @.str.1, i32 noundef 146)
  store ptr %82, ptr %12, align 8, !tbaa !9
  %83 = load ptr, ptr %12, align 8, !tbaa !9
  %84 = icmp eq ptr %83, null
  br i1 %84, label %85, label %86

85:                                               ; preds = %78
  call void @perror(ptr noundef @.str.2)
  call void @exit(i32 noundef 1) #8
  unreachable

86:                                               ; preds = %78
  %87 = load ptr, ptr %5, align 8, !tbaa !9
  %88 = getelementptr inbounds ptr, ptr %87, i64 0
  %89 = load ptr, ptr %88, align 8, !tbaa !9
  %90 = call noalias ptr @fopen(ptr noundef %89, ptr noundef @.str.3)
  store ptr %90, ptr %11, align 8, !tbaa !9
  %91 = load ptr, ptr %12, align 8, !tbaa !9
  %92 = getelementptr inbounds %struct.stat, ptr %10, i32 0, i32 8
  %93 = load i64, ptr %92, align 8, !tbaa !14
  %94 = load ptr, ptr %11, align 8, !tbaa !9
  %95 = call i64 @fread(ptr noundef %91, i64 noundef 1, i64 noundef %93, ptr noundef %94)
  %96 = getelementptr inbounds %struct.stat, ptr %10, i32 0, i32 8
  %97 = load i64, ptr %96, align 8, !tbaa !14
  %98 = icmp ne i64 %95, %97
  br i1 %98, label %99, label %100

99:                                               ; preds = %86
  call void @perror(ptr noundef @.str.4)
  call void @exit(i32 noundef 1) #8
  unreachable

100:                                              ; preds = %86
  %101 = load ptr, ptr %12, align 8, !tbaa !9
  %102 = getelementptr inbounds %struct.stat, ptr %10, i32 0, i32 8
  %103 = load i64, ptr %102, align 8, !tbaa !14
  %104 = getelementptr inbounds i8, ptr %101, i64 %103
  store i8 0, ptr %104, align 1, !tbaa !11
  %105 = load ptr, ptr %11, align 8, !tbaa !9
  %106 = call i32 @fclose(ptr noundef %105)
  %107 = load i32, ptr %7, align 4, !tbaa !5
  %108 = icmp ne i32 %107, 0
  br i1 %108, label %109, label %112

109:                                              ; preds = %100
  %110 = load ptr, ptr %12, align 8, !tbaa !9
  %111 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %110)
  br label %112

112:                                              ; preds = %109, %100
  store i32 10, ptr %6, align 4, !tbaa !5
  br label %113

113:                                              ; preds = %129, %112
  %114 = load i32, ptr %6, align 4, !tbaa !5
  %115 = icmp sgt i32 %114, 0
  br i1 %115, label %116, label %132

116:                                              ; preds = %113
  %117 = load i32, ptr %9, align 4, !tbaa !5
  switch i32 %117, label %128 [
    i32 99, label %118
    i32 112, label %123
  ]

118:                                              ; preds = %116
  %119 = load ptr, ptr %12, align 8, !tbaa !9
  %120 = getelementptr inbounds %struct.stat, ptr %10, i32 0, i32 8
  %121 = load i64, ptr %120, align 8, !tbaa !14
  %122 = trunc i64 %121 to i32
  call void @readx509(ptr noundef %119, i32 noundef %122)
  br label %128

123:                                              ; preds = %116
  %124 = load ptr, ptr %12, align 8, !tbaa !9
  %125 = getelementptr inbounds %struct.stat, ptr %10, i32 0, i32 8
  %126 = load i64, ptr %125, align 8, !tbaa !14
  %127 = trunc i64 %126 to i32
  call void @readpkey(ptr noundef %124, i32 noundef %127)
  br label %128

128:                                              ; preds = %123, %118, %116
  br label %129

129:                                              ; preds = %128
  %130 = load i32, ptr %6, align 4, !tbaa !5
  %131 = add nsw i32 %130, -1
  store i32 %131, ptr %6, align 4, !tbaa !5
  br label %113, !llvm.loop !18

132:                                              ; preds = %113
  %133 = call i32 @gettimeofday(ptr noundef %16, ptr noundef null) #6
  %134 = icmp slt i32 %133, 0
  br i1 %134, label %135, label %136

135:                                              ; preds = %132
  call void @perror(ptr noundef @.str.6)
  call void @exit(i32 noundef 1) #8
  unreachable

136:                                              ; preds = %132
  %137 = call i32 @getrusage(i32 noundef 0, ptr noundef %13) #6
  %138 = icmp slt i32 %137, 0
  br i1 %138, label %139, label %140

139:                                              ; preds = %136
  call void @perror(ptr noundef @.str.7)
  call void @exit(i32 noundef 1) #8
  unreachable

140:                                              ; preds = %136
  %141 = load i32, ptr %8, align 4, !tbaa !5
  store i32 %141, ptr %6, align 4, !tbaa !5
  br label %142

142:                                              ; preds = %158, %140
  %143 = load i32, ptr %6, align 4, !tbaa !5
  %144 = icmp sgt i32 %143, 0
  br i1 %144, label %145, label %161

145:                                              ; preds = %142
  %146 = load i32, ptr %9, align 4, !tbaa !5
  switch i32 %146, label %157 [
    i32 99, label %147
    i32 112, label %152
  ]

147:                                              ; preds = %145
  %148 = load ptr, ptr %12, align 8, !tbaa !9
  %149 = getelementptr inbounds %struct.stat, ptr %10, i32 0, i32 8
  %150 = load i64, ptr %149, align 8, !tbaa !14
  %151 = trunc i64 %150 to i32
  call void @readx509(ptr noundef %148, i32 noundef %151)
  br label %157

152:                                              ; preds = %145
  %153 = load ptr, ptr %12, align 8, !tbaa !9
  %154 = getelementptr inbounds %struct.stat, ptr %10, i32 0, i32 8
  %155 = load i64, ptr %154, align 8, !tbaa !14
  %156 = trunc i64 %155 to i32
  call void @readpkey(ptr noundef %153, i32 noundef %156)
  br label %157

157:                                              ; preds = %152, %147, %145
  br label %158

158:                                              ; preds = %157
  %159 = load i32, ptr %6, align 4, !tbaa !5
  %160 = add nsw i32 %159, -1
  store i32 %160, ptr %6, align 4, !tbaa !5
  br label %142, !llvm.loop !19

161:                                              ; preds = %142
  %162 = call i32 @getrusage(i32 noundef 0, ptr noundef %14) #6
  %163 = icmp slt i32 %162, 0
  br i1 %163, label %164, label %165

164:                                              ; preds = %161
  call void @perror(ptr noundef @.str.8)
  call void @exit(i32 noundef 1) #8
  unreachable

165:                                              ; preds = %161
  %166 = call i32 @gettimeofday(ptr noundef %17, ptr noundef null) #6
  %167 = icmp slt i32 %166, 0
  br i1 %167, label %168, label %169

168:                                              ; preds = %165
  call void @perror(ptr noundef @.str.9)
  call void @exit(i32 noundef 1) #8
  unreachable

169:                                              ; preds = %165
  br label %170

170:                                              ; preds = %169
  %171 = getelementptr inbounds %struct.rusage, ptr %14, i32 0, i32 0
  %172 = getelementptr inbounds %struct.timeval, ptr %171, i32 0, i32 0
  %173 = load i64, ptr %172, align 8, !tbaa !20
  %174 = getelementptr inbounds %struct.rusage, ptr %13, i32 0, i32 1
  %175 = getelementptr inbounds %struct.timeval, ptr %174, i32 0, i32 0
  %176 = load i64, ptr %175, align 8, !tbaa !23
  %177 = sub nsw i64 %173, %176
  %178 = getelementptr inbounds %struct.rusage, ptr %15, i32 0, i32 1
  %179 = getelementptr inbounds %struct.timeval, ptr %178, i32 0, i32 0
  store i64 %177, ptr %179, align 8, !tbaa !23
  %180 = getelementptr inbounds %struct.rusage, ptr %14, i32 0, i32 0
  %181 = getelementptr inbounds %struct.timeval, ptr %180, i32 0, i32 1
  %182 = load i64, ptr %181, align 8, !tbaa !24
  %183 = getelementptr inbounds %struct.rusage, ptr %13, i32 0, i32 1
  %184 = getelementptr inbounds %struct.timeval, ptr %183, i32 0, i32 1
  %185 = load i64, ptr %184, align 8, !tbaa !25
  %186 = sub nsw i64 %182, %185
  %187 = getelementptr inbounds %struct.rusage, ptr %15, i32 0, i32 1
  %188 = getelementptr inbounds %struct.timeval, ptr %187, i32 0, i32 1
  store i64 %186, ptr %188, align 8, !tbaa !25
  %189 = getelementptr inbounds %struct.rusage, ptr %15, i32 0, i32 1
  %190 = getelementptr inbounds %struct.timeval, ptr %189, i32 0, i32 1
  %191 = load i64, ptr %190, align 8, !tbaa !25
  %192 = icmp slt i64 %191, 0
  br i1 %192, label %193, label %202

193:                                              ; preds = %170
  %194 = getelementptr inbounds %struct.rusage, ptr %15, i32 0, i32 1
  %195 = getelementptr inbounds %struct.timeval, ptr %194, i32 0, i32 0
  %196 = load i64, ptr %195, align 8, !tbaa !23
  %197 = add nsw i64 %196, -1
  store i64 %197, ptr %195, align 8, !tbaa !23
  %198 = getelementptr inbounds %struct.rusage, ptr %15, i32 0, i32 1
  %199 = getelementptr inbounds %struct.timeval, ptr %198, i32 0, i32 1
  %200 = load i64, ptr %199, align 8, !tbaa !25
  %201 = add nsw i64 %200, 1000000
  store i64 %201, ptr %199, align 8, !tbaa !25
  br label %202

202:                                              ; preds = %193, %170
  br label %203

203:                                              ; preds = %202
  br label %204

204:                                              ; preds = %203
  br label %205

205:                                              ; preds = %204
  %206 = getelementptr inbounds %struct.rusage, ptr %14, i32 0, i32 0
  %207 = getelementptr inbounds %struct.timeval, ptr %206, i32 0, i32 0
  %208 = load i64, ptr %207, align 8, !tbaa !20
  %209 = getelementptr inbounds %struct.rusage, ptr %13, i32 0, i32 0
  %210 = getelementptr inbounds %struct.timeval, ptr %209, i32 0, i32 0
  %211 = load i64, ptr %210, align 8, !tbaa !20
  %212 = sub nsw i64 %208, %211
  %213 = getelementptr inbounds %struct.rusage, ptr %15, i32 0, i32 0
  %214 = getelementptr inbounds %struct.timeval, ptr %213, i32 0, i32 0
  store i64 %212, ptr %214, align 8, !tbaa !20
  %215 = getelementptr inbounds %struct.rusage, ptr %14, i32 0, i32 0
  %216 = getelementptr inbounds %struct.timeval, ptr %215, i32 0, i32 1
  %217 = load i64, ptr %216, align 8, !tbaa !24
  %218 = getelementptr inbounds %struct.rusage, ptr %13, i32 0, i32 0
  %219 = getelementptr inbounds %struct.timeval, ptr %218, i32 0, i32 1
  %220 = load i64, ptr %219, align 8, !tbaa !24
  %221 = sub nsw i64 %217, %220
  %222 = getelementptr inbounds %struct.rusage, ptr %15, i32 0, i32 0
  %223 = getelementptr inbounds %struct.timeval, ptr %222, i32 0, i32 1
  store i64 %221, ptr %223, align 8, !tbaa !24
  %224 = getelementptr inbounds %struct.rusage, ptr %15, i32 0, i32 0
  %225 = getelementptr inbounds %struct.timeval, ptr %224, i32 0, i32 1
  %226 = load i64, ptr %225, align 8, !tbaa !24
  %227 = icmp slt i64 %226, 0
  br i1 %227, label %228, label %237

228:                                              ; preds = %205
  %229 = getelementptr inbounds %struct.rusage, ptr %15, i32 0, i32 0
  %230 = getelementptr inbounds %struct.timeval, ptr %229, i32 0, i32 0
  %231 = load i64, ptr %230, align 8, !tbaa !20
  %232 = add nsw i64 %231, -1
  store i64 %232, ptr %230, align 8, !tbaa !20
  %233 = getelementptr inbounds %struct.rusage, ptr %15, i32 0, i32 0
  %234 = getelementptr inbounds %struct.timeval, ptr %233, i32 0, i32 1
  %235 = load i64, ptr %234, align 8, !tbaa !24
  %236 = add nsw i64 %235, 1000000
  store i64 %236, ptr %234, align 8, !tbaa !24
  br label %237

237:                                              ; preds = %228, %205
  br label %238

238:                                              ; preds = %237
  br label %239

239:                                              ; preds = %238
  br label %240

240:                                              ; preds = %239
  %241 = getelementptr inbounds %struct.timeval, ptr %17, i32 0, i32 0
  %242 = load i64, ptr %241, align 8, !tbaa !26
  %243 = getelementptr inbounds %struct.timeval, ptr %16, i32 0, i32 0
  %244 = load i64, ptr %243, align 8, !tbaa !26
  %245 = sub nsw i64 %242, %244
  %246 = getelementptr inbounds %struct.timeval, ptr %18, i32 0, i32 0
  store i64 %245, ptr %246, align 8, !tbaa !26
  %247 = getelementptr inbounds %struct.timeval, ptr %17, i32 0, i32 1
  %248 = load i64, ptr %247, align 8, !tbaa !27
  %249 = getelementptr inbounds %struct.timeval, ptr %16, i32 0, i32 1
  %250 = load i64, ptr %249, align 8, !tbaa !27
  %251 = sub nsw i64 %248, %250
  %252 = getelementptr inbounds %struct.timeval, ptr %18, i32 0, i32 1
  store i64 %251, ptr %252, align 8, !tbaa !27
  %253 = getelementptr inbounds %struct.timeval, ptr %18, i32 0, i32 1
  %254 = load i64, ptr %253, align 8, !tbaa !27
  %255 = icmp slt i64 %254, 0
  br i1 %255, label %256, label %263

256:                                              ; preds = %240
  %257 = getelementptr inbounds %struct.timeval, ptr %18, i32 0, i32 0
  %258 = load i64, ptr %257, align 8, !tbaa !26
  %259 = add nsw i64 %258, -1
  store i64 %259, ptr %257, align 8, !tbaa !26
  %260 = getelementptr inbounds %struct.timeval, ptr %18, i32 0, i32 1
  %261 = load i64, ptr %260, align 8, !tbaa !27
  %262 = add nsw i64 %261, 1000000
  store i64 %262, ptr %260, align 8, !tbaa !27
  br label %263

263:                                              ; preds = %256, %240
  br label %264

264:                                              ; preds = %263
  br label %265

265:                                              ; preds = %264
  %266 = getelementptr inbounds %struct.rusage, ptr %15, i32 0, i32 0
  call void @print_timeval(ptr noundef @.str.10, ptr noundef %266)
  %267 = getelementptr inbounds %struct.rusage, ptr %15, i32 0, i32 1
  call void @print_timeval(ptr noundef @.str.11, ptr noundef %267)
  %268 = load i32, ptr %7, align 4, !tbaa !5
  %269 = icmp ne i32 %268, 0
  br i1 %269, label %270, label %271

270:                                              ; preds = %265
  call void @print_timeval(ptr noundef @.str.12, ptr noundef %18)
  br label %271

271:                                              ; preds = %270, %265
  %272 = load ptr, ptr %12, align 8, !tbaa !9
  call void @CRYPTO_free(ptr noundef %272, ptr noundef @.str.1, i32 noundef 208)
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 144, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 144, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 144, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 144, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  ret i32 0
}

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

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

; Function Attrs: nounwind uwtable
declare hidden void @usage() #0

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

; Function Attrs: nounwind
declare i32 @stat(ptr noundef, ptr noundef) #2

declare void @perror(ptr noundef) #4

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

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

declare noalias ptr @fopen(ptr noundef, ptr noundef) #4

declare i64 @fread(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #4

declare i32 @fclose(ptr noundef) #4

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

; Function Attrs: nounwind uwtable
declare hidden void @readx509(ptr noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @readpkey(ptr noundef, i32 noundef) #0

; Function Attrs: nounwind
declare i32 @gettimeofday(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind
declare i32 @getrusage(i32 noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare hidden void @print_timeval(ptr noundef, ptr noundef) #0

declare void @CRYPTO_free(ptr noundef, ptr noundef, i32 noundef) #4

; 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 = { 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 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 = { "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 = { 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 #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(read) }
attributes #8 = { 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 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!15, !16, i64 48}
!15 = !{!"stat", !16, i64 0, !16, i64 8, !16, i64 16, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !16, i64 40, !16, i64 48, !16, i64 56, !16, i64 64, !17, i64 72, !17, i64 88, !17, i64 104, !7, i64 120}
!16 = !{!"long", !7, i64 0}
!17 = !{!"timespec", !16, i64 0, !16, i64 8}
!18 = distinct !{!18, !13}
!19 = distinct !{!19, !13}
!20 = !{!21, !16, i64 0}
!21 = !{!"rusage", !22, i64 0, !22, i64 16, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !7, i64 104, !7, i64 112, !7, i64 120, !7, i64 128, !7, i64 136}
!22 = !{!"timeval", !16, i64 0, !16, i64 8}
!23 = !{!21, !16, i64 16}
!24 = !{!21, !16, i64 8}
!25 = !{!21, !16, i64 24}
!26 = !{!22, !16, i64 0}
!27 = !{!22, !16, 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.stat = type { i64, i64, i64, i32, i32, i32, i32, i64, i64, i64, i64, %struct.timespec, %struct.timespec, %struct.timespec, [3 x i64] }
%struct.timespec = type { i64, i64 }
%struct.rusage = type { %struct.timeval, %struct.timeval, %union.anon, %union.anon.0, %union.anon.1, %union.anon.2, %union.anon.3, %union.anon.4, %union.anon.5, %union.anon.6, %union.anon.7, %union.anon.8, %union.anon.9, %union.anon.10, %union.anon.11, %union.anon.12 }
%struct.timeval = type { i64, i64 }
%union.anon = type { i64 }
%union.anon.0 = type { i64 }
%union.anon.1 = type { i64 }
%union.anon.2 = type { i64 }
%union.anon.3 = type { i64 }
%union.anon.4 = type { i64 }
%union.anon.5 = type { i64 }
%union.anon.6 = type { i64 }
%union.anon.7 = type { i64 }
%union.anon.8 = type { i64 }
%union.anon.9 = type { i64 }
%union.anon.10 = type { i64 }
%union.anon.11 = type { i64 }
%union.anon.12 = type { i64 }

@prog = external hidden local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [6 x i8], align 1
@optarg = external local_unnamed_addr global ptr, align 8
@optind = external local_unnamed_addr global i32, align 4
@.str.1 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [10 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = alloca %struct.stat, align 8
  %4 = alloca %struct.rusage, align 8
  %5 = alloca %struct.rusage, align 8
  %6 = alloca %struct.rusage, align 8
  %7 = alloca %struct.timeval, align 16
  %8 = alloca %struct.timeval, align 16
  %9 = alloca %struct.timeval, align 16
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #7
  %10 = load ptr, ptr %1, align 8, !tbaa !5
  store ptr %10, ptr @prog, align 8, !tbaa !5
  br label %.outer

.outer:                                           ; preds = %11, %2
  %.not41 = phi i1 [ true, %2 ], [ false, %11 ]
  %.029.ph = phi i32 [ 100, %2 ], [ %.029.ph60, %11 ]
  %.0.ph = phi i32 [ 99, %2 ], [ %.0.ph63, %11 ]
  br label %.outer59

.outer59:                                         ; preds = %.outer59.backedge, %.outer
  %.029.ph60 = phi i32 [ %.029.ph, %.outer ], [ %16, %.outer59.backedge ]
  %.0.ph61 = phi i32 [ %.0.ph, %.outer ], [ %.0.ph63, %.outer59.backedge ]
  br label %.outer62

.outer62:                                         ; preds = %.outer59, %28
  %.0.ph63 = phi i32 [ %.0.ph61, %.outer59 ], [ %29, %28 ]
  br label %11

11:                                               ; preds = %.backedge, %.outer62
  %12 = tail call i32 @getopt(i32 noundef %0, ptr noundef nonnull %1, ptr noundef nonnull @.str) #7
  switch i32 %12, label %13 [
    i32 -1, label %30
    i32 99, label %14
    i32 100, label %.outer
    i32 119, label %19
  ], !llvm.loop !9

13:                                               ; preds = %11
  tail call void @usage()
  br label %.backedge

14:                                               ; preds = %11
  %15 = load ptr, ptr @optarg, align 8, !tbaa !5
  %16 = tail call i32 @atoi(ptr nocapture noundef %15) #8
  %17 = icmp slt i32 %16, 0
  br i1 %17, label %18, label %.outer59.backedge

18:                                               ; preds = %14
  tail call void @usage()
  br label %.outer59.backedge

.outer59.backedge:                                ; preds = %18, %14
  br label %.outer59, !llvm.loop !9

19:                                               ; preds = %11
  %20 = load ptr, ptr @optarg, align 8, !tbaa !5
  %21 = getelementptr inbounds i8, ptr %20, i64 1
  %22 = load i8, ptr %21, align 1, !tbaa !11
  %.not42 = icmp eq i8 %22, 0
  br i1 %.not42, label %24, label %23

23:                                               ; preds = %19
  tail call void @usage()
  %.pre = load ptr, ptr @optarg, align 8, !tbaa !5
  br label %24

24:                                               ; preds = %23, %19
  %25 = phi ptr [ %.pre, %23 ], [ %20, %19 ]
  %26 = load i8, ptr %25, align 1, !tbaa !11
  switch i8 %26, label %27 [
    i8 99, label %28
    i8 112, label %28
  ]

27:                                               ; preds = %24
  tail call void @usage()
  br label %.backedge

.backedge:                                        ; preds = %27, %13
  br label %11, !llvm.loop !9

28:                                               ; preds = %24, %24
  %29 = zext nneg i8 %26 to i32
  br label %.outer62, !llvm.loop !9

30:                                               ; preds = %11
  %31 = load i32, ptr @optind, align 4, !tbaa !12
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds ptr, ptr %1, i64 %32
  %34 = load ptr, ptr %33, align 8, !tbaa !5
  %35 = icmp eq ptr %34, null
  br i1 %35, label %36, label %37

36:                                               ; preds = %30
  tail call void @usage()
  %.pre55 = load ptr, ptr %33, align 8, !tbaa !5
  br label %37

37:                                               ; preds = %36, %30
  %38 = phi ptr [ %.pre55, %36 ], [ %34, %30 ]
  %39 = call i32 @stat(ptr noundef %38, ptr noundef nonnull %3) #7
  %40 = icmp slt i32 %39, 0
  br i1 %40, label %41, label %43

41:                                               ; preds = %37
  %42 = load ptr, ptr %33, align 8, !tbaa !5
  tail call void @perror(ptr noundef %42) #9
  tail call void @exit(i32 noundef 1) #10
  unreachable

43:                                               ; preds = %37
  %44 = getelementptr inbounds i8, ptr %3, i64 48
  %45 = load i64, ptr %44, align 8, !tbaa !14
  %46 = add nsw i64 %45, 1
  %47 = tail call ptr @CRYPTO_malloc(i64 noundef %46, ptr noundef nonnull @.str.1, i32 noundef 146) #7
  %48 = icmp eq ptr %47, null
  br i1 %48, label %49, label %50

49:                                               ; preds = %43
  tail call void @perror(ptr noundef nonnull @.str.2) #9
  tail call void @exit(i32 noundef 1) #10
  unreachable

50:                                               ; preds = %43
  %51 = load ptr, ptr %33, align 8, !tbaa !5
  %52 = tail call noalias ptr @fopen(ptr noundef %51, ptr noundef nonnull @.str.3)
  %53 = tail call i64 @fread(ptr noundef nonnull %47, i64 noundef 1, i64 noundef %45, ptr noundef %52)
  %.not40 = icmp eq i64 %53, %45
  br i1 %.not40, label %55, label %54

54:                                               ; preds = %50
  tail call void @perror(ptr noundef nonnull @.str.4) #9
  tail call void @exit(i32 noundef 1) #10
  unreachable

55:                                               ; preds = %50
  %56 = getelementptr inbounds i8, ptr %47, i64 %45
  store i8 0, ptr %56, align 1, !tbaa !11
  %57 = tail call i32 @fclose(ptr noundef %52)
  br i1 %.not41, label %60, label %58

58:                                               ; preds = %55
  %59 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, ptr noundef nonnull %47)
  br label %60

60:                                               ; preds = %58, %55
  %61 = trunc i64 %45 to i32
  switch i32 %.0.ph63, label %.split45.us [
    i32 99, label %.split.us.preheader
    i32 112, label %.split.us46.preheader
  ]

.split.us46.preheader:                            ; preds = %60
  tail call void @readpkey(ptr noundef nonnull %47, i32 noundef %61)
  tail call void @readpkey(ptr noundef nonnull %47, i32 noundef %61)
  tail call void @readpkey(ptr noundef nonnull %47, i32 noundef %61)
  tail call void @readpkey(ptr noundef nonnull %47, i32 noundef %61)
  tail call void @readpkey(ptr noundef nonnull %47, i32 noundef %61)
  tail call void @readpkey(ptr noundef nonnull %47, i32 noundef %61)
  tail call void @readpkey(ptr noundef nonnull %47, i32 noundef %61)
  tail call void @readpkey(ptr noundef nonnull %47, i32 noundef %61)
  tail call void @readpkey(ptr noundef nonnull %47, i32 noundef %61)
  tail call void @readpkey(ptr noundef nonnull %47, i32 noundef %61)
  br label %.split45.us

.split.us.preheader:                              ; preds = %60
  tail call void @readx509(ptr noundef nonnull %47, i32 noundef %61)
  tail call void @readx509(ptr noundef nonnull %47, i32 noundef %61)
  tail call void @readx509(ptr noundef nonnull %47, i32 noundef %61)
  tail call void @readx509(ptr noundef nonnull %47, i32 noundef %61)
  tail call void @readx509(ptr noundef nonnull %47, i32 noundef %61)
  tail call void @readx509(ptr noundef nonnull %47, i32 noundef %61)
  tail call void @readx509(ptr noundef nonnull %47, i32 noundef %61)
  tail call void @readx509(ptr noundef nonnull %47, i32 noundef %61)
  tail call void @readx509(ptr noundef nonnull %47, i32 noundef %61)
  tail call void @readx509(ptr noundef nonnull %47, i32 noundef %61)
  br label %.split45.us

.split45.us:                                      ; preds = %60, %.split.us46.preheader, %.split.us.preheader
  %62 = call i32 @gettimeofday(ptr noundef nonnull %7, ptr noundef null) #7
  %63 = icmp slt i32 %62, 0
  br i1 %63, label %64, label %65

64:                                               ; preds = %.split45.us
  tail call void @perror(ptr noundef nonnull @.str.6) #9
  tail call void @exit(i32 noundef 1) #10
  unreachable

65:                                               ; preds = %.split45.us
  %66 = call i32 @getrusage(i32 noundef 0, ptr noundef nonnull %4) #7
  %67 = icmp slt i32 %66, 0
  br i1 %67, label %73, label %.preheader

.preheader:                                       ; preds = %65
  %68 = icmp sgt i32 %.029.ph60, 0
  br i1 %68, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader
  switch i32 %.0.ph63, label %._crit_edge [
    i32 99, label %.lr.ph.split.us
    i32 112, label %.lr.ph.split.us49
  ]

.lr.ph.split.us:                                  ; preds = %.lr.ph, %.lr.ph.split.us
  %.13448.us = phi i32 [ %69, %.lr.ph.split.us ], [ %.029.ph60, %.lr.ph ]
  call void @readx509(ptr noundef nonnull %47, i32 noundef %61)
  %69 = add nsw i32 %.13448.us, -1
  %70 = icmp ugt i32 %.13448.us, 1
  br i1 %70, label %.lr.ph.split.us, label %._crit_edge, !llvm.loop !18

.lr.ph.split.us49:                                ; preds = %.lr.ph, %.lr.ph.split.us49
  %.13448.us50 = phi i32 [ %71, %.lr.ph.split.us49 ], [ %.029.ph60, %.lr.ph ]
  call void @readpkey(ptr noundef nonnull %47, i32 noundef %61)
  %71 = add nsw i32 %.13448.us50, -1
  %72 = icmp ugt i32 %.13448.us50, 1
  br i1 %72, label %.lr.ph.split.us49, label %._crit_edge, !llvm.loop !18

73:                                               ; preds = %65
  call void @perror(ptr noundef nonnull @.str.7) #9
  call void @exit(i32 noundef 1) #10
  unreachable

._crit_edge:                                      ; preds = %.lr.ph.split.us49, %.lr.ph.split.us, %.lr.ph, %.preheader
  %74 = call i32 @getrusage(i32 noundef 0, ptr noundef nonnull %5) #7
  %75 = icmp slt i32 %74, 0
  br i1 %75, label %76, label %77

76:                                               ; preds = %._crit_edge
  call void @perror(ptr noundef nonnull @.str.8) #9
  call void @exit(i32 noundef 1) #10
  unreachable

77:                                               ; preds = %._crit_edge
  %78 = call i32 @gettimeofday(ptr noundef nonnull %8, ptr noundef null) #7
  %79 = icmp slt i32 %78, 0
  br i1 %79, label %80, label %81

80:                                               ; preds = %77
  call void @perror(ptr noundef nonnull @.str.9) #9
  call void @exit(i32 noundef 1) #10
  unreachable

81:                                               ; preds = %77
  %82 = load i64, ptr %5, align 8, !tbaa !19
  %83 = getelementptr inbounds i8, ptr %4, i64 16
  %84 = load i64, ptr %83, align 8, !tbaa !22
  %85 = sub nsw i64 %82, %84
  %86 = getelementptr inbounds i8, ptr %6, i64 16
  store i64 %85, ptr %86, align 8, !tbaa !22
  %87 = getelementptr inbounds i8, ptr %5, i64 8
  %88 = load i64, ptr %87, align 8, !tbaa !23
  %89 = getelementptr inbounds i8, ptr %4, i64 24
  %90 = load i64, ptr %89, align 8, !tbaa !24
  %91 = sub nsw i64 %88, %90
  %92 = getelementptr inbounds i8, ptr %6, i64 24
  store i64 %91, ptr %92, align 8, !tbaa !24
  %93 = icmp slt i64 %91, 0
  br i1 %93, label %94, label %97

94:                                               ; preds = %81
  %95 = add nsw i64 %85, -1
  store i64 %95, ptr %86, align 8, !tbaa !22
  %96 = add nsw i64 %91, 1000000
  store i64 %96, ptr %92, align 8, !tbaa !24
  br label %97

97:                                               ; preds = %81, %94
  %98 = load i64, ptr %4, align 8, !tbaa !19
  %99 = sub nsw i64 %82, %98
  store i64 %99, ptr %6, align 8, !tbaa !19
  %100 = getelementptr inbounds i8, ptr %4, i64 8
  %101 = load i64, ptr %100, align 8, !tbaa !23
  %102 = sub nsw i64 %88, %101
  %103 = getelementptr inbounds i8, ptr %6, i64 8
  store i64 %102, ptr %103, align 8, !tbaa !23
  %104 = icmp slt i64 %102, 0
  br i1 %104, label %105, label %108

105:                                              ; preds = %97
  %106 = add nsw i64 %99, -1
  store i64 %106, ptr %6, align 8, !tbaa !19
  %107 = add nsw i64 %102, 1000000
  store i64 %107, ptr %103, align 8, !tbaa !23
  br label %108

108:                                              ; preds = %97, %105
  %109 = load <2 x i64>, ptr %8, align 16, !tbaa !25
  %110 = load <2 x i64>, ptr %7, align 16, !tbaa !25
  %111 = sub nsw <2 x i64> %109, %110
  %112 = extractelement <2 x i64> %111, i64 1
  %113 = icmp slt i64 %112, 0
  %114 = add nsw <2 x i64> %111, <i64 -1, i64 1000000>
  %storemerge = select i1 %113, <2 x i64> %114, <2 x i64> %111
  store <2 x i64> %storemerge, ptr %9, align 16, !tbaa !25
  call void @print_timeval(ptr noundef nonnull @.str.10, ptr noundef nonnull %6)
  call void @print_timeval(ptr noundef nonnull @.str.11, ptr noundef nonnull %86)
  br i1 %.not41, label %116, label %115

115:                                              ; preds = %108
  call void @print_timeval(ptr noundef nonnull @.str.12, ptr noundef nonnull %9)
  br label %116

116:                                              ; preds = %115, %108
  call void @CRYPTO_free(ptr noundef nonnull %47, ptr noundef nonnull @.str.1, i32 noundef 208) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %3) #7
  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: nounwind
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden void @usage() local_unnamed_addr #0

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

; Function Attrs: nofree nounwind
declare noundef i32 @stat(ptr nocapture noundef readonly, ptr nocapture noundef) local_unnamed_addr #4

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

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

declare ptr @CRYPTO_malloc(i64 noundef, ptr noundef, i32 noundef) local_unnamed_addr #6

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #4

; Function Attrs: nofree nounwind
declare noundef i64 @fread(ptr nocapture noundef, i64 noundef, i64 noundef, ptr nocapture noundef) local_unnamed_addr #4

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

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

; Function Attrs: nounwind uwtable
declare hidden void @readx509(ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @readpkey(ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nofree nounwind
declare noundef i32 @gettimeofday(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #4

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

; Function Attrs: nounwind uwtable
declare hidden void @print_timeval(ptr noundef, ptr noundef) local_unnamed_addr #0

declare void @CRYPTO_free(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #6

; 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 = { 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 = { 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 #5 = { 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 #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 }
attributes #8 = { nounwind willreturn memory(read) }
attributes #9 = { cold }
attributes #10 = { 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 = !{!"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 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!15, !16, i64 48}
!15 = !{!"stat", !16, i64 0, !16, i64 8, !16, i64 16, !13, i64 24, !13, i64 28, !13, i64 32, !13, i64 36, !16, i64 40, !16, i64 48, !16, i64 56, !16, i64 64, !17, i64 72, !17, i64 88, !17, i64 104, !7, i64 120}
!16 = !{!"long", !7, i64 0}
!17 = !{!"timespec", !16, i64 0, !16, i64 8}
!18 = distinct !{!18, !10}
!19 = !{!20, !16, i64 0}
!20 = !{!"rusage", !21, i64 0, !21, i64 16, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !7, i64 104, !7, i64 112, !7, i64 120, !7, i64 128, !7, i64 136}
!21 = !{!"timeval", !16, i64 0, !16, i64 8}
!22 = !{!20, !16, i64 16}
!23 = !{!20, !16, i64 8}
!24 = !{!20, !16, i64 24}
!25 = !{!16, !16, i64 0}


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