; LLVM IR from gost-engine/engine :: test_gost2814789 (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"

%struct.g89_tc_ = type { i64, [2048 x i8], ptr, ptr, [64 x i8], i32, [16 x i8], [2048 x i8] }

@.str.1 = external hidden unnamed_addr constant [37 x i8], align 1
@tcs = external dso_local constant <{ { i64, [2048 x i8], ptr, ptr, <{ [32 x i8], [32 x i8] }>, i32, [16 x i8], <{ [8 x i8], [2040 x i8] }> }, { i64, [2048 x i8], ptr, ptr, <{ [32 x i8], [32 x i8] }>, i32, [16 x i8], <{ [8 x i8], [2040 x i8] }> }, { i64, <{ [8 x i8], [2040 x i8] }>, ptr, ptr, <{ [32 x i8], [32 x i8] }>, i32, [16 x i8], <{ [8 x i8], [2040 x i8] }> }, { i64, <{ [16 x i8], [2032 x i8] }>, ptr, ptr, <{ [32 x i8], [32 x i8] }>, i32, [16 x i8], <{ [16 x i8], [2032 x i8] }> }, { i64, <{ [16 x i8], [2032 x i8] }>, ptr, ptr, <{ [32 x i8], [32 x i8] }>, i32, <{ [8 x i8], [8 x i8] }>, <{ [16 x i8], [2032 x i8] }> }, { i64, <{ [16 x i8], [2032 x i8] }>, ptr, ptr, <{ [32 x i8], [32 x i8] }>, i32, <{ [8 x i8], [8 x i8] }>, <{ [16 x i8], [2032 x i8] }> }, { i64, <{ [16 x i8], [2032 x i8] }>, ptr, ptr, <{ [32 x i8], [32 x i8] }>, i32, [16 x i8], <{ i8, i8, i8, i8, [2044 x i8] }> }, { i64, <{ [1039 x i8], [1009 x i8] }>, ptr, ptr, <{ [32 x i8], [32 x i8] }>, i32, <{ [8 x i8], [8 x i8] }>, <{ [1039 x i8], [1009 x i8] }> }, { i64, <{ i8, i8, i8, i8, [2044 x i8] }>, ptr, ptr, <{ [32 x i8], [32 x i8] }>, i32, <{ [8 x i8], [8 x i8] }>, <{ i8, i8, i8, i8, [2044 x i8] }> }, { i64, <{ [9 x i8], [2039 x i8] }>, ptr, ptr, <{ [32 x i8], [32 x i8] }>, i32, <{ [8 x i8], [8 x i8] }>, <{ [9 x i8], [2039 x i8] }> }, { i64, [2048 x i8], ptr, ptr, <{ [32 x i8], [32 x i8] }>, i32, [16 x i8], <{ [15 x i8], [2033 x i8] }> }, { i64, [2048 x i8], ptr, ptr, <{ [32 x i8], [32 x i8] }>, i32, [16 x i8], <{ [16 x i8], [2032 x i8] }> }, { i64, <{ [1037 x i8], [1011 x i8] }>, ptr, ptr, <{ [32 x i8], [32 x i8] }>, i32, <{ [8 x i8], [8 x i8] }>, <{ [1037 x i8], [1011 x i8] }> }, { i64, [2048 x i8], ptr, ptr, <{ [32 x i8], [32 x i8] }>, i32, [16 x i8], <{ [16 x i8], [2032 x i8] }> }, { i64, [2048 x i8], ptr, ptr, <{ [32 x i8], [32 x i8] }>, i32, [16 x i8], <{ [16 x i8], [2032 x i8] }> }, { i64, <{ [1035 x i8], [1013 x i8] }>, ptr, ptr, <{ [32 x i8], [32 x i8] }>, i32, [16 x i8], <{ i8, i8, i8, i8, [2044 x i8] }> }, { i64, <{ [10 x i8], [2038 x i8] }>, ptr, ptr, <{ [32 x i8], [32 x i8] }>, i32, [16 x i8], <{ i8, i8, i8, i8, [2044 x i8] }> }, { i64, <{ i8, i8, i8, i8, i8, i8, [2042 x i8] }>, ptr, ptr, <{ [32 x i8], [32 x i8] }>, i32, [16 x i8], <{ i8, i8, i8, i8, [2044 x i8] }> }, { i64, <{ [16 x i8], [2032 x i8] }>, ptr, ptr, <{ [32 x i8], [32 x i8] }>, i32, [16 x i8], <{ i8, i8, i8, i8, [2044 x i8] }> }, { i64, <{ [8 x i8], [2040 x i8] }>, ptr, ptr, <{ [32 x i8], [32 x i8] }>, i32, [16 x i8], <{ i8, i8, i8, i8, [2044 x i8] }> }, { i64, [2048 x i8], ptr, ptr, <{ [32 x i8], [32 x i8] }>, i32, [16 x i8], [2048 x i8] }, { i64, [2048 x i8], ptr, ptr, <{ [32 x i8], [32 x i8] }>, i32, [16 x i8], <{ i8, i8, i8, i8, [2044 x i8] }> }, { i64, [2048 x i8], ptr, ptr, <{ [32 x i8], [32 x i8] }>, i32, [16 x i8], <{ i8, i8, i8, i8, [2044 x i8] }> }, { i64, [2048 x i8], ptr, ptr, <{ [32 x i8], [32 x i8] }>, i32, [16 x i8], <{ i8, i8, i8, i8, [2044 x i8] }> }, { i64, [2048 x i8], ptr, ptr, <{ [32 x i8], [32 x i8] }>, i32, [16 x i8], <{ i8, i8, i8, i8, [2044 x i8] }> }, { i64, [2048 x i8], ptr, ptr, <{ [32 x i8], [32 x i8] }>, i32, [16 x i8], <{ i8, i8, i8, i8, [2044 x i8] }> } }>, align 16
@main.bZB = external hidden constant [41943040 x i8], align 16
@main.bTS = external hidden global [41943040 x i8], align 16
@__const.main.sConf = external hidden unnamed_addr constant [148 x i8], align 16
@.str.28 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [3 x i8], align 1
@stderr = external global ptr, align 8
@.str.31 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [9 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca [64 x i8], align 16
  %14 = alloca [2048 x i8], align 16
  %15 = alloca [2048 x i8], align 16
  %16 = alloca i64, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca i64, align 8
  %28 = alloca ptr, align 8
  %29 = alloca ptr, align 8
  %30 = alloca [148 x i8], align 16
  %31 = alloca i32, align 4
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  store i64 6000000, ptr %7, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 0, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  store ptr null, ptr %9, align 8, !tbaa !9
  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
  call void @llvm.lifetime.start.p0(i64 64, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 2048, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 2048, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store i32 0, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store i32 0, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 0, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  store i64 0, ptr %21, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  store ptr null, ptr %22, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  store ptr null, ptr %23, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  store ptr null, ptr %24, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  store ptr null, ptr %25, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  store ptr null, ptr %26, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  %32 = call ptr @NCONF_new(ptr noundef null)
  store ptr %32, ptr %28, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #7
  call void @llvm.lifetime.start.p0(i64 148, ptr %30) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %30, ptr align 16 @__const.main.sConf, i64 148, i1 false)
  %33 = call i32 (ptr, ...) @printf(ptr noundef @.str.28)
  %34 = load i32, ptr %4, align 4, !tbaa !5
  %35 = icmp slt i32 1, %34
  br i1 %35, label %36, label %60

36:                                               ; preds = %2
  %37 = load ptr, ptr %5, align 8, !tbaa !9
  %38 = getelementptr inbounds ptr, ptr %37, i64 1
  %39 = load ptr, ptr %38, align 8, !tbaa !9
  %40 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %39, ptr noundef @.str.29, ptr noundef %7) #7
  %41 = icmp ne i32 1, %40
  br i1 %41, label %52, label %42

42:                                               ; preds = %36
  %43 = load i32, ptr %4, align 4, !tbaa !5
  %44 = icmp slt i32 2, %43
  br i1 %44, label %45, label %51

45:                                               ; preds = %42
  %46 = load ptr, ptr %5, align 8, !tbaa !9
  %47 = getelementptr inbounds ptr, ptr %46, i64 2
  %48 = load ptr, ptr %47, align 8, !tbaa !9
  %49 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %48, ptr noundef @.str.30, ptr noundef %8) #7
  %50 = icmp ne i32 1, %49
  br i1 %50, label %52, label %59

51:                                               ; preds = %42
  br i1 false, label %52, label %59

52:                                               ; preds = %51, %45, %36
  %53 = call i32 @fflush(ptr noundef null)
  %54 = load ptr, ptr @stderr, align 8, !tbaa !9
  %55 = load ptr, ptr %5, align 8, !tbaa !9
  %56 = getelementptr inbounds ptr, ptr %55, i64 0
  %57 = load ptr, ptr %56, align 8, !tbaa !9
  %58 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef @.str.31, ptr noundef %57) #7
  store i32 1, ptr %3, align 4
  store i32 1, ptr %31, align 4
  br label %454

59:                                               ; preds = %51, %45
  br label %60

60:                                               ; preds = %59, %2
  %61 = call i32 @setenv(ptr noundef @.str.32, ptr noundef @.str.33, i32 noundef 1) #7
  %62 = call i32 @OPENSSL_init_crypto(i64 noundef 2, ptr noundef null)
  call void @ENGINE_load_builtin_engines()
  call void @OPENSSL_load_builtin_modules()
  %63 = getelementptr inbounds [148 x i8], ptr %30, i64 0, i64 0
  %64 = call ptr @BIO_new_mem_buf(ptr noundef %63, i32 noundef -1)
  store ptr %64, ptr %29, align 8, !tbaa !9
  %65 = load ptr, ptr %28, align 8, !tbaa !9
  %66 = load ptr, ptr %29, align 8, !tbaa !9
  %67 = call i32 @NCONF_load_bio(ptr noundef %65, ptr noundef %66, ptr noundef %27)
  %68 = icmp ne i32 %67, 0
  br i1 %68, label %76, label %69

69:                                               ; preds = %60
  %70 = call i32 @fflush(ptr noundef null)
  %71 = load ptr, ptr @stderr, align 8, !tbaa !9
  %72 = load i64, ptr %27, align 8, !tbaa !13
  %73 = call i64 @ERR_get_error()
  %74 = call ptr @ERR_error_string(i64 noundef %73, ptr noundef null)
  %75 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef @.str.34, i64 noundef %72, ptr noundef %74) #7
  store i32 4, ptr %3, align 4
  store i32 1, ptr %31, align 4
  br label %454

76:                                               ; preds = %60
  %77 = load ptr, ptr %29, align 8, !tbaa !9
  %78 = call i32 @BIO_free(ptr noundef %77)
  %79 = load ptr, ptr %28, align 8, !tbaa !9
  %80 = call i32 @CONF_modules_load(ptr noundef %79, ptr noundef null, i64 noundef 0)
  %81 = icmp ne i32 %80, 0
  br i1 %81, label %88, label %82

82:                                               ; preds = %76
  %83 = call i32 @fflush(ptr noundef null)
  %84 = load ptr, ptr @stderr, align 8, !tbaa !9
  %85 = call i64 @ERR_get_error()
  %86 = call ptr @ERR_error_string(i64 noundef %85, ptr noundef null)
  %87 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %84, ptr noundef @.str.35, ptr noundef %86) #7
  store i32 5, ptr %3, align 4
  store i32 1, ptr %31, align 4
  br label %454

88:                                               ; preds = %76
  %89 = call ptr @ENGINE_by_id(ptr noundef @.str.36)
  store ptr %89, ptr %9, align 8, !tbaa !9
  %90 = icmp eq ptr null, %89
  br i1 %90, label %91, label %99

91:                                               ; preds = %88
  %92 = call i32 @fflush(ptr noundef null)
  %93 = load ptr, ptr @stderr, align 8, !tbaa !9
  %94 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %93, ptr noundef @.str.37) #7
  %95 = load i32, ptr %8, align 4, !tbaa !5
  %96 = icmp ne i32 %95, 0
  br i1 %96, label %98, label %97

97:                                               ; preds = %91
  store i32 6, ptr %3, align 4
  store i32 1, ptr %31, align 4
  br label %454

98:                                               ; preds = %91
  br label %99

99:                                               ; preds = %98, %88
  %100 = call ptr @EVP_get_digestbyname(ptr noundef @.str.38)
  store ptr %100, ptr %22, align 8, !tbaa !9
  %101 = icmp eq ptr null, %100
  br i1 %101, label %102, label %110

102:                                              ; preds = %99
  %103 = call i32 @fflush(ptr noundef null)
  %104 = load ptr, ptr @stderr, align 8, !tbaa !9
  %105 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef @.str.39) #7
  %106 = load i32, ptr %8, align 4, !tbaa !5
  %107 = icmp ne i32 %106, 0
  br i1 %107, label %109, label %108

108:                                              ; preds = %102
  store i32 7, ptr %3, align 4
  store i32 1, ptr %31, align 4
  br label %454

109:                                              ; preds = %102
  br label %110

110:                                              ; preds = %109, %99
  %111 = call ptr @EVP_get_cipherbyname(ptr noundef @.str.40)
  store ptr %111, ptr %23, align 8, !tbaa !9
  %112 = icmp eq ptr null, %111
  br i1 %112, label %113, label %121

113:                                              ; preds = %110
  %114 = call i32 @fflush(ptr noundef null)
  %115 = load ptr, ptr @stderr, align 8, !tbaa !9
  %116 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %115, ptr noundef @.str.41) #7
  %117 = load i32, ptr %8, align 4, !tbaa !5
  %118 = icmp ne i32 %117, 0
  br i1 %118, label %120, label %119

119:                                              ; preds = %113
  store i32 8, ptr %3, align 4
  store i32 1, ptr %31, align 4
  br label %454

120:                                              ; preds = %113
  br label %121

121:                                              ; preds = %120, %110
  %122 = call ptr @EVP_get_cipherbyname(ptr noundef @.str.42)
  store ptr %122, ptr %24, align 8, !tbaa !9
  %123 = icmp eq ptr null, %122
  br i1 %123, label %124, label %132

124:                                              ; preds = %121
  %125 = call i32 @fflush(ptr noundef null)
  %126 = load ptr, ptr @stderr, align 8, !tbaa !9
  %127 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %126, ptr noundef @.str.43) #7
  %128 = load i32, ptr %8, align 4, !tbaa !5
  %129 = icmp ne i32 %128, 0
  br i1 %129, label %131, label %130

130:                                              ; preds = %124
  store i32 9, ptr %3, align 4
  store i32 1, ptr %31, align 4
  br label %454

131:                                              ; preds = %124
  br label %132

132:                                              ; preds = %131, %121
  %133 = call ptr @EVP_get_digestbyname(ptr noundef @.str.44)
  store ptr %133, ptr %26, align 8, !tbaa !9
  %134 = icmp eq ptr null, %133
  br i1 %134, label %135, label %143

135:                                              ; preds = %132
  %136 = call i32 @fflush(ptr noundef null)
  %137 = load ptr, ptr @stderr, align 8, !tbaa !9
  %138 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %137, ptr noundef @.str.45) #7
  %139 = load i32, ptr %8, align 4, !tbaa !5
  %140 = icmp ne i32 %139, 0
  br i1 %140, label %142, label %141

141:                                              ; preds = %135
  store i32 10, ptr %3, align 4
  store i32 1, ptr %31, align 4
  br label %454

142:                                              ; preds = %135
  br label %143

143:                                              ; preds = %142, %132
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %144

144:                                              ; preds = %448, %143
  %145 = load i32, ptr %6, align 4, !tbaa !5
  %146 = sext i32 %145 to i64
  %147 = icmp ult i64 %146, 26
  br i1 %147, label %148, label %451

148:                                              ; preds = %144
  %149 = load i32, ptr %6, align 4, !tbaa !5
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds [26 x %struct.g89_tc_], ptr @tcs, i64 0, i64 %150
  %152 = getelementptr inbounds %struct.g89_tc_, ptr %151, i32 0, i32 3
  %153 = load ptr, ptr %152, align 16, !tbaa !15
  %154 = icmp eq ptr null, %153
  br i1 %154, label %155, label %156

155:                                              ; preds = %148
  br label %448

156:                                              ; preds = %148
  %157 = getelementptr inbounds [64 x i8], ptr %13, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %157, i8 60, i64 64, i1 false)
  store i32 64, ptr %17, align 4, !tbaa !5
  %158 = load i32, ptr %6, align 4, !tbaa !5
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds [26 x %struct.g89_tc_], ptr @tcs, i64 0, i64 %159
  %161 = getelementptr inbounds %struct.g89_tc_, ptr %160, i32 0, i32 3
  %162 = load ptr, ptr %161, align 16, !tbaa !15
  %163 = load i32, ptr %6, align 4, !tbaa !5
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [26 x %struct.g89_tc_], ptr @tcs, i64 0, i64 %164
  %166 = getelementptr inbounds %struct.g89_tc_, ptr %165, i32 0, i32 3
  %167 = load ptr, ptr %166, align 16, !tbaa !15
  %168 = call i64 @strlen(ptr noundef %167) #8
  %169 = getelementptr inbounds [64 x i8], ptr %13, i64 0, i64 0
  %170 = load ptr, ptr %22, align 8, !tbaa !9
  %171 = load ptr, ptr %9, align 8, !tbaa !9
  %172 = call i32 @EVP_Digest(ptr noundef %162, i64 noundef %168, ptr noundef %169, ptr noundef %17, ptr noundef %170, ptr noundef %171)
  %173 = load i32, ptr %6, align 4, !tbaa !5
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds [26 x %struct.g89_tc_], ptr @tcs, i64 0, i64 %174
  %176 = getelementptr inbounds %struct.g89_tc_, ptr %175, i32 0, i32 4
  %177 = getelementptr inbounds [64 x i8], ptr %176, i64 0, i64 0
  %178 = getelementptr inbounds [64 x i8], ptr %13, i64 0, i64 0
  %179 = load i32, ptr %17, align 4, !tbaa !5
  %180 = zext i32 %179 to i64
  %181 = call i32 @memcmp(ptr noundef %177, ptr noundef %178, i64 noundef %180) #8
  %182 = icmp ne i32 0, %181
  br i1 %182, label %183, label %192

183:                                              ; preds = %156
  %184 = call i32 @fflush(ptr noundef null)
  %185 = load ptr, ptr @stderr, align 8, !tbaa !9
  %186 = load i32, ptr %6, align 4, !tbaa !5
  %187 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %185, ptr noundef @.str.46, i32 noundef %186) #7
  %188 = load i32, ptr %8, align 4, !tbaa !5
  %189 = icmp ne i32 %188, 0
  br i1 %189, label %191, label %190

190:                                              ; preds = %183
  store i32 12, ptr %3, align 4
  store i32 1, ptr %31, align 4
  br label %454

191:                                              ; preds = %183
  br label %192

192:                                              ; preds = %191, %156
  %193 = load i64, ptr %7, align 8, !tbaa !11
  %194 = load i32, ptr %6, align 4, !tbaa !5
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds [26 x %struct.g89_tc_], ptr @tcs, i64 0, i64 %195
  %197 = getelementptr inbounds %struct.g89_tc_, ptr %196, i32 0, i32 0
  %198 = load i64, ptr %197, align 16, !tbaa !17
  %199 = icmp ult i64 %193, %198
  br i1 %199, label %200, label %201

200:                                              ; preds = %192
  br label %448

201:                                              ; preds = %192
  %202 = getelementptr inbounds [2048 x i8], ptr %14, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %202, i8 -91, i64 2048, i1 false)
  %203 = getelementptr inbounds [2048 x i8], ptr %15, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %203, i8 90, i64 2048, i1 false)
  %204 = load ptr, ptr %9, align 8, !tbaa !9
  %205 = load i32, ptr %6, align 4, !tbaa !5
  %206 = sext i32 %205 to i64
  %207 = getelementptr inbounds [26 x %struct.g89_tc_], ptr @tcs, i64 0, i64 %206
  %208 = getelementptr inbounds %struct.g89_tc_, ptr %207, i32 0, i32 2
  %209 = load ptr, ptr %208, align 8, !tbaa !18
  %210 = call i32 @ENGINE_ctrl_cmd_string(ptr noundef %204, ptr noundef @.str.47, ptr noundef %209, i32 noundef 0)
  %211 = icmp ne i32 %210, 0
  br i1 %211, label %218, label %212

212:                                              ; preds = %201
  %213 = call i32 @fflush(ptr noundef null)
  %214 = load ptr, ptr @stderr, align 8, !tbaa !9
  %215 = call i64 @ERR_get_error()
  %216 = call ptr @ERR_error_string(i64 noundef %215, ptr noundef null)
  %217 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %214, ptr noundef @.str.48, ptr noundef %216) #7
  store i32 11, ptr %3, align 4
  store i32 1, ptr %31, align 4
  br label %454

218:                                              ; preds = %201
  %219 = load i32, ptr %6, align 4, !tbaa !5
  %220 = sext i32 %219 to i64
  %221 = getelementptr inbounds [26 x %struct.g89_tc_], ptr @tcs, i64 0, i64 %220
  %222 = getelementptr inbounds %struct.g89_tc_, ptr %221, i32 0, i32 5
  %223 = load i32, ptr %222, align 8, !tbaa !19
  switch i32 %223, label %408 [
    i32 0, label %224
    i32 1, label %225
    i32 2, label %227
    i32 3, label %324
  ]

224:                                              ; preds = %218
  br label %448

225:                                              ; preds = %218
  %226 = load ptr, ptr %23, align 8, !tbaa !9
  store ptr %226, ptr %25, align 8, !tbaa !9
  br label %238

227:                                              ; preds = %218
  %228 = load i32, ptr %6, align 4, !tbaa !5
  %229 = sext i32 %228 to i64
  %230 = getelementptr inbounds [26 x %struct.g89_tc_], ptr @tcs, i64 0, i64 %229
  %231 = getelementptr inbounds %struct.g89_tc_, ptr %230, i32 0, i32 2
  %232 = load ptr, ptr %231, align 8, !tbaa !18
  %233 = call i32 @strcmp(ptr noundef @.str.1, ptr noundef %232) #8
  %234 = icmp ne i32 0, %233
  br i1 %234, label %235, label %236

235:                                              ; preds = %227
  br label %448

236:                                              ; preds = %227
  %237 = load ptr, ptr %24, align 8, !tbaa !9
  store ptr %237, ptr %25, align 8, !tbaa !9
  br label %238

238:                                              ; preds = %236, %225
  %239 = load ptr, ptr %11, align 8, !tbaa !9
  %240 = call i32 @EVP_CIPHER_CTX_reset(ptr noundef %239)
  %241 = load ptr, ptr %11, align 8, !tbaa !9
  %242 = load ptr, ptr %25, align 8, !tbaa !9
  %243 = load ptr, ptr %9, align 8, !tbaa !9
  %244 = getelementptr inbounds [64 x i8], ptr %13, i64 0, i64 0
  %245 = load i32, ptr %6, align 4, !tbaa !5
  %246 = sext i32 %245 to i64
  %247 = getelementptr inbounds [26 x %struct.g89_tc_], ptr @tcs, i64 0, i64 %246
  %248 = getelementptr inbounds %struct.g89_tc_, ptr %247, i32 0, i32 6
  %249 = getelementptr inbounds [16 x i8], ptr %248, i64 0, i64 0
  %250 = call i32 @EVP_EncryptInit_ex(ptr noundef %241, ptr noundef %242, ptr noundef %243, ptr noundef %244, ptr noundef %249)
  %251 = load i32, ptr %6, align 4, !tbaa !5
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds [26 x %struct.g89_tc_], ptr @tcs, i64 0, i64 %252
  %254 = getelementptr inbounds %struct.g89_tc_, ptr %253, i32 0, i32 0
  %255 = load i64, ptr %254, align 16, !tbaa !17
  %256 = icmp uge i64 2048, %255
  br i1 %256, label %257, label %277

257:                                              ; preds = %238
  store i32 2048, ptr %18, align 4, !tbaa !5
  %258 = load ptr, ptr %11, align 8, !tbaa !9
  %259 = getelementptr inbounds [2048 x i8], ptr %14, i64 0, i64 0
  %260 = load i32, ptr %6, align 4, !tbaa !5
  %261 = sext i32 %260 to i64
  %262 = getelementptr inbounds [26 x %struct.g89_tc_], ptr @tcs, i64 0, i64 %261
  %263 = getelementptr inbounds %struct.g89_tc_, ptr %262, i32 0, i32 1
  %264 = getelementptr inbounds [2048 x i8], ptr %263, i64 0, i64 0
  %265 = load i32, ptr %6, align 4, !tbaa !5
  %266 = sext i32 %265 to i64
  %267 = getelementptr inbounds [26 x %struct.g89_tc_], ptr @tcs, i64 0, i64 %266
  %268 = getelementptr inbounds %struct.g89_tc_, ptr %267, i32 0, i32 0
  %269 = load i64, ptr %268, align 16, !tbaa !17
  %270 = trunc i64 %269 to i32
  %271 = call i32 @EVP_EncryptUpdate(ptr noundef %258, ptr noundef %259, ptr noundef %18, ptr noundef %264, i32 noundef %270)
  %272 = load i32, ptr %6, align 4, !tbaa !5
  %273 = sext i32 %272 to i64
  %274 = getelementptr inbounds [26 x %struct.g89_tc_], ptr @tcs, i64 0, i64 %273
  %275 = getelementptr inbounds %struct.g89_tc_, ptr %274, i32 0, i32 0
  %276 = load i64, ptr %275, align 16, !tbaa !17
  store i64 %276, ptr %21, align 8, !tbaa !13
  br label %318

277:                                              ; preds = %238
  %278 = load i32, ptr %6, align 4, !tbaa !5
  %279 = sext i32 %278 to i64
  %280 = getelementptr inbounds [26 x %struct.g89_tc_], ptr @tcs, i64 0, i64 %279
  %281 = getelementptr inbounds %struct.g89_tc_, ptr %280, i32 0, i32 0
  %282 = load i64, ptr %281, align 16, !tbaa !17
  store i64 %282, ptr %16, align 8, !tbaa !11
  br label %283

283:                                              ; preds = %291, %277
  %284 = load i64, ptr %16, align 8, !tbaa !11
  %285 = icmp uge i64 %284, 41943040
  br i1 %285, label %286, label %294

286:                                              ; preds = %283
  %287 = call i32 (ptr, ...) @printf(ptr noundef @.str.49)
  %288 = call i32 @fflush(ptr noundef null)
  store i32 41943040, ptr %18, align 4, !tbaa !5
  %289 = load ptr, ptr %11, align 8, !tbaa !9
  %290 = call i32 @EVP_EncryptUpdate(ptr noundef %289, ptr noundef @main.bTS, ptr noundef %18, ptr noundef @main.bZB, i32 noundef 41943040)
  br label %291

291:                                              ; preds = %286
  %292 = load i64, ptr %16, align 8, !tbaa !11
  %293 = sub i64 %292, 41943040
  store i64 %293, ptr %16, align 8, !tbaa !11
  br label %283, !llvm.loop !20

294:                                              ; preds = %283
  %295 = load i64, ptr %16, align 8, !tbaa !11
  %296 = load i32, ptr %6, align 4, !tbaa !5
  %297 = sext i32 %296 to i64
  %298 = getelementptr inbounds [26 x %struct.g89_tc_], ptr @tcs, i64 0, i64 %297
  %299 = getelementptr inbounds %struct.g89_tc_, ptr %298, i32 0, i32 0
  %300 = load i64, ptr %299, align 16, !tbaa !17
  %301 = call i32 (ptr, ...) @printf(ptr noundef @.str.50, i64 noundef %295, i64 noundef %300)
  %302 = call i32 @fflush(ptr noundef null)
  %303 = load ptr, ptr %11, align 8, !tbaa !9
  %304 = load i64, ptr %16, align 8, !tbaa !11
  %305 = trunc i64 %304 to i32
  %306 = call i32 @EVP_EncryptUpdate(ptr noundef %303, ptr noundef @main.bTS, ptr noundef %18, ptr noundef @main.bZB, i32 noundef %305)
  %307 = getelementptr inbounds [2048 x i8], ptr %14, i64 0, i64 0
  %308 = load i32, ptr %18, align 4, !tbaa !5
  %309 = sub nsw i32 %308, 16
  %310 = sext i32 %309 to i64
  %311 = getelementptr inbounds [41943040 x i8], ptr @main.bTS, i64 0, i64 %310
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %307, ptr align 1 %311, i64 16, i1 false)
  %312 = load i32, ptr %6, align 4, !tbaa !5
  %313 = sext i32 %312 to i64
  %314 = getelementptr inbounds [26 x %struct.g89_tc_], ptr @tcs, i64 0, i64 %313
  %315 = getelementptr inbounds %struct.g89_tc_, ptr %314, i32 0, i32 0
  %316 = load i64, ptr %315, align 16, !tbaa !17
  %317 = trunc i64 %316 to i32
  store i32 %317, ptr %18, align 4, !tbaa !5
  store i64 16, ptr %21, align 8, !tbaa !13
  br label %318

318:                                              ; preds = %294, %257
  store i32 2048, ptr %19, align 4, !tbaa !5
  %319 = load ptr, ptr %11, align 8, !tbaa !9
  %320 = getelementptr inbounds [2048 x i8], ptr %15, i64 0, i64 0
  %321 = call i32 @EVP_EncryptFinal_ex(ptr noundef %319, ptr noundef %320, ptr noundef %19)
  %322 = load ptr, ptr %11, align 8, !tbaa !9
  %323 = call i32 @EVP_CIPHER_CTX_reset(ptr noundef %322)
  br label %408

324:                                              ; preds = %218
  %325 = load i32, ptr %6, align 4, !tbaa !5
  %326 = sext i32 %325 to i64
  %327 = getelementptr inbounds [26 x %struct.g89_tc_], ptr @tcs, i64 0, i64 %326
  %328 = getelementptr inbounds %struct.g89_tc_, ptr %327, i32 0, i32 2
  %329 = load ptr, ptr %328, align 8, !tbaa !18
  %330 = call i32 @strcmp(ptr noundef @.str.1, ptr noundef %329) #8
  %331 = icmp ne i32 0, %330
  br i1 %331, label %332, label %333

332:                                              ; preds = %324
  br label %448

333:                                              ; preds = %324
  %334 = load ptr, ptr %10, align 8, !tbaa !9
  %335 = call i32 @EVP_MD_CTX_reset(ptr noundef %334)
  %336 = getelementptr inbounds [64 x i8], ptr %13, i64 0, i64 0
  %337 = load i32, ptr %17, align 4, !tbaa !5
  %338 = call ptr @EVP_PKEY_new_mac_key(i32 noundef 815, ptr noundef null, ptr noundef %336, i32 noundef %337)
  store ptr %338, ptr %12, align 8, !tbaa !9
  %339 = load ptr, ptr %10, align 8, !tbaa !9
  %340 = load ptr, ptr %26, align 8, !tbaa !9
  %341 = load ptr, ptr %9, align 8, !tbaa !9
  %342 = load ptr, ptr %12, align 8, !tbaa !9
  %343 = call i32 @EVP_DigestSignInit(ptr noundef %339, ptr noundef null, ptr noundef %340, ptr noundef %341, ptr noundef %342)
  %344 = load i32, ptr %6, align 4, !tbaa !5
  %345 = sext i32 %344 to i64
  %346 = getelementptr inbounds [26 x %struct.g89_tc_], ptr @tcs, i64 0, i64 %345
  %347 = getelementptr inbounds %struct.g89_tc_, ptr %346, i32 0, i32 0
  %348 = load i64, ptr %347, align 16, !tbaa !17
  %349 = icmp uge i64 2048, %348
  br i1 %349, label %350, label %365

350:                                              ; preds = %333
  %351 = load ptr, ptr %10, align 8, !tbaa !9
  %352 = load i32, ptr %6, align 4, !tbaa !5
  %353 = sext i32 %352 to i64
  %354 = getelementptr inbounds [26 x %struct.g89_tc_], ptr @tcs, i64 0, i64 %353
  %355 = getelementptr inbounds %struct.g89_tc_, ptr %354, i32 0, i32 1
  %356 = getelementptr inbounds [2048 x i8], ptr %355, i64 0, i64 0
  %357 = load i32, ptr %6, align 4, !tbaa !5
  %358 = sext i32 %357 to i64
  %359 = getelementptr inbounds [26 x %struct.g89_tc_], ptr @tcs, i64 0, i64 %358
  %360 = getelementptr inbounds %struct.g89_tc_, ptr %359, i32 0, i32 0
  %361 = load i64, ptr %360, align 16, !tbaa !17
  %362 = trunc i64 %361 to i32
  %363 = zext i32 %362 to i64
  %364 = call i32 @EVP_DigestSignUpdate(ptr noundef %351, ptr noundef %356, i64 noundef %363)
  br label %396

365:                                              ; preds = %333
  %366 = load i32, ptr %6, align 4, !tbaa !5
  %367 = sext i32 %366 to i64
  %368 = getelementptr inbounds [26 x %struct.g89_tc_], ptr @tcs, i64 0, i64 %367
  %369 = getelementptr inbounds %struct.g89_tc_, ptr %368, i32 0, i32 0
  %370 = load i64, ptr %369, align 16, !tbaa !17
  store i64 %370, ptr %16, align 8, !tbaa !11
  br label %371

371:                                              ; preds = %379, %365
  %372 = load i64, ptr %16, align 8, !tbaa !11
  %373 = icmp uge i64 %372, 41943040
  br i1 %373, label %374, label %382

374:                                              ; preds = %371
  %375 = call i32 (ptr, ...) @printf(ptr noundef @.str.49)
  %376 = call i32 @fflush(ptr noundef null)
  %377 = load ptr, ptr %10, align 8, !tbaa !9
  %378 = call i32 @EVP_DigestSignUpdate(ptr noundef %377, ptr noundef @main.bZB, i64 noundef 41943040)
  br label %379

379:                                              ; preds = %374
  %380 = load i64, ptr %16, align 8, !tbaa !11
  %381 = sub i64 %380, 41943040
  store i64 %381, ptr %16, align 8, !tbaa !11
  br label %371, !llvm.loop !22

382:                                              ; preds = %371
  %383 = load i64, ptr %16, align 8, !tbaa !11
  %384 = load i32, ptr %6, align 4, !tbaa !5
  %385 = sext i32 %384 to i64
  %386 = getelementptr inbounds [26 x %struct.g89_tc_], ptr @tcs, i64 0, i64 %385
  %387 = getelementptr inbounds %struct.g89_tc_, ptr %386, i32 0, i32 0
  %388 = load i64, ptr %387, align 16, !tbaa !17
  %389 = call i32 (ptr, ...) @printf(ptr noundef @.str.50, i64 noundef %383, i64 noundef %388)
  %390 = call i32 @fflush(ptr noundef null)
  %391 = load ptr, ptr %10, align 8, !tbaa !9
  %392 = load i64, ptr %16, align 8, !tbaa !11
  %393 = trunc i64 %392 to i32
  %394 = zext i32 %393 to i64
  %395 = call i32 @EVP_DigestSignUpdate(ptr noundef %391, ptr noundef @main.bZB, i64 noundef %394)
  br label %396

396:                                              ; preds = %382, %350
  store i64 4, ptr %20, align 8, !tbaa !13
  %397 = load ptr, ptr %10, align 8, !tbaa !9
  %398 = getelementptr inbounds [2048 x i8], ptr %14, i64 0, i64 0
  %399 = call i32 @EVP_DigestSignFinal(ptr noundef %397, ptr noundef %398, ptr noundef %20)
  %400 = load ptr, ptr %10, align 8, !tbaa !9
  call void @EVP_MD_CTX_free(ptr noundef %400)
  %401 = load i32, ptr %6, align 4, !tbaa !5
  %402 = sext i32 %401 to i64
  %403 = getelementptr inbounds [26 x %struct.g89_tc_], ptr @tcs, i64 0, i64 %402
  %404 = getelementptr inbounds %struct.g89_tc_, ptr %403, i32 0, i32 0
  %405 = load i64, ptr %404, align 16, !tbaa !17
  %406 = trunc i64 %405 to i32
  store i32 %406, ptr %18, align 4, !tbaa !5
  store i32 0, ptr %19, align 4, !tbaa !5
  %407 = load i64, ptr %20, align 8, !tbaa !13
  store i64 %407, ptr %21, align 8, !tbaa !13
  br label %408

408:                                              ; preds = %396, %318, %218
  %409 = load i32, ptr %6, align 4, !tbaa !5
  %410 = sext i32 %409 to i64
  %411 = getelementptr inbounds [26 x %struct.g89_tc_], ptr @tcs, i64 0, i64 %410
  %412 = getelementptr inbounds %struct.g89_tc_, ptr %411, i32 0, i32 0
  %413 = load i64, ptr %412, align 16, !tbaa !17
  %414 = trunc i64 %413 to i32
  %415 = load i32, ptr %18, align 4, !tbaa !5
  %416 = icmp ne i32 %414, %415
  br i1 %416, label %430, label %417

417:                                              ; preds = %408
  %418 = load i32, ptr %19, align 4, !tbaa !5
  %419 = icmp ne i32 0, %418
  br i1 %419, label %430, label %420

420:                                              ; preds = %417
  %421 = load i32, ptr %6, align 4, !tbaa !5
  %422 = sext i32 %421 to i64
  %423 = getelementptr inbounds [26 x %struct.g89_tc_], ptr @tcs, i64 0, i64 %422
  %424 = getelementptr inbounds %struct.g89_tc_, ptr %423, i32 0, i32 7
  %425 = getelementptr inbounds [2048 x i8], ptr %424, i64 0, i64 0
  %426 = getelementptr inbounds [2048 x i8], ptr %14, i64 0, i64 0
  %427 = load i64, ptr %21, align 8, !tbaa !13
  %428 = call i32 @memcmp(ptr noundef %425, ptr noundef %426, i64 noundef %427) #8
  %429 = icmp ne i32 0, %428
  br i1 %429, label %430, label %444

430:                                              ; preds = %420, %417, %408
  %431 = call i32 @fflush(ptr noundef null)
  %432 = load ptr, ptr @stderr, align 8, !tbaa !9
  %433 = load i32, ptr %6, align 4, !tbaa !5
  %434 = load i32, ptr %6, align 4, !tbaa !5
  %435 = sext i32 %434 to i64
  %436 = getelementptr inbounds [26 x %struct.g89_tc_], ptr @tcs, i64 0, i64 %435
  %437 = getelementptr inbounds %struct.g89_tc_, ptr %436, i32 0, i32 0
  %438 = load i64, ptr %437, align 16, !tbaa !17
  %439 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %432, ptr noundef @.str.51, i32 noundef %433, i64 noundef %438) #7
  %440 = load i32, ptr %8, align 4, !tbaa !5
  %441 = icmp ne i32 %440, 0
  br i1 %441, label %443, label %442

442:                                              ; preds = %430
  store i32 13, ptr %3, align 4
  store i32 1, ptr %31, align 4
  br label %454

443:                                              ; preds = %430
  br label %447

444:                                              ; preds = %420
  %445 = call i32 (ptr, ...) @printf(ptr noundef @.str.33)
  %446 = call i32 @fflush(ptr noundef null)
  br label %447

447:                                              ; preds = %444, %443
  br label %448

448:                                              ; preds = %447, %332, %235, %224, %200, %155
  %449 = load i32, ptr %6, align 4, !tbaa !5
  %450 = add nsw i32 %449, 1
  store i32 %450, ptr %6, align 4, !tbaa !5
  br label %144, !llvm.loop !23

451:                                              ; preds = %144
  %452 = call i32 (ptr, ...) @printf(ptr noundef @.str.52)
  %453 = call i32 @fflush(ptr noundef null)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %31, align 4
  br label %454

454:                                              ; preds = %451, %442, %212, %190, %141, %130, %119, %108, %97, %82, %69, %52
  call void @llvm.lifetime.end.p0(i64 148, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 64, 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 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, 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
  %455 = load i32, ptr %3, align 4
  ret i32 %455
}

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

declare ptr @NCONF_new(ptr noundef) #2

; 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) #3

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

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

declare i32 @fflush(ptr noundef) #2

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

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

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

declare void @ENGINE_load_builtin_engines() #2

declare void @OPENSSL_load_builtin_modules() #2

declare ptr @BIO_new_mem_buf(ptr noundef, i32 noundef) #2

declare i32 @NCONF_load_bio(ptr noundef, ptr noundef, ptr noundef) #2

declare ptr @ERR_error_string(i64 noundef, ptr noundef) #2

declare i64 @ERR_get_error() #2

declare i32 @BIO_free(ptr noundef) #2

declare i32 @CONF_modules_load(ptr noundef, ptr noundef, i64 noundef) #2

declare ptr @ENGINE_by_id(ptr noundef) #2

declare ptr @EVP_get_digestbyname(ptr noundef) #2

declare ptr @EVP_get_cipherbyname(ptr noundef) #2

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

declare i32 @EVP_Digest(ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

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

declare i32 @ENGINE_ctrl_cmd_string(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #2

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

declare i32 @EVP_CIPHER_CTX_reset(ptr noundef) #2

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

declare i32 @EVP_EncryptUpdate(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #2

declare i32 @EVP_EncryptFinal_ex(ptr noundef, ptr noundef, ptr noundef) #2

declare i32 @EVP_MD_CTX_reset(ptr noundef) #2

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

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

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

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

declare void @EVP_MD_CTX_free(ptr noundef) #2

; 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 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { 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 #7 = { nounwind }
attributes #8 = { nounwind willreturn memory(read) }

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

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


; 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.g89_tc_ = type { i64, [2048 x i8], ptr, ptr, [64 x i8], i32, [16 x i8], [2048 x i8] }

@.str.1 = external hidden unnamed_addr constant [37 x i8], align 1
@tcs = external dso_local constant <{ { i64, [2048 x i8], ptr, ptr, <{ [32 x i8], [32 x i8] }>, i32, [16 x i8], <{ [8 x i8], [2040 x i8] }> }, { i64, [2048 x i8], ptr, ptr, <{ [32 x i8], [32 x i8] }>, i32, [16 x i8], <{ [8 x i8], [2040 x i8] }> }, { i64, <{ [8 x i8], [2040 x i8] }>, ptr, ptr, <{ [32 x i8], [32 x i8] }>, i32, [16 x i8], <{ [8 x i8], [2040 x i8] }> }, { i64, <{ [16 x i8], [2032 x i8] }>, ptr, ptr, <{ [32 x i8], [32 x i8] }>, i32, [16 x i8], <{ [16 x i8], [2032 x i8] }> }, { i64, <{ [16 x i8], [2032 x i8] }>, ptr, ptr, <{ [32 x i8], [32 x i8] }>, i32, <{ [8 x i8], [8 x i8] }>, <{ [16 x i8], [2032 x i8] }> }, { i64, <{ [16 x i8], [2032 x i8] }>, ptr, ptr, <{ [32 x i8], [32 x i8] }>, i32, <{ [8 x i8], [8 x i8] }>, <{ [16 x i8], [2032 x i8] }> }, { i64, <{ [16 x i8], [2032 x i8] }>, ptr, ptr, <{ [32 x i8], [32 x i8] }>, i32, [16 x i8], <{ i8, i8, i8, i8, [2044 x i8] }> }, { i64, <{ [1039 x i8], [1009 x i8] }>, ptr, ptr, <{ [32 x i8], [32 x i8] }>, i32, <{ [8 x i8], [8 x i8] }>, <{ [1039 x i8], [1009 x i8] }> }, { i64, <{ i8, i8, i8, i8, [2044 x i8] }>, ptr, ptr, <{ [32 x i8], [32 x i8] }>, i32, <{ [8 x i8], [8 x i8] }>, <{ i8, i8, i8, i8, [2044 x i8] }> }, { i64, <{ [9 x i8], [2039 x i8] }>, ptr, ptr, <{ [32 x i8], [32 x i8] }>, i32, <{ [8 x i8], [8 x i8] }>, <{ [9 x i8], [2039 x i8] }> }, { i64, [2048 x i8], ptr, ptr, <{ [32 x i8], [32 x i8] }>, i32, [16 x i8], <{ [15 x i8], [2033 x i8] }> }, { i64, [2048 x i8], ptr, ptr, <{ [32 x i8], [32 x i8] }>, i32, [16 x i8], <{ [16 x i8], [2032 x i8] }> }, { i64, <{ [1037 x i8], [1011 x i8] }>, ptr, ptr, <{ [32 x i8], [32 x i8] }>, i32, <{ [8 x i8], [8 x i8] }>, <{ [1037 x i8], [1011 x i8] }> }, { i64, [2048 x i8], ptr, ptr, <{ [32 x i8], [32 x i8] }>, i32, [16 x i8], <{ [16 x i8], [2032 x i8] }> }, { i64, [2048 x i8], ptr, ptr, <{ [32 x i8], [32 x i8] }>, i32, [16 x i8], <{ [16 x i8], [2032 x i8] }> }, { i64, <{ [1035 x i8], [1013 x i8] }>, ptr, ptr, <{ [32 x i8], [32 x i8] }>, i32, [16 x i8], <{ i8, i8, i8, i8, [2044 x i8] }> }, { i64, <{ [10 x i8], [2038 x i8] }>, ptr, ptr, <{ [32 x i8], [32 x i8] }>, i32, [16 x i8], <{ i8, i8, i8, i8, [2044 x i8] }> }, { i64, <{ i8, i8, i8, i8, i8, i8, [2042 x i8] }>, ptr, ptr, <{ [32 x i8], [32 x i8] }>, i32, [16 x i8], <{ i8, i8, i8, i8, [2044 x i8] }> }, { i64, <{ [16 x i8], [2032 x i8] }>, ptr, ptr, <{ [32 x i8], [32 x i8] }>, i32, [16 x i8], <{ i8, i8, i8, i8, [2044 x i8] }> }, { i64, <{ [8 x i8], [2040 x i8] }>, ptr, ptr, <{ [32 x i8], [32 x i8] }>, i32, [16 x i8], <{ i8, i8, i8, i8, [2044 x i8] }> }, { i64, [2048 x i8], ptr, ptr, <{ [32 x i8], [32 x i8] }>, i32, [16 x i8], [2048 x i8] }, { i64, [2048 x i8], ptr, ptr, <{ [32 x i8], [32 x i8] }>, i32, [16 x i8], <{ i8, i8, i8, i8, [2044 x i8] }> }, { i64, [2048 x i8], ptr, ptr, <{ [32 x i8], [32 x i8] }>, i32, [16 x i8], <{ i8, i8, i8, i8, [2044 x i8] }> }, { i64, [2048 x i8], ptr, ptr, <{ [32 x i8], [32 x i8] }>, i32, [16 x i8], <{ i8, i8, i8, i8, [2044 x i8] }> }, { i64, [2048 x i8], ptr, ptr, <{ [32 x i8], [32 x i8] }>, i32, [16 x i8], <{ i8, i8, i8, i8, [2044 x i8] }> }, { i64, [2048 x i8], ptr, ptr, <{ [32 x i8], [32 x i8] }>, i32, [16 x i8], <{ i8, i8, i8, i8, [2044 x i8] }> } }>, align 16
@main.bZB = external hidden constant [41943040 x i8], align 16
@main.bTS = external hidden global [41943040 x i8], align 16
@__const.main.sConf = external hidden unnamed_addr constant [148 x i8], align 16
@.str.28 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [3 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.31 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [9 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 14) i32 @main(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = alloca i64, align 8
  %4 = alloca i32, align 4
  %5 = alloca [64 x i8], align 16
  %6 = alloca [2048 x i8], align 16
  %7 = alloca [2048 x i8], align 16
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca [148 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #9
  store i64 6000000, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #9
  store i32 0, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %5) #9
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %6) #9
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %7) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #9
  store i32 0, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #9
  store i32 0, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #9
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #9
  %14 = tail call ptr @NCONF_new(ptr noundef null) #9
  call void @llvm.lifetime.start.p0(i64 148, ptr nonnull %13) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(148) %13, ptr noundef nonnull align 16 dereferenceable(148) @__const.main.sConf, i64 148, i1 false)
  %15 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.28)
  %16 = icmp sgt i32 %0, 1
  br i1 %16, label %17, label %31

17:                                               ; preds = %2
  %18 = getelementptr inbounds i8, ptr %1, i64 8
  %19 = load ptr, ptr %18, align 8, !tbaa !11
  %20 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %19, ptr noundef nonnull @.str.29, ptr noundef nonnull %3) #9
  %.not = icmp eq i32 %20, 1
  br i1 %.not, label %21, label %26

21:                                               ; preds = %17
  %.not83 = icmp eq i32 %0, 2
  br i1 %.not83, label %31, label %22

22:                                               ; preds = %21
  %23 = getelementptr inbounds i8, ptr %1, i64 16
  %24 = load ptr, ptr %23, align 8, !tbaa !11
  %25 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %24, ptr noundef nonnull @.str.30, ptr noundef nonnull %4) #9
  %.not84 = icmp eq i32 %25, 1
  br i1 %.not84, label %31, label %26

26:                                               ; preds = %22, %17
  %27 = call i32 @fflush(ptr noundef null)
  %28 = load ptr, ptr @stderr, align 8, !tbaa !11
  %29 = load ptr, ptr %1, align 8, !tbaa !11
  %30 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %28, ptr noundef nonnull @.str.31, ptr noundef %29) #10
  br label %.loopexit

31:                                               ; preds = %22, %21, %2
  %32 = call i32 @setenv(ptr noundef nonnull @.str.32, ptr noundef nonnull @.str.33, i32 noundef 1) #9
  %33 = call i32 @OPENSSL_init_crypto(i64 noundef 2, ptr noundef null) #9
  call void @ENGINE_load_builtin_engines() #9
  call void @OPENSSL_load_builtin_modules() #9
  %34 = call ptr @BIO_new_mem_buf(ptr noundef nonnull %13, i32 noundef -1) #9
  %35 = call i32 @NCONF_load_bio(ptr noundef %14, ptr noundef %34, ptr noundef nonnull %12) #9
  %.not85 = icmp eq i32 %35, 0
  br i1 %.not85, label %36, label %43

36:                                               ; preds = %31
  %37 = call i32 @fflush(ptr noundef null)
  %38 = load ptr, ptr @stderr, align 8, !tbaa !11
  %39 = load i64, ptr %12, align 8, !tbaa !13
  %40 = call i64 @ERR_get_error() #9
  %41 = call ptr @ERR_error_string(i64 noundef %40, ptr noundef null) #9
  %42 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %38, ptr noundef nonnull @.str.34, i64 noundef %39, ptr noundef %41) #10
  br label %.loopexit

43:                                               ; preds = %31
  %44 = call i32 @BIO_free(ptr noundef %34) #9
  %45 = call i32 @CONF_modules_load(ptr noundef %14, ptr noundef null, i64 noundef 0) #9
  %.not86 = icmp eq i32 %45, 0
  br i1 %.not86, label %46, label %52

46:                                               ; preds = %43
  %47 = call i32 @fflush(ptr noundef null)
  %48 = load ptr, ptr @stderr, align 8, !tbaa !11
  %49 = call i64 @ERR_get_error() #9
  %50 = call ptr @ERR_error_string(i64 noundef %49, ptr noundef null) #9
  %51 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef nonnull @.str.35, ptr noundef %50) #10
  br label %.loopexit

52:                                               ; preds = %43
  %53 = call ptr @ENGINE_by_id(ptr noundef nonnull @.str.36) #9
  %54 = icmp eq ptr %53, null
  br i1 %54, label %55, label %60

55:                                               ; preds = %52
  %56 = call i32 @fflush(ptr noundef null)
  %57 = load ptr, ptr @stderr, align 8, !tbaa !11
  %58 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %57, ptr noundef nonnull @.str.37) #10
  %59 = load i32, ptr %4, align 4, !tbaa !9
  %.not87 = icmp eq i32 %59, 0
  br i1 %.not87, label %.loopexit, label %60

60:                                               ; preds = %55, %52
  %61 = call ptr @EVP_get_digestbyname(ptr noundef nonnull @.str.38) #9
  %62 = icmp eq ptr %61, null
  br i1 %62, label %63, label %68

63:                                               ; preds = %60
  %64 = call i32 @fflush(ptr noundef null)
  %65 = load ptr, ptr @stderr, align 8, !tbaa !11
  %66 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %65, ptr noundef nonnull @.str.39) #10
  %67 = load i32, ptr %4, align 4, !tbaa !9
  %.not88 = icmp eq i32 %67, 0
  br i1 %.not88, label %.loopexit, label %68

68:                                               ; preds = %63, %60
  %69 = call ptr @EVP_get_cipherbyname(ptr noundef nonnull @.str.40) #9
  %70 = icmp eq ptr %69, null
  br i1 %70, label %71, label %76

71:                                               ; preds = %68
  %72 = call i32 @fflush(ptr noundef null)
  %73 = load ptr, ptr @stderr, align 8, !tbaa !11
  %74 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %73, ptr noundef nonnull @.str.41) #10
  %75 = load i32, ptr %4, align 4, !tbaa !9
  %.not89 = icmp eq i32 %75, 0
  br i1 %.not89, label %.loopexit, label %76

76:                                               ; preds = %71, %68
  %77 = call ptr @EVP_get_cipherbyname(ptr noundef nonnull @.str.42) #9
  %78 = icmp eq ptr %77, null
  br i1 %78, label %79, label %84

79:                                               ; preds = %76
  %80 = call i32 @fflush(ptr noundef null)
  %81 = load ptr, ptr @stderr, align 8, !tbaa !11
  %82 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %81, ptr noundef nonnull @.str.43) #10
  %83 = load i32, ptr %4, align 4, !tbaa !9
  %.not90 = icmp eq i32 %83, 0
  br i1 %.not90, label %.loopexit, label %84

84:                                               ; preds = %79, %76
  %85 = call ptr @EVP_get_digestbyname(ptr noundef nonnull @.str.44) #9
  %86 = icmp eq ptr %85, null
  br i1 %86, label %87, label %.preheader112

87:                                               ; preds = %84
  %88 = call i32 @fflush(ptr noundef null)
  %89 = load ptr, ptr @stderr, align 8, !tbaa !11
  %90 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %89, ptr noundef nonnull @.str.45) #10
  %91 = load i32, ptr %4, align 4, !tbaa !9
  %.not91 = icmp eq i32 %91, 0
  br i1 %.not91, label %.loopexit, label %.preheader112

.preheader112:                                    ; preds = %87, %84
  br label %92

92:                                               ; preds = %.preheader112, %196
  %indvars.iv = phi i64 [ %indvars.iv.next, %196 ], [ 0, %.preheader112 ]
  %.075106 = phi i64 [ %.3, %196 ], [ 0, %.preheader112 ]
  %93 = getelementptr inbounds [26 x %struct.g89_tc_], ptr @tcs, i64 0, i64 %indvars.iv
  %94 = getelementptr inbounds i8, ptr %93, i64 2064
  %95 = load ptr, ptr %94, align 16, !tbaa !15
  %96 = icmp eq ptr %95, null
  br i1 %96, label %196, label %97

97:                                               ; preds = %92
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %5, i8 60, i64 64, i1 false)
  store i32 64, ptr %8, align 4, !tbaa !9
  %98 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %95) #11
  %99 = call i32 @EVP_Digest(ptr noundef nonnull %95, i64 noundef %98, ptr noundef nonnull %5, ptr noundef nonnull %8, ptr noundef %61, ptr noundef %53) #9
  %100 = getelementptr inbounds i8, ptr %93, i64 2072
  %101 = load i32, ptr %8, align 4, !tbaa !9
  %102 = zext i32 %101 to i64
  %bcmp = call i32 @bcmp(ptr nonnull %100, ptr nonnull %5, i64 %102)
  %.not92 = icmp eq i32 %bcmp, 0
  br i1 %.not92, label %109, label %103

103:                                              ; preds = %97
  %104 = call i32 @fflush(ptr noundef null)
  %105 = load ptr, ptr @stderr, align 8, !tbaa !11
  %106 = trunc nuw nsw i64 %indvars.iv to i32
  %107 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %105, ptr noundef nonnull @.str.46, i32 noundef %106) #10
  %108 = load i32, ptr %4, align 4, !tbaa !9
  %.not93 = icmp eq i32 %108, 0
  br i1 %.not93, label %.loopexit, label %109

109:                                              ; preds = %103, %97
  %110 = load i64, ptr %3, align 8, !tbaa !5
  %111 = load i64, ptr %93, align 16, !tbaa !17
  %112 = icmp ult i64 %110, %111
  br i1 %112, label %196, label %113

113:                                              ; preds = %109
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(2048) %6, i8 -91, i64 2048, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(2048) %7, i8 90, i64 2048, i1 false)
  %114 = getelementptr inbounds i8, ptr %93, i64 2056
  %115 = load ptr, ptr %114, align 8, !tbaa !18
  %116 = call i32 @ENGINE_ctrl_cmd_string(ptr noundef %53, ptr noundef nonnull @.str.47, ptr noundef %115, i32 noundef 0) #9
  %.not94 = icmp eq i32 %116, 0
  br i1 %.not94, label %117, label %123

117:                                              ; preds = %113
  %118 = call i32 @fflush(ptr noundef null)
  %119 = load ptr, ptr @stderr, align 8, !tbaa !11
  %120 = call i64 @ERR_get_error() #9
  %121 = call ptr @ERR_error_string(i64 noundef %120, ptr noundef null) #9
  %122 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %119, ptr noundef nonnull @.str.48, ptr noundef %121) #10
  br label %.loopexit

123:                                              ; preds = %113
  %124 = getelementptr inbounds i8, ptr %93, i64 2136
  %125 = load i32, ptr %124, align 8, !tbaa !19
  switch i32 %125, label %179 [
    i32 0, label %196
    i32 1, label %128
    i32 2, label %126
    i32 3, label %155
  ]

126:                                              ; preds = %123
  %127 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef nonnull dereferenceable(1) %115) #11
  %.not96 = icmp eq i32 %127, 0
  br i1 %.not96, label %128, label %196

128:                                              ; preds = %126, %123
  %.074 = phi ptr [ %69, %123 ], [ %77, %126 ]
  %129 = call i32 @EVP_CIPHER_CTX_reset(ptr noundef null) #9
  %130 = getelementptr inbounds i8, ptr %93, i64 2140
  %131 = call i32 @EVP_EncryptInit_ex(ptr noundef null, ptr noundef %.074, ptr noundef %53, ptr noundef nonnull %5, ptr noundef nonnull %130) #9
  %132 = icmp ult i64 %111, 2049
  br i1 %132, label %134, label %.preheader

.preheader:                                       ; preds = %128
  %133 = icmp ugt i64 %111, 41943039
  br i1 %133, label %.lr.ph103, label %._crit_edge104

134:                                              ; preds = %128
  store i32 2048, ptr %9, align 4, !tbaa !9
  %135 = getelementptr inbounds i8, ptr %93, i64 8
  %136 = trunc nuw i64 %111 to i32
  %137 = call i32 @EVP_EncryptUpdate(ptr noundef null, ptr noundef nonnull %6, ptr noundef nonnull %9, ptr noundef nonnull %135, i32 noundef %136) #9
  br label %152

.lr.ph103:                                        ; preds = %.preheader, %.lr.ph103
  %.076102 = phi i64 [ %141, %.lr.ph103 ], [ %111, %.preheader ]
  %138 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.49)
  %139 = call i32 @fflush(ptr noundef null)
  store i32 41943040, ptr %9, align 4, !tbaa !9
  %140 = call i32 @EVP_EncryptUpdate(ptr noundef null, ptr noundef nonnull @main.bTS, ptr noundef nonnull %9, ptr noundef nonnull @main.bZB, i32 noundef 41943040) #9
  %141 = add i64 %.076102, -41943040
  %142 = icmp ugt i64 %141, 41943039
  br i1 %142, label %.lr.ph103, label %._crit_edge104, !llvm.loop !20

._crit_edge104:                                   ; preds = %.lr.ph103, %.preheader
  %.076.lcssa = phi i64 [ %111, %.preheader ], [ %141, %.lr.ph103 ]
  %143 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.50, i64 noundef %.076.lcssa, i64 noundef %111)
  %144 = call i32 @fflush(ptr noundef null)
  %145 = trunc nuw nsw i64 %.076.lcssa to i32
  %146 = call i32 @EVP_EncryptUpdate(ptr noundef null, ptr noundef nonnull @main.bTS, ptr noundef nonnull %9, ptr noundef nonnull @main.bZB, i32 noundef %145) #9
  %147 = load i32, ptr %9, align 4, !tbaa !9
  %148 = add nsw i32 %147, -16
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds [41943040 x i8], ptr @main.bTS, i64 0, i64 %149
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %6, ptr noundef nonnull align 1 dereferenceable(16) %150, i64 16, i1 false)
  %151 = trunc i64 %111 to i32
  store i32 %151, ptr %9, align 4, !tbaa !9
  br label %152

152:                                              ; preds = %._crit_edge104, %134
  %.1 = phi i64 [ %111, %134 ], [ 16, %._crit_edge104 ]
  store i32 2048, ptr %10, align 4, !tbaa !9
  %153 = call i32 @EVP_EncryptFinal_ex(ptr noundef null, ptr noundef nonnull %7, ptr noundef nonnull %10) #9
  %154 = call i32 @EVP_CIPHER_CTX_reset(ptr noundef null) #9
  br label %179

155:                                              ; preds = %123
  %156 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef nonnull dereferenceable(1) %115) #11
  %.not95 = icmp eq i32 %156, 0
  br i1 %.not95, label %157, label %196

157:                                              ; preds = %155
  %158 = call i32 @EVP_MD_CTX_reset(ptr noundef null) #9
  %159 = load i32, ptr %8, align 4, !tbaa !9
  %160 = call ptr @EVP_PKEY_new_mac_key(i32 noundef 815, ptr noundef null, ptr noundef nonnull %5, i32 noundef %159) #9
  %161 = call i32 @EVP_DigestSignInit(ptr noundef null, ptr noundef null, ptr noundef %85, ptr noundef %53, ptr noundef %160) #9
  %162 = icmp ult i64 %111, 2049
  br i1 %162, label %164, label %.preheader100

.preheader100:                                    ; preds = %157
  %163 = icmp ugt i64 %111, 41943039
  br i1 %163, label %.lr.ph, label %._crit_edge

164:                                              ; preds = %157
  %165 = getelementptr inbounds i8, ptr %93, i64 8
  %166 = call i32 @EVP_DigestSignUpdate(ptr noundef null, ptr noundef nonnull %165, i64 noundef %111) #9
  br label %175

.lr.ph:                                           ; preds = %.preheader100, %.lr.ph
  %.177101 = phi i64 [ %170, %.lr.ph ], [ %111, %.preheader100 ]
  %167 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.49)
  %168 = call i32 @fflush(ptr noundef null)
  %169 = call i32 @EVP_DigestSignUpdate(ptr noundef null, ptr noundef nonnull @main.bZB, i64 noundef 41943040) #9
  %170 = add i64 %.177101, -41943040
  %171 = icmp ugt i64 %170, 41943039
  br i1 %171, label %.lr.ph, label %._crit_edge, !llvm.loop !22

._crit_edge:                                      ; preds = %.lr.ph, %.preheader100
  %.177.lcssa = phi i64 [ %111, %.preheader100 ], [ %170, %.lr.ph ]
  %172 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.50, i64 noundef %.177.lcssa, i64 noundef %111)
  %173 = call i32 @fflush(ptr noundef null)
  %174 = call i32 @EVP_DigestSignUpdate(ptr noundef null, ptr noundef nonnull @main.bZB, i64 noundef %.177.lcssa) #9
  br label %175

175:                                              ; preds = %._crit_edge, %164
  store i64 4, ptr %11, align 8, !tbaa !13
  %176 = call i32 @EVP_DigestSignFinal(ptr noundef null, ptr noundef nonnull %6, ptr noundef nonnull %11) #9
  call void @EVP_MD_CTX_free(ptr noundef null) #9
  %177 = trunc i64 %111 to i32
  store i32 %177, ptr %9, align 4, !tbaa !9
  store i32 0, ptr %10, align 4, !tbaa !9
  %178 = load i64, ptr %11, align 8, !tbaa !13
  br label %179

179:                                              ; preds = %175, %152, %123
  %.2 = phi i64 [ %.075106, %123 ], [ %178, %175 ], [ %.1, %152 ]
  %180 = trunc i64 %111 to i32
  %181 = load i32, ptr %9, align 4, !tbaa !9
  %182 = icmp ne i32 %181, %180
  %183 = load i32, ptr %10, align 4
  %184 = icmp ne i32 %183, 0
  %or.cond = select i1 %182, i1 true, i1 %184
  br i1 %or.cond, label %187, label %185

185:                                              ; preds = %179
  %186 = getelementptr inbounds i8, ptr %93, i64 2156
  %bcmp99 = call i32 @bcmp(ptr nonnull %186, ptr nonnull %6, i64 %.2)
  %.not97 = icmp eq i32 %bcmp99, 0
  br i1 %.not97, label %193, label %187

187:                                              ; preds = %185, %179
  %188 = call i32 @fflush(ptr noundef null)
  %189 = load ptr, ptr @stderr, align 8, !tbaa !11
  %190 = trunc nuw nsw i64 %indvars.iv to i32
  %191 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %189, ptr noundef nonnull @.str.51, i32 noundef %190, i64 noundef %111) #10
  %192 = load i32, ptr %4, align 4, !tbaa !9
  %.not98 = icmp eq i32 %192, 0
  br i1 %.not98, label %.loopexit, label %196

193:                                              ; preds = %185
  %194 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.33)
  %195 = call i32 @fflush(ptr noundef null)
  br label %196

196:                                              ; preds = %193, %187, %155, %126, %123, %109, %92
  %.3 = phi i64 [ %.075106, %92 ], [ %.075106, %109 ], [ %.2, %187 ], [ %.2, %193 ], [ %.075106, %155 ], [ %.075106, %126 ], [ %.075106, %123 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 26
  br i1 %exitcond.not, label %197, label %92, !llvm.loop !23

197:                                              ; preds = %196
  %198 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.52)
  %199 = call i32 @fflush(ptr noundef null)
  br label %.loopexit

.loopexit:                                        ; preds = %187, %103, %87, %79, %71, %63, %55, %197, %117, %46, %36, %26
  %.0 = phi i32 [ 1, %26 ], [ 11, %117 ], [ 0, %197 ], [ 5, %46 ], [ 4, %36 ], [ 6, %55 ], [ 7, %63 ], [ 8, %71 ], [ 9, %79 ], [ 10, %87 ], [ 13, %187 ], [ 12, %103 ]
  call void @llvm.lifetime.end.p0(i64 148, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #9
  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

declare ptr @NCONF_new(ptr noundef) local_unnamed_addr #2

; 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) #3

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

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

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

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

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

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

declare void @ENGINE_load_builtin_engines() local_unnamed_addr #2

declare void @OPENSSL_load_builtin_modules() local_unnamed_addr #2

declare ptr @BIO_new_mem_buf(ptr noundef, i32 noundef) local_unnamed_addr #2

declare i32 @NCONF_load_bio(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare ptr @ERR_error_string(i64 noundef, ptr noundef) local_unnamed_addr #2

declare i64 @ERR_get_error() local_unnamed_addr #2

declare i32 @BIO_free(ptr noundef) local_unnamed_addr #2

declare i32 @CONF_modules_load(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2

declare ptr @ENGINE_by_id(ptr noundef) local_unnamed_addr #2

declare ptr @EVP_get_digestbyname(ptr noundef) local_unnamed_addr #2

declare ptr @EVP_get_cipherbyname(ptr noundef) local_unnamed_addr #2

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

declare i32 @EVP_Digest(ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #7

declare i32 @ENGINE_ctrl_cmd_string(ptr noundef, ptr noundef, ptr noundef, i32 noundef) 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 #7

declare i32 @EVP_CIPHER_CTX_reset(ptr noundef) local_unnamed_addr #2

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

declare i32 @EVP_EncryptUpdate(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

declare i32 @EVP_EncryptFinal_ex(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @EVP_MD_CTX_reset(ptr noundef) local_unnamed_addr #2

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

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

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

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

declare void @EVP_MD_CTX_free(ptr 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

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

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 = { "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 nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { 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 #8 = { nofree nounwind willreturn memory(argmem: read) }
attributes #9 = { nounwind }
attributes #10 = { cold nounwind }
attributes #11 = { nounwind willreturn memory(read) }

!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 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!16, !12, i64 2064}
!16 = !{!"g89_tc_", !6, i64 0, !7, i64 8, !12, i64 2056, !12, i64 2064, !7, i64 2072, !10, i64 2136, !7, i64 2140, !7, i64 2156}
!17 = !{!16, !6, i64 0}
!18 = !{!16, !12, i64 2056}
!19 = !{!16, !10, i64 2136}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = distinct !{!23, !21}


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