; LLVM IR from ARMmbed/mbed-crypto :: library (camellia)

; 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.mbedtls_camellia_context = type { i32, [68 x i32] }

@.str = external hidden unnamed_addr constant [26 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@camellia_test_ecb_cipher = external hidden constant [3 x [2 x [16 x i8]]], align 16
@.str.3 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [26 x i8], align 1
@camellia_test_cbc_iv = external hidden constant [16 x i8], align 16
@camellia_test_cbc_cipher = external hidden constant [3 x [3 x [16 x i8]]], align 16
@camellia_test_cbc_plain = external hidden constant [3 x [16 x i8]], align 16
@.str.7 = external hidden unnamed_addr constant [26 x i8], align 1
@camellia_test_ctr_nonce_counter = external hidden constant [3 x [16 x i8]], align 16
@camellia_test_ctr_key = external hidden constant [3 x [16 x i8]], align 16
@camellia_test_ctr_len = external hidden constant [3 x i32], align 4
@camellia_test_ecb_key = external hidden constant <{ <{ <{ [16 x i8], [16 x i8] }>, [32 x i8] }>, <{ <{ [24 x i8], [8 x i8] }>, [32 x i8] }>, [2 x [32 x i8]] }>, align 16
@camellia_test_ecb_plain = external hidden constant <{ [16 x i8], <{ i8, i8, i8, i8, i8, [11 x i8] }> }>, align 16
@camellia_test_cbc_key = external hidden constant <{ <{ [16 x i8], [16 x i8] }>, <{ [24 x i8], [8 x i8] }>, [32 x i8] }>, align 16
@camellia_test_ctr_ct = external hidden constant <{ <{ [16 x i8], [32 x i8] }>, <{ [32 x i8], [16 x i8] }>, <{ [36 x i8], [12 x i8] }> }>, align 16
@camellia_test_ctr_pt = external hidden constant <{ <{ [16 x i8], [32 x i8] }>, <{ [32 x i8], [16 x i8] }>, <{ [36 x i8], [12 x i8] }> }>, align 16

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @mbedtls_camellia_setkey_enc(ptr noundef, ptr noundef, i32 noundef) #1

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @mbedtls_camellia_setkey_dec(ptr noundef, ptr noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @mbedtls_camellia_crypt_ecb(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @mbedtls_camellia_crypt_cbc(ptr noundef, i32 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) #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) #3

; Function Attrs: nounwind uwtable
declare dso_local i32 @mbedtls_camellia_crypt_ctr(ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @mbedtls_camellia_self_test(i32 noundef %0) #1 {
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca [32 x i8], align 16
  %9 = alloca [64 x i8], align 16
  %10 = alloca [16 x i8], align 16
  %11 = alloca [16 x i8], align 16
  %12 = alloca [16 x i8], align 16
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca [16 x i8], align 16
  %16 = alloca [16 x i8], align 16
  %17 = alloca %struct.mbedtls_camellia_context, align 4
  %18 = alloca i32, align 4
  store i32 %0, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 276, ptr %17) #6
  %19 = getelementptr inbounds [32 x i8], ptr %8, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %19, i8 0, i64 32, i1 false)
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %20

20:                                               ; preds = %121, %1
  %21 = load i32, ptr %5, align 4, !tbaa !5
  %22 = icmp slt i32 %21, 6
  br i1 %22, label %23, label %124

23:                                               ; preds = %20
  %24 = load i32, ptr %5, align 4, !tbaa !5
  %25 = ashr i32 %24, 1
  store i32 %25, ptr %6, align 4, !tbaa !5
  %26 = load i32, ptr %5, align 4, !tbaa !5
  %27 = and i32 %26, 1
  store i32 %27, ptr %7, align 4, !tbaa !5
  %28 = load i32, ptr %3, align 4, !tbaa !5
  %29 = icmp ne i32 %28, 0
  br i1 %29, label %30, label %39

30:                                               ; preds = %23
  %31 = load i32, ptr %6, align 4, !tbaa !5
  %32 = mul nsw i32 %31, 64
  %33 = add nsw i32 128, %32
  %34 = load i32, ptr %7, align 4, !tbaa !5
  %35 = icmp eq i32 %34, 0
  %36 = zext i1 %35 to i64
  %37 = select i1 %35, ptr @.str.1, ptr @.str.2
  %38 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %33, ptr noundef %37)
  br label %39

39:                                               ; preds = %30, %23
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %40

40:                                               ; preds = %112, %39
  %41 = load i32, ptr %4, align 4, !tbaa !5
  %42 = icmp slt i32 %41, 2
  br i1 %42, label %43, label %115

43:                                               ; preds = %40
  %44 = getelementptr inbounds [32 x i8], ptr %8, i64 0, i64 0
  %45 = load i32, ptr %6, align 4, !tbaa !5
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [3 x [2 x [32 x i8]]], ptr @camellia_test_ecb_key, i64 0, i64 %46
  %48 = load i32, ptr %4, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [2 x [32 x i8]], ptr %47, i64 0, i64 %49
  %51 = getelementptr inbounds [32 x i8], ptr %50, i64 0, i64 0
  %52 = load i32, ptr %6, align 4, !tbaa !5
  %53 = mul nsw i32 8, %52
  %54 = add nsw i32 16, %53
  %55 = sext i32 %54 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %44, ptr align 16 %51, i64 %55, i1 false)
  %56 = load i32, ptr %7, align 4, !tbaa !5
  %57 = icmp eq i32 %56, 0
  br i1 %57, label %58, label %77

58:                                               ; preds = %43
  %59 = getelementptr inbounds [32 x i8], ptr %8, i64 0, i64 0
  %60 = load i32, ptr %6, align 4, !tbaa !5
  %61 = mul nsw i32 %60, 64
  %62 = add nsw i32 128, %61
  %63 = call i32 @mbedtls_camellia_setkey_dec(ptr noundef %17, ptr noundef %59, i32 noundef %62)
  %64 = getelementptr inbounds [16 x i8], ptr %10, i64 0, i64 0
  %65 = load i32, ptr %6, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [3 x [2 x [16 x i8]]], ptr @camellia_test_ecb_cipher, i64 0, i64 %66
  %68 = load i32, ptr %4, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [2 x [16 x i8]], ptr %67, i64 0, i64 %69
  %71 = getelementptr inbounds [16 x i8], ptr %70, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %64, ptr align 16 %71, i64 16, i1 false)
  %72 = getelementptr inbounds [16 x i8], ptr %11, i64 0, i64 0
  %73 = load i32, ptr %4, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [2 x [16 x i8]], ptr @camellia_test_ecb_plain, i64 0, i64 %74
  %76 = getelementptr inbounds [16 x i8], ptr %75, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %72, ptr align 16 %76, i64 16, i1 false)
  br label %96

77:                                               ; preds = %43
  %78 = getelementptr inbounds [32 x i8], ptr %8, i64 0, i64 0
  %79 = load i32, ptr %6, align 4, !tbaa !5
  %80 = mul nsw i32 %79, 64
  %81 = add nsw i32 128, %80
  %82 = call i32 @mbedtls_camellia_setkey_enc(ptr noundef %17, ptr noundef %78, i32 noundef %81)
  %83 = getelementptr inbounds [16 x i8], ptr %10, i64 0, i64 0
  %84 = load i32, ptr %4, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [2 x [16 x i8]], ptr @camellia_test_ecb_plain, i64 0, i64 %85
  %87 = getelementptr inbounds [16 x i8], ptr %86, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %83, ptr align 16 %87, i64 16, i1 false)
  %88 = getelementptr inbounds [16 x i8], ptr %11, i64 0, i64 0
  %89 = load i32, ptr %6, align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [3 x [2 x [16 x i8]]], ptr @camellia_test_ecb_cipher, i64 0, i64 %90
  %92 = load i32, ptr %4, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [2 x [16 x i8]], ptr %91, i64 0, i64 %93
  %95 = getelementptr inbounds [16 x i8], ptr %94, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %88, ptr align 16 %95, i64 16, i1 false)
  br label %96

96:                                               ; preds = %77, %58
  %97 = load i32, ptr %7, align 4, !tbaa !5
  %98 = getelementptr inbounds [16 x i8], ptr %10, i64 0, i64 0
  %99 = getelementptr inbounds [64 x i8], ptr %9, i64 0, i64 0
  %100 = call i32 @mbedtls_camellia_crypt_ecb(ptr noundef %17, i32 noundef %97, ptr noundef %98, ptr noundef %99)
  %101 = getelementptr inbounds [64 x i8], ptr %9, i64 0, i64 0
  %102 = getelementptr inbounds [16 x i8], ptr %11, i64 0, i64 0
  %103 = call i32 @memcmp(ptr noundef %101, ptr noundef %102, i64 noundef 16) #7
  %104 = icmp ne i32 %103, 0
  br i1 %104, label %105, label %111

105:                                              ; preds = %96
  %106 = load i32, ptr %3, align 4, !tbaa !5
  %107 = icmp ne i32 %106, 0
  br i1 %107, label %108, label %110

108:                                              ; preds = %105
  %109 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %110

110:                                              ; preds = %108, %105
  store i32 1, ptr %2, align 4
  store i32 1, ptr %18, align 4
  br label %361

111:                                              ; preds = %96
  br label %112

112:                                              ; preds = %111
  %113 = load i32, ptr %4, align 4, !tbaa !5
  %114 = add nsw i32 %113, 1
  store i32 %114, ptr %4, align 4, !tbaa !5
  br label %40, !llvm.loop !9

115:                                              ; preds = %40
  %116 = load i32, ptr %3, align 4, !tbaa !5
  %117 = icmp ne i32 %116, 0
  br i1 %117, label %118, label %120

118:                                              ; preds = %115
  %119 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  br label %120

120:                                              ; preds = %118, %115
  br label %121

121:                                              ; preds = %120
  %122 = load i32, ptr %5, align 4, !tbaa !5
  %123 = add nsw i32 %122, 1
  store i32 %123, ptr %5, align 4, !tbaa !5
  br label %20, !llvm.loop !11

124:                                              ; preds = %20
  %125 = load i32, ptr %3, align 4, !tbaa !5
  %126 = icmp ne i32 %125, 0
  br i1 %126, label %127, label %129

127:                                              ; preds = %124
  %128 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  br label %129

129:                                              ; preds = %127, %124
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %130

130:                                              ; preds = %240, %129
  %131 = load i32, ptr %5, align 4, !tbaa !5
  %132 = icmp slt i32 %131, 6
  br i1 %132, label %133, label %243

133:                                              ; preds = %130
  %134 = load i32, ptr %5, align 4, !tbaa !5
  %135 = ashr i32 %134, 1
  store i32 %135, ptr %6, align 4, !tbaa !5
  %136 = load i32, ptr %5, align 4, !tbaa !5
  %137 = and i32 %136, 1
  store i32 %137, ptr %7, align 4, !tbaa !5
  %138 = load i32, ptr %3, align 4, !tbaa !5
  %139 = icmp ne i32 %138, 0
  br i1 %139, label %140, label %149

140:                                              ; preds = %133
  %141 = load i32, ptr %6, align 4, !tbaa !5
  %142 = mul nsw i32 %141, 64
  %143 = add nsw i32 128, %142
  %144 = load i32, ptr %7, align 4, !tbaa !5
  %145 = icmp eq i32 %144, 0
  %146 = zext i1 %145 to i64
  %147 = select i1 %145, ptr @.str.1, ptr @.str.2
  %148 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %143, ptr noundef %147)
  br label %149

149:                                              ; preds = %140, %133
  %150 = getelementptr inbounds [16 x i8], ptr %10, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %150, ptr align 16 @camellia_test_cbc_iv, i64 16, i1 false)
  %151 = getelementptr inbounds [16 x i8], ptr %11, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %151, ptr align 16 @camellia_test_cbc_iv, i64 16, i1 false)
  %152 = getelementptr inbounds [32 x i8], ptr %8, i64 0, i64 0
  %153 = load i32, ptr %6, align 4, !tbaa !5
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds [3 x [32 x i8]], ptr @camellia_test_cbc_key, i64 0, i64 %154
  %156 = getelementptr inbounds [32 x i8], ptr %155, i64 0, i64 0
  %157 = load i32, ptr %6, align 4, !tbaa !5
  %158 = mul nsw i32 8, %157
  %159 = add nsw i32 16, %158
  %160 = sext i32 %159 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %152, ptr align 16 %156, i64 %160, i1 false)
  %161 = load i32, ptr %7, align 4, !tbaa !5
  %162 = icmp eq i32 %161, 0
  br i1 %162, label %163, label %169

163:                                              ; preds = %149
  %164 = getelementptr inbounds [32 x i8], ptr %8, i64 0, i64 0
  %165 = load i32, ptr %6, align 4, !tbaa !5
  %166 = mul nsw i32 %165, 64
  %167 = add nsw i32 128, %166
  %168 = call i32 @mbedtls_camellia_setkey_dec(ptr noundef %17, ptr noundef %164, i32 noundef %167)
  br label %175

169:                                              ; preds = %149
  %170 = getelementptr inbounds [32 x i8], ptr %8, i64 0, i64 0
  %171 = load i32, ptr %6, align 4, !tbaa !5
  %172 = mul nsw i32 %171, 64
  %173 = add nsw i32 128, %172
  %174 = call i32 @mbedtls_camellia_setkey_enc(ptr noundef %17, ptr noundef %170, i32 noundef %173)
  br label %175

175:                                              ; preds = %169, %163
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %176

176:                                              ; preds = %231, %175
  %177 = load i32, ptr %4, align 4, !tbaa !5
  %178 = icmp slt i32 %177, 3
  br i1 %178, label %179, label %234

179:                                              ; preds = %176
  %180 = load i32, ptr %7, align 4, !tbaa !5
  %181 = icmp eq i32 %180, 0
  br i1 %181, label %182, label %198

182:                                              ; preds = %179
  %183 = getelementptr inbounds [16 x i8], ptr %12, i64 0, i64 0
  %184 = getelementptr inbounds [16 x i8], ptr %10, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %183, ptr align 16 %184, i64 16, i1 false)
  %185 = getelementptr inbounds [16 x i8], ptr %10, i64 0, i64 0
  %186 = load i32, ptr %6, align 4, !tbaa !5
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds [3 x [3 x [16 x i8]]], ptr @camellia_test_cbc_cipher, i64 0, i64 %187
  %189 = load i32, ptr %4, align 4, !tbaa !5
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds [3 x [16 x i8]], ptr %188, i64 0, i64 %190
  %192 = getelementptr inbounds [16 x i8], ptr %191, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %185, ptr align 16 %192, i64 16, i1 false)
  %193 = getelementptr inbounds [16 x i8], ptr %11, i64 0, i64 0
  %194 = load i32, ptr %4, align 4, !tbaa !5
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds [3 x [16 x i8]], ptr @camellia_test_cbc_plain, i64 0, i64 %195
  %197 = getelementptr inbounds [16 x i8], ptr %196, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %193, ptr align 16 %197, i64 16, i1 false)
  br label %214

198:                                              ; preds = %179
  %199 = getelementptr inbounds [16 x i8], ptr %12, i64 0, i64 0
  %200 = getelementptr inbounds [16 x i8], ptr %11, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %199, ptr align 16 %200, i64 16, i1 false)
  %201 = getelementptr inbounds [16 x i8], ptr %10, i64 0, i64 0
  %202 = load i32, ptr %4, align 4, !tbaa !5
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds [3 x [16 x i8]], ptr @camellia_test_cbc_plain, i64 0, i64 %203
  %205 = getelementptr inbounds [16 x i8], ptr %204, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %201, ptr align 16 %205, i64 16, i1 false)
  %206 = getelementptr inbounds [16 x i8], ptr %11, i64 0, i64 0
  %207 = load i32, ptr %6, align 4, !tbaa !5
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds [3 x [3 x [16 x i8]]], ptr @camellia_test_cbc_cipher, i64 0, i64 %208
  %210 = load i32, ptr %4, align 4, !tbaa !5
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds [3 x [16 x i8]], ptr %209, i64 0, i64 %211
  %213 = getelementptr inbounds [16 x i8], ptr %212, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %206, ptr align 16 %213, i64 16, i1 false)
  br label %214

214:                                              ; preds = %198, %182
  %215 = load i32, ptr %7, align 4, !tbaa !5
  %216 = getelementptr inbounds [16 x i8], ptr %12, i64 0, i64 0
  %217 = getelementptr inbounds [16 x i8], ptr %10, i64 0, i64 0
  %218 = getelementptr inbounds [64 x i8], ptr %9, i64 0, i64 0
  %219 = call i32 @mbedtls_camellia_crypt_cbc(ptr noundef %17, i32 noundef %215, i64 noundef 16, ptr noundef %216, ptr noundef %217, ptr noundef %218)
  %220 = getelementptr inbounds [64 x i8], ptr %9, i64 0, i64 0
  %221 = getelementptr inbounds [16 x i8], ptr %11, i64 0, i64 0
  %222 = call i32 @memcmp(ptr noundef %220, ptr noundef %221, i64 noundef 16) #7
  %223 = icmp ne i32 %222, 0
  br i1 %223, label %224, label %230

224:                                              ; preds = %214
  %225 = load i32, ptr %3, align 4, !tbaa !5
  %226 = icmp ne i32 %225, 0
  br i1 %226, label %227, label %229

227:                                              ; preds = %224
  %228 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %229

229:                                              ; preds = %227, %224
  store i32 1, ptr %2, align 4
  store i32 1, ptr %18, align 4
  br label %361

230:                                              ; preds = %214
  br label %231

231:                                              ; preds = %230
  %232 = load i32, ptr %4, align 4, !tbaa !5
  %233 = add nsw i32 %232, 1
  store i32 %233, ptr %4, align 4, !tbaa !5
  br label %176, !llvm.loop !12

234:                                              ; preds = %176
  %235 = load i32, ptr %3, align 4, !tbaa !5
  %236 = icmp ne i32 %235, 0
  br i1 %236, label %237, label %239

237:                                              ; preds = %234
  %238 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  br label %239

239:                                              ; preds = %237, %234
  br label %240

240:                                              ; preds = %239
  %241 = load i32, ptr %5, align 4, !tbaa !5
  %242 = add nsw i32 %241, 1
  store i32 %242, ptr %5, align 4, !tbaa !5
  br label %130, !llvm.loop !13

243:                                              ; preds = %130
  %244 = load i32, ptr %3, align 4, !tbaa !5
  %245 = icmp ne i32 %244, 0
  br i1 %245, label %246, label %248

246:                                              ; preds = %243
  %247 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  br label %248

248:                                              ; preds = %246, %243
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %249

249:                                              ; preds = %352, %248
  %250 = load i32, ptr %4, align 4, !tbaa !5
  %251 = icmp slt i32 %250, 6
  br i1 %251, label %252, label %355

252:                                              ; preds = %249
  %253 = load i32, ptr %4, align 4, !tbaa !5
  %254 = ashr i32 %253, 1
  store i32 %254, ptr %6, align 4, !tbaa !5
  %255 = load i32, ptr %4, align 4, !tbaa !5
  %256 = and i32 %255, 1
  store i32 %256, ptr %7, align 4, !tbaa !5
  %257 = load i32, ptr %3, align 4, !tbaa !5
  %258 = icmp ne i32 %257, 0
  br i1 %258, label %259, label %265

259:                                              ; preds = %252
  %260 = load i32, ptr %7, align 4, !tbaa !5
  %261 = icmp eq i32 %260, 0
  %262 = zext i1 %261 to i64
  %263 = select i1 %261, ptr @.str.1, ptr @.str.2
  %264 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef %263)
  br label %265

265:                                              ; preds = %259, %252
  %266 = getelementptr inbounds [16 x i8], ptr %15, i64 0, i64 0
  %267 = load i32, ptr %6, align 4, !tbaa !5
  %268 = sext i32 %267 to i64
  %269 = getelementptr inbounds [3 x [16 x i8]], ptr @camellia_test_ctr_nonce_counter, i64 0, i64 %268
  %270 = getelementptr inbounds [16 x i8], ptr %269, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %266, ptr align 16 %270, i64 16, i1 false)
  %271 = getelementptr inbounds [32 x i8], ptr %8, i64 0, i64 0
  %272 = load i32, ptr %6, align 4, !tbaa !5
  %273 = sext i32 %272 to i64
  %274 = getelementptr inbounds [3 x [16 x i8]], ptr @camellia_test_ctr_key, i64 0, i64 %273
  %275 = getelementptr inbounds [16 x i8], ptr %274, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %271, ptr align 16 %275, i64 16, i1 false)
  store i64 0, ptr %13, align 8, !tbaa !14
  %276 = getelementptr inbounds [32 x i8], ptr %8, i64 0, i64 0
  %277 = call i32 @mbedtls_camellia_setkey_enc(ptr noundef %17, ptr noundef %276, i32 noundef 128)
  %278 = load i32, ptr %7, align 4, !tbaa !5
  %279 = icmp eq i32 %278, 0
  br i1 %279, label %280, label %313

280:                                              ; preds = %265
  %281 = load i32, ptr %6, align 4, !tbaa !5
  %282 = sext i32 %281 to i64
  %283 = getelementptr inbounds [3 x i32], ptr @camellia_test_ctr_len, i64 0, i64 %282
  %284 = load i32, ptr %283, align 4, !tbaa !5
  %285 = sext i32 %284 to i64
  store i64 %285, ptr %14, align 8, !tbaa !14
  %286 = getelementptr inbounds [64 x i8], ptr %9, i64 0, i64 0
  %287 = load i32, ptr %6, align 4, !tbaa !5
  %288 = sext i32 %287 to i64
  %289 = getelementptr inbounds [3 x [48 x i8]], ptr @camellia_test_ctr_ct, i64 0, i64 %288
  %290 = getelementptr inbounds [48 x i8], ptr %289, i64 0, i64 0
  %291 = load i64, ptr %14, align 8, !tbaa !14
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %286, ptr align 16 %290, i64 %291, i1 false)
  %292 = load i64, ptr %14, align 8, !tbaa !14
  %293 = getelementptr inbounds [16 x i8], ptr %15, i64 0, i64 0
  %294 = getelementptr inbounds [16 x i8], ptr %16, i64 0, i64 0
  %295 = getelementptr inbounds [64 x i8], ptr %9, i64 0, i64 0
  %296 = getelementptr inbounds [64 x i8], ptr %9, i64 0, i64 0
  %297 = call i32 @mbedtls_camellia_crypt_ctr(ptr noundef %17, i64 noundef %292, ptr noundef %13, ptr noundef %293, ptr noundef %294, ptr noundef %295, ptr noundef %296)
  %298 = getelementptr inbounds [64 x i8], ptr %9, i64 0, i64 0
  %299 = load i32, ptr %6, align 4, !tbaa !5
  %300 = sext i32 %299 to i64
  %301 = getelementptr inbounds [3 x [48 x i8]], ptr @camellia_test_ctr_pt, i64 0, i64 %300
  %302 = getelementptr inbounds [48 x i8], ptr %301, i64 0, i64 0
  %303 = load i64, ptr %14, align 8, !tbaa !14
  %304 = call i32 @memcmp(ptr noundef %298, ptr noundef %302, i64 noundef %303) #7
  %305 = icmp ne i32 %304, 0
  br i1 %305, label %306, label %312

306:                                              ; preds = %280
  %307 = load i32, ptr %3, align 4, !tbaa !5
  %308 = icmp ne i32 %307, 0
  br i1 %308, label %309, label %311

309:                                              ; preds = %306
  %310 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %311

311:                                              ; preds = %309, %306
  store i32 1, ptr %2, align 4
  store i32 1, ptr %18, align 4
  br label %361

312:                                              ; preds = %280
  br label %346

313:                                              ; preds = %265
  %314 = load i32, ptr %6, align 4, !tbaa !5
  %315 = sext i32 %314 to i64
  %316 = getelementptr inbounds [3 x i32], ptr @camellia_test_ctr_len, i64 0, i64 %315
  %317 = load i32, ptr %316, align 4, !tbaa !5
  %318 = sext i32 %317 to i64
  store i64 %318, ptr %14, align 8, !tbaa !14
  %319 = getelementptr inbounds [64 x i8], ptr %9, i64 0, i64 0
  %320 = load i32, ptr %6, align 4, !tbaa !5
  %321 = sext i32 %320 to i64
  %322 = getelementptr inbounds [3 x [48 x i8]], ptr @camellia_test_ctr_pt, i64 0, i64 %321
  %323 = getelementptr inbounds [48 x i8], ptr %322, i64 0, i64 0
  %324 = load i64, ptr %14, align 8, !tbaa !14
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %319, ptr align 16 %323, i64 %324, i1 false)
  %325 = load i64, ptr %14, align 8, !tbaa !14
  %326 = getelementptr inbounds [16 x i8], ptr %15, i64 0, i64 0
  %327 = getelementptr inbounds [16 x i8], ptr %16, i64 0, i64 0
  %328 = getelementptr inbounds [64 x i8], ptr %9, i64 0, i64 0
  %329 = getelementptr inbounds [64 x i8], ptr %9, i64 0, i64 0
  %330 = call i32 @mbedtls_camellia_crypt_ctr(ptr noundef %17, i64 noundef %325, ptr noundef %13, ptr noundef %326, ptr noundef %327, ptr noundef %328, ptr noundef %329)
  %331 = getelementptr inbounds [64 x i8], ptr %9, i64 0, i64 0
  %332 = load i32, ptr %6, align 4, !tbaa !5
  %333 = sext i32 %332 to i64
  %334 = getelementptr inbounds [3 x [48 x i8]], ptr @camellia_test_ctr_ct, i64 0, i64 %333
  %335 = getelementptr inbounds [48 x i8], ptr %334, i64 0, i64 0
  %336 = load i64, ptr %14, align 8, !tbaa !14
  %337 = call i32 @memcmp(ptr noundef %331, ptr noundef %335, i64 noundef %336) #7
  %338 = icmp ne i32 %337, 0
  br i1 %338, label %339, label %345

339:                                              ; preds = %313
  %340 = load i32, ptr %3, align 4, !tbaa !5
  %341 = icmp ne i32 %340, 0
  br i1 %341, label %342, label %344

342:                                              ; preds = %339
  %343 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %344

344:                                              ; preds = %342, %339
  store i32 1, ptr %2, align 4
  store i32 1, ptr %18, align 4
  br label %361

345:                                              ; preds = %313
  br label %346

346:                                              ; preds = %345, %312
  %347 = load i32, ptr %3, align 4, !tbaa !5
  %348 = icmp ne i32 %347, 0
  br i1 %348, label %349, label %351

349:                                              ; preds = %346
  %350 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  br label %351

351:                                              ; preds = %349, %346
  br label %352

352:                                              ; preds = %351
  %353 = load i32, ptr %4, align 4, !tbaa !5
  %354 = add nsw i32 %353, 1
  store i32 %354, ptr %4, align 4, !tbaa !5
  br label %249, !llvm.loop !16

355:                                              ; preds = %249
  %356 = load i32, ptr %3, align 4, !tbaa !5
  %357 = icmp ne i32 %356, 0
  br i1 %357, label %358, label %360

358:                                              ; preds = %355
  %359 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  br label %360

360:                                              ; preds = %358, %355
  store i32 0, ptr %2, align 4
  store i32 1, ptr %18, align 4
  br label %361

361:                                              ; preds = %360, %344, %311, %229, %110
  call void @llvm.lifetime.end.p0(i64 276, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  %362 = load i32, ptr %2, align 4
  ret i32 %362
}

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

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

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


; 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.mbedtls_camellia_context = type { i32, [68 x i32] }

@.str = external hidden unnamed_addr constant [26 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@camellia_test_ecb_cipher = external hidden local_unnamed_addr constant [3 x [2 x [16 x i8]]], align 16
@.str.3 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [26 x i8], align 1
@camellia_test_cbc_iv = external hidden local_unnamed_addr constant [16 x i8], align 16
@camellia_test_cbc_cipher = external hidden local_unnamed_addr constant [3 x [3 x [16 x i8]]], align 16
@camellia_test_cbc_plain = external hidden local_unnamed_addr constant [3 x [16 x i8]], align 16
@.str.7 = external hidden unnamed_addr constant [26 x i8], align 1
@camellia_test_ctr_nonce_counter = external hidden local_unnamed_addr constant [3 x [16 x i8]], align 16
@camellia_test_ctr_key = external hidden local_unnamed_addr constant [3 x [16 x i8]], align 16
@camellia_test_ctr_len = external hidden local_unnamed_addr constant [3 x i32], align 4
@camellia_test_ecb_key = external hidden local_unnamed_addr constant <{ <{ <{ [16 x i8], [16 x i8] }>, [32 x i8] }>, <{ <{ [24 x i8], [8 x i8] }>, [32 x i8] }>, [2 x [32 x i8]] }>, align 16
@camellia_test_ecb_plain = external hidden local_unnamed_addr constant <{ [16 x i8], <{ i8, i8, i8, i8, i8, [11 x i8] }> }>, align 16
@camellia_test_cbc_key = external hidden local_unnamed_addr constant <{ <{ [16 x i8], [16 x i8] }>, <{ [24 x i8], [8 x i8] }>, [32 x i8] }>, align 16
@camellia_test_ctr_ct = external hidden constant <{ <{ [16 x i8], [32 x i8] }>, <{ [32 x i8], [16 x i8] }>, <{ [36 x i8], [12 x i8] }> }>, align 16
@camellia_test_ctr_pt = external hidden constant <{ <{ [16 x i8], [32 x i8] }>, <{ [32 x i8], [16 x i8] }>, <{ [36 x i8], [12 x i8] }> }>, align 16

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @mbedtls_camellia_setkey_enc(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @mbedtls_camellia_setkey_dec(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @mbedtls_camellia_crypt_ecb(ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @mbedtls_camellia_crypt_cbc(ptr noundef, i32 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #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) #3

; Function Attrs: nounwind uwtable
declare dso_local i32 @mbedtls_camellia_crypt_ctr(ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @mbedtls_camellia_self_test(i32 noundef %0) local_unnamed_addr #1 {
  %2 = alloca [32 x i8], align 16
  %3 = alloca [64 x i8], align 16
  %4 = alloca [16 x i8], align 16
  %5 = alloca [16 x i8], align 16
  %6 = alloca [16 x i8], align 16
  %7 = alloca i64, align 8
  %8 = alloca [16 x i8], align 16
  %9 = alloca [16 x i8], align 16
  %10 = alloca %struct.mbedtls_camellia_context, align 4
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 276, ptr nonnull %10) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %2, i8 0, i64 32, i1 false)
  %.not84 = icmp eq i32 %0, 0
  br label %.backedge127

.backedge127:                                     ; preds = %.backedge127.backedge, %1
  %.092 = phi i32 [ 0, %1 ], [ %.092.be, %.backedge127.backedge ]
  %11 = lshr i32 %.092, 1
  %12 = and i32 %.092, 1
  %.pre = shl nuw nsw i32 %11, 6
  %.pre113 = add nuw nsw i32 %.pre, 128
  br i1 %.not84, label %._crit_edge, label %13

13:                                               ; preds = %.backedge127
  %14 = icmp eq i32 %12, 0
  %15 = select i1 %14, ptr @.str.1, ptr @.str.2
  %16 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %.pre113, ptr noundef nonnull %15)
  br label %._crit_edge

._crit_edge:                                      ; preds = %.backedge127, %13
  %17 = zext nneg i32 %11 to i64
  %18 = shl nuw nsw i32 %11, 3
  %19 = add nuw nsw i32 %18, 16
  %20 = zext nneg i32 %19 to i64
  %21 = icmp eq i32 %12, 0
  %22 = getelementptr inbounds [3 x [2 x [32 x i8]]], ptr @camellia_test_ecb_key, i64 0, i64 %17, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(1) %2, ptr noundef nonnull align 16 dereferenceable(1) %22, i64 %20, i1 false)
  br i1 %21, label %.split.us.preheader, label %.split.preheader

.split.preheader:                                 ; preds = %._crit_edge
  %23 = call i32 @mbedtls_camellia_setkey_enc(ptr noundef nonnull %10, ptr noundef nonnull %2, i32 noundef %.pre113)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %4, ptr noundef nonnull align 16 dereferenceable(16) @camellia_test_ecb_plain, i64 16, i1 false)
  %24 = getelementptr inbounds [3 x [2 x [16 x i8]]], ptr @camellia_test_ecb_cipher, i64 0, i64 %17, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %5, ptr noundef nonnull align 16 dereferenceable(16) %24, i64 16, i1 false)
  %25 = call i32 @mbedtls_camellia_crypt_ecb(ptr noundef nonnull %10, i32 noundef %12, ptr noundef nonnull %4, ptr noundef nonnull %3)
  %bcmp85 = call i32 @bcmp(ptr noundef nonnull dereferenceable(16) %3, ptr noundef nonnull dereferenceable(16) %5, i64 16)
  %.not86 = icmp eq i32 %bcmp85, 0
  br i1 %.not86, label %.split.1, label %.split91.us

.split.us.preheader:                              ; preds = %._crit_edge
  %26 = call i32 @mbedtls_camellia_setkey_dec(ptr noundef nonnull %10, ptr noundef nonnull %2, i32 noundef %.pre113)
  %27 = getelementptr inbounds [3 x [2 x [16 x i8]]], ptr @camellia_test_ecb_cipher, i64 0, i64 %17, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %4, ptr noundef nonnull align 16 dereferenceable(16) %27, i64 16, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %5, ptr noundef nonnull align 16 dereferenceable(16) @camellia_test_ecb_plain, i64 16, i1 false)
  %28 = call i32 @mbedtls_camellia_crypt_ecb(ptr noundef nonnull %10, i32 noundef 0, ptr noundef nonnull %4, ptr noundef nonnull %3)
  %bcmp85.us = call i32 @bcmp(ptr noundef nonnull dereferenceable(16) %3, ptr noundef nonnull dereferenceable(16) %5, i64 16)
  %.not86.us = icmp eq i32 %bcmp85.us, 0
  br i1 %.not86.us, label %.split.us.1, label %.split91.us

.split.us.1:                                      ; preds = %.split.us.preheader
  %29 = getelementptr inbounds [3 x [2 x [32 x i8]]], ptr @camellia_test_ecb_key, i64 0, i64 %17, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(1) %2, ptr noundef nonnull align 16 dereferenceable(1) %29, i64 %20, i1 false)
  %30 = call i32 @mbedtls_camellia_setkey_dec(ptr noundef nonnull %10, ptr noundef nonnull %2, i32 noundef %.pre113)
  %31 = getelementptr inbounds [3 x [2 x [16 x i8]]], ptr @camellia_test_ecb_cipher, i64 0, i64 %17, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %4, ptr noundef nonnull align 16 dereferenceable(16) %31, i64 16, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %5, ptr noundef nonnull align 16 dereferenceable(16) getelementptr inbounds (i8, ptr @camellia_test_ecb_plain, i64 16), i64 16, i1 false)
  %32 = call i32 @mbedtls_camellia_crypt_ecb(ptr noundef nonnull %10, i32 noundef 0, ptr noundef nonnull %4, ptr noundef nonnull %3)
  %bcmp85.us.1 = call i32 @bcmp(ptr noundef nonnull dereferenceable(16) %3, ptr noundef nonnull dereferenceable(16) %5, i64 16)
  %.not86.us.1 = icmp eq i32 %bcmp85.us.1, 0
  br i1 %.not86.us.1, label %.split89.us, label %.split91.us

.split.1:                                         ; preds = %.split.preheader
  %33 = getelementptr inbounds [3 x [2 x [32 x i8]]], ptr @camellia_test_ecb_key, i64 0, i64 %17, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(1) %2, ptr noundef nonnull align 16 dereferenceable(1) %33, i64 %20, i1 false)
  %34 = call i32 @mbedtls_camellia_setkey_enc(ptr noundef nonnull %10, ptr noundef nonnull %2, i32 noundef %.pre113)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %4, ptr noundef nonnull align 16 dereferenceable(16) getelementptr inbounds (i8, ptr @camellia_test_ecb_plain, i64 16), i64 16, i1 false)
  %35 = getelementptr inbounds [3 x [2 x [16 x i8]]], ptr @camellia_test_ecb_cipher, i64 0, i64 %17, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %5, ptr noundef nonnull align 16 dereferenceable(16) %35, i64 16, i1 false)
  %36 = call i32 @mbedtls_camellia_crypt_ecb(ptr noundef nonnull %10, i32 noundef %12, ptr noundef nonnull %4, ptr noundef nonnull %3)
  %bcmp85.1 = call i32 @bcmp(ptr noundef nonnull dereferenceable(16) %3, ptr noundef nonnull dereferenceable(16) %5, i64 16)
  %.not86.1 = icmp eq i32 %bcmp85.1, 0
  br i1 %.not86.1, label %.split89.us, label %.split91.us

.split91.us:                                      ; preds = %.split.preheader, %.split.1, %.split.us.preheader, %.split.us.1
  br i1 %.not84, label %.loopexit, label %.loopexit.sink.split

.split89.us:                                      ; preds = %.split.1, %.split.us.1
  br i1 %.not84, label %37, label %.thread

37:                                               ; preds = %.split89.us
  %38 = add nuw nsw i32 %.092, 1
  %exitcond.not = icmp eq i32 %38, 6
  br i1 %exitcond.not, label %.loopexit126.preheader, label %.backedge127.backedge

.backedge127.backedge:                            ; preds = %37, %.thread
  %.092.be = phi i32 [ %38, %37 ], [ %40, %.thread ]
  br label %.backedge127, !llvm.loop !5

.thread:                                          ; preds = %.split89.us
  %39 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  %40 = add nuw nsw i32 %.092, 1
  %exitcond.not115 = icmp eq i32 %40, 6
  br i1 %exitcond.not115, label %41, label %.backedge127.backedge

41:                                               ; preds = %.thread
  %42 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  br label %.loopexit126.preheader

.loopexit126.preheader:                           ; preds = %37, %41
  br label %.loopexit126

.loopexit126:                                     ; preds = %.loopexit126.backedge, %.loopexit126.preheader
  %.199 = phi i32 [ 0, %.loopexit126.preheader ], [ %.199.be, %.loopexit126.backedge ]
  %43 = lshr i32 %.199, 1
  %44 = and i32 %.199, 1
  br i1 %.not84, label %51, label %45

45:                                               ; preds = %.loopexit126
  %46 = shl nuw nsw i32 %43, 6
  %47 = add nuw nsw i32 %46, 128
  %48 = icmp eq i32 %44, 0
  %49 = select i1 %48, ptr @.str.1, ptr @.str.2
  %50 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef %47, ptr noundef nonnull %49)
  br label %51

51:                                               ; preds = %45, %.loopexit126
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %4, ptr noundef nonnull align 16 dereferenceable(16) @camellia_test_cbc_iv, i64 16, i1 false)
  %52 = zext nneg i32 %43 to i64
  %53 = getelementptr inbounds [3 x [32 x i8]], ptr @camellia_test_cbc_key, i64 0, i64 %52
  %54 = shl nuw nsw i32 %43, 3
  %55 = add nuw nsw i32 %54, 16
  %56 = zext nneg i32 %55 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(1) %2, ptr noundef nonnull align 16 dereferenceable(1) %53, i64 %56, i1 false)
  %57 = icmp eq i32 %44, 0
  %58 = shl nuw nsw i32 %43, 6
  %59 = add nuw nsw i32 %58, 128
  br i1 %57, label %.split94.us.preheader, label %.split94.preheader

.split94.preheader:                               ; preds = %51
  %60 = call i32 @mbedtls_camellia_setkey_enc(ptr noundef nonnull %10, ptr noundef nonnull %2, i32 noundef %59)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %6, ptr noundef nonnull align 16 dereferenceable(16) @camellia_test_cbc_iv, i64 16, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %4, ptr noundef nonnull align 16 dereferenceable(16) @camellia_test_cbc_plain, i64 16, i1 false)
  %61 = getelementptr inbounds [3 x [3 x [16 x i8]]], ptr @camellia_test_cbc_cipher, i64 0, i64 %52, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %5, ptr noundef nonnull align 16 dereferenceable(16) %61, i64 16, i1 false)
  %62 = call i32 @mbedtls_camellia_crypt_cbc(ptr noundef nonnull %10, i32 noundef %44, i64 noundef 16, ptr noundef nonnull %6, ptr noundef nonnull %4, ptr noundef nonnull %3)
  %bcmp82 = call i32 @bcmp(ptr noundef nonnull dereferenceable(16) %3, ptr noundef nonnull dereferenceable(16) %5, i64 16)
  %.not83 = icmp eq i32 %bcmp82, 0
  br i1 %.not83, label %.split94.1, label %.split98.us

.split94.us.preheader:                            ; preds = %51
  %63 = call i32 @mbedtls_camellia_setkey_dec(ptr noundef nonnull %10, ptr noundef nonnull %2, i32 noundef %59)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %6, ptr noundef nonnull align 16 dereferenceable(16) %4, i64 16, i1 false)
  %64 = getelementptr inbounds [3 x [3 x [16 x i8]]], ptr @camellia_test_cbc_cipher, i64 0, i64 %52, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %4, ptr noundef nonnull align 16 dereferenceable(16) %64, i64 16, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %5, ptr noundef nonnull align 16 dereferenceable(16) @camellia_test_cbc_plain, i64 16, i1 false)
  %65 = call i32 @mbedtls_camellia_crypt_cbc(ptr noundef nonnull %10, i32 noundef 0, i64 noundef 16, ptr noundef nonnull %6, ptr noundef nonnull %4, ptr noundef nonnull %3)
  %bcmp82.us = call i32 @bcmp(ptr noundef nonnull dereferenceable(16) %3, ptr noundef nonnull dereferenceable(16) %5, i64 16)
  %.not83.us = icmp eq i32 %bcmp82.us, 0
  br i1 %.not83.us, label %.split94.us.1, label %.split98.us

.split94.us.1:                                    ; preds = %.split94.us.preheader
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %6, ptr noundef nonnull align 16 dereferenceable(16) %4, i64 16, i1 false)
  %66 = getelementptr inbounds [3 x [3 x [16 x i8]]], ptr @camellia_test_cbc_cipher, i64 0, i64 %52, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %4, ptr noundef nonnull align 16 dereferenceable(16) %66, i64 16, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %5, ptr noundef nonnull align 16 dereferenceable(16) getelementptr inbounds (i8, ptr @camellia_test_cbc_plain, i64 16), i64 16, i1 false)
  %67 = call i32 @mbedtls_camellia_crypt_cbc(ptr noundef nonnull %10, i32 noundef 0, i64 noundef 16, ptr noundef nonnull %6, ptr noundef nonnull %4, ptr noundef nonnull %3)
  %bcmp82.us.1 = call i32 @bcmp(ptr noundef nonnull dereferenceable(16) %3, ptr noundef nonnull dereferenceable(16) %5, i64 16)
  %.not83.us.1 = icmp eq i32 %bcmp82.us.1, 0
  br i1 %.not83.us.1, label %.split94.us.2, label %.split98.us

.split94.us.2:                                    ; preds = %.split94.us.1
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %6, ptr noundef nonnull align 16 dereferenceable(16) %4, i64 16, i1 false)
  %68 = getelementptr inbounds [3 x [3 x [16 x i8]]], ptr @camellia_test_cbc_cipher, i64 0, i64 %52, i64 2
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %4, ptr noundef nonnull align 16 dereferenceable(16) %68, i64 16, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %5, ptr noundef nonnull align 16 dereferenceable(16) getelementptr inbounds (i8, ptr @camellia_test_cbc_plain, i64 32), i64 16, i1 false)
  %69 = call i32 @mbedtls_camellia_crypt_cbc(ptr noundef nonnull %10, i32 noundef 0, i64 noundef 16, ptr noundef nonnull %6, ptr noundef nonnull %4, ptr noundef nonnull %3)
  %bcmp82.us.2 = call i32 @bcmp(ptr noundef nonnull dereferenceable(16) %3, ptr noundef nonnull dereferenceable(16) %5, i64 16)
  %.not83.us.2 = icmp eq i32 %bcmp82.us.2, 0
  br i1 %.not83.us.2, label %.split96.us, label %.split98.us

.split94.1:                                       ; preds = %.split94.preheader
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %6, ptr noundef nonnull align 16 dereferenceable(16) %61, i64 16, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %4, ptr noundef nonnull align 16 dereferenceable(16) getelementptr inbounds (i8, ptr @camellia_test_cbc_plain, i64 16), i64 16, i1 false)
  %70 = getelementptr inbounds [3 x [3 x [16 x i8]]], ptr @camellia_test_cbc_cipher, i64 0, i64 %52, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %5, ptr noundef nonnull align 16 dereferenceable(16) %70, i64 16, i1 false)
  %71 = call i32 @mbedtls_camellia_crypt_cbc(ptr noundef nonnull %10, i32 noundef %44, i64 noundef 16, ptr noundef nonnull %6, ptr noundef nonnull %4, ptr noundef nonnull %3)
  %bcmp82.1 = call i32 @bcmp(ptr noundef nonnull dereferenceable(16) %3, ptr noundef nonnull dereferenceable(16) %5, i64 16)
  %.not83.1 = icmp eq i32 %bcmp82.1, 0
  br i1 %.not83.1, label %.split94.2, label %.split98.us

.split94.2:                                       ; preds = %.split94.1
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %6, ptr noundef nonnull align 16 dereferenceable(16) %70, i64 16, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %4, ptr noundef nonnull align 16 dereferenceable(16) getelementptr inbounds (i8, ptr @camellia_test_cbc_plain, i64 32), i64 16, i1 false)
  %72 = getelementptr inbounds [3 x [3 x [16 x i8]]], ptr @camellia_test_cbc_cipher, i64 0, i64 %52, i64 2
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %5, ptr noundef nonnull align 16 dereferenceable(16) %72, i64 16, i1 false)
  %73 = call i32 @mbedtls_camellia_crypt_cbc(ptr noundef nonnull %10, i32 noundef %44, i64 noundef 16, ptr noundef nonnull %6, ptr noundef nonnull %4, ptr noundef nonnull %3)
  %bcmp82.2 = call i32 @bcmp(ptr noundef nonnull dereferenceable(16) %3, ptr noundef nonnull dereferenceable(16) %5, i64 16)
  %.not83.2 = icmp eq i32 %bcmp82.2, 0
  br i1 %.not83.2, label %.split96.us, label %.split98.us

.split98.us:                                      ; preds = %.split94.preheader, %.split94.1, %.split94.2, %.split94.us.preheader, %.split94.us.1, %.split94.us.2
  br i1 %.not84, label %.loopexit, label %.loopexit.sink.split

.split96.us:                                      ; preds = %.split94.2, %.split94.us.2
  br i1 %.not84, label %74, label %.thread118

74:                                               ; preds = %.split96.us
  %75 = add nuw nsw i32 %.199, 1
  %exitcond111.not = icmp eq i32 %75, 6
  br i1 %exitcond111.not, label %.loopexit124.preheader, label %.loopexit126.backedge

.loopexit126.backedge:                            ; preds = %74, %.thread118
  %.199.be = phi i32 [ %75, %74 ], [ %77, %.thread118 ]
  br label %.loopexit126, !llvm.loop !7

.thread118:                                       ; preds = %.split96.us
  %76 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  %77 = add nuw nsw i32 %.199, 1
  %exitcond111.not119 = icmp eq i32 %77, 6
  br i1 %exitcond111.not119, label %78, label %.loopexit126.backedge

78:                                               ; preds = %.thread118
  %79 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  br label %.loopexit124.preheader

.loopexit124.preheader:                           ; preds = %74, %78
  br label %.loopexit124

.loopexit124:                                     ; preds = %.loopexit124.backedge, %.loopexit124.preheader
  %.2100 = phi i32 [ 0, %.loopexit124.preheader ], [ %.2100.be, %.loopexit124.backedge ]
  %80 = lshr i32 %.2100, 1
  %81 = and i32 %.2100, 1
  br i1 %.not84, label %86, label %82

82:                                               ; preds = %.loopexit124
  %83 = icmp eq i32 %81, 0
  %84 = select i1 %83, ptr @.str.1, ptr @.str.2
  %85 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, ptr noundef nonnull %84)
  br label %86

86:                                               ; preds = %82, %.loopexit124
  %87 = zext nneg i32 %80 to i64
  %88 = getelementptr inbounds [3 x [16 x i8]], ptr @camellia_test_ctr_nonce_counter, i64 0, i64 %87
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %8, ptr noundef nonnull align 16 dereferenceable(16) %88, i64 16, i1 false)
  %89 = getelementptr inbounds [3 x [16 x i8]], ptr @camellia_test_ctr_key, i64 0, i64 %87
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %2, ptr noundef nonnull align 16 dereferenceable(16) %89, i64 16, i1 false)
  store i64 0, ptr %7, align 8, !tbaa !8
  %90 = call i32 @mbedtls_camellia_setkey_enc(ptr noundef nonnull %10, ptr noundef nonnull %2, i32 noundef 128)
  %91 = icmp eq i32 %81, 0
  %92 = getelementptr inbounds [3 x i32], ptr @camellia_test_ctr_len, i64 0, i64 %87
  %93 = load i32, ptr %92, align 4, !tbaa !12
  %94 = sext i32 %93 to i64
  br i1 %91, label %95, label %100

95:                                               ; preds = %86
  %96 = getelementptr inbounds [3 x [48 x i8]], ptr @camellia_test_ctr_ct, i64 0, i64 %87
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 16 %3, ptr nonnull align 16 %96, i64 %94, i1 false)
  %97 = call i32 @mbedtls_camellia_crypt_ctr(ptr noundef nonnull %10, i64 noundef %94, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef nonnull %3, ptr noundef nonnull %3)
  %98 = getelementptr inbounds [3 x [48 x i8]], ptr @camellia_test_ctr_pt, i64 0, i64 %87
  %bcmp80 = call i32 @bcmp(ptr nonnull %3, ptr nonnull %98, i64 %94)
  %.not81 = icmp eq i32 %bcmp80, 0
  br i1 %.not81, label %105, label %99

99:                                               ; preds = %95
  br i1 %.not84, label %.loopexit, label %.loopexit.sink.split

100:                                              ; preds = %86
  %101 = getelementptr inbounds [3 x [48 x i8]], ptr @camellia_test_ctr_pt, i64 0, i64 %87
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 16 %3, ptr nonnull align 16 %101, i64 %94, i1 false)
  %102 = call i32 @mbedtls_camellia_crypt_ctr(ptr noundef nonnull %10, i64 noundef %94, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef nonnull %3, ptr noundef nonnull %3)
  %103 = getelementptr inbounds [3 x [48 x i8]], ptr @camellia_test_ctr_ct, i64 0, i64 %87
  %bcmp = call i32 @bcmp(ptr nonnull %3, ptr nonnull %103, i64 %94)
  %.not79 = icmp eq i32 %bcmp, 0
  br i1 %.not79, label %105, label %104

104:                                              ; preds = %100
  br i1 %.not84, label %.loopexit, label %.loopexit.sink.split

105:                                              ; preds = %100, %95
  br i1 %.not84, label %106, label %.thread121

106:                                              ; preds = %105
  %107 = add nuw nsw i32 %.2100, 1
  %exitcond112.not = icmp eq i32 %107, 6
  br i1 %exitcond112.not, label %.loopexit, label %.loopexit124.backedge

.loopexit124.backedge:                            ; preds = %106, %.thread121
  %.2100.be = phi i32 [ %107, %106 ], [ %109, %.thread121 ]
  br label %.loopexit124, !llvm.loop !14

.thread121:                                       ; preds = %105
  %108 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  %109 = add nuw nsw i32 %.2100, 1
  %exitcond112.not122 = icmp eq i32 %109, 6
  br i1 %exitcond112.not122, label %.loopexit.sink.split, label %.loopexit124.backedge

.loopexit.sink.split:                             ; preds = %.thread121, %104, %99, %.split98.us, %.split91.us
  %.str.5.sink = phi ptr [ @.str.3, %.split91.us ], [ @.str.3, %.split98.us ], [ @.str.3, %99 ], [ @.str.3, %104 ], [ @.str.5, %.thread121 ]
  %.078.ph = phi i32 [ 1, %.split91.us ], [ 1, %.split98.us ], [ 1, %99 ], [ 1, %104 ], [ 0, %.thread121 ]
  %110 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.5.sink)
  br label %.loopexit

.loopexit:                                        ; preds = %106, %.loopexit.sink.split, %104, %99, %.split98.us, %.split91.us
  %.078 = phi i32 [ 1, %.split91.us ], [ 1, %.split98.us ], [ 1, %99 ], [ 1, %104 ], [ %.078.ph, %.loopexit.sink.split ], [ 0, %106 ]
  call void @llvm.lifetime.end.p0(i64 276, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #6
  ret i32 %.078
}

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

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

attributes #0 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #1 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nofree nounwind willreturn memory(argmem: read) }
attributes #6 = { 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}
!8 = !{!9, !9, i64 0}
!9 = !{!"long", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !10, i64 0}
!14 = distinct !{!14, !6}


; Effective O3 passes: BDCEPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,ReassociatePass,SROAPass,SimplifyCFGPass