; LLVM IR from gost-engine/engine :: test_tlstree (main)

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

@__const.main.mac_secret = external hidden unnamed_addr constant [32 x i8], align 16
@__const.main.rec0_header = external hidden unnamed_addr constant [5 x i8], align 1
@__const.main.mac0_etl = external hidden unnamed_addr constant [16 x i8], align 16
@__const.main.enc0_etl = external hidden unnamed_addr constant [31 x i8], align 16
@__const.main.seq63 = external hidden unnamed_addr constant [8 x i8], align 1
@__const.main.rec63_header = external hidden unnamed_addr constant [5 x i8], align 1
@__const.main.mac63_etl = external hidden unnamed_addr constant [16 x i8], align 16
@__const.main.enc63_etl_head = external hidden unnamed_addr constant [32 x i8], align 16
@__const.main.enc63_etl_tail = external hidden unnamed_addr constant [48 x i8], align 16
@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [12 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca [32 x i8], align 16
  %3 = alloca [32 x i8], align 16
  %4 = alloca [16 x i8], align 16
  %5 = alloca [8 x i8], align 1
  %6 = alloca [5 x i8], align 1
  %7 = alloca [15 x i8], align 1
  %8 = alloca [16 x i8], align 16
  %9 = alloca [31 x i8], align 16
  %10 = alloca [31 x i8], align 16
  %11 = alloca [16 x i8], align 16
  %12 = alloca [8 x i8], align 1
  %13 = alloca [5 x i8], align 1
  %14 = alloca [4096 x i8], align 16
  %15 = alloca [16 x i8], align 16
  %16 = alloca [32 x i8], align 16
  %17 = alloca [48 x i8], align 16
  %18 = alloca [4112 x i8], align 16
  %19 = alloca [16 x i8], align 16
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca i64, align 8
  %26 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 32, ptr %2) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.mac_secret, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 32, ptr %3) #8
  call void @llvm.memset.p0.i64(ptr align 16 %3, i8 0, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #8
  call void @llvm.memset.p0.i64(ptr align 16 %4, i8 0, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #8
  call void @llvm.memset.p0.i64(ptr align 1 %5, i8 0, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 5, ptr %6) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %6, ptr align 1 @__const.main.rec0_header, i64 5, i1 false)
  call void @llvm.lifetime.start.p0(i64 15, ptr %7) #8
  call void @llvm.memset.p0.i64(ptr align 1 %7, i8 0, i64 15, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %8, ptr align 16 @__const.main.mac0_etl, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 31, ptr %9) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %9, ptr align 16 @__const.main.enc0_etl, i64 31, i1 false)
  call void @llvm.lifetime.start.p0(i64 31, ptr %10) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %12, ptr align 1 @__const.main.seq63, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 5, ptr %13) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %13, ptr align 1 @__const.main.rec63_header, i64 5, i1 false)
  call void @llvm.lifetime.start.p0(i64 4096, ptr %14) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %15, ptr align 16 @__const.main.mac63_etl, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 32, ptr %16) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %16, ptr align 16 @__const.main.enc63_etl_head, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 48, ptr %17) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %17, ptr align 16 @__const.main.enc63_etl_tail, i64 48, i1 false)
  call void @llvm.lifetime.start.p0(i64 4112, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %27 = call ptr @EVP_MD_CTX_new()
  store ptr %27, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  store ptr null, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  %28 = call i32 @OPENSSL_init_crypto(i64 noundef 64, ptr noundef null)
  %29 = getelementptr inbounds [4096 x i8], ptr %14, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %29, i8 0, i64 4096, i1 false)
  %30 = call ptr @OBJ_nid2sn(i32 noundef 1017)
  %31 = call ptr @EVP_get_digestbyname(ptr noundef %30)
  store ptr %31, ptr %22, align 8, !tbaa !5
  %32 = load ptr, ptr %20, align 8, !tbaa !5
  %33 = load ptr, ptr %22, align 8, !tbaa !5
  %34 = call i32 @EVP_DigestInit_ex(ptr noundef %32, ptr noundef %33, ptr noundef null)
  %35 = getelementptr inbounds [32 x i8], ptr %2, i64 0, i64 0
  %36 = call ptr @EVP_PKEY_new_mac_key(i32 noundef 1017, ptr noundef null, ptr noundef %35, i32 noundef 32)
  store ptr %36, ptr %24, align 8, !tbaa !5
  %37 = load ptr, ptr %20, align 8, !tbaa !5
  %38 = load ptr, ptr %22, align 8, !tbaa !5
  %39 = load ptr, ptr %24, align 8, !tbaa !5
  %40 = call i32 @EVP_DigestSignInit(ptr noundef %37, ptr noundef null, ptr noundef %38, ptr noundef null, ptr noundef %39)
  %41 = load ptr, ptr %24, align 8, !tbaa !5
  call void @EVP_PKEY_free(ptr noundef %41)
  %42 = load ptr, ptr %20, align 8, !tbaa !5
  %43 = getelementptr inbounds [8 x i8], ptr %5, i64 0, i64 0
  %44 = call i32 @EVP_MD_CTX_ctrl(ptr noundef %42, i32 noundef 4, i32 noundef 0, ptr noundef %43)
  %45 = load ptr, ptr %20, align 8, !tbaa !5
  %46 = getelementptr inbounds [8 x i8], ptr %5, i64 0, i64 0
  %47 = call i32 @EVP_DigestSignUpdate(ptr noundef %45, ptr noundef %46, i64 noundef 8)
  %48 = load ptr, ptr %20, align 8, !tbaa !5
  %49 = getelementptr inbounds [5 x i8], ptr %6, i64 0, i64 0
  %50 = call i32 @EVP_DigestSignUpdate(ptr noundef %48, ptr noundef %49, i64 noundef 5)
  %51 = load ptr, ptr %20, align 8, !tbaa !5
  %52 = getelementptr inbounds [15 x i8], ptr %7, i64 0, i64 0
  %53 = call i32 @EVP_DigestSignUpdate(ptr noundef %51, ptr noundef %52, i64 noundef 15)
  %54 = load ptr, ptr %20, align 8, !tbaa !5
  %55 = getelementptr inbounds [16 x i8], ptr %11, i64 0, i64 0
  %56 = call i32 @EVP_DigestSignFinal(ptr noundef %54, ptr noundef %55, ptr noundef %25)
  %57 = load ptr, ptr %20, align 8, !tbaa !5
  call void @EVP_MD_CTX_free(ptr noundef %57)
  %58 = load ptr, ptr @stderr, align 8, !tbaa !5
  %59 = getelementptr inbounds [16 x i8], ptr %11, i64 0, i64 0
  %60 = load i64, ptr %25, align 8, !tbaa !9
  %61 = trunc i64 %60 to i32
  call void @hexdump(ptr noundef %58, ptr noundef @.str, ptr noundef %59, i32 noundef %61)
  %62 = getelementptr inbounds [16 x i8], ptr %11, i64 0, i64 0
  %63 = getelementptr inbounds [16 x i8], ptr %8, i64 0, i64 0
  %64 = call i32 @memcmp(ptr noundef %62, ptr noundef %63, i64 noundef 16) #9
  %65 = icmp ne i32 %64, 0
  br i1 %65, label %66, label %69

66:                                               ; preds = %0
  %67 = load ptr, ptr @stderr, align 8, !tbaa !5
  %68 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %67, ptr noundef @.str.1) #8
  call void @exit(i32 noundef 1) #10
  unreachable

69:                                               ; preds = %0
  %70 = call ptr @OBJ_nid2sn(i32 noundef 1177)
  %71 = call ptr @EVP_get_cipherbyname(ptr noundef %70)
  store ptr %71, ptr %23, align 8, !tbaa !5
  %72 = call ptr @EVP_CIPHER_CTX_new()
  store ptr %72, ptr %21, align 8, !tbaa !5
  %73 = load ptr, ptr %21, align 8, !tbaa !5
  %74 = load ptr, ptr %23, align 8, !tbaa !5
  %75 = getelementptr inbounds [32 x i8], ptr %3, i64 0, i64 0
  %76 = getelementptr inbounds [16 x i8], ptr %4, i64 0, i64 0
  %77 = call i32 @EVP_EncryptInit_ex(ptr noundef %73, ptr noundef %74, ptr noundef null, ptr noundef %75, ptr noundef %76)
  %78 = icmp sle i32 %77, 0
  br i1 %78, label %79, label %82

79:                                               ; preds = %69
  %80 = load ptr, ptr @stderr, align 8, !tbaa !5
  %81 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %80, ptr noundef @.str.2) #8
  call void @exit(i32 noundef 1) #10
  unreachable

82:                                               ; preds = %69
  store i32 7, ptr %26, align 4, !tbaa !11
  br label %83

83:                                               ; preds = %100, %82
  %84 = load i32, ptr %26, align 4, !tbaa !11
  %85 = icmp sge i32 %84, 0
  br i1 %85, label %86, label %103

86:                                               ; preds = %83
  %87 = load i32, ptr %26, align 4, !tbaa !11
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [8 x i8], ptr %5, i64 0, i64 %88
  %90 = load i8, ptr %89, align 1, !tbaa !13
  %91 = add i8 %90, 1
  store i8 %91, ptr %89, align 1, !tbaa !13
  %92 = load i32, ptr %26, align 4, !tbaa !11
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [8 x i8], ptr %5, i64 0, i64 %93
  %95 = load i8, ptr %94, align 1, !tbaa !13
  %96 = zext i8 %95 to i32
  %97 = icmp ne i32 %96, 0
  br i1 %97, label %98, label %99

98:                                               ; preds = %86
  br label %103

99:                                               ; preds = %86
  br label %100

100:                                              ; preds = %99
  %101 = load i32, ptr %26, align 4, !tbaa !11
  %102 = add nsw i32 %101, -1
  store i32 %102, ptr %26, align 4, !tbaa !11
  br label %83, !llvm.loop !14

103:                                              ; preds = %98, %83
  %104 = load ptr, ptr %21, align 8, !tbaa !5
  %105 = getelementptr inbounds [8 x i8], ptr %5, i64 0, i64 0
  %106 = call i32 @EVP_CIPHER_CTX_ctrl(ptr noundef %104, i32 noundef 42, i32 noundef 0, ptr noundef %105)
  %107 = load ptr, ptr %21, align 8, !tbaa !5
  %108 = getelementptr inbounds [31 x i8], ptr %10, i64 0, i64 0
  %109 = getelementptr inbounds [15 x i8], ptr %7, i64 0, i64 0
  %110 = call i32 @EVP_Cipher(ptr noundef %107, ptr noundef %108, ptr noundef %109, i32 noundef 15)
  %111 = load ptr, ptr %21, align 8, !tbaa !5
  %112 = getelementptr inbounds [31 x i8], ptr %10, i64 0, i64 0
  %113 = getelementptr inbounds i8, ptr %112, i64 15
  %114 = getelementptr inbounds [16 x i8], ptr %11, i64 0, i64 0
  %115 = call i32 @EVP_Cipher(ptr noundef %111, ptr noundef %113, ptr noundef %114, i32 noundef 16)
  %116 = load ptr, ptr @stderr, align 8, !tbaa !5
  %117 = getelementptr inbounds [31 x i8], ptr %10, i64 0, i64 0
  call void @hexdump(ptr noundef %116, ptr noundef @.str.3, ptr noundef %117, i32 noundef 31)
  %118 = getelementptr inbounds [31 x i8], ptr %9, i64 0, i64 0
  %119 = getelementptr inbounds [31 x i8], ptr %10, i64 0, i64 0
  %120 = call i32 @memcmp(ptr noundef %118, ptr noundef %119, i64 noundef 31) #9
  %121 = icmp ne i32 %120, 0
  br i1 %121, label %122, label %125

122:                                              ; preds = %103
  %123 = load ptr, ptr @stderr, align 8, !tbaa !5
  %124 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %123, ptr noundef @.str.4) #8
  call void @exit(i32 noundef 1) #10
  unreachable

125:                                              ; preds = %103
  %126 = call ptr @EVP_MD_CTX_new()
  store ptr %126, ptr %20, align 8, !tbaa !5
  %127 = load ptr, ptr %20, align 8, !tbaa !5
  %128 = load ptr, ptr %22, align 8, !tbaa !5
  %129 = call i32 @EVP_DigestInit_ex(ptr noundef %127, ptr noundef %128, ptr noundef null)
  %130 = getelementptr inbounds [32 x i8], ptr %2, i64 0, i64 0
  %131 = call ptr @EVP_PKEY_new_mac_key(i32 noundef 1017, ptr noundef null, ptr noundef %130, i32 noundef 32)
  store ptr %131, ptr %24, align 8, !tbaa !5
  %132 = load ptr, ptr %20, align 8, !tbaa !5
  %133 = load ptr, ptr %22, align 8, !tbaa !5
  %134 = load ptr, ptr %24, align 8, !tbaa !5
  %135 = call i32 @EVP_DigestSignInit(ptr noundef %132, ptr noundef null, ptr noundef %133, ptr noundef null, ptr noundef %134)
  %136 = load ptr, ptr %24, align 8, !tbaa !5
  call void @EVP_PKEY_free(ptr noundef %136)
  %137 = load ptr, ptr %20, align 8, !tbaa !5
  %138 = getelementptr inbounds [8 x i8], ptr %12, i64 0, i64 0
  %139 = call i32 @EVP_MD_CTX_ctrl(ptr noundef %137, i32 noundef 4, i32 noundef 0, ptr noundef %138)
  %140 = load ptr, ptr %20, align 8, !tbaa !5
  %141 = getelementptr inbounds [8 x i8], ptr %12, i64 0, i64 0
  %142 = call i32 @EVP_DigestSignUpdate(ptr noundef %140, ptr noundef %141, i64 noundef 8)
  %143 = load ptr, ptr %20, align 8, !tbaa !5
  %144 = getelementptr inbounds [5 x i8], ptr %13, i64 0, i64 0
  %145 = call i32 @EVP_DigestSignUpdate(ptr noundef %143, ptr noundef %144, i64 noundef 5)
  %146 = load ptr, ptr %20, align 8, !tbaa !5
  %147 = getelementptr inbounds [4096 x i8], ptr %14, i64 0, i64 0
  %148 = call i32 @EVP_DigestSignUpdate(ptr noundef %146, ptr noundef %147, i64 noundef 4096)
  %149 = load ptr, ptr %20, align 8, !tbaa !5
  %150 = getelementptr inbounds [16 x i8], ptr %19, i64 0, i64 0
  %151 = call i32 @EVP_DigestSignFinal(ptr noundef %149, ptr noundef %150, ptr noundef %25)
  %152 = load ptr, ptr %20, align 8, !tbaa !5
  call void @EVP_MD_CTX_free(ptr noundef %152)
  %153 = load ptr, ptr @stderr, align 8, !tbaa !5
  %154 = getelementptr inbounds [16 x i8], ptr %19, i64 0, i64 0
  %155 = load i64, ptr %25, align 8, !tbaa !9
  %156 = trunc i64 %155 to i32
  call void @hexdump(ptr noundef %153, ptr noundef @.str.5, ptr noundef %154, i32 noundef %156)
  %157 = getelementptr inbounds [16 x i8], ptr %19, i64 0, i64 0
  %158 = getelementptr inbounds [16 x i8], ptr %15, i64 0, i64 0
  %159 = call i32 @memcmp(ptr noundef %157, ptr noundef %158, i64 noundef 16) #9
  %160 = icmp ne i32 %159, 0
  br i1 %160, label %161, label %164

161:                                              ; preds = %125
  %162 = load ptr, ptr @stderr, align 8, !tbaa !5
  %163 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %162, ptr noundef @.str.6) #8
  call void @exit(i32 noundef 1) #10
  unreachable

164:                                              ; preds = %125
  store i32 7, ptr %26, align 4, !tbaa !11
  br label %165

165:                                              ; preds = %182, %164
  %166 = load i32, ptr %26, align 4, !tbaa !11
  %167 = icmp sge i32 %166, 0
  br i1 %167, label %168, label %185

168:                                              ; preds = %165
  %169 = load i32, ptr %26, align 4, !tbaa !11
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds [8 x i8], ptr %12, i64 0, i64 %170
  %172 = load i8, ptr %171, align 1, !tbaa !13
  %173 = add i8 %172, 1
  store i8 %173, ptr %171, align 1, !tbaa !13
  %174 = load i32, ptr %26, align 4, !tbaa !11
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds [8 x i8], ptr %12, i64 0, i64 %175
  %177 = load i8, ptr %176, align 1, !tbaa !13
  %178 = zext i8 %177 to i32
  %179 = icmp ne i32 %178, 0
  br i1 %179, label %180, label %181

180:                                              ; preds = %168
  br label %185

181:                                              ; preds = %168
  br label %182

182:                                              ; preds = %181
  %183 = load i32, ptr %26, align 4, !tbaa !11
  %184 = add nsw i32 %183, -1
  store i32 %184, ptr %26, align 4, !tbaa !11
  br label %165, !llvm.loop !16

185:                                              ; preds = %180, %165
  %186 = load ptr, ptr %21, align 8, !tbaa !5
  %187 = getelementptr inbounds [8 x i8], ptr %12, i64 0, i64 0
  %188 = call i32 @EVP_CIPHER_CTX_ctrl(ptr noundef %186, i32 noundef 42, i32 noundef 0, ptr noundef %187)
  %189 = load ptr, ptr %21, align 8, !tbaa !5
  %190 = getelementptr inbounds [4112 x i8], ptr %18, i64 0, i64 0
  %191 = getelementptr inbounds [4096 x i8], ptr %14, i64 0, i64 0
  %192 = call i32 @EVP_Cipher(ptr noundef %189, ptr noundef %190, ptr noundef %191, i32 noundef 4096)
  %193 = load ptr, ptr %21, align 8, !tbaa !5
  %194 = getelementptr inbounds [4112 x i8], ptr %18, i64 0, i64 0
  %195 = getelementptr inbounds i8, ptr %194, i64 4096
  %196 = getelementptr inbounds [16 x i8], ptr %19, i64 0, i64 0
  %197 = call i32 @EVP_Cipher(ptr noundef %193, ptr noundef %195, ptr noundef %196, i32 noundef 16)
  %198 = load ptr, ptr @stderr, align 8, !tbaa !5
  %199 = getelementptr inbounds [4112 x i8], ptr %18, i64 0, i64 0
  call void @hexdump(ptr noundef %198, ptr noundef @.str.7, ptr noundef %199, i32 noundef 32)
  %200 = getelementptr inbounds [32 x i8], ptr %16, i64 0, i64 0
  %201 = getelementptr inbounds [4112 x i8], ptr %18, i64 0, i64 0
  %202 = call i32 @memcmp(ptr noundef %200, ptr noundef %201, i64 noundef 32) #9
  %203 = icmp ne i32 %202, 0
  br i1 %203, label %204, label %207

204:                                              ; preds = %185
  %205 = load ptr, ptr @stderr, align 8, !tbaa !5
  %206 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %205, ptr noundef @.str.8) #8
  call void @exit(i32 noundef 1) #10
  unreachable

207:                                              ; preds = %185
  %208 = load ptr, ptr @stderr, align 8, !tbaa !5
  %209 = getelementptr inbounds [4112 x i8], ptr %18, i64 0, i64 0
  %210 = getelementptr inbounds i8, ptr %209, i64 4096
  %211 = getelementptr inbounds i8, ptr %210, i64 16
  %212 = getelementptr inbounds i8, ptr %211, i64 -48
  call void @hexdump(ptr noundef %208, ptr noundef @.str.9, ptr noundef %212, i32 noundef 48)
  %213 = getelementptr inbounds [48 x i8], ptr %17, i64 0, i64 0
  %214 = getelementptr inbounds [4112 x i8], ptr %18, i64 0, i64 0
  %215 = getelementptr inbounds i8, ptr %214, i64 4096
  %216 = getelementptr inbounds i8, ptr %215, i64 16
  %217 = getelementptr inbounds i8, ptr %216, i64 -48
  %218 = call i32 @memcmp(ptr noundef %213, ptr noundef %217, i64 noundef 48) #9
  %219 = icmp ne i32 %218, 0
  br i1 %219, label %220, label %223

220:                                              ; preds = %207
  %221 = load ptr, ptr @stderr, align 8, !tbaa !5
  %222 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %221, ptr noundef @.str.10) #8
  call void @exit(i32 noundef 1) #10
  unreachable

223:                                              ; preds = %207
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 4112, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 4096, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 5, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 31, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 31, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 15, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 5, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %2) #8
  ret i32 0
}

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

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

declare ptr @EVP_MD_CTX_new() #4

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

declare ptr @EVP_get_digestbyname(ptr noundef) #4

declare ptr @OBJ_nid2sn(i32 noundef) #4

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

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

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

declare void @EVP_PKEY_free(ptr noundef) #4

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

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

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

declare void @EVP_MD_CTX_free(ptr noundef) #4

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

; Function Attrs: nounwind willreturn memory(read)
declare i32 @memcmp(ptr noundef, ptr noundef, i64 noundef) #5

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

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

declare ptr @EVP_get_cipherbyname(ptr noundef) #4

declare ptr @EVP_CIPHER_CTX_new() #4

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

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

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

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

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

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

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


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

@__const.main.mac_secret = external hidden unnamed_addr constant [32 x i8], align 16
@__const.main.rec0_header = external hidden unnamed_addr constant [5 x i8], align 1
@__const.main.mac0_etl = external hidden unnamed_addr constant [16 x i8], align 16
@__const.main.enc0_etl = external hidden unnamed_addr constant [31 x i8], align 16
@__const.main.seq63 = external hidden unnamed_addr constant [8 x i8], align 1
@__const.main.rec63_header = external hidden unnamed_addr constant [5 x i8], align 1
@__const.main.mac63_etl = external hidden unnamed_addr constant [16 x i8], align 16
@__const.main.enc63_etl_head = external hidden unnamed_addr constant [32 x i8], align 16
@__const.main.enc63_etl_tail = external hidden unnamed_addr constant [48 x i8], align 16
@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [12 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca [32 x i8], align 16
  %2 = alloca [32 x i8], align 16
  %3 = alloca [16 x i8], align 16
  %4 = alloca [8 x i8], align 8
  %5 = alloca [5 x i8], align 1
  %6 = alloca [15 x i8], align 1
  %7 = alloca [31 x i8], align 16
  %8 = alloca [16 x i8], align 16
  %9 = alloca [8 x i8], align 8
  %10 = alloca [5 x i8], align 1
  %11 = alloca [4096 x i8], align 16
  %12 = alloca [4112 x i8], align 16
  %13 = alloca [16 x i8], align 16
  %14 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %1) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %1, ptr noundef nonnull align 16 dereferenceable(32) @__const.main.mac_secret, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %2, i8 0, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %3, i8 0, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  store i64 0, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 5, ptr nonnull %5) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(5) %5, ptr noundef nonnull align 1 dereferenceable(5) @__const.main.rec0_header, i64 5, i1 false)
  call void @llvm.lifetime.start.p0(i64 15, ptr nonnull %6) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(15) %6, i8 0, i64 15, i1 false)
  call void @llvm.lifetime.start.p0(i64 31, ptr nonnull %7) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #8
  %15 = load i64, ptr @__const.main.seq63, align 1
  store i64 %15, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 5, ptr nonnull %10) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(5) %10, ptr noundef nonnull align 1 dereferenceable(5) @__const.main.rec63_header, i64 5, i1 false)
  call void @llvm.lifetime.start.p0(i64 4096, ptr nonnull %11) #8
  call void @llvm.lifetime.start.p0(i64 4112, ptr nonnull %12) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #8
  %16 = tail call ptr @EVP_MD_CTX_new() #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #8
  %17 = tail call i32 @OPENSSL_init_crypto(i64 noundef 64, ptr noundef null) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(4096) %11, i8 0, i64 4096, i1 false)
  %18 = tail call ptr @OBJ_nid2sn(i32 noundef 1017) #8
  %19 = tail call ptr @EVP_get_digestbyname(ptr noundef %18) #8
  %20 = tail call i32 @EVP_DigestInit_ex(ptr noundef %16, ptr noundef %19, ptr noundef null) #8
  %21 = call ptr @EVP_PKEY_new_mac_key(i32 noundef 1017, ptr noundef null, ptr noundef nonnull %1, i32 noundef 32) #8
  %22 = call i32 @EVP_DigestSignInit(ptr noundef %16, ptr noundef null, ptr noundef %19, ptr noundef null, ptr noundef %21) #8
  call void @EVP_PKEY_free(ptr noundef %21) #8
  %23 = call i32 @EVP_MD_CTX_ctrl(ptr noundef %16, i32 noundef 4, i32 noundef 0, ptr noundef nonnull %4) #8
  %24 = call i32 @EVP_DigestSignUpdate(ptr noundef %16, ptr noundef nonnull %4, i64 noundef 8) #8
  %25 = call i32 @EVP_DigestSignUpdate(ptr noundef %16, ptr noundef nonnull %5, i64 noundef 5) #8
  %26 = call i32 @EVP_DigestSignUpdate(ptr noundef %16, ptr noundef nonnull %6, i64 noundef 15) #8
  %27 = call i32 @EVP_DigestSignFinal(ptr noundef %16, ptr noundef nonnull %8, ptr noundef nonnull %14) #8
  call void @EVP_MD_CTX_free(ptr noundef %16) #8
  %28 = load ptr, ptr @stderr, align 8, !tbaa !5
  %29 = load i64, ptr %14, align 8, !tbaa !9
  %30 = trunc i64 %29 to i32
  call void @hexdump(ptr noundef %28, ptr noundef nonnull @.str, ptr noundef nonnull %8, i32 noundef %30)
  %bcmp = call i32 @bcmp(ptr noundef nonnull dereferenceable(16) %8, ptr noundef nonnull dereferenceable(16) @__const.main.mac0_etl, i64 16)
  %.not = icmp eq i32 %bcmp, 0
  br i1 %.not, label %34, label %31

31:                                               ; preds = %0
  %32 = load ptr, ptr @stderr, align 8, !tbaa !5
  %33 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef nonnull @.str.1) #9
  call void @exit(i32 noundef 1) #10
  unreachable

34:                                               ; preds = %0
  %35 = call ptr @OBJ_nid2sn(i32 noundef 1177) #8
  %36 = call ptr @EVP_get_cipherbyname(ptr noundef %35) #8
  %37 = call ptr @EVP_CIPHER_CTX_new() #8
  %38 = call i32 @EVP_EncryptInit_ex(ptr noundef %37, ptr noundef %36, ptr noundef null, ptr noundef nonnull %2, ptr noundef nonnull %3) #8
  %39 = icmp slt i32 %38, 1
  br i1 %39, label %43, label %.preheader49.preheader

.preheader49.preheader:                           ; preds = %34
  %40 = getelementptr inbounds i8, ptr %4, i64 7
  %41 = load i8, ptr %40, align 1, !tbaa !11
  %42 = add i8 %41, 1
  store i8 %42, ptr %40, align 1, !tbaa !11
  %.not39 = icmp eq i8 %42, 0
  br i1 %.not39, label %.preheader49.1, label %66

43:                                               ; preds = %34
  %44 = load ptr, ptr @stderr, align 8, !tbaa !5
  %45 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %44, ptr noundef nonnull @.str.2) #9
  call void @exit(i32 noundef 1) #10
  unreachable

.preheader49.1:                                   ; preds = %.preheader49.preheader
  %46 = getelementptr inbounds i8, ptr %4, i64 6
  %47 = load i8, ptr %46, align 2, !tbaa !11
  %48 = add i8 %47, 1
  store i8 %48, ptr %46, align 2, !tbaa !11
  %.not39.1 = icmp eq i8 %48, 0
  br i1 %.not39.1, label %.preheader49.2, label %66

.preheader49.2:                                   ; preds = %.preheader49.1
  %49 = getelementptr inbounds i8, ptr %4, i64 5
  %50 = load i8, ptr %49, align 1, !tbaa !11
  %51 = add i8 %50, 1
  store i8 %51, ptr %49, align 1, !tbaa !11
  %.not39.2 = icmp eq i8 %51, 0
  br i1 %.not39.2, label %.preheader49.3, label %66

.preheader49.3:                                   ; preds = %.preheader49.2
  %52 = getelementptr inbounds i8, ptr %4, i64 4
  %53 = load i8, ptr %52, align 4, !tbaa !11
  %54 = add i8 %53, 1
  store i8 %54, ptr %52, align 4, !tbaa !11
  %.not39.3 = icmp eq i8 %54, 0
  br i1 %.not39.3, label %.preheader49.4, label %66

.preheader49.4:                                   ; preds = %.preheader49.3
  %55 = getelementptr inbounds i8, ptr %4, i64 3
  %56 = load i8, ptr %55, align 1, !tbaa !11
  %57 = add i8 %56, 1
  store i8 %57, ptr %55, align 1, !tbaa !11
  %.not39.4 = icmp eq i8 %57, 0
  br i1 %.not39.4, label %.preheader49.5, label %66

.preheader49.5:                                   ; preds = %.preheader49.4
  %58 = getelementptr inbounds i8, ptr %4, i64 2
  %59 = load i8, ptr %58, align 2, !tbaa !11
  %60 = add i8 %59, 1
  store i8 %60, ptr %58, align 2, !tbaa !11
  %.not39.5 = icmp eq i8 %60, 0
  br i1 %.not39.5, label %.preheader49.6, label %66

.preheader49.6:                                   ; preds = %.preheader49.5
  %61 = getelementptr inbounds i8, ptr %4, i64 1
  %62 = load i8, ptr %61, align 1, !tbaa !11
  %63 = add i8 %62, 1
  store i8 %63, ptr %61, align 1, !tbaa !11
  %.not39.6 = icmp eq i8 %63, 0
  br i1 %.not39.6, label %.preheader49.7, label %66

.preheader49.7:                                   ; preds = %.preheader49.6
  %64 = load i8, ptr %4, align 8, !tbaa !11
  %65 = add i8 %64, 1
  store i8 %65, ptr %4, align 8, !tbaa !11
  br label %66

66:                                               ; preds = %.preheader49.7, %.preheader49.6, %.preheader49.5, %.preheader49.4, %.preheader49.3, %.preheader49.2, %.preheader49.1, %.preheader49.preheader
  %67 = call i32 @EVP_CIPHER_CTX_ctrl(ptr noundef %37, i32 noundef 42, i32 noundef 0, ptr noundef nonnull %4) #8
  %68 = call i32 @EVP_Cipher(ptr noundef %37, ptr noundef nonnull %7, ptr noundef nonnull %6, i32 noundef 15) #8
  %69 = getelementptr inbounds i8, ptr %7, i64 15
  %70 = call i32 @EVP_Cipher(ptr noundef %37, ptr noundef nonnull %69, ptr noundef nonnull %8, i32 noundef 16) #8
  %71 = load ptr, ptr @stderr, align 8, !tbaa !5
  call void @hexdump(ptr noundef %71, ptr noundef nonnull @.str.3, ptr noundef nonnull %7, i32 noundef 31)
  %bcmp40 = call i32 @bcmp(ptr noundef nonnull dereferenceable(31) @__const.main.enc0_etl, ptr noundef nonnull dereferenceable(31) %7, i64 31)
  %.not41 = icmp eq i32 %bcmp40, 0
  br i1 %.not41, label %75, label %72

72:                                               ; preds = %66
  %73 = load ptr, ptr @stderr, align 8, !tbaa !5
  %74 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %73, ptr noundef nonnull @.str.4) #9
  call void @exit(i32 noundef 1) #10
  unreachable

75:                                               ; preds = %66
  %76 = call ptr @EVP_MD_CTX_new() #8
  %77 = call i32 @EVP_DigestInit_ex(ptr noundef %76, ptr noundef %19, ptr noundef null) #8
  %78 = call ptr @EVP_PKEY_new_mac_key(i32 noundef 1017, ptr noundef null, ptr noundef nonnull %1, i32 noundef 32) #8
  %79 = call i32 @EVP_DigestSignInit(ptr noundef %76, ptr noundef null, ptr noundef %19, ptr noundef null, ptr noundef %78) #8
  call void @EVP_PKEY_free(ptr noundef %78) #8
  %80 = call i32 @EVP_MD_CTX_ctrl(ptr noundef %76, i32 noundef 4, i32 noundef 0, ptr noundef nonnull %9) #8
  %81 = call i32 @EVP_DigestSignUpdate(ptr noundef %76, ptr noundef nonnull %9, i64 noundef 8) #8
  %82 = call i32 @EVP_DigestSignUpdate(ptr noundef %76, ptr noundef nonnull %10, i64 noundef 5) #8
  %83 = call i32 @EVP_DigestSignUpdate(ptr noundef %76, ptr noundef nonnull %11, i64 noundef 4096) #8
  %84 = call i32 @EVP_DigestSignFinal(ptr noundef %76, ptr noundef nonnull %13, ptr noundef nonnull %14) #8
  call void @EVP_MD_CTX_free(ptr noundef %76) #8
  %85 = load ptr, ptr @stderr, align 8, !tbaa !5
  %86 = load i64, ptr %14, align 8, !tbaa !9
  %87 = trunc i64 %86 to i32
  call void @hexdump(ptr noundef %85, ptr noundef nonnull @.str.5, ptr noundef nonnull %13, i32 noundef %87)
  %bcmp42 = call i32 @bcmp(ptr noundef nonnull dereferenceable(16) %13, ptr noundef nonnull dereferenceable(16) @__const.main.mac63_etl, i64 16)
  %.not43 = icmp eq i32 %bcmp42, 0
  br i1 %.not43, label %.preheader.preheader, label %91

.preheader.preheader:                             ; preds = %75
  %88 = getelementptr inbounds i8, ptr %9, i64 7
  %89 = load i8, ptr %88, align 1, !tbaa !11
  %90 = add i8 %89, 1
  store i8 %90, ptr %88, align 1, !tbaa !11
  %.not44 = icmp eq i8 %90, 0
  br i1 %.not44, label %.preheader.1, label %114

91:                                               ; preds = %75
  %92 = load ptr, ptr @stderr, align 8, !tbaa !5
  %93 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %92, ptr noundef nonnull @.str.6) #9
  call void @exit(i32 noundef 1) #10
  unreachable

.preheader.1:                                     ; preds = %.preheader.preheader
  %94 = getelementptr inbounds i8, ptr %9, i64 6
  %95 = load i8, ptr %94, align 2, !tbaa !11
  %96 = add i8 %95, 1
  store i8 %96, ptr %94, align 2, !tbaa !11
  %.not44.1 = icmp eq i8 %96, 0
  br i1 %.not44.1, label %.preheader.2, label %114

.preheader.2:                                     ; preds = %.preheader.1
  %97 = getelementptr inbounds i8, ptr %9, i64 5
  %98 = load i8, ptr %97, align 1, !tbaa !11
  %99 = add i8 %98, 1
  store i8 %99, ptr %97, align 1, !tbaa !11
  %.not44.2 = icmp eq i8 %99, 0
  br i1 %.not44.2, label %.preheader.3, label %114

.preheader.3:                                     ; preds = %.preheader.2
  %100 = getelementptr inbounds i8, ptr %9, i64 4
  %101 = load i8, ptr %100, align 4, !tbaa !11
  %102 = add i8 %101, 1
  store i8 %102, ptr %100, align 4, !tbaa !11
  %.not44.3 = icmp eq i8 %102, 0
  br i1 %.not44.3, label %.preheader.4, label %114

.preheader.4:                                     ; preds = %.preheader.3
  %103 = getelementptr inbounds i8, ptr %9, i64 3
  %104 = load i8, ptr %103, align 1, !tbaa !11
  %105 = add i8 %104, 1
  store i8 %105, ptr %103, align 1, !tbaa !11
  %.not44.4 = icmp eq i8 %105, 0
  br i1 %.not44.4, label %.preheader.5, label %114

.preheader.5:                                     ; preds = %.preheader.4
  %106 = getelementptr inbounds i8, ptr %9, i64 2
  %107 = load i8, ptr %106, align 2, !tbaa !11
  %108 = add i8 %107, 1
  store i8 %108, ptr %106, align 2, !tbaa !11
  %.not44.5 = icmp eq i8 %108, 0
  br i1 %.not44.5, label %.preheader.6, label %114

.preheader.6:                                     ; preds = %.preheader.5
  %109 = getelementptr inbounds i8, ptr %9, i64 1
  %110 = load i8, ptr %109, align 1, !tbaa !11
  %111 = add i8 %110, 1
  store i8 %111, ptr %109, align 1, !tbaa !11
  %.not44.6 = icmp eq i8 %111, 0
  br i1 %.not44.6, label %.preheader.7, label %114

.preheader.7:                                     ; preds = %.preheader.6
  %112 = load i8, ptr %9, align 8, !tbaa !11
  %113 = add i8 %112, 1
  store i8 %113, ptr %9, align 8, !tbaa !11
  br label %114

114:                                              ; preds = %.preheader.7, %.preheader.6, %.preheader.5, %.preheader.4, %.preheader.3, %.preheader.2, %.preheader.1, %.preheader.preheader
  %115 = call i32 @EVP_CIPHER_CTX_ctrl(ptr noundef %37, i32 noundef 42, i32 noundef 0, ptr noundef nonnull %9) #8
  %116 = call i32 @EVP_Cipher(ptr noundef %37, ptr noundef nonnull %12, ptr noundef nonnull %11, i32 noundef 4096) #8
  %117 = getelementptr inbounds i8, ptr %12, i64 4096
  %118 = call i32 @EVP_Cipher(ptr noundef %37, ptr noundef nonnull %117, ptr noundef nonnull %13, i32 noundef 16) #8
  %119 = load ptr, ptr @stderr, align 8, !tbaa !5
  call void @hexdump(ptr noundef %119, ptr noundef nonnull @.str.7, ptr noundef nonnull %12, i32 noundef 32)
  %bcmp45 = call i32 @bcmp(ptr noundef nonnull dereferenceable(32) @__const.main.enc63_etl_head, ptr noundef nonnull dereferenceable(32) %12, i64 32)
  %.not46 = icmp eq i32 %bcmp45, 0
  %120 = load ptr, ptr @stderr, align 8, !tbaa !5
  br i1 %.not46, label %123, label %121

121:                                              ; preds = %114
  %122 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %120, ptr noundef nonnull @.str.8) #9
  call void @exit(i32 noundef 1) #10
  unreachable

123:                                              ; preds = %114
  %124 = getelementptr inbounds i8, ptr %12, i64 4064
  call void @hexdump(ptr noundef %120, ptr noundef nonnull @.str.9, ptr noundef nonnull %124, i32 noundef 48)
  %bcmp47 = call i32 @bcmp(ptr noundef nonnull dereferenceable(48) @__const.main.enc63_etl_tail, ptr noundef nonnull dereferenceable(48) %124, i64 48)
  %.not48 = icmp eq i32 %bcmp47, 0
  br i1 %.not48, label %128, label %125

125:                                              ; preds = %123
  %126 = load ptr, ptr @stderr, align 8, !tbaa !5
  %127 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %126, ptr noundef nonnull @.str.10) #9
  call void @exit(i32 noundef 1) #10
  unreachable

128:                                              ; preds = %123
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 4112, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 4096, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 5, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 31, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 15, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 5, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #8
  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: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

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

declare ptr @EVP_MD_CTX_new() local_unnamed_addr #4

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

declare ptr @EVP_get_digestbyname(ptr noundef) local_unnamed_addr #4

declare ptr @OBJ_nid2sn(i32 noundef) local_unnamed_addr #4

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

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

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

declare void @EVP_PKEY_free(ptr noundef) local_unnamed_addr #4

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

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

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

declare void @EVP_MD_CTX_free(ptr noundef) local_unnamed_addr #4

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

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

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

declare ptr @EVP_get_cipherbyname(ptr noundef) local_unnamed_addr #4

declare ptr @EVP_CIPHER_CTX_new() local_unnamed_addr #4

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

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

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

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

; Function Attrs: nofree nounwind willreturn memory(argmem: read)
declare i32 @bcmp(ptr nocapture, ptr nocapture, i64) local_unnamed_addr #7

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!7, !7, i64 0}


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