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

; 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.SM3_DIGEST_CTX = type { %union.anon, i32 }
%union.anon = type { %struct.SM3_HMAC_CTX }
%struct.SM3_HMAC_CTX = type { %struct.SM3_CTX, [64 x i8] }
%struct.SM3_CTX = type { [8 x i32], i64, [64 x i8], i64 }

@stdin = external global ptr, align 8
@stdout = external global ptr, align 8
@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [14 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
@help = external hidden global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [2 x i8], align 1

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

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

39:                                               ; preds = %2
  br label %40

40:                                               ; preds = %204, %39
  %41 = load i32, ptr %4, align 4, !tbaa !5
  %42 = icmp sgt i32 %41, 0
  br i1 %42, label %43, label %209

43:                                               ; preds = %40
  %44 = load ptr, ptr %5, align 8, !tbaa !9
  %45 = load ptr, ptr %44, align 8, !tbaa !9
  %46 = call i32 @strcmp(ptr noundef %45, ptr noundef @.str.1) #8
  %47 = icmp ne i32 %46, 0
  br i1 %47, label %54, label %48

48:                                               ; preds = %43
  %49 = load ptr, ptr %7, align 8, !tbaa !9
  %50 = load ptr, ptr @usage, align 8, !tbaa !9
  %51 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %49, ptr noundef %50)
  %52 = load ptr, ptr @help, align 8, !tbaa !9
  %53 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %52)
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %302

54:                                               ; preds = %43
  %55 = load ptr, ptr %5, align 8, !tbaa !9
  %56 = load ptr, ptr %55, align 8, !tbaa !9
  %57 = call i32 @strcmp(ptr noundef %56, ptr noundef @.str.3) #8
  %58 = icmp ne i32 %57, 0
  br i1 %58, label %87, label %59

59:                                               ; preds = %54
  %60 = load i32, ptr %4, align 4, !tbaa !5
  %61 = add nsw i32 %60, -1
  store i32 %61, ptr %4, align 4, !tbaa !5
  %62 = icmp slt i32 %61, 1
  br i1 %62, label %63, label %64

63:                                               ; preds = %59
  br label %192

64:                                               ; preds = %59
  %65 = load ptr, ptr %5, align 8, !tbaa !9
  %66 = getelementptr inbounds ptr, ptr %65, i32 1
  store ptr %66, ptr %5, align 8, !tbaa !9
  %67 = load ptr, ptr %66, align 8, !tbaa !9
  store ptr %67, ptr %8, align 8, !tbaa !9
  %68 = load ptr, ptr %8, align 8, !tbaa !9
  %69 = call i64 @strlen(ptr noundef %68) #8
  %70 = icmp ugt i64 %69, 64
  br i1 %70, label %71, label %75

71:                                               ; preds = %64
  %72 = load ptr, ptr @stderr, align 8, !tbaa !9
  %73 = load ptr, ptr %7, align 8, !tbaa !9
  %74 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %72, ptr noundef @.str.4, ptr noundef %73) #7
  br label %302

75:                                               ; preds = %64
  %76 = load ptr, ptr %8, align 8, !tbaa !9
  %77 = load ptr, ptr %8, align 8, !tbaa !9
  %78 = call i64 @strlen(ptr noundef %77) #8
  %79 = getelementptr inbounds [32 x i8], ptr %13, i64 0, i64 0
  %80 = call i32 @hex_to_bytes(ptr noundef %76, i64 noundef %78, ptr noundef %79, ptr noundef %14)
  %81 = icmp ne i32 %80, 1
  br i1 %81, label %82, label %86

82:                                               ; preds = %75
  %83 = load ptr, ptr @stderr, align 8, !tbaa !9
  %84 = load ptr, ptr %7, align 8, !tbaa !9
  %85 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %83, ptr noundef @.str.5, ptr noundef %84) #7
  br label %302

86:                                               ; preds = %75
  br label %203

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

92:                                               ; preds = %87
  %93 = load i32, ptr %9, align 4, !tbaa !5
  %94 = icmp eq i32 %93, 2
  br i1 %94, label %95, label %99

95:                                               ; preds = %92
  %96 = load ptr, ptr @stderr, align 8, !tbaa !9
  %97 = load ptr, ptr %7, align 8, !tbaa !9
  %98 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %96, ptr noundef @.str.7, ptr noundef %97) #7
  br label %302

99:                                               ; preds = %92
  store i32 1, ptr %9, align 4, !tbaa !5
  br label %202

100:                                              ; preds = %87
  %101 = load ptr, ptr %5, align 8, !tbaa !9
  %102 = load ptr, ptr %101, align 8, !tbaa !9
  %103 = call i32 @strcmp(ptr noundef %102, ptr noundef @.str.8) #8
  %104 = icmp ne i32 %103, 0
  br i1 %104, label %113, label %105

105:                                              ; preds = %100
  %106 = load i32, ptr %9, align 4, !tbaa !5
  %107 = icmp eq i32 %106, 1
  br i1 %107, label %108, label %112

108:                                              ; preds = %105
  %109 = load ptr, ptr @stderr, align 8, !tbaa !9
  %110 = load ptr, ptr %7, align 8, !tbaa !9
  %111 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %109, ptr noundef @.str.7, ptr noundef %110) #7
  br label %302

112:                                              ; preds = %105
  store i32 2, ptr %9, align 4, !tbaa !5
  br label %201

113:                                              ; preds = %100
  %114 = load ptr, ptr %5, align 8, !tbaa !9
  %115 = load ptr, ptr %114, align 8, !tbaa !9
  %116 = call i32 @strcmp(ptr noundef %115, ptr noundef @.str.9) #8
  %117 = icmp ne i32 %116, 0
  br i1 %117, label %134, label %118

118:                                              ; preds = %113
  %119 = load ptr, ptr %11, align 8, !tbaa !9
  %120 = icmp ne ptr %119, null
  br i1 %120, label %121, label %125

121:                                              ; preds = %118
  %122 = load ptr, ptr @stderr, align 8, !tbaa !9
  %123 = load ptr, ptr %7, align 8, !tbaa !9
  %124 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef @.str.10, ptr noundef %123) #7
  br label %302

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

129:                                              ; preds = %125
  br label %192

130:                                              ; preds = %125
  %131 = load ptr, ptr %5, align 8, !tbaa !9
  %132 = getelementptr inbounds ptr, ptr %131, i32 1
  store ptr %132, ptr %5, align 8, !tbaa !9
  %133 = load ptr, ptr %132, align 8, !tbaa !9
  store ptr %133, ptr %10, align 8, !tbaa !9
  br label %200

134:                                              ; preds = %113
  %135 = load ptr, ptr %5, align 8, !tbaa !9
  %136 = load ptr, ptr %135, align 8, !tbaa !9
  %137 = call i32 @strcmp(ptr noundef %136, ptr noundef @.str.11) #8
  %138 = icmp ne i32 %137, 0
  br i1 %138, label %160, label %139

139:                                              ; preds = %134
  %140 = load i32, ptr %4, align 4, !tbaa !5
  %141 = add nsw i32 %140, -1
  store i32 %141, ptr %4, align 4, !tbaa !5
  %142 = icmp slt i32 %141, 1
  br i1 %142, label %143, label %144

143:                                              ; preds = %139
  br label %192

144:                                              ; preds = %139
  %145 = load ptr, ptr %5, align 8, !tbaa !9
  %146 = getelementptr inbounds ptr, ptr %145, i32 1
  store ptr %146, ptr %5, align 8, !tbaa !9
  %147 = load ptr, ptr %146, align 8, !tbaa !9
  store ptr %147, ptr %11, align 8, !tbaa !9
  %148 = load ptr, ptr %11, align 8, !tbaa !9
  %149 = call noalias ptr @fopen(ptr noundef %148, ptr noundef @.str.12)
  store ptr %149, ptr %15, align 8, !tbaa !9
  %150 = icmp ne ptr %149, null
  br i1 %150, label %159, label %151

151:                                              ; preds = %144
  %152 = load ptr, ptr @stderr, align 8, !tbaa !9
  %153 = load ptr, ptr %7, align 8, !tbaa !9
  %154 = load ptr, ptr %11, align 8, !tbaa !9
  %155 = call ptr @__errno_location() #9
  %156 = load i32, ptr %155, align 4, !tbaa !5
  %157 = call ptr @strerror(i32 noundef %156) #7
  %158 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %152, ptr noundef @.str.13, ptr noundef %153, ptr noundef %154, ptr noundef %157) #7
  br label %302

159:                                              ; preds = %144
  br label %199

160:                                              ; preds = %134
  %161 = load ptr, ptr %5, align 8, !tbaa !9
  %162 = load ptr, ptr %161, align 8, !tbaa !9
  %163 = call i32 @strcmp(ptr noundef %162, ptr noundef @.str.14) #8
  %164 = icmp ne i32 %163, 0
  br i1 %164, label %186, label %165

165:                                              ; preds = %160
  %166 = load i32, ptr %4, align 4, !tbaa !5
  %167 = add nsw i32 %166, -1
  store i32 %167, ptr %4, align 4, !tbaa !5
  %168 = icmp slt i32 %167, 1
  br i1 %168, label %169, label %170

169:                                              ; preds = %165
  br label %192

170:                                              ; preds = %165
  %171 = load ptr, ptr %5, align 8, !tbaa !9
  %172 = getelementptr inbounds ptr, ptr %171, i32 1
  store ptr %172, ptr %5, align 8, !tbaa !9
  %173 = load ptr, ptr %172, align 8, !tbaa !9
  store ptr %173, ptr %12, align 8, !tbaa !9
  %174 = load ptr, ptr %12, align 8, !tbaa !9
  %175 = call noalias ptr @fopen(ptr noundef %174, ptr noundef @.str.15)
  store ptr %175, ptr %16, align 8, !tbaa !9
  %176 = icmp ne ptr %175, null
  br i1 %176, label %185, label %177

177:                                              ; preds = %170
  %178 = load ptr, ptr @stderr, align 8, !tbaa !9
  %179 = load ptr, ptr %7, align 8, !tbaa !9
  %180 = load ptr, ptr %12, align 8, !tbaa !9
  %181 = call ptr @__errno_location() #9
  %182 = load i32, ptr %181, align 4, !tbaa !5
  %183 = call ptr @strerror(i32 noundef %182) #7
  %184 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %178, ptr noundef @.str.13, ptr noundef %179, ptr noundef %180, ptr noundef %183) #7
  br label %302

185:                                              ; preds = %170
  br label %198

186:                                              ; preds = %160
  %187 = load ptr, ptr @stderr, align 8, !tbaa !9
  %188 = load ptr, ptr %7, align 8, !tbaa !9
  %189 = load ptr, ptr %5, align 8, !tbaa !9
  %190 = load ptr, ptr %189, align 8, !tbaa !9
  %191 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %187, ptr noundef @.str.16, ptr noundef %188, ptr noundef %190) #7
  br label %302

192:                                              ; preds = %169, %143, %129, %63
  %193 = load ptr, ptr @stderr, align 8, !tbaa !9
  %194 = load ptr, ptr %7, align 8, !tbaa !9
  %195 = load ptr, ptr %5, align 8, !tbaa !9
  %196 = load ptr, ptr %195, align 8, !tbaa !9
  %197 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %193, ptr noundef @.str.17, ptr noundef %194, ptr noundef %196) #7
  br label %302

198:                                              ; preds = %185
  br label %199

199:                                              ; preds = %198, %159
  br label %200

200:                                              ; preds = %199, %130
  br label %201

201:                                              ; preds = %200, %112
  br label %202

202:                                              ; preds = %201, %99
  br label %203

203:                                              ; preds = %202, %86
  br label %204

204:                                              ; preds = %203
  %205 = load i32, ptr %4, align 4, !tbaa !5
  %206 = add nsw i32 %205, -1
  store i32 %206, ptr %4, align 4, !tbaa !5
  %207 = load ptr, ptr %5, align 8, !tbaa !9
  %208 = getelementptr inbounds ptr, ptr %207, i32 1
  store ptr %208, ptr %5, align 8, !tbaa !9
  br label %40, !llvm.loop !11

209:                                              ; preds = %40
  %210 = load ptr, ptr %8, align 8, !tbaa !9
  %211 = icmp ne ptr %210, null
  br i1 %211, label %216, label %212

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

216:                                              ; preds = %209
  %217 = getelementptr inbounds [32 x i8], ptr %13, i64 0, i64 0
  %218 = load i64, ptr %14, align 8, !tbaa !13
  %219 = call i32 @sm3_digest_init(ptr noundef %17, ptr noundef %217, i64 noundef %218)
  %220 = icmp ne i32 %219, 1
  br i1 %220, label %221, label %225

221:                                              ; preds = %216
  %222 = load ptr, ptr @stderr, align 8, !tbaa !9
  %223 = load ptr, ptr %7, align 8, !tbaa !9
  %224 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %222, ptr noundef @.str.19, ptr noundef %223) #7
  br label %302

225:                                              ; preds = %216
  %226 = load ptr, ptr %10, align 8, !tbaa !9
  %227 = icmp ne ptr %226, null
  br i1 %227, label %228, label %239

228:                                              ; preds = %225
  %229 = load ptr, ptr %10, align 8, !tbaa !9
  %230 = load ptr, ptr %10, align 8, !tbaa !9
  %231 = call i64 @strlen(ptr noundef %230) #8
  %232 = call i32 @sm3_digest_update(ptr noundef %17, ptr noundef %229, i64 noundef %231)
  %233 = icmp ne i32 %232, 1
  br i1 %233, label %234, label %238

234:                                              ; preds = %228
  %235 = load ptr, ptr @stderr, align 8, !tbaa !9
  %236 = load ptr, ptr %7, align 8, !tbaa !9
  %237 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %235, ptr noundef @.str.19, ptr noundef %236) #7
  br label %302

238:                                              ; preds = %228
  br label %260

239:                                              ; preds = %225
  call void @llvm.lifetime.start.p0(i64 4096, ptr %21) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  br label %240

240:                                              ; preds = %254, %239
  %241 = getelementptr inbounds [4096 x i8], ptr %21, i64 0, i64 0
  %242 = load ptr, ptr %15, align 8, !tbaa !9
  %243 = call i64 @fread(ptr noundef %241, i64 noundef 1, i64 noundef 4096, ptr noundef %242)
  store i64 %243, ptr %22, align 8, !tbaa !13
  %244 = icmp ugt i64 %243, 0
  br i1 %244, label %245, label %255

245:                                              ; preds = %240
  %246 = getelementptr inbounds [4096 x i8], ptr %21, i64 0, i64 0
  %247 = load i64, ptr %22, align 8, !tbaa !13
  %248 = call i32 @sm3_digest_update(ptr noundef %17, ptr noundef %246, i64 noundef %247)
  %249 = icmp ne i32 %248, 1
  br i1 %249, label %250, label %254

250:                                              ; preds = %245
  %251 = load ptr, ptr @stderr, align 8, !tbaa !9
  %252 = load ptr, ptr %7, align 8, !tbaa !9
  %253 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %251, ptr noundef @.str.19, ptr noundef %252) #7
  store i32 4, ptr %20, align 4
  br label %257

254:                                              ; preds = %245
  br label %240, !llvm.loop !15

255:                                              ; preds = %240
  %256 = getelementptr inbounds [4096 x i8], ptr %21, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %256, i8 0, i64 4096, i1 false)
  store i32 0, ptr %20, align 4
  br label %257

257:                                              ; preds = %255, %250
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4096, ptr %21) #7
  %258 = load i32, ptr %20, align 4
  switch i32 %258, label %323 [
    i32 0, label %259
    i32 4, label %302
  ]

259:                                              ; preds = %257
  br label %260

260:                                              ; preds = %259, %238
  %261 = getelementptr inbounds [32 x i8], ptr %18, i64 0, i64 0
  %262 = call i32 @sm3_digest_finish(ptr noundef %17, ptr noundef %261)
  %263 = icmp ne i32 %262, 1
  br i1 %263, label %264, label %268

264:                                              ; preds = %260
  %265 = load ptr, ptr @stderr, align 8, !tbaa !9
  %266 = load ptr, ptr %7, align 8, !tbaa !9
  %267 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %265, ptr noundef @.str.19, ptr noundef %266) #7
  br label %302

268:                                              ; preds = %260
  %269 = load i32, ptr %9, align 4, !tbaa !5
  %270 = icmp sgt i32 %269, 1
  br i1 %270, label %271, label %284

271:                                              ; preds = %268
  %272 = getelementptr inbounds [32 x i8], ptr %18, i64 0, i64 0
  %273 = load ptr, ptr %16, align 8, !tbaa !9
  %274 = call i64 @fwrite(ptr noundef %272, i64 noundef 1, i64 noundef 32, ptr noundef %273)
  %275 = icmp ne i64 %274, 32
  br i1 %275, label %276, label %283

276:                                              ; preds = %271
  %277 = load ptr, ptr @stderr, align 8, !tbaa !9
  %278 = load ptr, ptr %7, align 8, !tbaa !9
  %279 = call ptr @__errno_location() #9
  %280 = load i32, ptr %279, align 4, !tbaa !5
  %281 = call ptr @strerror(i32 noundef %280) #7
  %282 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %277, ptr noundef @.str.20, ptr noundef %278, ptr noundef %281) #7
  br label %302

283:                                              ; preds = %271
  br label %301

284:                                              ; preds = %268
  store i64 0, ptr %19, align 8, !tbaa !13
  br label %285

285:                                              ; preds = %295, %284
  %286 = load i64, ptr %19, align 8, !tbaa !13
  %287 = icmp ult i64 %286, 32
  br i1 %287, label %288, label %298

288:                                              ; preds = %285
  %289 = load ptr, ptr %16, align 8, !tbaa !9
  %290 = load i64, ptr %19, align 8, !tbaa !13
  %291 = getelementptr inbounds [32 x i8], ptr %18, i64 0, i64 %290
  %292 = load i8, ptr %291, align 1, !tbaa !16
  %293 = zext i8 %292 to i32
  %294 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %289, ptr noundef @.str.21, i32 noundef %293) #7
  br label %295

295:                                              ; preds = %288
  %296 = load i64, ptr %19, align 8, !tbaa !13
  %297 = add i64 %296, 1
  store i64 %297, ptr %19, align 8, !tbaa !13
  br label %285, !llvm.loop !17

298:                                              ; preds = %285
  %299 = load ptr, ptr %16, align 8, !tbaa !9
  %300 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %299, ptr noundef @.str.22) #7
  br label %301

301:                                              ; preds = %298, %283
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %302

302:                                              ; preds = %301, %276, %264, %257, %234, %221, %212, %192, %186, %177, %151, %121, %108, %95, %82, %71, %48
  %303 = getelementptr inbounds [32 x i8], ptr %13, i64 0, i64 0
  call void @gmssl_secure_clear(ptr noundef %303, i64 noundef 32)
  call void @gmssl_secure_clear(ptr noundef %17, i64 noundef 184)
  %304 = load ptr, ptr %11, align 8, !tbaa !9
  %305 = icmp ne ptr %304, null
  br i1 %305, label %306, label %312

306:                                              ; preds = %302
  %307 = load ptr, ptr %15, align 8, !tbaa !9
  %308 = icmp ne ptr %307, null
  br i1 %308, label %309, label %312

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

312:                                              ; preds = %309, %306, %302
  %313 = load ptr, ptr %12, align 8, !tbaa !9
  %314 = icmp ne ptr %313, null
  br i1 %314, label %315, label %321

315:                                              ; preds = %312
  %316 = load ptr, ptr %16, align 8, !tbaa !9
  %317 = icmp ne ptr %316, null
  br i1 %317, label %318, label %321

318:                                              ; preds = %315
  %319 = load ptr, ptr %16, align 8, !tbaa !9
  %320 = call i32 @fclose(ptr noundef %319)
  br label %321

321:                                              ; preds = %318, %315, %312
  %322 = load i32, ptr %6, align 4, !tbaa !5
  store i32 %322, ptr %3, align 4
  store i32 1, ptr %20, align 4
  br label %323

323:                                              ; preds = %321, %257, %34
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 184, ptr %17) #7
  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 32, 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 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  %324 = load i32, ptr %3, align 4
  ret i32 %324
}

; 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

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #3

declare i32 @hex_to_bytes(ptr noundef, i64 noundef, ptr noundef, 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 @sm3_digest_init(ptr noundef, ptr noundef, i64 noundef) #4

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

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

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

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

declare i32 @sm3_digest_finish(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

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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { nounwind }
attributes #8 = { nounwind willreturn memory(read) }
attributes #9 = { 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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = distinct !{!15, !12}
!16 = !{!7, !7, i64 0}
!17 = distinct !{!17, !12}


; 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.SM3_DIGEST_CTX = type { %union.anon, i32 }
%union.anon = type { %struct.SM3_HMAC_CTX }
%struct.SM3_HMAC_CTX = type { %struct.SM3_CTX, [64 x i8] }
%struct.SM3_CTX = type { [8 x i32], i64, [64 x i8], i64 }

@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 [14 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
@help = external hidden local_unnamed_addr global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @sm3hmac_main(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = alloca [32 x i8], align 16
  %4 = alloca i64, align 8
  %5 = alloca %struct.SM3_DIGEST_CTX, align 8
  %6 = alloca [32 x i8], align 16
  %7 = alloca [4096 x i8], align 16
  %8 = load ptr, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  %9 = load ptr, ptr @stdin, align 8, !tbaa !5
  %10 = load ptr, ptr @stdout, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 184, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #7
  %11 = icmp slt i32 %0, 2
  br i1 %11, label %12, label %.preheader130

12:                                               ; preds = %2
  %13 = load ptr, ptr @stderr, align 8, !tbaa !5
  %14 = load ptr, ptr @usage, align 8, !tbaa !5
  %15 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str, ptr noundef %8, ptr noundef %14) #8
  br label %283

.preheader130:                                    ; preds = %2, %103
  %.077222 = phi ptr [ %.1, %103 ], [ %10, %2 ]
  %.078221 = phi ptr [ %.179, %103 ], [ %9, %2 ]
  %.081220 = phi ptr [ %.182, %103 ], [ null, %2 ]
  %.084219 = phi ptr [ %.185, %103 ], [ null, %2 ]
  %.087218 = phi ptr [ %.188, %103 ], [ null, %2 ]
  %.089217 = phi i32 [ %.190, %103 ], [ 0, %2 ]
  %.091216 = phi ptr [ %.192, %103 ], [ null, %2 ]
  %.093.in215 = phi i32 [ %.194, %103 ], [ %0, %2 ]
  %.pn214 = phi ptr [ %.197, %103 ], [ %1, %2 ]
  %.096223 = getelementptr inbounds i8, ptr %.pn214, i64 8
  %.093224 = add nsw i32 %.093.in215, -1
  %16 = load ptr, ptr %.096223, align 8, !tbaa !5
  %17 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %16, ptr noundef nonnull dereferenceable(1) @.str.1) #9
  %.not116 = icmp eq i32 %17, 0
  br i1 %.not116, label %18, label %23

18:                                               ; preds = %.preheader130
  %19 = load ptr, ptr @usage, align 8, !tbaa !5
  %20 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, ptr noundef %8, ptr noundef %19)
  %21 = load ptr, ptr @help, align 8, !tbaa !5
  %22 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef %21)
  br label %273

23:                                               ; preds = %.preheader130
  %24 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %16, ptr noundef nonnull dereferenceable(1) @.str.3) #9
  %.not117 = icmp eq i32 %24, 0
  br i1 %.not117, label %25, label %41

25:                                               ; preds = %23
  %26 = add nsw i32 %.093.in215, -2
  %27 = icmp eq i32 %.093.in215, 2
  br i1 %27, label %100, label %28

28:                                               ; preds = %25
  %29 = getelementptr inbounds i8, ptr %.pn214, i64 16
  %30 = load ptr, ptr %29, align 8, !tbaa !5
  %31 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %30) #9
  %32 = icmp ugt i64 %31, 64
  br i1 %32, label %33, label %36

33:                                               ; preds = %28
  %34 = load ptr, ptr @stderr, align 8, !tbaa !5
  %35 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef nonnull @.str.4, ptr noundef %8) #8
  br label %273

36:                                               ; preds = %28
  %37 = call i32 @hex_to_bytes(ptr noundef %30, i64 noundef %31, ptr noundef nonnull %3, ptr noundef nonnull %4) #7
  %.not118 = icmp eq i32 %37, 1
  br i1 %.not118, label %103, label %38

38:                                               ; preds = %36
  %39 = load ptr, ptr @stderr, align 8, !tbaa !5
  %40 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %39, ptr noundef nonnull @.str.5, ptr noundef %8) #8
  br label %273

41:                                               ; preds = %23
  %42 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %16, ptr noundef nonnull dereferenceable(1) @.str.6) #9
  %.not119 = icmp eq i32 %42, 0
  br i1 %.not119, label %43, label %48

43:                                               ; preds = %41
  %44 = icmp eq i32 %.089217, 2
  br i1 %44, label %45, label %103

45:                                               ; preds = %43
  %46 = load ptr, ptr @stderr, align 8, !tbaa !5
  %47 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.7, ptr noundef %8) #8
  br label %273

48:                                               ; preds = %41
  %49 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %16, ptr noundef nonnull dereferenceable(1) @.str.8) #9
  %.not120 = icmp eq i32 %49, 0
  br i1 %.not120, label %50, label %55

50:                                               ; preds = %48
  %51 = icmp eq i32 %.089217, 1
  br i1 %51, label %52, label %103

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

55:                                               ; preds = %48
  %56 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %16, ptr noundef nonnull dereferenceable(1) @.str.9) #9
  %.not121 = icmp eq i32 %56, 0
  br i1 %.not121, label %57, label %67

57:                                               ; preds = %55
  %.not122 = icmp eq ptr %.084219, null
  br i1 %.not122, label %61, label %58

58:                                               ; preds = %57
  %59 = load ptr, ptr @stderr, align 8, !tbaa !5
  %60 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %59, ptr noundef nonnull @.str.10, ptr noundef %8) #8
  br label %273

61:                                               ; preds = %57
  %62 = icmp eq i32 %.093.in215, 2
  br i1 %62, label %100, label %63

63:                                               ; preds = %61
  %64 = add nsw i32 %.093.in215, -2
  %65 = getelementptr inbounds i8, ptr %.pn214, i64 16
  %66 = load ptr, ptr %65, align 8, !tbaa !5
  br label %103

67:                                               ; preds = %55
  %68 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %16, ptr noundef nonnull dereferenceable(1) @.str.11) #9
  %.not123 = icmp eq i32 %68, 0
  br i1 %.not123, label %69, label %82

69:                                               ; preds = %67
  %70 = icmp eq i32 %.093.in215, 2
  br i1 %70, label %100, label %71

71:                                               ; preds = %69
  %72 = add nsw i32 %.093.in215, -2
  %73 = getelementptr inbounds i8, ptr %.pn214, i64 16
  %74 = load ptr, ptr %73, align 8, !tbaa !5
  %75 = call noalias ptr @fopen(ptr noundef %74, ptr noundef nonnull @.str.12)
  %.not124 = icmp eq ptr %75, null
  br i1 %.not124, label %76, label %103

76:                                               ; preds = %71
  %77 = load ptr, ptr @stderr, align 8, !tbaa !5
  %78 = tail call ptr @__errno_location() #10
  %79 = load i32, ptr %78, align 4, !tbaa !9
  %80 = call ptr @strerror(i32 noundef %79) #7
  %81 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %77, ptr noundef nonnull @.str.13, ptr noundef %8, ptr noundef %74, ptr noundef %80) #8
  br label %273

82:                                               ; preds = %67
  %83 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %16, ptr noundef nonnull dereferenceable(1) @.str.14) #9
  %.not125 = icmp eq i32 %83, 0
  br i1 %.not125, label %84, label %97

84:                                               ; preds = %82
  %85 = icmp eq i32 %.093.in215, 2
  br i1 %85, label %100, label %86

86:                                               ; preds = %84
  %87 = add nsw i32 %.093.in215, -2
  %88 = getelementptr inbounds i8, ptr %.pn214, i64 16
  %89 = load ptr, ptr %88, align 8, !tbaa !5
  %90 = call noalias ptr @fopen(ptr noundef %89, ptr noundef nonnull @.str.15)
  %.not126 = icmp eq ptr %90, null
  br i1 %.not126, label %91, label %103

91:                                               ; preds = %86
  %92 = load ptr, ptr @stderr, align 8, !tbaa !5
  %93 = tail call ptr @__errno_location() #10
  %94 = load i32, ptr %93, align 4, !tbaa !9
  %95 = call ptr @strerror(i32 noundef %94) #7
  %96 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %92, ptr noundef nonnull @.str.13, ptr noundef %8, ptr noundef %89, ptr noundef %95) #8
  br label %273

97:                                               ; preds = %82
  %98 = load ptr, ptr @stderr, align 8, !tbaa !5
  %99 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %98, ptr noundef nonnull @.str.16, ptr noundef %8, ptr noundef %16) #8
  br label %273

100:                                              ; preds = %84, %69, %61, %25
  %.084219.lcssa239 = phi ptr [ %.084219, %84 ], [ %.084219, %69 ], [ null, %61 ], [ %.084219, %25 ]
  %101 = load ptr, ptr @stderr, align 8, !tbaa !5
  %102 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %101, ptr noundef nonnull @.str.17, ptr noundef %8, ptr noundef %16) #8
  br label %273

103:                                              ; preds = %50, %43, %36, %71, %86, %63
  %.197 = phi ptr [ %88, %86 ], [ %73, %71 ], [ %65, %63 ], [ %29, %36 ], [ %.096223, %43 ], [ %.096223, %50 ]
  %.194 = phi i32 [ %87, %86 ], [ %72, %71 ], [ %64, %63 ], [ %26, %36 ], [ %.093224, %43 ], [ %.093224, %50 ]
  %.192 = phi ptr [ %.091216, %86 ], [ %.091216, %71 ], [ %.091216, %63 ], [ %30, %36 ], [ %.091216, %43 ], [ %.091216, %50 ]
  %.190 = phi i32 [ %.089217, %86 ], [ %.089217, %71 ], [ %.089217, %63 ], [ %.089217, %36 ], [ 1, %43 ], [ 2, %50 ]
  %.188 = phi ptr [ %.087218, %86 ], [ %.087218, %71 ], [ %66, %63 ], [ %.087218, %36 ], [ %.087218, %43 ], [ %.087218, %50 ]
  %.185 = phi ptr [ %.084219, %86 ], [ %74, %71 ], [ null, %63 ], [ %.084219, %36 ], [ %.084219, %43 ], [ %.084219, %50 ]
  %.182 = phi ptr [ %89, %86 ], [ %.081220, %71 ], [ %.081220, %63 ], [ %.081220, %36 ], [ %.081220, %43 ], [ %.081220, %50 ]
  %.179 = phi ptr [ %.078221, %86 ], [ %75, %71 ], [ %.078221, %63 ], [ %.078221, %36 ], [ %.078221, %43 ], [ %.078221, %50 ]
  %.1 = phi ptr [ %90, %86 ], [ %.077222, %71 ], [ %.077222, %63 ], [ %.077222, %36 ], [ %.077222, %43 ], [ %.077222, %50 ]
  %104 = icmp sgt i32 %.194, 1
  br i1 %104, label %.preheader130, label %105, !llvm.loop !11

105:                                              ; preds = %103
  %.not = icmp eq ptr %.192, null
  br i1 %.not, label %106, label %109

106:                                              ; preds = %105
  %107 = load ptr, ptr @stderr, align 8, !tbaa !5
  %108 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %107, ptr noundef nonnull @.str.18, ptr noundef %8) #8
  br label %273

109:                                              ; preds = %105
  %110 = load i64, ptr %4, align 8, !tbaa !13
  %111 = call i32 @sm3_digest_init(ptr noundef nonnull %5, ptr noundef nonnull %3, i64 noundef %110) #7
  %.not109 = icmp eq i32 %111, 1
  br i1 %.not109, label %115, label %112

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

115:                                              ; preds = %109
  %.not110 = icmp eq ptr %.188, null
  br i1 %.not110, label %122, label %116

116:                                              ; preds = %115
  %117 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %.188) #9
  %118 = call i32 @sm3_digest_update(ptr noundef nonnull %5, ptr noundef nonnull %.188, i64 noundef %117) #7
  %.not113 = icmp eq i32 %118, 1
  br i1 %.not113, label %130, label %119

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

122:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 4096, ptr nonnull %7) #7
  br label %123

123:                                              ; preds = %125, %122
  %124 = call i64 @fread(ptr noundef nonnull %7, i64 noundef 1, i64 noundef 4096, ptr noundef %.179)
  %.not111 = icmp eq i64 %124, 0
  br i1 %.not111, label %.thread, label %125

125:                                              ; preds = %123
  %126 = call i32 @sm3_digest_update(ptr noundef nonnull %5, ptr noundef nonnull %7, i64 noundef %124) #7
  %.not112 = icmp eq i32 %126, 1
  br i1 %.not112, label %123, label %127, !llvm.loop !15

.thread:                                          ; preds = %123
  call void @llvm.lifetime.end.p0(i64 4096, ptr nonnull %7) #7
  br label %130

127:                                              ; preds = %125
  %128 = load ptr, ptr @stderr, align 8, !tbaa !5
  %129 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %128, ptr noundef nonnull @.str.19, ptr noundef %8) #8
  call void @llvm.lifetime.end.p0(i64 4096, ptr nonnull %7) #7
  br label %273

130:                                              ; preds = %.thread, %116
  %131 = call i32 @sm3_digest_finish(ptr noundef nonnull %5, ptr noundef nonnull %6) #7
  %.not114 = icmp eq i32 %131, 1
  br i1 %.not114, label %135, label %132

132:                                              ; preds = %130
  %133 = load ptr, ptr @stderr, align 8, !tbaa !5
  %134 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %133, ptr noundef nonnull @.str.19, ptr noundef %8) #8
  br label %273

135:                                              ; preds = %130
  %136 = icmp sgt i32 %.190, 1
  br i1 %136, label %265, label %.preheader.preheader

.preheader.preheader:                             ; preds = %135
  %137 = load i8, ptr %6, align 16, !tbaa !16
  %138 = zext i8 %137 to i32
  %139 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.1, ptr noundef nonnull @.str.21, i32 noundef %138) #7
  %140 = getelementptr inbounds i8, ptr %6, i64 1
  %141 = load i8, ptr %140, align 1, !tbaa !16
  %142 = zext i8 %141 to i32
  %143 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.1, ptr noundef nonnull @.str.21, i32 noundef %142) #7
  %144 = getelementptr inbounds i8, ptr %6, i64 2
  %145 = load i8, ptr %144, align 2, !tbaa !16
  %146 = zext i8 %145 to i32
  %147 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.1, ptr noundef nonnull @.str.21, i32 noundef %146) #7
  %148 = getelementptr inbounds i8, ptr %6, i64 3
  %149 = load i8, ptr %148, align 1, !tbaa !16
  %150 = zext i8 %149 to i32
  %151 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.1, ptr noundef nonnull @.str.21, i32 noundef %150) #7
  %152 = getelementptr inbounds i8, ptr %6, i64 4
  %153 = load i8, ptr %152, align 4, !tbaa !16
  %154 = zext i8 %153 to i32
  %155 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.1, ptr noundef nonnull @.str.21, i32 noundef %154) #7
  %156 = getelementptr inbounds i8, ptr %6, i64 5
  %157 = load i8, ptr %156, align 1, !tbaa !16
  %158 = zext i8 %157 to i32
  %159 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.1, ptr noundef nonnull @.str.21, i32 noundef %158) #7
  %160 = getelementptr inbounds i8, ptr %6, i64 6
  %161 = load i8, ptr %160, align 2, !tbaa !16
  %162 = zext i8 %161 to i32
  %163 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.1, ptr noundef nonnull @.str.21, i32 noundef %162) #7
  %164 = getelementptr inbounds i8, ptr %6, i64 7
  %165 = load i8, ptr %164, align 1, !tbaa !16
  %166 = zext i8 %165 to i32
  %167 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.1, ptr noundef nonnull @.str.21, i32 noundef %166) #7
  %168 = getelementptr inbounds i8, ptr %6, i64 8
  %169 = load i8, ptr %168, align 8, !tbaa !16
  %170 = zext i8 %169 to i32
  %171 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.1, ptr noundef nonnull @.str.21, i32 noundef %170) #7
  %172 = getelementptr inbounds i8, ptr %6, i64 9
  %173 = load i8, ptr %172, align 1, !tbaa !16
  %174 = zext i8 %173 to i32
  %175 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.1, ptr noundef nonnull @.str.21, i32 noundef %174) #7
  %176 = getelementptr inbounds i8, ptr %6, i64 10
  %177 = load i8, ptr %176, align 2, !tbaa !16
  %178 = zext i8 %177 to i32
  %179 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.1, ptr noundef nonnull @.str.21, i32 noundef %178) #7
  %180 = getelementptr inbounds i8, ptr %6, i64 11
  %181 = load i8, ptr %180, align 1, !tbaa !16
  %182 = zext i8 %181 to i32
  %183 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.1, ptr noundef nonnull @.str.21, i32 noundef %182) #7
  %184 = getelementptr inbounds i8, ptr %6, i64 12
  %185 = load i8, ptr %184, align 4, !tbaa !16
  %186 = zext i8 %185 to i32
  %187 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.1, ptr noundef nonnull @.str.21, i32 noundef %186) #7
  %188 = getelementptr inbounds i8, ptr %6, i64 13
  %189 = load i8, ptr %188, align 1, !tbaa !16
  %190 = zext i8 %189 to i32
  %191 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.1, ptr noundef nonnull @.str.21, i32 noundef %190) #7
  %192 = getelementptr inbounds i8, ptr %6, i64 14
  %193 = load i8, ptr %192, align 2, !tbaa !16
  %194 = zext i8 %193 to i32
  %195 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.1, ptr noundef nonnull @.str.21, i32 noundef %194) #7
  %196 = getelementptr inbounds i8, ptr %6, i64 15
  %197 = load i8, ptr %196, align 1, !tbaa !16
  %198 = zext i8 %197 to i32
  %199 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.1, ptr noundef nonnull @.str.21, i32 noundef %198) #7
  %200 = getelementptr inbounds i8, ptr %6, i64 16
  %201 = load i8, ptr %200, align 16, !tbaa !16
  %202 = zext i8 %201 to i32
  %203 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.1, ptr noundef nonnull @.str.21, i32 noundef %202) #7
  %204 = getelementptr inbounds i8, ptr %6, i64 17
  %205 = load i8, ptr %204, align 1, !tbaa !16
  %206 = zext i8 %205 to i32
  %207 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.1, ptr noundef nonnull @.str.21, i32 noundef %206) #7
  %208 = getelementptr inbounds i8, ptr %6, i64 18
  %209 = load i8, ptr %208, align 2, !tbaa !16
  %210 = zext i8 %209 to i32
  %211 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.1, ptr noundef nonnull @.str.21, i32 noundef %210) #7
  %212 = getelementptr inbounds i8, ptr %6, i64 19
  %213 = load i8, ptr %212, align 1, !tbaa !16
  %214 = zext i8 %213 to i32
  %215 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.1, ptr noundef nonnull @.str.21, i32 noundef %214) #7
  %216 = getelementptr inbounds i8, ptr %6, i64 20
  %217 = load i8, ptr %216, align 4, !tbaa !16
  %218 = zext i8 %217 to i32
  %219 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.1, ptr noundef nonnull @.str.21, i32 noundef %218) #7
  %220 = getelementptr inbounds i8, ptr %6, i64 21
  %221 = load i8, ptr %220, align 1, !tbaa !16
  %222 = zext i8 %221 to i32
  %223 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.1, ptr noundef nonnull @.str.21, i32 noundef %222) #7
  %224 = getelementptr inbounds i8, ptr %6, i64 22
  %225 = load i8, ptr %224, align 2, !tbaa !16
  %226 = zext i8 %225 to i32
  %227 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.1, ptr noundef nonnull @.str.21, i32 noundef %226) #7
  %228 = getelementptr inbounds i8, ptr %6, i64 23
  %229 = load i8, ptr %228, align 1, !tbaa !16
  %230 = zext i8 %229 to i32
  %231 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.1, ptr noundef nonnull @.str.21, i32 noundef %230) #7
  %232 = getelementptr inbounds i8, ptr %6, i64 24
  %233 = load i8, ptr %232, align 8, !tbaa !16
  %234 = zext i8 %233 to i32
  %235 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.1, ptr noundef nonnull @.str.21, i32 noundef %234) #7
  %236 = getelementptr inbounds i8, ptr %6, i64 25
  %237 = load i8, ptr %236, align 1, !tbaa !16
  %238 = zext i8 %237 to i32
  %239 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.1, ptr noundef nonnull @.str.21, i32 noundef %238) #7
  %240 = getelementptr inbounds i8, ptr %6, i64 26
  %241 = load i8, ptr %240, align 2, !tbaa !16
  %242 = zext i8 %241 to i32
  %243 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.1, ptr noundef nonnull @.str.21, i32 noundef %242) #7
  %244 = getelementptr inbounds i8, ptr %6, i64 27
  %245 = load i8, ptr %244, align 1, !tbaa !16
  %246 = zext i8 %245 to i32
  %247 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.1, ptr noundef nonnull @.str.21, i32 noundef %246) #7
  %248 = getelementptr inbounds i8, ptr %6, i64 28
  %249 = load i8, ptr %248, align 4, !tbaa !16
  %250 = zext i8 %249 to i32
  %251 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.1, ptr noundef nonnull @.str.21, i32 noundef %250) #7
  %252 = getelementptr inbounds i8, ptr %6, i64 29
  %253 = load i8, ptr %252, align 1, !tbaa !16
  %254 = zext i8 %253 to i32
  %255 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.1, ptr noundef nonnull @.str.21, i32 noundef %254) #7
  %256 = getelementptr inbounds i8, ptr %6, i64 30
  %257 = load i8, ptr %256, align 2, !tbaa !16
  %258 = zext i8 %257 to i32
  %259 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.1, ptr noundef nonnull @.str.21, i32 noundef %258) #7
  %260 = getelementptr inbounds i8, ptr %6, i64 31
  %261 = load i8, ptr %260, align 1, !tbaa !16
  %262 = zext i8 %261 to i32
  %263 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.1, ptr noundef nonnull @.str.21, i32 noundef %262) #7
  %264 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.1, ptr noundef nonnull @.str.22) #7
  br label %273

265:                                              ; preds = %135
  %266 = call i64 @fwrite(ptr noundef nonnull %6, i64 noundef 1, i64 noundef 32, ptr noundef %.1)
  %.not115 = icmp eq i64 %266, 32
  br i1 %.not115, label %273, label %267

267:                                              ; preds = %265
  %268 = load ptr, ptr @stderr, align 8, !tbaa !5
  %269 = tail call ptr @__errno_location() #10
  %270 = load i32, ptr %269, align 4, !tbaa !9
  %271 = call ptr @strerror(i32 noundef %270) #7
  %272 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %268, ptr noundef nonnull @.str.20, ptr noundef %8, ptr noundef %271) #8
  br label %273

273:                                              ; preds = %127, %.preheader.preheader, %265, %267, %132, %119, %112, %106, %100, %97, %91, %76, %58, %52, %45, %38, %33, %18
  %.095 = phi i32 [ 1, %97 ], [ 1, %100 ], [ 1, %91 ], [ 1, %76 ], [ 1, %58 ], [ 1, %52 ], [ 1, %45 ], [ 1, %33 ], [ 1, %38 ], [ 0, %18 ], [ 1, %112 ], [ 1, %119 ], [ 1, %132 ], [ 1, %267 ], [ 1, %127 ], [ 1, %106 ], [ 0, %265 ], [ 0, %.preheader.preheader ]
  %.286 = phi ptr [ %.084219, %97 ], [ %.084219.lcssa239, %100 ], [ %.084219, %91 ], [ %74, %76 ], [ %.084219, %58 ], [ %.084219, %52 ], [ %.084219, %45 ], [ %.084219, %33 ], [ %.084219, %38 ], [ %.084219, %18 ], [ %.185, %112 ], [ %.185, %119 ], [ %.185, %132 ], [ %.185, %267 ], [ %.185, %127 ], [ %.185, %106 ], [ %.185, %265 ], [ %.185, %.preheader.preheader ]
  %.283 = phi ptr [ %.081220, %97 ], [ %.081220, %100 ], [ %89, %91 ], [ %.081220, %76 ], [ %.081220, %58 ], [ %.081220, %52 ], [ %.081220, %45 ], [ %.081220, %33 ], [ %.081220, %38 ], [ %.081220, %18 ], [ %.182, %112 ], [ %.182, %119 ], [ %.182, %132 ], [ %.182, %267 ], [ %.182, %127 ], [ %.182, %106 ], [ %.182, %265 ], [ %.182, %.preheader.preheader ]
  %.280 = phi ptr [ %.078221, %97 ], [ %.078221, %100 ], [ %.078221, %91 ], [ null, %76 ], [ %.078221, %58 ], [ %.078221, %52 ], [ %.078221, %45 ], [ %.078221, %33 ], [ %.078221, %38 ], [ %.078221, %18 ], [ %.179, %112 ], [ %.179, %119 ], [ %.179, %132 ], [ %.179, %267 ], [ %.179, %127 ], [ %.179, %106 ], [ %.179, %265 ], [ %.179, %.preheader.preheader ]
  %.2 = phi ptr [ %.077222, %97 ], [ %.077222, %100 ], [ null, %91 ], [ %.077222, %76 ], [ %.077222, %58 ], [ %.077222, %52 ], [ %.077222, %45 ], [ %.077222, %33 ], [ %.077222, %38 ], [ %.077222, %18 ], [ %.1, %112 ], [ %.1, %119 ], [ %.1, %132 ], [ %.1, %267 ], [ %.1, %127 ], [ %.1, %106 ], [ %.1, %265 ], [ %.1, %.preheader.preheader ]
  call void @gmssl_secure_clear(ptr noundef nonnull %3, i64 noundef 32) #7
  call void @gmssl_secure_clear(ptr noundef nonnull %5, i64 noundef 184) #7
  %274 = icmp ne ptr %.286, null
  %275 = icmp ne ptr %.280, null
  %or.cond = select i1 %274, i1 %275, i1 false
  br i1 %or.cond, label %276, label %278

276:                                              ; preds = %273
  %277 = call i32 @fclose(ptr noundef nonnull %.280)
  br label %278

278:                                              ; preds = %276, %273
  %279 = icmp ne ptr %.283, null
  %280 = icmp ne ptr %.2, null
  %or.cond3 = select i1 %279, i1 %280, i1 false
  br i1 %or.cond3, label %281, label %283

281:                                              ; preds = %278
  %282 = call i32 @fclose(ptr noundef nonnull %.2)
  br label %283

283:                                              ; preds = %278, %281, %12
  %.0 = phi i32 [ 1, %12 ], [ %.095, %281 ], [ %.095, %278 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 184, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 32, 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: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #3

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

; 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 #5

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

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

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

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

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

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

; 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 #4

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

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


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