; LLVM IR from guanzhi/GmSSL :: tools (certrevoke)

; 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"

@.str = external hidden unnamed_addr constant [6 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [21 x i8], align 1
@options = external hidden global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@usage = external hidden global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@stderr = external global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [20 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @certrevoke_main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i64, align 8
  store i32 %0, ptr %3, align 4, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  store i32 1, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %17 = load ptr, ptr %4, align 8, !tbaa !9
  %18 = getelementptr inbounds ptr, ptr %17, i64 0
  %19 = load ptr, ptr %18, align 8, !tbaa !9
  store ptr %19, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  store ptr null, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 -1, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  store i64 -1, ptr %11, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  store ptr null, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  store ptr null, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  store ptr null, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  store i64 0, ptr %16, align 8, !tbaa !11
  %20 = load i32, ptr %3, align 4, !tbaa !5
  %21 = add nsw i32 %20, -1
  store i32 %21, ptr %3, align 4, !tbaa !5
  %22 = load ptr, ptr %4, align 8, !tbaa !9
  %23 = getelementptr inbounds ptr, ptr %22, i32 1
  store ptr %23, ptr %4, align 8, !tbaa !9
  br label %24

24:                                               ; preds = %149, %2
  %25 = load i32, ptr %3, align 4, !tbaa !5
  %26 = icmp sgt i32 %25, 0
  br i1 %26, label %27, label %154

27:                                               ; preds = %24
  %28 = load ptr, ptr %4, align 8, !tbaa !9
  %29 = load ptr, ptr %28, align 8, !tbaa !9
  %30 = call i32 @strcmp(ptr noundef %29, ptr noundef @.str) #8
  %31 = icmp ne i32 %30, 0
  br i1 %31, label %38, label %32

32:                                               ; preds = %27
  %33 = load ptr, ptr %6, align 8, !tbaa !9
  %34 = load ptr, ptr @options, align 8, !tbaa !9
  %35 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %33, ptr noundef %34)
  %36 = load ptr, ptr @usage, align 8, !tbaa !9
  %37 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %36)
  br label %216

38:                                               ; preds = %27
  %39 = load ptr, ptr %4, align 8, !tbaa !9
  %40 = load ptr, ptr %39, align 8, !tbaa !9
  %41 = call i32 @strcmp(ptr noundef %40, ptr noundef @.str.3) #8
  %42 = icmp ne i32 %41, 0
  br i1 %42, label %61, label %43

43:                                               ; preds = %38
  %44 = load i32, ptr %3, align 4, !tbaa !5
  %45 = add nsw i32 %44, -1
  store i32 %45, ptr %3, align 4, !tbaa !5
  %46 = icmp slt i32 %45, 1
  br i1 %46, label %47, label %48

47:                                               ; preds = %43
  br label %139

48:                                               ; preds = %43
  %49 = load ptr, ptr %4, align 8, !tbaa !9
  %50 = getelementptr inbounds ptr, ptr %49, i32 1
  store ptr %50, ptr %4, align 8, !tbaa !9
  %51 = load ptr, ptr %50, align 8, !tbaa !9
  store ptr %51, ptr %7, align 8, !tbaa !9
  %52 = load ptr, ptr %7, align 8, !tbaa !9
  %53 = call i32 @x509_cert_new_from_file(ptr noundef %8, ptr noundef %9, ptr noundef %52)
  %54 = icmp ne i32 %53, 1
  br i1 %54, label %55, label %60

55:                                               ; preds = %48
  %56 = load ptr, ptr @stderr, align 8, !tbaa !9
  %57 = load ptr, ptr %6, align 8, !tbaa !9
  %58 = load ptr, ptr %7, align 8, !tbaa !9
  %59 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef @.str.4, ptr noundef %57, ptr noundef %58) #7
  br label %216

60:                                               ; preds = %48
  br label %148

61:                                               ; preds = %38
  %62 = load ptr, ptr %4, align 8, !tbaa !9
  %63 = load ptr, ptr %62, align 8, !tbaa !9
  %64 = call i32 @strcmp(ptr noundef %63, ptr noundef @.str.5) #8
  %65 = icmp ne i32 %64, 0
  br i1 %65, label %87, label %66

66:                                               ; preds = %61
  %67 = load i32, ptr %3, align 4, !tbaa !5
  %68 = add nsw i32 %67, -1
  store i32 %68, ptr %3, align 4, !tbaa !5
  %69 = icmp slt i32 %68, 1
  br i1 %69, label %70, label %71

70:                                               ; preds = %66
  br label %139

71:                                               ; preds = %66
  %72 = load ptr, ptr %4, align 8, !tbaa !9
  %73 = getelementptr inbounds ptr, ptr %72, i32 1
  store ptr %73, ptr %4, align 8, !tbaa !9
  %74 = load ptr, ptr %73, align 8, !tbaa !9
  store ptr %74, ptr %12, align 8, !tbaa !9
  %75 = load ptr, ptr %12, align 8, !tbaa !9
  %76 = call noalias ptr @fopen(ptr noundef %75, ptr noundef @.str.6)
  store ptr %76, ptr %13, align 8, !tbaa !9
  %77 = icmp ne ptr %76, null
  br i1 %77, label %86, label %78

78:                                               ; preds = %71
  %79 = load ptr, ptr @stderr, align 8, !tbaa !9
  %80 = load ptr, ptr %6, align 8, !tbaa !9
  %81 = load ptr, ptr %12, align 8, !tbaa !9
  %82 = call ptr @__errno_location() #9
  %83 = load i32, ptr %82, align 4, !tbaa !5
  %84 = call ptr @strerror(i32 noundef %83) #7
  %85 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %79, ptr noundef @.str.7, ptr noundef %80, ptr noundef %81, ptr noundef %84) #7
  br label %216

86:                                               ; preds = %71
  br label %147

87:                                               ; preds = %61
  %88 = load ptr, ptr %4, align 8, !tbaa !9
  %89 = load ptr, ptr %88, align 8, !tbaa !9
  %90 = call i32 @strcmp(ptr noundef %89, ptr noundef @.str.8) #8
  %91 = icmp ne i32 %90, 0
  br i1 %91, label %110, label %92

92:                                               ; preds = %87
  %93 = load i32, ptr %3, align 4, !tbaa !5
  %94 = add nsw i32 %93, -1
  store i32 %94, ptr %3, align 4, !tbaa !5
  %95 = icmp slt i32 %94, 1
  br i1 %95, label %96, label %97

96:                                               ; preds = %92
  br label %139

97:                                               ; preds = %92
  %98 = load ptr, ptr %4, align 8, !tbaa !9
  %99 = getelementptr inbounds ptr, ptr %98, i32 1
  store ptr %99, ptr %4, align 8, !tbaa !9
  %100 = load ptr, ptr %99, align 8, !tbaa !9
  store ptr %100, ptr %7, align 8, !tbaa !9
  %101 = load ptr, ptr %7, align 8, !tbaa !9
  %102 = call i32 @x509_crl_reason_from_name(ptr noundef %10, ptr noundef %101)
  %103 = icmp ne i32 %102, 1
  br i1 %103, label %104, label %109

104:                                              ; preds = %97
  %105 = load ptr, ptr @stderr, align 8, !tbaa !9
  %106 = load ptr, ptr %6, align 8, !tbaa !9
  %107 = load ptr, ptr %7, align 8, !tbaa !9
  %108 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %105, ptr noundef @.str.9, ptr noundef %106, ptr noundef %107) #7
  br label %216

109:                                              ; preds = %97
  br label %146

110:                                              ; preds = %87
  %111 = load ptr, ptr %4, align 8, !tbaa !9
  %112 = load ptr, ptr %111, align 8, !tbaa !9
  %113 = call i32 @strcmp(ptr noundef %112, ptr noundef @.str.10) #8
  %114 = icmp ne i32 %113, 0
  br i1 %114, label %133, label %115

115:                                              ; preds = %110
  %116 = load i32, ptr %3, align 4, !tbaa !5
  %117 = add nsw i32 %116, -1
  store i32 %117, ptr %3, align 4, !tbaa !5
  %118 = icmp slt i32 %117, 1
  br i1 %118, label %119, label %120

119:                                              ; preds = %115
  br label %139

120:                                              ; preds = %115
  %121 = load ptr, ptr %4, align 8, !tbaa !9
  %122 = getelementptr inbounds ptr, ptr %121, i32 1
  store ptr %122, ptr %4, align 8, !tbaa !9
  %123 = load ptr, ptr %122, align 8, !tbaa !9
  store ptr %123, ptr %7, align 8, !tbaa !9
  %124 = load ptr, ptr %7, align 8, !tbaa !9
  %125 = call i32 @asn1_time_from_str(i32 noundef 0, ptr noundef %11, ptr noundef %124)
  %126 = icmp ne i32 %125, 1
  br i1 %126, label %127, label %132

127:                                              ; preds = %120
  %128 = load ptr, ptr @stderr, align 8, !tbaa !9
  %129 = load ptr, ptr %6, align 8, !tbaa !9
  %130 = load ptr, ptr %7, align 8, !tbaa !9
  %131 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %128, ptr noundef @.str.11, ptr noundef %129, ptr noundef %130) #7
  br label %216

132:                                              ; preds = %120
  br label %145

133:                                              ; preds = %110
  %134 = load ptr, ptr @stderr, align 8, !tbaa !9
  %135 = load ptr, ptr %6, align 8, !tbaa !9
  %136 = load ptr, ptr %4, align 8, !tbaa !9
  %137 = load ptr, ptr %136, align 8, !tbaa !9
  %138 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %134, ptr noundef @.str.12, ptr noundef %135, ptr noundef %137) #7
  br label %216

139:                                              ; preds = %119, %96, %70, %47
  %140 = load ptr, ptr @stderr, align 8, !tbaa !9
  %141 = load ptr, ptr %6, align 8, !tbaa !9
  %142 = load ptr, ptr %4, align 8, !tbaa !9
  %143 = load ptr, ptr %142, align 8, !tbaa !9
  %144 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %140, ptr noundef @.str.13, ptr noundef %141, ptr noundef %143) #7
  br label %216

145:                                              ; preds = %132
  br label %146

146:                                              ; preds = %145, %109
  br label %147

147:                                              ; preds = %146, %86
  br label %148

148:                                              ; preds = %147, %60
  br label %149

149:                                              ; preds = %148
  %150 = load i32, ptr %3, align 4, !tbaa !5
  %151 = add nsw i32 %150, -1
  store i32 %151, ptr %3, align 4, !tbaa !5
  %152 = load ptr, ptr %4, align 8, !tbaa !9
  %153 = getelementptr inbounds ptr, ptr %152, i32 1
  store ptr %153, ptr %4, align 8, !tbaa !9
  br label %24, !llvm.loop !13

154:                                              ; preds = %24
  %155 = load ptr, ptr %8, align 8, !tbaa !9
  %156 = icmp ne ptr %155, null
  br i1 %156, label %164, label %157

157:                                              ; preds = %154
  %158 = load ptr, ptr @stderr, align 8, !tbaa !9
  %159 = load ptr, ptr %6, align 8, !tbaa !9
  %160 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %158, ptr noundef @.str.14, ptr noundef %159) #7
  %161 = load ptr, ptr %6, align 8, !tbaa !9
  %162 = load ptr, ptr @options, align 8, !tbaa !9
  %163 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %161, ptr noundef %162)
  br label %216

164:                                              ; preds = %154
  %165 = load ptr, ptr %12, align 8, !tbaa !9
  %166 = icmp ne ptr %165, null
  br i1 %166, label %171, label %167

167:                                              ; preds = %164
  %168 = load ptr, ptr @stderr, align 8, !tbaa !9
  %169 = load ptr, ptr %6, align 8, !tbaa !9
  %170 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %168, ptr noundef @.str.15, ptr noundef %169) #7
  br label %216

171:                                              ; preds = %164
  %172 = load ptr, ptr %8, align 8, !tbaa !9
  %173 = load i64, ptr %9, align 8, !tbaa !11
  %174 = call i64 @time(ptr noundef null) #7
  %175 = load i32, ptr %10, align 4, !tbaa !5
  %176 = load i64, ptr %11, align 8, !tbaa !11
  %177 = call i32 @x509_cert_revoke_to_der(ptr noundef %172, i64 noundef %173, i64 noundef %174, i32 noundef %175, i64 noundef %176, ptr noundef null, i64 noundef 0, ptr noundef null, ptr noundef %16)
  %178 = icmp ne i32 %177, 1
  br i1 %178, label %179, label %183

179:                                              ; preds = %171
  %180 = load ptr, ptr @stderr, align 8, !tbaa !9
  %181 = load ptr, ptr %6, align 8, !tbaa !9
  %182 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %180, ptr noundef @.str.16, ptr noundef %181) #7
  br label %216

183:                                              ; preds = %171
  %184 = load i64, ptr %16, align 8, !tbaa !11
  %185 = call noalias ptr @malloc(i64 noundef %184) #10
  store ptr %185, ptr %14, align 8, !tbaa !9
  %186 = icmp ne ptr %185, null
  br i1 %186, label %191, label %187

187:                                              ; preds = %183
  %188 = load ptr, ptr @stderr, align 8, !tbaa !9
  %189 = load ptr, ptr %6, align 8, !tbaa !9
  %190 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %188, ptr noundef @.str.17, ptr noundef %189) #7
  br label %216

191:                                              ; preds = %183
  %192 = load ptr, ptr %14, align 8, !tbaa !9
  store ptr %192, ptr %15, align 8, !tbaa !9
  store i64 0, ptr %16, align 8, !tbaa !11
  %193 = load ptr, ptr %8, align 8, !tbaa !9
  %194 = load i64, ptr %9, align 8, !tbaa !11
  %195 = call i64 @time(ptr noundef null) #7
  %196 = load i32, ptr %10, align 4, !tbaa !5
  %197 = load i64, ptr %11, align 8, !tbaa !11
  %198 = call i32 @x509_cert_revoke_to_der(ptr noundef %193, i64 noundef %194, i64 noundef %195, i32 noundef %196, i64 noundef %197, ptr noundef null, i64 noundef 0, ptr noundef %15, ptr noundef %16)
  %199 = icmp ne i32 %198, 1
  br i1 %199, label %200, label %204

200:                                              ; preds = %191
  %201 = load ptr, ptr @stderr, align 8, !tbaa !9
  %202 = load ptr, ptr %6, align 8, !tbaa !9
  %203 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %201, ptr noundef @.str.16, ptr noundef %202) #7
  br label %216

204:                                              ; preds = %191
  %205 = load ptr, ptr %14, align 8, !tbaa !9
  %206 = load i64, ptr %16, align 8, !tbaa !11
  %207 = load ptr, ptr %13, align 8, !tbaa !9
  %208 = call i64 @fwrite(ptr noundef %205, i64 noundef 1, i64 noundef %206, ptr noundef %207)
  %209 = load i64, ptr %16, align 8, !tbaa !11
  %210 = icmp ne i64 %208, %209
  br i1 %210, label %211, label %215

211:                                              ; preds = %204
  %212 = load ptr, ptr @stderr, align 8, !tbaa !9
  %213 = load ptr, ptr %6, align 8, !tbaa !9
  %214 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %212, ptr noundef @.str.18, ptr noundef %213) #7
  br label %216

215:                                              ; preds = %204
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %216

216:                                              ; preds = %215, %211, %200, %187, %179, %167, %157, %139, %133, %127, %104, %78, %55, %32
  %217 = load ptr, ptr %8, align 8, !tbaa !9
  %218 = icmp ne ptr %217, null
  br i1 %218, label %219, label %221

219:                                              ; preds = %216
  %220 = load ptr, ptr %8, align 8, !tbaa !9
  call void @free(ptr noundef %220) #7
  br label %221

221:                                              ; preds = %219, %216
  %222 = load ptr, ptr %12, align 8, !tbaa !9
  %223 = icmp ne ptr %222, null
  br i1 %223, label %224, label %230

224:                                              ; preds = %221
  %225 = load ptr, ptr %13, align 8, !tbaa !9
  %226 = icmp ne ptr %225, null
  br i1 %226, label %227, label %230

227:                                              ; preds = %224
  %228 = load ptr, ptr %13, align 8, !tbaa !9
  %229 = call i32 @fclose(ptr noundef %228)
  br label %230

230:                                              ; preds = %227, %224, %221
  %231 = load ptr, ptr %14, align 8, !tbaa !9
  %232 = icmp ne ptr %231, null
  br i1 %232, label %233, label %235

233:                                              ; preds = %230
  %234 = load ptr, ptr %14, align 8, !tbaa !9
  call void @free(ptr noundef %234) #7
  br label %235

235:                                              ; preds = %233, %230
  %236 = load i32, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, 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 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, 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 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  ret i32 %236
}

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

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #2

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

declare i32 @x509_cert_new_from_file(ptr noundef, ptr noundef, ptr noundef) #3

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

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

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

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

declare i32 @x509_crl_reason_from_name(ptr noundef, ptr noundef) #3

declare i32 @asn1_time_from_str(i32 noundef, ptr noundef, ptr noundef) #3

declare i32 @x509_cert_revoke_to_der(ptr noundef, i64 noundef, i64 noundef, i32 noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef) #3

; Function Attrs: nounwind
declare i64 @time(ptr noundef) #4

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

declare i64 @fwrite(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #3

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

declare i32 @fclose(ptr noundef) #3

; 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 willreturn memory(read) "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 = { "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 "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 willreturn memory(none) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { nounwind }
attributes #8 = { nounwind willreturn memory(read) }
attributes #9 = { nounwind willreturn memory(none) }
attributes #10 = { 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 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}


; 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"

@.str = external hidden unnamed_addr constant [6 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [21 x i8], align 1
@options = external hidden local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@usage = external hidden local_unnamed_addr global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [20 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @certrevoke_main(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  %5 = alloca i32, align 4
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = load ptr, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #9
  store ptr null, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #9
  store i32 -1, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #9
  store i64 -1, ptr %6, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #9
  store i64 0, ptr %8, align 8, !tbaa !11
  %10 = icmp sgt i32 %0, 1
  br i1 %10, label %.lr.ph.preheader, label %._crit_edge.thread

.lr.ph.preheader:                                 ; preds = %2
  %11 = getelementptr inbounds i8, ptr %1, i64 8
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %72
  %.053115 = phi ptr [ %.1, %72 ], [ null, %.lr.ph.preheader ]
  %.054114 = phi ptr [ %.155, %72 ], [ null, %.lr.ph.preheader ]
  %.057.in113 = phi i32 [ %.158, %72 ], [ %0, %.lr.ph.preheader ]
  %.060112 = phi ptr [ %73, %72 ], [ %11, %.lr.ph.preheader ]
  %12 = load ptr, ptr %.060112, align 8, !tbaa !5
  %13 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %12, ptr noundef nonnull dereferenceable(1) @.str) #10
  %.not77 = icmp eq i32 %13, 0
  br i1 %.not77, label %14, label %19

14:                                               ; preds = %.lr.ph
  %15 = load ptr, ptr @options, align 8, !tbaa !5
  %16 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %9, ptr noundef %15)
  %17 = load ptr, ptr @usage, align 8, !tbaa !5
  %18 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef %17)
  br label %115

19:                                               ; preds = %.lr.ph
  %20 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %12, ptr noundef nonnull dereferenceable(1) @.str.3) #10
  %.not78 = icmp eq i32 %20, 0
  br i1 %.not78, label %21, label %30

21:                                               ; preds = %19
  %22 = icmp eq i32 %.057.in113, 2
  br i1 %22, label %69, label %23

23:                                               ; preds = %21
  %24 = getelementptr inbounds i8, ptr %.060112, i64 8
  %25 = load ptr, ptr %24, align 8, !tbaa !5
  %26 = call i32 @x509_cert_new_from_file(ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef %25) #9
  %.not79 = icmp eq i32 %26, 1
  br i1 %.not79, label %72, label %27

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

30:                                               ; preds = %19
  %31 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %12, ptr noundef nonnull dereferenceable(1) @.str.5) #10
  %.not80 = icmp eq i32 %31, 0
  br i1 %.not80, label %32, label %44

32:                                               ; preds = %30
  %33 = icmp eq i32 %.057.in113, 2
  br i1 %33, label %69, label %34

34:                                               ; preds = %32
  %35 = getelementptr inbounds i8, ptr %.060112, i64 8
  %36 = load ptr, ptr %35, align 8, !tbaa !5
  %37 = call noalias ptr @fopen(ptr noundef %36, ptr noundef nonnull @.str.6)
  %.not81 = icmp eq ptr %37, null
  br i1 %.not81, label %38, label %72

38:                                               ; preds = %34
  %39 = load ptr, ptr @stderr, align 8, !tbaa !5
  %40 = tail call ptr @__errno_location() #12
  %41 = load i32, ptr %40, align 4, !tbaa !9
  %42 = call ptr @strerror(i32 noundef %41) #9
  %43 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %39, ptr noundef nonnull @.str.7, ptr noundef %9, ptr noundef %36, ptr noundef %42) #11
  br label %115

44:                                               ; preds = %30
  %45 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %12, ptr noundef nonnull dereferenceable(1) @.str.8) #10
  %.not82 = icmp eq i32 %45, 0
  br i1 %.not82, label %46, label %55

46:                                               ; preds = %44
  %47 = icmp eq i32 %.057.in113, 2
  br i1 %47, label %69, label %48

48:                                               ; preds = %46
  %49 = getelementptr inbounds i8, ptr %.060112, i64 8
  %50 = load ptr, ptr %49, align 8, !tbaa !5
  %51 = call i32 @x509_crl_reason_from_name(ptr noundef nonnull %5, ptr noundef %50) #9
  %.not83 = icmp eq i32 %51, 1
  br i1 %.not83, label %72, label %52

52:                                               ; preds = %48
  %53 = load ptr, ptr @stderr, align 8, !tbaa !5
  %54 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef nonnull @.str.9, ptr noundef %9, ptr noundef %50) #11
  br label %115

55:                                               ; preds = %44
  %56 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %12, ptr noundef nonnull dereferenceable(1) @.str.10) #10
  %.not84 = icmp eq i32 %56, 0
  br i1 %.not84, label %57, label %66

57:                                               ; preds = %55
  %58 = icmp eq i32 %.057.in113, 2
  br i1 %58, label %69, label %59

59:                                               ; preds = %57
  %60 = getelementptr inbounds i8, ptr %.060112, i64 8
  %61 = load ptr, ptr %60, align 8, !tbaa !5
  %62 = call i32 @asn1_time_from_str(i32 noundef 0, ptr noundef nonnull %6, ptr noundef %61) #9
  %.not85 = icmp eq i32 %62, 1
  br i1 %.not85, label %72, label %63

63:                                               ; preds = %59
  %64 = load ptr, ptr @stderr, align 8, !tbaa !5
  %65 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %64, ptr noundef nonnull @.str.11, ptr noundef %9, ptr noundef %61) #11
  br label %115

66:                                               ; preds = %55
  %67 = load ptr, ptr @stderr, align 8, !tbaa !5
  %68 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %67, ptr noundef nonnull @.str.12, ptr noundef %9, ptr noundef %12) #11
  br label %115

69:                                               ; preds = %57, %46, %32, %21
  %70 = load ptr, ptr @stderr, align 8, !tbaa !5
  %71 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %70, ptr noundef nonnull @.str.13, ptr noundef %9, ptr noundef %12) #11
  br label %115

72:                                               ; preds = %23, %48, %59, %34
  %.155 = phi ptr [ %.054114, %59 ], [ %.054114, %48 ], [ %36, %34 ], [ %.054114, %23 ]
  %.1 = phi ptr [ %.053115, %59 ], [ %.053115, %48 ], [ %37, %34 ], [ %.053115, %23 ]
  %.158 = add nsw i32 %.057.in113, -2
  %73 = getelementptr inbounds i8, ptr %.060112, i64 16
  %74 = icmp sgt i32 %.057.in113, 3
  br i1 %74, label %.lr.ph, label %._crit_edge, !llvm.loop !13

._crit_edge:                                      ; preds = %72
  %.pre = load ptr, ptr %3, align 8, !tbaa !5
  %.not = icmp eq ptr %.pre, null
  br i1 %.not, label %._crit_edge.thread, label %79

._crit_edge.thread:                               ; preds = %2, %._crit_edge
  %.053.lcssa146 = phi ptr [ %.1, %._crit_edge ], [ null, %2 ]
  %.054.lcssa145 = phi ptr [ %.155, %._crit_edge ], [ null, %2 ]
  %75 = load ptr, ptr @stderr, align 8, !tbaa !5
  %76 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef nonnull @.str.14, ptr noundef %9) #11
  %77 = load ptr, ptr @options, align 8, !tbaa !5
  %78 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %9, ptr noundef %77)
  br label %115

79:                                               ; preds = %._crit_edge
  %.not72 = icmp eq ptr %.155, null
  br i1 %.not72, label %80, label %83

80:                                               ; preds = %79
  %81 = load ptr, ptr @stderr, align 8, !tbaa !5
  %82 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %81, ptr noundef nonnull @.str.15, ptr noundef %9) #11
  br label %115

83:                                               ; preds = %79
  %84 = load i64, ptr %4, align 8, !tbaa !11
  %85 = call i64 @time(ptr noundef null) #9
  %86 = load i32, ptr %5, align 4, !tbaa !9
  %87 = load i64, ptr %6, align 8, !tbaa !11
  %88 = call i32 @x509_cert_revoke_to_der(ptr noundef nonnull %.pre, i64 noundef %84, i64 noundef %85, i32 noundef %86, i64 noundef %87, ptr noundef null, i64 noundef 0, ptr noundef null, ptr noundef nonnull %8) #9
  %.not73 = icmp eq i32 %88, 1
  br i1 %.not73, label %92, label %89

89:                                               ; preds = %83
  %90 = load ptr, ptr @stderr, align 8, !tbaa !5
  %91 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %90, ptr noundef nonnull @.str.16, ptr noundef %9) #11
  br label %115

92:                                               ; preds = %83
  %93 = load i64, ptr %8, align 8, !tbaa !11
  %94 = call noalias ptr @malloc(i64 noundef %93) #13
  %.not74 = icmp eq ptr %94, null
  br i1 %.not74, label %95, label %98

95:                                               ; preds = %92
  %96 = load ptr, ptr @stderr, align 8, !tbaa !5
  %97 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %96, ptr noundef nonnull @.str.17, ptr noundef %9) #11
  br label %115

98:                                               ; preds = %92
  store ptr %94, ptr %7, align 8, !tbaa !5
  store i64 0, ptr %8, align 8, !tbaa !11
  %99 = load ptr, ptr %3, align 8, !tbaa !5
  %100 = load i64, ptr %4, align 8, !tbaa !11
  %101 = call i64 @time(ptr noundef null) #9
  %102 = load i32, ptr %5, align 4, !tbaa !9
  %103 = load i64, ptr %6, align 8, !tbaa !11
  %104 = call i32 @x509_cert_revoke_to_der(ptr noundef %99, i64 noundef %100, i64 noundef %101, i32 noundef %102, i64 noundef %103, ptr noundef null, i64 noundef 0, ptr noundef nonnull %7, ptr noundef nonnull %8) #9
  %.not75 = icmp eq i32 %104, 1
  br i1 %.not75, label %108, label %105

105:                                              ; preds = %98
  %106 = load ptr, ptr @stderr, align 8, !tbaa !5
  %107 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %106, ptr noundef nonnull @.str.16, ptr noundef %9) #11
  br label %115

108:                                              ; preds = %98
  %109 = load i64, ptr %8, align 8, !tbaa !11
  %110 = call i64 @fwrite(ptr noundef nonnull %94, i64 noundef 1, i64 noundef %109, ptr noundef %.1)
  %111 = load i64, ptr %8, align 8, !tbaa !11
  %.not76 = icmp eq i64 %110, %111
  br i1 %.not76, label %115, label %112

112:                                              ; preds = %108
  %113 = load ptr, ptr @stderr, align 8, !tbaa !5
  %114 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %113, ptr noundef nonnull @.str.18, ptr noundef %9) #11
  br label %115

115:                                              ; preds = %108, %112, %105, %95, %89, %80, %._crit_edge.thread, %69, %66, %63, %52, %38, %27, %14
  %.059 = phi i32 [ 1, %66 ], [ 1, %69 ], [ 1, %63 ], [ 1, %52 ], [ 1, %38 ], [ 1, %27 ], [ 1, %14 ], [ 1, %89 ], [ 1, %105 ], [ 1, %112 ], [ 1, %95 ], [ 1, %80 ], [ 1, %._crit_edge.thread ], [ 0, %108 ]
  %.256 = phi ptr [ %.054114, %66 ], [ %.054114, %69 ], [ %.054114, %63 ], [ %.054114, %52 ], [ %36, %38 ], [ %.054114, %27 ], [ %.054114, %14 ], [ %.155, %89 ], [ %.155, %105 ], [ %.155, %112 ], [ %.155, %95 ], [ null, %80 ], [ %.054.lcssa145, %._crit_edge.thread ], [ %.155, %108 ]
  %.2 = phi ptr [ %.053115, %66 ], [ %.053115, %69 ], [ %.053115, %63 ], [ %.053115, %52 ], [ null, %38 ], [ %.053115, %27 ], [ %.053115, %14 ], [ %.1, %89 ], [ %.1, %105 ], [ %.1, %112 ], [ %.1, %95 ], [ %.1, %80 ], [ %.053.lcssa146, %._crit_edge.thread ], [ %.1, %108 ]
  %.0 = phi ptr [ null, %66 ], [ null, %69 ], [ null, %63 ], [ null, %52 ], [ null, %38 ], [ null, %27 ], [ null, %14 ], [ null, %89 ], [ %94, %105 ], [ %94, %112 ], [ null, %95 ], [ null, %80 ], [ null, %._crit_edge.thread ], [ %94, %108 ]
  %116 = load ptr, ptr %3, align 8, !tbaa !5
  %.not86 = icmp eq ptr %116, null
  br i1 %.not86, label %118, label %117

117:                                              ; preds = %115
  call void @free(ptr noundef nonnull %116) #9
  br label %118

118:                                              ; preds = %117, %115
  %119 = icmp ne ptr %.256, null
  %120 = icmp ne ptr %.2, null
  %or.cond = select i1 %119, i1 %120, i1 false
  br i1 %or.cond, label %121, label %123

121:                                              ; preds = %118
  %122 = call i32 @fclose(ptr noundef nonnull %.2)
  br label %123

123:                                              ; preds = %121, %118
  %.not87 = icmp eq ptr %.0, null
  br i1 %.not87, label %125, label %124

124:                                              ; preds = %123
  call void @free(ptr noundef nonnull %.0) #9
  br label %125

125:                                              ; preds = %124, %123
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #9
  ret i32 %.059
}

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #2

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

declare i32 @x509_cert_new_from_file(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

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

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

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

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

declare i32 @x509_crl_reason_from_name(ptr noundef, ptr noundef) local_unnamed_addr #4

declare i32 @asn1_time_from_str(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

declare i32 @x509_cert_revoke_to_der(ptr noundef, i64 noundef, i64 noundef, i32 noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: nounwind
declare i64 @time(ptr noundef) local_unnamed_addr #5

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

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

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

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

; 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 = { mustprogress nofree nounwind willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "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 nosync nounwind willreturn memory(none) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 #8 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { nounwind }
attributes #10 = { nounwind willreturn memory(read) }
attributes #11 = { cold nounwind }
attributes #12 = { nounwind willreturn memory(none) }
attributes #13 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}


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