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

; 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.SM2_KEY = type { %struct.SM2_Z256_POINT, [4 x i64] }
%struct.SM2_Z256_POINT = type { [4 x i64], [4 x i64], [4 x i64] }
%struct.SM2_ENC_CTX = type { [8 x %struct.SM2_ENC_PRE_COMP], i64, [255 x i8], i64 }
%struct.SM2_ENC_PRE_COMP = type { [4 x i64], %struct.SM2_POINT }
%struct.SM2_POINT = type { [32 x i8], [32 x i8] }

@stdin = external global ptr, align 8
@stdout = external global ptr, align 8
@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [20 x i8], align 1
@usage = external hidden global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@options = external hidden global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [29 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @sm2encrypt_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 ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca [1024 x i8], align 16
  %17 = alloca i64, align 8
  %18 = alloca %struct.SM2_KEY, align 8
  %19 = alloca %struct.SM2_ENC_CTX, align 8
  %20 = alloca [256 x i8], align 16
  %21 = alloca [366 x i8], align 16
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca i32, 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
  store i32 1, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %25 = load ptr, ptr %5, align 8, !tbaa !9
  %26 = getelementptr inbounds ptr, ptr %25, i64 0
  %27 = load ptr, ptr %26, align 8, !tbaa !9
  store ptr %27, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  store ptr null, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  store ptr null, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  store ptr null, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  store ptr null, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  store ptr null, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  store ptr null, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %28 = load ptr, ptr @stdin, align 8, !tbaa !9
  store ptr %28, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %29 = load ptr, ptr @stdout, align 8, !tbaa !9
  store ptr %29, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1024, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 128, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 1040, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 256, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 366, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  store i64 366, ptr %23, align 8, !tbaa !11
  %30 = load i32, ptr %4, align 4, !tbaa !5
  %31 = add nsw i32 %30, -1
  store i32 %31, ptr %4, align 4, !tbaa !5
  %32 = load ptr, ptr %5, align 8, !tbaa !9
  %33 = getelementptr inbounds ptr, ptr %32, i32 1
  store ptr %33, ptr %5, align 8, !tbaa !9
  %34 = load i32, ptr %4, align 4, !tbaa !5
  %35 = icmp slt i32 %34, 1
  br i1 %35, label %36, label %41

36:                                               ; preds = %2
  %37 = load ptr, ptr @stderr, align 8, !tbaa !9
  %38 = load ptr, ptr %7, align 8, !tbaa !9
  %39 = load ptr, ptr @usage, align 8, !tbaa !9
  %40 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %37, ptr noundef @.str, ptr noundef %38, ptr noundef %39) #6
  store i32 1, ptr %3, align 4
  store i32 1, ptr %24, align 4
  br label %321

41:                                               ; preds = %2
  br label %42

42:                                               ; preds = %190, %41
  %43 = load i32, ptr %4, align 4, !tbaa !5
  %44 = icmp sgt i32 %43, 0
  br i1 %44, label %45, label %195

45:                                               ; preds = %42
  %46 = load ptr, ptr %5, align 8, !tbaa !9
  %47 = load ptr, ptr %46, align 8, !tbaa !9
  %48 = call i32 @strcmp(ptr noundef %47, ptr noundef @.str.1) #7
  %49 = icmp ne i32 %48, 0
  br i1 %49, label %56, label %50

50:                                               ; preds = %45
  %51 = load ptr, ptr %7, align 8, !tbaa !9
  %52 = load ptr, ptr @usage, align 8, !tbaa !9
  %53 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %51, ptr noundef %52)
  %54 = load ptr, ptr @options, align 8, !tbaa !9
  %55 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %54)
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %288

56:                                               ; preds = %45
  %57 = load ptr, ptr %5, align 8, !tbaa !9
  %58 = load ptr, ptr %57, align 8, !tbaa !9
  %59 = call i32 @strcmp(ptr noundef %58, ptr noundef @.str.3) #7
  %60 = icmp ne i32 %59, 0
  br i1 %60, label %89, label %61

61:                                               ; preds = %56
  %62 = load ptr, ptr %9, align 8, !tbaa !9
  %63 = icmp ne ptr %62, null
  br i1 %63, label %64, label %68

64:                                               ; preds = %61
  %65 = load ptr, ptr @stderr, align 8, !tbaa !9
  %66 = load ptr, ptr %7, align 8, !tbaa !9
  %67 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %65, ptr noundef @.str.4, ptr noundef %66) #6
  br label %288

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

72:                                               ; preds = %68
  br label %180

73:                                               ; preds = %68
  %74 = load ptr, ptr %5, align 8, !tbaa !9
  %75 = getelementptr inbounds ptr, ptr %74, i32 1
  store ptr %75, ptr %5, align 8, !tbaa !9
  %76 = load ptr, ptr %75, align 8, !tbaa !9
  store ptr %76, ptr %8, align 8, !tbaa !9
  %77 = load ptr, ptr %8, align 8, !tbaa !9
  %78 = call noalias ptr @fopen(ptr noundef %77, ptr noundef @.str.5)
  store ptr %78, ptr %12, align 8, !tbaa !9
  %79 = icmp ne ptr %78, null
  br i1 %79, label %88, label %80

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

88:                                               ; preds = %73
  br label %189

89:                                               ; preds = %56
  %90 = load ptr, ptr %5, align 8, !tbaa !9
  %91 = load ptr, ptr %90, align 8, !tbaa !9
  %92 = call i32 @strcmp(ptr noundef %91, ptr noundef @.str.7) #7
  %93 = icmp ne i32 %92, 0
  br i1 %93, label %122, label %94

94:                                               ; preds = %89
  %95 = load ptr, ptr %8, align 8, !tbaa !9
  %96 = icmp ne ptr %95, null
  br i1 %96, label %97, label %101

97:                                               ; preds = %94
  %98 = load ptr, ptr @stderr, align 8, !tbaa !9
  %99 = load ptr, ptr %7, align 8, !tbaa !9
  %100 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %98, ptr noundef @.str.4, ptr noundef %99) #6
  br label %288

101:                                              ; preds = %94
  %102 = load i32, ptr %4, align 4, !tbaa !5
  %103 = add nsw i32 %102, -1
  store i32 %103, ptr %4, align 4, !tbaa !5
  %104 = icmp slt i32 %103, 1
  br i1 %104, label %105, label %106

105:                                              ; preds = %101
  br label %180

106:                                              ; preds = %101
  %107 = load ptr, ptr %5, align 8, !tbaa !9
  %108 = getelementptr inbounds ptr, ptr %107, i32 1
  store ptr %108, ptr %5, align 8, !tbaa !9
  %109 = load ptr, ptr %108, align 8, !tbaa !9
  store ptr %109, ptr %9, align 8, !tbaa !9
  %110 = load ptr, ptr %9, align 8, !tbaa !9
  %111 = call noalias ptr @fopen(ptr noundef %110, ptr noundef @.str.5)
  store ptr %111, ptr %13, align 8, !tbaa !9
  %112 = icmp ne ptr %111, null
  br i1 %112, label %121, label %113

113:                                              ; preds = %106
  %114 = load ptr, ptr @stderr, align 8, !tbaa !9
  %115 = load ptr, ptr %7, align 8, !tbaa !9
  %116 = load ptr, ptr %9, align 8, !tbaa !9
  %117 = call ptr @__errno_location() #8
  %118 = load i32, ptr %117, align 4, !tbaa !5
  %119 = call ptr @strerror(i32 noundef %118) #6
  %120 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %114, ptr noundef @.str.6, ptr noundef %115, ptr noundef %116, ptr noundef %119) #6
  br label %288

121:                                              ; preds = %106
  br label %188

122:                                              ; preds = %89
  %123 = load ptr, ptr %5, align 8, !tbaa !9
  %124 = load ptr, ptr %123, align 8, !tbaa !9
  %125 = call i32 @strcmp(ptr noundef %124, ptr noundef @.str.8) #7
  %126 = icmp ne i32 %125, 0
  br i1 %126, label %148, label %127

127:                                              ; preds = %122
  %128 = load i32, ptr %4, align 4, !tbaa !5
  %129 = add nsw i32 %128, -1
  store i32 %129, ptr %4, align 4, !tbaa !5
  %130 = icmp slt i32 %129, 1
  br i1 %130, label %131, label %132

131:                                              ; preds = %127
  br label %180

132:                                              ; preds = %127
  %133 = load ptr, ptr %5, align 8, !tbaa !9
  %134 = getelementptr inbounds ptr, ptr %133, i32 1
  store ptr %134, ptr %5, align 8, !tbaa !9
  %135 = load ptr, ptr %134, align 8, !tbaa !9
  store ptr %135, ptr %10, align 8, !tbaa !9
  %136 = load ptr, ptr %10, align 8, !tbaa !9
  %137 = call noalias ptr @fopen(ptr noundef %136, ptr noundef @.str.5)
  store ptr %137, ptr %14, align 8, !tbaa !9
  %138 = icmp ne ptr %137, null
  br i1 %138, label %147, label %139

139:                                              ; preds = %132
  %140 = load ptr, ptr @stderr, align 8, !tbaa !9
  %141 = load ptr, ptr %7, align 8, !tbaa !9
  %142 = load ptr, ptr %10, align 8, !tbaa !9
  %143 = call ptr @__errno_location() #8
  %144 = load i32, ptr %143, align 4, !tbaa !5
  %145 = call ptr @strerror(i32 noundef %144) #6
  %146 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %140, ptr noundef @.str.6, ptr noundef %141, ptr noundef %142, ptr noundef %145) #6
  br label %288

147:                                              ; preds = %132
  br label %187

148:                                              ; preds = %122
  %149 = load ptr, ptr %5, align 8, !tbaa !9
  %150 = load ptr, ptr %149, align 8, !tbaa !9
  %151 = call i32 @strcmp(ptr noundef %150, ptr noundef @.str.9) #7
  %152 = icmp ne i32 %151, 0
  br i1 %152, label %174, label %153

153:                                              ; preds = %148
  %154 = load i32, ptr %4, align 4, !tbaa !5
  %155 = add nsw i32 %154, -1
  store i32 %155, ptr %4, align 4, !tbaa !5
  %156 = icmp slt i32 %155, 1
  br i1 %156, label %157, label %158

157:                                              ; preds = %153
  br label %180

158:                                              ; preds = %153
  %159 = load ptr, ptr %5, align 8, !tbaa !9
  %160 = getelementptr inbounds ptr, ptr %159, i32 1
  store ptr %160, ptr %5, align 8, !tbaa !9
  %161 = load ptr, ptr %160, align 8, !tbaa !9
  store ptr %161, ptr %11, align 8, !tbaa !9
  %162 = load ptr, ptr %11, align 8, !tbaa !9
  %163 = call noalias ptr @fopen(ptr noundef %162, ptr noundef @.str.10)
  store ptr %163, ptr %15, align 8, !tbaa !9
  %164 = icmp ne ptr %163, null
  br i1 %164, label %173, label %165

165:                                              ; preds = %158
  %166 = load ptr, ptr @stderr, align 8, !tbaa !9
  %167 = load ptr, ptr %7, align 8, !tbaa !9
  %168 = load ptr, ptr %11, align 8, !tbaa !9
  %169 = call ptr @__errno_location() #8
  %170 = load i32, ptr %169, align 4, !tbaa !5
  %171 = call ptr @strerror(i32 noundef %170) #6
  %172 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %166, ptr noundef @.str.6, ptr noundef %167, ptr noundef %168, ptr noundef %171) #6
  br label %288

173:                                              ; preds = %158
  br label %186

174:                                              ; preds = %148
  %175 = load ptr, ptr @stderr, align 8, !tbaa !9
  %176 = load ptr, ptr %7, align 8, !tbaa !9
  %177 = load ptr, ptr %5, align 8, !tbaa !9
  %178 = load ptr, ptr %177, align 8, !tbaa !9
  %179 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %175, ptr noundef @.str.11, ptr noundef %176, ptr noundef %178) #6
  br label %288

180:                                              ; preds = %157, %131, %105, %72
  %181 = load ptr, ptr @stderr, align 8, !tbaa !9
  %182 = load ptr, ptr %7, align 8, !tbaa !9
  %183 = load ptr, ptr %5, align 8, !tbaa !9
  %184 = load ptr, ptr %183, align 8, !tbaa !9
  %185 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %181, ptr noundef @.str.12, ptr noundef %182, ptr noundef %184) #6
  br label %288

186:                                              ; preds = %173
  br label %187

187:                                              ; preds = %186, %147
  br label %188

188:                                              ; preds = %187, %121
  br label %189

189:                                              ; preds = %188, %88
  br label %190

190:                                              ; preds = %189
  %191 = load i32, ptr %4, align 4, !tbaa !5
  %192 = add nsw i32 %191, -1
  store i32 %192, ptr %4, align 4, !tbaa !5
  %193 = load ptr, ptr %5, align 8, !tbaa !9
  %194 = getelementptr inbounds ptr, ptr %193, i32 1
  store ptr %194, ptr %5, align 8, !tbaa !9
  br label %42, !llvm.loop !13

195:                                              ; preds = %42
  %196 = load ptr, ptr %8, align 8, !tbaa !9
  %197 = icmp ne ptr %196, null
  br i1 %197, label %198, label %207

198:                                              ; preds = %195
  %199 = load ptr, ptr %12, align 8, !tbaa !9
  %200 = call i32 @sm2_public_key_info_from_pem(ptr noundef %18, ptr noundef %199)
  %201 = icmp ne i32 %200, 1
  br i1 %201, label %202, label %206

202:                                              ; preds = %198
  %203 = load ptr, ptr @stderr, align 8, !tbaa !9
  %204 = load ptr, ptr %7, align 8, !tbaa !9
  %205 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %203, ptr noundef @.str.13, ptr noundef %204) #6
  br label %288

206:                                              ; preds = %198
  br label %230

207:                                              ; preds = %195
  %208 = load ptr, ptr %9, align 8, !tbaa !9
  %209 = icmp ne ptr %208, null
  br i1 %209, label %210, label %225

210:                                              ; preds = %207
  %211 = getelementptr inbounds [1024 x i8], ptr %16, i64 0, i64 0
  %212 = load ptr, ptr %13, align 8, !tbaa !9
  %213 = call i32 @x509_cert_from_pem(ptr noundef %211, ptr noundef %17, i64 noundef 1024, ptr noundef %212)
  %214 = icmp ne i32 %213, 1
  br i1 %214, label %220, label %215

215:                                              ; preds = %210
  %216 = getelementptr inbounds [1024 x i8], ptr %16, i64 0, i64 0
  %217 = load i64, ptr %17, align 8, !tbaa !11
  %218 = call i32 @x509_cert_get_subject_public_key(ptr noundef %216, i64 noundef %217, ptr noundef %18)
  %219 = icmp ne i32 %218, 1
  br i1 %219, label %220, label %224

220:                                              ; preds = %215, %210
  %221 = load ptr, ptr @stderr, align 8, !tbaa !9
  %222 = load ptr, ptr %7, align 8, !tbaa !9
  %223 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %221, ptr noundef @.str.14, ptr noundef %222) #6
  br label %288

224:                                              ; preds = %215
  br label %229

225:                                              ; preds = %207
  %226 = load ptr, ptr @stderr, align 8, !tbaa !9
  %227 = load ptr, ptr %7, align 8, !tbaa !9
  %228 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %226, ptr noundef @.str.15, ptr noundef %227) #6
  br label %288

229:                                              ; preds = %224
  br label %230

230:                                              ; preds = %229, %206
  %231 = getelementptr inbounds [256 x i8], ptr %20, i64 0, i64 0
  %232 = load ptr, ptr %14, align 8, !tbaa !9
  %233 = call i64 @fread(ptr noundef %231, i64 noundef 1, i64 noundef 256, ptr noundef %232)
  store i64 %233, ptr %22, align 8, !tbaa !11
  %234 = icmp ule i64 %233, 0
  br i1 %234, label %235, label %242

235:                                              ; preds = %230
  %236 = load ptr, ptr @stderr, align 8, !tbaa !9
  %237 = load ptr, ptr %7, align 8, !tbaa !9
  %238 = call ptr @__errno_location() #8
  %239 = load i32, ptr %238, align 4, !tbaa !5
  %240 = call ptr @strerror(i32 noundef %239) #6
  %241 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %236, ptr noundef @.str.16, ptr noundef %237, ptr noundef %240) #6
  br label %288

242:                                              ; preds = %230
  %243 = load i64, ptr %22, align 8, !tbaa !11
  %244 = icmp ugt i64 %243, 255
  br i1 %244, label %245, label %249

245:                                              ; preds = %242
  %246 = load ptr, ptr @stderr, align 8, !tbaa !9
  %247 = load ptr, ptr %7, align 8, !tbaa !9
  %248 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %246, ptr noundef @.str.17, ptr noundef %247, i32 noundef 255) #6
  br label %288

249:                                              ; preds = %242
  %250 = call i32 @sm2_encrypt_init(ptr noundef %19)
  %251 = icmp ne i32 %250, 1
  br i1 %251, label %252, label %256

252:                                              ; preds = %249
  %253 = load ptr, ptr @stderr, align 8, !tbaa !9
  %254 = load ptr, ptr %7, align 8, !tbaa !9
  %255 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %253, ptr noundef @.str.18, ptr noundef %254) #6
  br label %288

256:                                              ; preds = %249
  %257 = getelementptr inbounds [256 x i8], ptr %20, i64 0, i64 0
  %258 = load i64, ptr %22, align 8, !tbaa !11
  %259 = call i32 @sm2_encrypt_update(ptr noundef %19, ptr noundef %257, i64 noundef %258)
  %260 = icmp ne i32 %259, 1
  br i1 %260, label %261, label %265

261:                                              ; preds = %256
  %262 = load ptr, ptr @stderr, align 8, !tbaa !9
  %263 = load ptr, ptr %7, align 8, !tbaa !9
  %264 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %262, ptr noundef @.str.19, ptr noundef %263) #6
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %24, align 4
  br label %321

265:                                              ; preds = %256
  %266 = getelementptr inbounds [366 x i8], ptr %21, i64 0, i64 0
  %267 = call i32 @sm2_encrypt_finish(ptr noundef %19, ptr noundef %18, ptr noundef %266, ptr noundef %23)
  %268 = icmp ne i32 %267, 1
  br i1 %268, label %269, label %273

269:                                              ; preds = %265
  %270 = load ptr, ptr @stderr, align 8, !tbaa !9
  %271 = load ptr, ptr %7, align 8, !tbaa !9
  %272 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %270, ptr noundef @.str.20, ptr noundef %271) #6
  br label %288

273:                                              ; preds = %265
  %274 = load i64, ptr %23, align 8, !tbaa !11
  %275 = getelementptr inbounds [366 x i8], ptr %21, i64 0, i64 0
  %276 = load i64, ptr %23, align 8, !tbaa !11
  %277 = load ptr, ptr %15, align 8, !tbaa !9
  %278 = call i64 @fwrite(ptr noundef %275, i64 noundef 1, i64 noundef %276, ptr noundef %277)
  %279 = icmp ne i64 %274, %278
  br i1 %279, label %280, label %287

280:                                              ; preds = %273
  %281 = load ptr, ptr @stderr, align 8, !tbaa !9
  %282 = load ptr, ptr %7, align 8, !tbaa !9
  %283 = call ptr @__errno_location() #8
  %284 = load i32, ptr %283, align 4, !tbaa !5
  %285 = call ptr @strerror(i32 noundef %284) #6
  %286 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %281, ptr noundef @.str.21, ptr noundef %282, ptr noundef %285) #6
  br label %288

287:                                              ; preds = %273
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %288

288:                                              ; preds = %287, %280, %269, %252, %245, %235, %225, %220, %202, %180, %174, %165, %139, %113, %97, %80, %64, %50
  call void @gmssl_secure_clear(ptr noundef %19, i64 noundef 1040)
  %289 = getelementptr inbounds [256 x i8], ptr %20, i64 0, i64 0
  call void @gmssl_secure_clear(ptr noundef %289, i64 noundef 256)
  %290 = load ptr, ptr %10, align 8, !tbaa !9
  %291 = icmp ne ptr %290, null
  br i1 %291, label %292, label %298

292:                                              ; preds = %288
  %293 = load ptr, ptr %14, align 8, !tbaa !9
  %294 = icmp ne ptr %293, null
  br i1 %294, label %295, label %298

295:                                              ; preds = %292
  %296 = load ptr, ptr %14, align 8, !tbaa !9
  %297 = call i32 @fclose(ptr noundef %296)
  br label %298

298:                                              ; preds = %295, %292, %288
  %299 = load ptr, ptr %11, align 8, !tbaa !9
  %300 = icmp ne ptr %299, null
  br i1 %300, label %301, label %307

301:                                              ; preds = %298
  %302 = load ptr, ptr %15, align 8, !tbaa !9
  %303 = icmp ne ptr %302, null
  br i1 %303, label %304, label %307

304:                                              ; preds = %301
  %305 = load ptr, ptr %15, align 8, !tbaa !9
  %306 = call i32 @fclose(ptr noundef %305)
  br label %307

307:                                              ; preds = %304, %301, %298
  %308 = load ptr, ptr %12, align 8, !tbaa !9
  %309 = icmp ne ptr %308, null
  br i1 %309, label %310, label %313

310:                                              ; preds = %307
  %311 = load ptr, ptr %12, align 8, !tbaa !9
  %312 = call i32 @fclose(ptr noundef %311)
  br label %313

313:                                              ; preds = %310, %307
  %314 = load ptr, ptr %13, align 8, !tbaa !9
  %315 = icmp ne ptr %314, null
  br i1 %315, label %316, label %319

316:                                              ; preds = %313
  %317 = load ptr, ptr %13, align 8, !tbaa !9
  %318 = call i32 @fclose(ptr noundef %317)
  br label %319

319:                                              ; preds = %316, %313
  %320 = load i32, ptr %6, align 4, !tbaa !5
  store i32 %320, ptr %3, align 4
  store i32 1, ptr %24, align 4
  br label %321

321:                                              ; preds = %319, %261, %36
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 366, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 256, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 1040, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 1024, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, 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 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  %322 = load i32, ptr %3, align 4
  ret i32 %322
}

; 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 @fprintf(ptr noundef, ptr noundef, ...) #2

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

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

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

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

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

declare i32 @sm2_public_key_info_from_pem(ptr noundef, ptr noundef) #4

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

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

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

declare i32 @sm2_encrypt_init(ptr noundef) #4

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

declare i32 @sm2_encrypt_finish(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #4

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

declare void @gmssl_secure_clear(ptr noundef, i64 noundef) #4

declare i32 @fclose(ptr 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 = { 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 #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 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 }
attributes #7 = { nounwind willreturn memory(read) }
attributes #8 = { nounwind willreturn memory(none) }

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

%struct.SM2_KEY = type { %struct.SM2_Z256_POINT, [4 x i64] }
%struct.SM2_Z256_POINT = type { [4 x i64], [4 x i64], [4 x i64] }
%struct.SM2_ENC_CTX = type { [8 x %struct.SM2_ENC_PRE_COMP], i64, [255 x i8], i64 }
%struct.SM2_ENC_PRE_COMP = type { [4 x i64], %struct.SM2_POINT }
%struct.SM2_POINT = type { [32 x i8], [32 x i8] }

@stdin = external local_unnamed_addr global ptr, align 8
@stdout = external local_unnamed_addr global ptr, align 8
@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [20 x i8], align 1
@usage = external hidden local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@options = external hidden local_unnamed_addr global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [29 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 2) i32 @sm2encrypt_main(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = alloca [1024 x i8], align 16
  %4 = alloca i64, align 8
  %5 = alloca %struct.SM2_KEY, align 8
  %6 = alloca %struct.SM2_ENC_CTX, align 8
  %7 = alloca [256 x i8], align 16
  %8 = alloca [366 x i8], align 16
  %9 = alloca i64, align 8
  %10 = load ptr, ptr %1, align 8, !tbaa !5
  %11 = load ptr, ptr @stdin, align 8, !tbaa !5
  %12 = load ptr, ptr @stdout, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 1040, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 366, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  store i64 366, ptr %9, align 8, !tbaa !9
  %13 = icmp slt i32 %0, 2
  br i1 %13, label %15, label %.preheader.preheader

.preheader.preheader:                             ; preds = %2
  %14 = getelementptr inbounds i8, ptr %1, i64 8
  br label %.preheader.outer

15:                                               ; preds = %2
  %16 = load ptr, ptr @stderr, align 8, !tbaa !5
  %17 = load ptr, ptr @usage, align 8, !tbaa !5
  %18 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %16, ptr noundef nonnull @.str, ptr noundef %10, ptr noundef %17) #8
  br label %179

.preheader:                                       ; preds = %.thread.peel, %.thread
  %.077224 = phi ptr [ %51, %.thread ], [ %105, %.thread.peel ]
  %.089220 = phi ptr [ %50, %.thread ], [ %104, %.thread.peel ]
  %.093.in218.in = phi i32 [ %.093.in218, %.thread ], [ %.093.in218.ph, %.thread.peel ]
  %.096217.pn = phi ptr [ %.096217, %.thread ], [ %.096217.ph, %.thread.peel ]
  %.096217 = getelementptr inbounds i8, ptr %.096217.pn, i64 16
  %.093.in218 = add nsw i32 %.093.in218.in, -2
  %19 = load ptr, ptr %.096217, align 8, !tbaa !5
  %20 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %19, ptr noundef nonnull dereferenceable(1) @.str.1) #9
  %.not120 = icmp eq i32 %20, 0
  br i1 %.not120, label %.loopexit674, label %25

.loopexit674:                                     ; preds = %.preheader.outer, %.preheader
  %.077224.lcssa = phi ptr [ %.077224, %.preheader ], [ %.077224.ph, %.preheader.outer ]
  %21 = load ptr, ptr @usage, align 8, !tbaa !5
  %22 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, ptr noundef %10, ptr noundef %21)
  %23 = load ptr, ptr @options, align 8, !tbaa !5
  %24 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef %23)
  br label %163

25:                                               ; preds = %.preheader
  %26 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %19, ptr noundef nonnull dereferenceable(1) @.str.3) #9
  %.not121 = icmp eq i32 %26, 0
  br i1 %.not121, label %.loopexit675, label %42

.loopexit675:                                     ; preds = %25, %95
  %.077224.lcssa595 = phi ptr [ %.077224.ph, %95 ], [ %.077224, %25 ]
  %.089220.lcssa589 = phi ptr [ %.089220.ph, %95 ], [ %.089220, %25 ]
  %.093.in218.lcssa576 = phi i32 [ %.093.in218.ph, %95 ], [ %.093.in218, %25 ]
  %.096217.lcssa569 = phi ptr [ %.096217.ph, %95 ], [ %.096217, %25 ]
  %.lcssa561 = phi ptr [ %93, %95 ], [ %19, %25 ]
  %.not122 = icmp eq ptr %.089220.lcssa589, null
  br i1 %.not122, label %30, label %27

27:                                               ; preds = %.loopexit675
  %28 = load ptr, ptr @stderr, align 8, !tbaa !5
  %29 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %28, ptr noundef nonnull @.str.4, ptr noundef %10) #8
  br label %163

30:                                               ; preds = %.loopexit675
  %31 = icmp eq i32 %.093.in218.lcssa576, 2
  br i1 %31, label %.loopexit, label %32

32:                                               ; preds = %30
  %33 = getelementptr inbounds i8, ptr %.096217.lcssa569, i64 8
  %34 = load ptr, ptr %33, align 8, !tbaa !5
  %35 = tail call noalias ptr @fopen(ptr noundef %34, ptr noundef nonnull @.str.5)
  %.not123 = icmp eq ptr %35, null
  br i1 %.not123, label %36, label %90

36:                                               ; preds = %32
  %37 = load ptr, ptr @stderr, align 8, !tbaa !5
  %38 = tail call ptr @__errno_location() #10
  %39 = load i32, ptr %38, align 4, !tbaa !11
  %40 = tail call ptr @strerror(i32 noundef %39) #7
  %41 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %37, ptr noundef nonnull @.str.6, ptr noundef %10, ptr noundef %34, ptr noundef %40) #8
  br label %163

42:                                               ; preds = %25
  %43 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %19, ptr noundef nonnull dereferenceable(1) @.str.7) #9
  %.not124 = icmp eq i32 %43, 0
  br i1 %.not124, label %46, label %.loopexit676

.loopexit686:                                     ; preds = %99
  %44 = load ptr, ptr @stderr, align 8, !tbaa !5
  %45 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %44, ptr noundef nonnull @.str.4, ptr noundef %10) #8
  br label %163

46:                                               ; preds = %42
  %47 = icmp eq i32 %.093.in218, 2
  br i1 %47, label %.loopexit, label %48

48:                                               ; preds = %46
  %49 = getelementptr inbounds i8, ptr %.096217.pn, i64 24
  %50 = load ptr, ptr %49, align 8, !tbaa !5
  %51 = tail call noalias ptr @fopen(ptr noundef %50, ptr noundef nonnull @.str.5)
  %.not126 = icmp eq ptr %51, null
  br i1 %.not126, label %.loopexit678, label %.thread

.loopexit678:                                     ; preds = %102, %48
  %.lcssa609 = phi ptr [ %50, %48 ], [ %104, %102 ]
  %52 = load ptr, ptr @stderr, align 8, !tbaa !5
  %53 = tail call ptr @__errno_location() #10
  %54 = load i32, ptr %53, align 4, !tbaa !11
  %55 = tail call ptr @strerror(i32 noundef %54) #7
  %56 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %52, ptr noundef nonnull @.str.6, ptr noundef %10, ptr noundef %.lcssa609, ptr noundef %55) #8
  br label %163

.loopexit676:                                     ; preds = %42, %97
  %.077224.lcssa596 = phi ptr [ %.077224.ph, %97 ], [ %.077224, %42 ]
  %.089220.lcssa590 = phi ptr [ %.089220.ph, %97 ], [ %.089220, %42 ]
  %.091219.lcssa584 = phi ptr [ %.091219.ph, %97 ], [ null, %42 ]
  %.093.in218.lcssa577 = phi i32 [ %.093.in218.ph, %97 ], [ %.093.in218, %42 ]
  %.096217.lcssa570 = phi ptr [ %.096217.ph, %97 ], [ %.096217, %42 ]
  %.lcssa562 = phi ptr [ %93, %97 ], [ %19, %42 ]
  %57 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %.lcssa562, ptr noundef nonnull dereferenceable(1) @.str.8) #9
  %.not127 = icmp eq i32 %57, 0
  br i1 %.not127, label %58, label %70

58:                                               ; preds = %.loopexit676
  %59 = icmp eq i32 %.093.in218.lcssa577, 2
  br i1 %59, label %.loopexit, label %60

60:                                               ; preds = %58
  %61 = getelementptr inbounds i8, ptr %.096217.lcssa570, i64 8
  %62 = load ptr, ptr %61, align 8, !tbaa !5
  %63 = tail call noalias ptr @fopen(ptr noundef %62, ptr noundef nonnull @.str.5)
  %.not128 = icmp eq ptr %63, null
  br i1 %.not128, label %64, label %90

64:                                               ; preds = %60
  %65 = load ptr, ptr @stderr, align 8, !tbaa !5
  %66 = tail call ptr @__errno_location() #10
  %67 = load i32, ptr %66, align 4, !tbaa !11
  %68 = tail call ptr @strerror(i32 noundef %67) #7
  %69 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %65, ptr noundef nonnull @.str.6, ptr noundef %10, ptr noundef %62, ptr noundef %68) #8
  br label %163

70:                                               ; preds = %.loopexit676
  %71 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %.lcssa562, ptr noundef nonnull dereferenceable(1) @.str.9) #9
  %.not129 = icmp eq i32 %71, 0
  br i1 %.not129, label %72, label %84

72:                                               ; preds = %70
  %73 = icmp eq i32 %.093.in218.lcssa577, 2
  br i1 %73, label %.loopexit, label %74

74:                                               ; preds = %72
  %75 = getelementptr inbounds i8, ptr %.096217.lcssa570, i64 8
  %76 = load ptr, ptr %75, align 8, !tbaa !5
  %77 = tail call noalias ptr @fopen(ptr noundef %76, ptr noundef nonnull @.str.10)
  %.not130 = icmp eq ptr %77, null
  br i1 %.not130, label %78, label %90

78:                                               ; preds = %74
  %79 = load ptr, ptr @stderr, align 8, !tbaa !5
  %80 = tail call ptr @__errno_location() #10
  %81 = load i32, ptr %80, align 4, !tbaa !11
  %82 = tail call ptr @strerror(i32 noundef %81) #7
  %83 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %79, ptr noundef nonnull @.str.6, ptr noundef %10, ptr noundef %76, ptr noundef %82) #8
  br label %163

84:                                               ; preds = %70
  %85 = load ptr, ptr @stderr, align 8, !tbaa !5
  %86 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %85, ptr noundef nonnull @.str.11, ptr noundef %10, ptr noundef %.lcssa562) #8
  br label %163

.loopexit:                                        ; preds = %72, %58, %30, %46, %100
  %.077224601 = phi ptr [ %.077224, %46 ], [ %.077224.ph, %100 ], [ %.077224.lcssa595, %30 ], [ %.077224.lcssa596, %58 ], [ %.077224.lcssa596, %72 ]
  %87 = phi ptr [ %19, %46 ], [ %93, %100 ], [ %.lcssa561, %30 ], [ %.lcssa562, %58 ], [ %.lcssa562, %72 ]
  %88 = load ptr, ptr @stderr, align 8, !tbaa !5
  %89 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %88, ptr noundef nonnull @.str.12, ptr noundef %10, ptr noundef %87) #8
  br label %163

90:                                               ; preds = %32, %60, %74
  %.077224603 = phi ptr [ %.077224.lcssa596, %74 ], [ %.077224.lcssa596, %60 ], [ %.077224.lcssa595, %32 ]
  %.093.in218582 = phi i32 [ %.093.in218.lcssa577, %74 ], [ %.093.in218.lcssa577, %60 ], [ %.093.in218.lcssa576, %32 ]
  %.096217575 = phi ptr [ %.096217.lcssa570, %74 ], [ %.096217.lcssa570, %60 ], [ %.096217.lcssa569, %32 ]
  %.192 = phi ptr [ %.091219.lcssa584, %74 ], [ %.091219.lcssa584, %60 ], [ %34, %32 ]
  %.190 = phi ptr [ %.089220.lcssa590, %74 ], [ %.089220.lcssa590, %60 ], [ null, %32 ]
  %.187 = phi ptr [ %.086221.ph, %74 ], [ %62, %60 ], [ %.086221.ph, %32 ]
  %.184 = phi ptr [ %76, %74 ], [ %.083222.ph, %60 ], [ %.083222.ph, %32 ]
  %.181 = phi ptr [ %.080223.ph, %74 ], [ %.080223.ph, %60 ], [ %35, %32 ]
  %.175 = phi ptr [ %.074225.ph, %74 ], [ %63, %60 ], [ %.074225.ph, %32 ]
  %.1 = phi ptr [ %77, %74 ], [ %.073226.ph, %60 ], [ %.073226.ph, %32 ]
  %.194 = add nsw i32 %.093.in218582, -2
  %91 = getelementptr inbounds i8, ptr %.096217575, i64 16
  %92 = icmp sgt i32 %.093.in218582, 3
  br i1 %92, label %.preheader.outer, label %108, !llvm.loop !13

.preheader.outer:                                 ; preds = %.preheader.preheader, %90
  %.073226.ph = phi ptr [ %12, %.preheader.preheader ], [ %.1, %90 ]
  %.074225.ph = phi ptr [ %11, %.preheader.preheader ], [ %.175, %90 ]
  %.077224.ph = phi ptr [ null, %.preheader.preheader ], [ %.077224603, %90 ]
  %.080223.ph = phi ptr [ null, %.preheader.preheader ], [ %.181, %90 ]
  %.083222.ph = phi ptr [ null, %.preheader.preheader ], [ %.184, %90 ]
  %.086221.ph = phi ptr [ null, %.preheader.preheader ], [ %.187, %90 ]
  %.089220.ph = phi ptr [ null, %.preheader.preheader ], [ %.190, %90 ]
  %.091219.ph = phi ptr [ null, %.preheader.preheader ], [ %.192, %90 ]
  %.093.in218.ph = phi i32 [ %0, %.preheader.preheader ], [ %.194, %90 ]
  %.096217.ph = phi ptr [ %14, %.preheader.preheader ], [ %91, %90 ]
  %93 = load ptr, ptr %.096217.ph, align 8, !tbaa !5
  %94 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %93, ptr noundef nonnull dereferenceable(1) @.str.1) #9
  %.not120.peel = icmp eq i32 %94, 0
  br i1 %.not120.peel, label %.loopexit674, label %95

95:                                               ; preds = %.preheader.outer
  %96 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %93, ptr noundef nonnull dereferenceable(1) @.str.3) #9
  %.not121.peel = icmp eq i32 %96, 0
  br i1 %.not121.peel, label %.loopexit675, label %97

97:                                               ; preds = %95
  %98 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %93, ptr noundef nonnull dereferenceable(1) @.str.7) #9
  %.not124.peel = icmp eq i32 %98, 0
  br i1 %.not124.peel, label %99, label %.loopexit676

99:                                               ; preds = %97
  %.not125.peel = icmp eq ptr %.091219.ph, null
  br i1 %.not125.peel, label %100, label %.loopexit686

100:                                              ; preds = %99
  %101 = icmp eq i32 %.093.in218.ph, 2
  br i1 %101, label %.loopexit, label %102

102:                                              ; preds = %100
  %103 = getelementptr inbounds i8, ptr %.096217.ph, i64 8
  %104 = load ptr, ptr %103, align 8, !tbaa !5
  %105 = tail call noalias ptr @fopen(ptr noundef %104, ptr noundef nonnull @.str.5)
  %.not126.peel = icmp eq ptr %105, null
  br i1 %.not126.peel, label %.loopexit678, label %.thread.peel

.thread.peel:                                     ; preds = %102
  %106 = icmp sgt i32 %.093.in218.ph, 3
  br i1 %106, label %.preheader, label %.thread311

.thread:                                          ; preds = %48
  %107 = icmp sgt i32 %.093.in218.in, 5
  br i1 %107, label %.preheader, label %.thread311, !llvm.loop !15

108:                                              ; preds = %90
  %.not = icmp eq ptr %.192, null
  br i1 %.not, label %.thread311, label %109

109:                                              ; preds = %108
  %110 = call i32 @sm2_public_key_info_from_pem(ptr noundef nonnull %5, ptr noundef %.181) #7
  %.not115 = icmp eq i32 %110, 1
  br i1 %.not115, label %125, label %111

111:                                              ; preds = %109
  %112 = load ptr, ptr @stderr, align 8, !tbaa !5
  %113 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %112, ptr noundef nonnull @.str.13, ptr noundef %10) #8
  br label %163

.thread311:                                       ; preds = %.thread, %.thread.peel, %108
  %.190304333 = phi ptr [ %.190, %108 ], [ %50, %.thread ], [ %104, %.thread.peel ]
  %.187305332 = phi ptr [ %.187, %108 ], [ %.086221.ph, %.thread.peel ], [ %.086221.ph, %.thread ]
  %.184306330 = phi ptr [ %.184, %108 ], [ %.083222.ph, %.thread.peel ], [ %.083222.ph, %.thread ]
  %.181307328 = phi ptr [ %.181, %108 ], [ %.080223.ph, %.thread.peel ], [ %.080223.ph, %.thread ]
  %.178308326 = phi ptr [ %.077224603, %108 ], [ %51, %.thread ], [ %105, %.thread.peel ]
  %.175309324 = phi ptr [ %.175, %108 ], [ %.074225.ph, %.thread.peel ], [ %.074225.ph, %.thread ]
  %.1310322 = phi ptr [ %.1, %108 ], [ %.073226.ph, %.thread.peel ], [ %.073226.ph, %.thread ]
  %.not112 = icmp eq ptr %.190304333, null
  br i1 %.not112, label %122, label %114

114:                                              ; preds = %.thread311
  %115 = call i32 @x509_cert_from_pem(ptr noundef nonnull %3, ptr noundef nonnull %4, i64 noundef 1024, ptr noundef %.178308326) #7
  %.not113 = icmp eq i32 %115, 1
  br i1 %.not113, label %116, label %119

116:                                              ; preds = %114
  %117 = load i64, ptr %4, align 8, !tbaa !9
  %118 = call i32 @x509_cert_get_subject_public_key(ptr noundef nonnull %3, i64 noundef %117, ptr noundef nonnull %5) #7
  %.not114 = icmp eq i32 %118, 1
  br i1 %.not114, label %125, label %119

119:                                              ; preds = %116, %114
  %120 = load ptr, ptr @stderr, align 8, !tbaa !5
  %121 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %120, ptr noundef nonnull @.str.14, ptr noundef %10) #8
  br label %163

122:                                              ; preds = %.thread311
  %123 = load ptr, ptr @stderr, align 8, !tbaa !5
  %124 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %123, ptr noundef nonnull @.str.15, ptr noundef %10) #8
  br label %163

125:                                              ; preds = %116, %109
  %.187305331 = phi ptr [ %.187305332, %116 ], [ %.187, %109 ]
  %.184306329 = phi ptr [ %.184306330, %116 ], [ %.184, %109 ]
  %.181307327 = phi ptr [ %.181307328, %116 ], [ %.181, %109 ]
  %.178308325 = phi ptr [ %.178308326, %116 ], [ %.077224603, %109 ]
  %.175309323 = phi ptr [ %.175309324, %116 ], [ %.175, %109 ]
  %.1310321 = phi ptr [ %.1310322, %116 ], [ %.1, %109 ]
  %126 = call i64 @fread(ptr noundef nonnull %7, i64 noundef 1, i64 noundef 256, ptr noundef %.175309323)
  %127 = icmp eq i64 %126, 0
  br i1 %127, label %128, label %134

128:                                              ; preds = %125
  %129 = load ptr, ptr @stderr, align 8, !tbaa !5
  %130 = tail call ptr @__errno_location() #10
  %131 = load i32, ptr %130, align 4, !tbaa !11
  %132 = call ptr @strerror(i32 noundef %131) #7
  %133 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %129, ptr noundef nonnull @.str.16, ptr noundef %10, ptr noundef %132) #8
  br label %163

134:                                              ; preds = %125
  %135 = icmp ugt i64 %126, 255
  br i1 %135, label %136, label %139

136:                                              ; preds = %134
  %137 = load ptr, ptr @stderr, align 8, !tbaa !5
  %138 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %137, ptr noundef nonnull @.str.17, ptr noundef %10, i32 noundef 255) #8
  br label %163

139:                                              ; preds = %134
  %140 = call i32 @sm2_encrypt_init(ptr noundef nonnull %6) #7
  %.not116 = icmp eq i32 %140, 1
  br i1 %.not116, label %144, label %141

141:                                              ; preds = %139
  %142 = load ptr, ptr @stderr, align 8, !tbaa !5
  %143 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %142, ptr noundef nonnull @.str.18, ptr noundef %10) #8
  br label %163

144:                                              ; preds = %139
  %145 = call i32 @sm2_encrypt_update(ptr noundef nonnull %6, ptr noundef nonnull %7, i64 noundef %126) #7
  %.not117 = icmp eq i32 %145, 1
  br i1 %.not117, label %149, label %146

146:                                              ; preds = %144
  %147 = load ptr, ptr @stderr, align 8, !tbaa !5
  %148 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %147, ptr noundef nonnull @.str.19, ptr noundef %10) #8
  br label %179

149:                                              ; preds = %144
  %150 = call i32 @sm2_encrypt_finish(ptr noundef nonnull %6, ptr noundef nonnull %5, ptr noundef nonnull %8, ptr noundef nonnull %9) #7
  %.not118 = icmp eq i32 %150, 1
  br i1 %.not118, label %154, label %151

151:                                              ; preds = %149
  %152 = load ptr, ptr @stderr, align 8, !tbaa !5
  %153 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %152, ptr noundef nonnull @.str.20, ptr noundef %10) #8
  br label %163

154:                                              ; preds = %149
  %155 = load i64, ptr %9, align 8, !tbaa !9
  %156 = call i64 @fwrite(ptr noundef nonnull %8, i64 noundef 1, i64 noundef %155, ptr noundef %.1310321)
  %.not119 = icmp eq i64 %155, %156
  br i1 %.not119, label %163, label %157

157:                                              ; preds = %154
  %158 = load ptr, ptr @stderr, align 8, !tbaa !5
  %159 = tail call ptr @__errno_location() #10
  %160 = load i32, ptr %159, align 4, !tbaa !11
  %161 = call ptr @strerror(i32 noundef %160) #7
  %162 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %158, ptr noundef nonnull @.str.21, ptr noundef %10, ptr noundef %161) #8
  br label %163

163:                                              ; preds = %154, %157, %151, %141, %136, %128, %122, %119, %111, %.loopexit, %84, %78, %64, %.loopexit678, %.loopexit686, %36, %27, %.loopexit674
  %.095 = phi i32 [ 1, %84 ], [ 1, %.loopexit ], [ 1, %78 ], [ 1, %64 ], [ 1, %.loopexit686 ], [ 1, %.loopexit678 ], [ 1, %27 ], [ 1, %36 ], [ 0, %.loopexit674 ], [ 1, %111 ], [ 1, %128 ], [ 1, %136 ], [ 1, %141 ], [ 1, %151 ], [ 1, %157 ], [ 1, %119 ], [ 1, %122 ], [ 0, %154 ]
  %.288 = phi ptr [ %.086221.ph, %84 ], [ %.086221.ph, %.loopexit ], [ %.086221.ph, %78 ], [ %62, %64 ], [ %.086221.ph, %.loopexit686 ], [ %.086221.ph, %.loopexit678 ], [ %.086221.ph, %27 ], [ %.086221.ph, %36 ], [ %.086221.ph, %.loopexit674 ], [ %.187, %111 ], [ %.187305331, %128 ], [ %.187305331, %136 ], [ %.187305331, %141 ], [ %.187305331, %151 ], [ %.187305331, %157 ], [ %.187305332, %119 ], [ %.187305332, %122 ], [ %.187305331, %154 ]
  %.285 = phi ptr [ %.083222.ph, %84 ], [ %.083222.ph, %.loopexit ], [ %76, %78 ], [ %.083222.ph, %64 ], [ %.083222.ph, %.loopexit686 ], [ %.083222.ph, %.loopexit678 ], [ %.083222.ph, %27 ], [ %.083222.ph, %36 ], [ %.083222.ph, %.loopexit674 ], [ %.184, %111 ], [ %.184306329, %128 ], [ %.184306329, %136 ], [ %.184306329, %141 ], [ %.184306329, %151 ], [ %.184306329, %157 ], [ %.184306330, %119 ], [ %.184306330, %122 ], [ %.184306329, %154 ]
  %.282 = phi ptr [ %.080223.ph, %84 ], [ %.080223.ph, %.loopexit ], [ %.080223.ph, %78 ], [ %.080223.ph, %64 ], [ %.080223.ph, %.loopexit686 ], [ %.080223.ph, %.loopexit678 ], [ %.080223.ph, %27 ], [ null, %36 ], [ %.080223.ph, %.loopexit674 ], [ %.181, %111 ], [ %.181307327, %128 ], [ %.181307327, %136 ], [ %.181307327, %141 ], [ %.181307327, %151 ], [ %.181307327, %157 ], [ %.181307328, %119 ], [ %.181307328, %122 ], [ %.181307327, %154 ]
  %.279 = phi ptr [ %.077224.lcssa596, %84 ], [ %.077224601, %.loopexit ], [ %.077224.lcssa596, %78 ], [ %.077224.lcssa596, %64 ], [ %.077224.ph, %.loopexit686 ], [ null, %.loopexit678 ], [ %.077224.lcssa595, %27 ], [ %.077224.lcssa595, %36 ], [ %.077224.lcssa, %.loopexit674 ], [ %.077224603, %111 ], [ %.178308325, %128 ], [ %.178308325, %136 ], [ %.178308325, %141 ], [ %.178308325, %151 ], [ %.178308325, %157 ], [ %.178308326, %119 ], [ %.178308326, %122 ], [ %.178308325, %154 ]
  %.276 = phi ptr [ %.074225.ph, %84 ], [ %.074225.ph, %.loopexit ], [ %.074225.ph, %78 ], [ null, %64 ], [ %.074225.ph, %.loopexit686 ], [ %.074225.ph, %.loopexit678 ], [ %.074225.ph, %27 ], [ %.074225.ph, %36 ], [ %.074225.ph, %.loopexit674 ], [ %.175, %111 ], [ %.175309323, %128 ], [ %.175309323, %136 ], [ %.175309323, %141 ], [ %.175309323, %151 ], [ %.175309323, %157 ], [ %.175309324, %119 ], [ %.175309324, %122 ], [ %.175309323, %154 ]
  %.2 = phi ptr [ %.073226.ph, %84 ], [ %.073226.ph, %.loopexit ], [ null, %78 ], [ %.073226.ph, %64 ], [ %.073226.ph, %.loopexit686 ], [ %.073226.ph, %.loopexit678 ], [ %.073226.ph, %27 ], [ %.073226.ph, %36 ], [ %.073226.ph, %.loopexit674 ], [ %.1, %111 ], [ %.1310321, %128 ], [ %.1310321, %136 ], [ %.1310321, %141 ], [ %.1310321, %151 ], [ %.1310321, %157 ], [ %.1310322, %119 ], [ %.1310322, %122 ], [ %.1310321, %154 ]
  call void @gmssl_secure_clear(ptr noundef nonnull %6, i64 noundef 1040) #7
  call void @gmssl_secure_clear(ptr noundef nonnull %7, i64 noundef 256) #7
  %164 = icmp ne ptr %.288, null
  %165 = icmp ne ptr %.276, null
  %or.cond = select i1 %164, i1 %165, i1 false
  br i1 %or.cond, label %166, label %168

166:                                              ; preds = %163
  %167 = call i32 @fclose(ptr noundef nonnull %.276)
  br label %168

168:                                              ; preds = %166, %163
  %169 = icmp ne ptr %.285, null
  %170 = icmp ne ptr %.2, null
  %or.cond3 = select i1 %169, i1 %170, i1 false
  br i1 %or.cond3, label %171, label %173

171:                                              ; preds = %168
  %172 = call i32 @fclose(ptr noundef nonnull %.2)
  br label %173

173:                                              ; preds = %171, %168
  %.not131 = icmp eq ptr %.282, null
  br i1 %.not131, label %176, label %174

174:                                              ; preds = %173
  %175 = call i32 @fclose(ptr noundef nonnull %.282)
  br label %176

176:                                              ; preds = %174, %173
  %.not132 = icmp eq ptr %.279, null
  br i1 %.not132, label %179, label %177

177:                                              ; preds = %176
  %178 = call i32 @fclose(ptr noundef nonnull %.279)
  br label %179

179:                                              ; preds = %176, %177, %146, %15
  %.0 = phi i32 [ 1, %15 ], [ -1, %146 ], [ %.095, %177 ], [ %.095, %176 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 366, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 1040, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 1024, 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: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #2

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

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

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

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

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

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

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

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

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

declare i32 @sm2_encrypt_init(ptr noundef) local_unnamed_addr #6

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

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

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

declare void @gmssl_secure_clear(ptr noundef, i64 noundef) local_unnamed_addr #6

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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 = { 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 #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 = { 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 #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 = { cold nounwind }
attributes #9 = { nounwind willreturn memory(read) }
attributes #10 = { nounwind willreturn memory(none) }

!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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14, !16}
!16 = !{!"llvm.loop.peeled.count", i32 1}


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