; LLVM IR from tleonhardt/practical_cryptography_engineering :: mbedtls (ssl_tls)

; 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_ssl_context = type { ptr, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i64, i64, i16, i64, i64, i64, i64, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, i32, i64, i64, i8, i32, ptr, ptr, ptr, i64, i32, i64, [12 x i8], [12 x i8] }
%struct.mbedtls_ssl_transform = type { ptr, i32, i64, i64, i64, i64, [16 x i8], [16 x i8], %struct.mbedtls_md_context_t, %struct.mbedtls_md_context_t, %struct.mbedtls_cipher_context_t, %struct.mbedtls_cipher_context_t }
%struct.mbedtls_md_context_t = type { ptr, ptr, ptr }
%struct.mbedtls_cipher_context_t = type { ptr, i32, i32, ptr, ptr, [16 x i8], i64, [16 x i8], i64, ptr }
%struct.mbedtls_ssl_handshake_params = type { %struct.mbedtls_ssl_sig_hash_set_t, %struct.mbedtls_dhm_context, %struct.mbedtls_ecdh_context, ptr, ptr, i64, ptr, i32, ptr, ptr, ptr, i32, i32, ptr, i8, ptr, i32, i8, ptr, ptr, i32, ptr, [8 x i8], %struct.mbedtls_md5_context, %struct.mbedtls_sha1_context, %struct.mbedtls_sha256_context, %struct.mbedtls_sha512_context, ptr, ptr, ptr, ptr, i64, [64 x i8], [1060 x i8], i32, i32, i32, i32, i32, i32 }
%struct.mbedtls_ssl_sig_hash_set_t = type { i32, i32 }
%struct.mbedtls_dhm_context = type { i64, %struct.mbedtls_mpi, %struct.mbedtls_mpi, %struct.mbedtls_mpi, %struct.mbedtls_mpi, %struct.mbedtls_mpi, %struct.mbedtls_mpi, %struct.mbedtls_mpi, %struct.mbedtls_mpi, %struct.mbedtls_mpi, %struct.mbedtls_mpi }
%struct.mbedtls_mpi = type { i32, i64, ptr }
%struct.mbedtls_ecdh_context = type { %struct.mbedtls_ecp_group, %struct.mbedtls_mpi, %struct.mbedtls_ecp_point, %struct.mbedtls_ecp_point, %struct.mbedtls_mpi, i32, %struct.mbedtls_ecp_point, %struct.mbedtls_ecp_point, %struct.mbedtls_mpi }
%struct.mbedtls_ecp_group = type { i32, %struct.mbedtls_mpi, %struct.mbedtls_mpi, %struct.mbedtls_mpi, %struct.mbedtls_ecp_point, %struct.mbedtls_mpi, i64, i64, i32, ptr, ptr, ptr, ptr, ptr, i64 }
%struct.mbedtls_ecp_point = type { %struct.mbedtls_mpi, %struct.mbedtls_mpi, %struct.mbedtls_mpi }
%struct.mbedtls_md5_context = type { [2 x i32], [4 x i32], [64 x i8] }
%struct.mbedtls_sha1_context = type { [2 x i32], [5 x i32], [64 x i8] }
%struct.mbedtls_sha256_context = type { [2 x i32], [8 x i32], [64 x i8], i32 }
%struct.mbedtls_sha512_context = type { [2 x i64], [8 x i64], [128 x i8], i32 }
%struct.mbedtls_ssl_config = type { [4 x ptr], ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, %struct.mbedtls_mpi, %struct.mbedtls_mpi, ptr, i64, ptr, i64, ptr, i32, i32, i32, i32, [8 x i8], i32, i32, i8, i8, i8, i8, i32 }

@.str = external hidden unnamed_addr constant [97 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.110 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.116 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.117 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.118 = external hidden unnamed_addr constant [18 x i8], align 1

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

declare void @mbedtls_debug_print_msg(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ...) #1

declare void @mbedtls_debug_print_ret(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @mbedtls_ssl_write_record(ptr noundef) #4

; Function Attrs: nounwind uwtable
declare dso_local void @mbedtls_ssl_send_flight_completed(ptr noundef) #4

; Function Attrs: nounwind uwtable
define dso_local i32 @mbedtls_ssl_write_finished(ptr noundef %0) #4 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i8, align 1
  %7 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  %8 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, i32, ptr, ...) @mbedtls_debug_print_msg(ptr noundef %8, i32 noundef 2, ptr noundef @.str, i32 noundef 5233, ptr noundef @.str.116)
  %9 = load ptr, ptr %3, align 8, !tbaa !5
  %10 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %9, i32 0, i32 5
  %11 = load i32, ptr %10, align 8, !tbaa !9
  %12 = icmp sge i32 %11, 2
  br i1 %12, label %13, label %32

13:                                               ; preds = %1
  %14 = load ptr, ptr %3, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %14, i32 0, i32 44
  %16 = load ptr, ptr %15, align 8, !tbaa !14
  %17 = load ptr, ptr %3, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %17, i32 0, i32 19
  %19 = load ptr, ptr %18, align 8, !tbaa !15
  %20 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %19, i32 0, i32 3
  %21 = load i64, ptr %20, align 8, !tbaa !16
  %22 = getelementptr inbounds i8, ptr %16, i64 %21
  %23 = load ptr, ptr %3, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %23, i32 0, i32 19
  %25 = load ptr, ptr %24, align 8, !tbaa !15
  %26 = getelementptr inbounds %struct.mbedtls_ssl_transform, ptr %25, i32 0, i32 4
  %27 = load i64, ptr %26, align 8, !tbaa !20
  %28 = sub i64 0, %27
  %29 = getelementptr inbounds i8, ptr %22, i64 %28
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %30, i32 0, i32 45
  store ptr %29, ptr %31, align 8, !tbaa !21
  br label %38

32:                                               ; preds = %1
  %33 = load ptr, ptr %3, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %33, i32 0, i32 44
  %35 = load ptr, ptr %34, align 8, !tbaa !14
  %36 = load ptr, ptr %3, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %36, i32 0, i32 45
  store ptr %35, ptr %37, align 8, !tbaa !21
  br label %38

38:                                               ; preds = %32, %13
  %39 = load ptr, ptr %3, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %39, i32 0, i32 15
  %41 = load ptr, ptr %40, align 8, !tbaa !22
  %42 = getelementptr inbounds %struct.mbedtls_ssl_handshake_params, ptr %41, i32 0, i32 29
  %43 = load ptr, ptr %42, align 8, !tbaa !23
  %44 = load ptr, ptr %3, align 8, !tbaa !5
  %45 = load ptr, ptr %3, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %45, i32 0, i32 45
  %47 = load ptr, ptr %46, align 8, !tbaa !21
  %48 = getelementptr inbounds i8, ptr %47, i64 4
  %49 = load ptr, ptr %3, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %49, i32 0, i32 0
  %51 = load ptr, ptr %50, align 8, !tbaa !35
  %52 = getelementptr inbounds %struct.mbedtls_ssl_config, ptr %51, i32 0, i32 46
  %53 = load i32, ptr %52, align 4
  %54 = and i32 %53, 1
  call void %43(ptr noundef %44, ptr noundef %48, i32 noundef %54)
  %55 = load ptr, ptr %3, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %55, i32 0, i32 5
  %57 = load i32, ptr %56, align 8, !tbaa !9
  %58 = icmp eq i32 %57, 0
  %59 = zext i1 %58 to i64
  %60 = select i1 %58, i32 36, i32 12
  store i32 %60, ptr %5, align 4, !tbaa !36
  %61 = load i32, ptr %5, align 4, !tbaa !36
  %62 = sext i32 %61 to i64
  %63 = load ptr, ptr %3, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %63, i32 0, i32 56
  store i64 %62, ptr %64, align 8, !tbaa !37
  %65 = load ptr, ptr %3, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %65, i32 0, i32 57
  %67 = getelementptr inbounds [12 x i8], ptr %66, i64 0, i64 0
  %68 = load ptr, ptr %3, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %68, i32 0, i32 45
  %70 = load ptr, ptr %69, align 8, !tbaa !21
  %71 = getelementptr inbounds i8, ptr %70, i64 4
  %72 = load i32, ptr %5, align 4, !tbaa !36
  %73 = sext i32 %72 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %67, ptr align 1 %71, i64 %73, i1 false)
  %74 = load i32, ptr %5, align 4, !tbaa !36
  %75 = add nsw i32 4, %74
  %76 = sext i32 %75 to i64
  %77 = load ptr, ptr %3, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %77, i32 0, i32 47
  store i64 %76, ptr %78, align 8, !tbaa !38
  %79 = load ptr, ptr %3, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %79, i32 0, i32 46
  store i32 22, ptr %80, align 8, !tbaa !39
  %81 = load ptr, ptr %3, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %81, i32 0, i32 45
  %83 = load ptr, ptr %82, align 8, !tbaa !21
  %84 = getelementptr inbounds i8, ptr %83, i64 0
  store i8 20, ptr %84, align 1, !tbaa !40
  %85 = load ptr, ptr %3, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %85, i32 0, i32 15
  %87 = load ptr, ptr %86, align 8, !tbaa !22
  %88 = getelementptr inbounds %struct.mbedtls_ssl_handshake_params, ptr %87, i32 0, i32 34
  %89 = load i32, ptr %88, align 4, !tbaa !41
  %90 = icmp ne i32 %89, 0
  br i1 %90, label %91, label %114

91:                                               ; preds = %38
  %92 = load ptr, ptr %3, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %92, i32 0, i32 0
  %94 = load ptr, ptr %93, align 8, !tbaa !35
  %95 = getelementptr inbounds %struct.mbedtls_ssl_config, ptr %94, i32 0, i32 46
  %96 = load i32, ptr %95, align 4
  %97 = and i32 %96, 1
  %98 = icmp eq i32 %97, 0
  br i1 %98, label %99, label %102

99:                                               ; preds = %91
  %100 = load ptr, ptr %3, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %100, i32 0, i32 1
  store i32 15, ptr %101, align 8, !tbaa !42
  br label %102

102:                                              ; preds = %99, %91
  %103 = load ptr, ptr %3, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %103, i32 0, i32 0
  %105 = load ptr, ptr %104, align 8, !tbaa !35
  %106 = getelementptr inbounds %struct.mbedtls_ssl_config, ptr %105, i32 0, i32 46
  %107 = load i32, ptr %106, align 4
  %108 = and i32 %107, 1
  %109 = icmp eq i32 %108, 1
  br i1 %109, label %110, label %113

110:                                              ; preds = %102
  %111 = load ptr, ptr %3, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %111, i32 0, i32 1
  store i32 10, ptr %112, align 8, !tbaa !42
  br label %113

113:                                              ; preds = %110, %102
  br label %119

114:                                              ; preds = %38
  %115 = load ptr, ptr %3, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %115, i32 0, i32 1
  %117 = load i32, ptr %116, align 8, !tbaa !42
  %118 = add nsw i32 %117, 1
  store i32 %118, ptr %116, align 8, !tbaa !42
  br label %119

119:                                              ; preds = %114, %113
  %120 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, i32, ptr, ...) @mbedtls_debug_print_msg(ptr noundef %120, i32 noundef 3, ptr noundef @.str, i32 noundef 5287, ptr noundef @.str.117)
  %121 = load ptr, ptr %3, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %121, i32 0, i32 0
  %123 = load ptr, ptr %122, align 8, !tbaa !35
  %124 = getelementptr inbounds %struct.mbedtls_ssl_config, ptr %123, i32 0, i32 46
  %125 = load i32, ptr %124, align 4
  %126 = lshr i32 %125, 1
  %127 = and i32 %126, 1
  %128 = icmp eq i32 %127, 1
  br i1 %128, label %129, label %181

129:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #5
  %130 = load ptr, ptr %3, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %130, i32 0, i32 17
  %132 = load ptr, ptr %131, align 8, !tbaa !43
  %133 = load ptr, ptr %3, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %133, i32 0, i32 15
  %135 = load ptr, ptr %134, align 8, !tbaa !22
  %136 = getelementptr inbounds %struct.mbedtls_ssl_handshake_params, ptr %135, i32 0, i32 21
  store ptr %132, ptr %136, align 8, !tbaa !44
  %137 = load ptr, ptr %3, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %137, i32 0, i32 15
  %139 = load ptr, ptr %138, align 8, !tbaa !22
  %140 = getelementptr inbounds %struct.mbedtls_ssl_handshake_params, ptr %139, i32 0, i32 22
  %141 = getelementptr inbounds [8 x i8], ptr %140, i64 0, i64 0
  %142 = load ptr, ptr %3, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %142, i32 0, i32 41
  %144 = load ptr, ptr %143, align 8, !tbaa !45
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %141, ptr align 1 %144, i64 8, i1 false)
  %145 = load ptr, ptr %3, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %145, i32 0, i32 41
  %147 = load ptr, ptr %146, align 8, !tbaa !45
  %148 = getelementptr inbounds i8, ptr %147, i64 2
  call void @llvm.memset.p0.i64(ptr align 1 %148, i8 0, i64 6, i1 false)
  store i8 2, ptr %6, align 1, !tbaa !40
  br label %149

149:                                              ; preds = %168, %129
  %150 = load i8, ptr %6, align 1, !tbaa !40
  %151 = zext i8 %150 to i32
  %152 = icmp sgt i32 %151, 0
  br i1 %152, label %153, label %171

153:                                              ; preds = %149
  %154 = load ptr, ptr %3, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %154, i32 0, i32 41
  %156 = load ptr, ptr %155, align 8, !tbaa !45
  %157 = load i8, ptr %6, align 1, !tbaa !40
  %158 = zext i8 %157 to i32
  %159 = sub nsw i32 %158, 1
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds i8, ptr %156, i64 %160
  %162 = load i8, ptr %161, align 1, !tbaa !40
  %163 = add i8 %162, 1
  store i8 %163, ptr %161, align 1, !tbaa !40
  %164 = zext i8 %163 to i32
  %165 = icmp ne i32 %164, 0
  br i1 %165, label %166, label %167

166:                                              ; preds = %153
  br label %171

167:                                              ; preds = %153
  br label %168

168:                                              ; preds = %167
  %169 = load i8, ptr %6, align 1, !tbaa !40
  %170 = add i8 %169, -1
  store i8 %170, ptr %6, align 1, !tbaa !40
  br label %149, !llvm.loop !46

171:                                              ; preds = %166, %149
  %172 = load i8, ptr %6, align 1, !tbaa !40
  %173 = zext i8 %172 to i32
  %174 = icmp eq i32 %173, 0
  br i1 %174, label %175, label %177

175:                                              ; preds = %171
  %176 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, i32, ptr, ...) @mbedtls_debug_print_msg(ptr noundef %176, i32 noundef 1, ptr noundef @.str, i32 noundef 5309, ptr noundef @.str.110)
  store i32 -27520, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %178

177:                                              ; preds = %171
  store i32 0, ptr %7, align 4
  br label %178

178:                                              ; preds = %177, %175
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #5
  %179 = load i32, ptr %7, align 4
  switch i32 %179, label %216 [
    i32 0, label %180
  ]

180:                                              ; preds = %178
  br label %185

181:                                              ; preds = %119
  %182 = load ptr, ptr %3, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %182, i32 0, i32 41
  %184 = load ptr, ptr %183, align 8, !tbaa !45
  call void @llvm.memset.p0.i64(ptr align 1 %184, i8 0, i64 8, i1 false)
  br label %185

185:                                              ; preds = %181, %180
  %186 = load ptr, ptr %3, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %186, i32 0, i32 19
  %188 = load ptr, ptr %187, align 8, !tbaa !15
  %189 = load ptr, ptr %3, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %189, i32 0, i32 17
  store ptr %188, ptr %190, align 8, !tbaa !43
  %191 = load ptr, ptr %3, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %191, i32 0, i32 14
  %193 = load ptr, ptr %192, align 8, !tbaa !48
  %194 = load ptr, ptr %3, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %194, i32 0, i32 12
  store ptr %193, ptr %195, align 8, !tbaa !49
  %196 = load ptr, ptr %3, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.mbedtls_ssl_context, ptr %196, i32 0, i32 0
  %198 = load ptr, ptr %197, align 8, !tbaa !35
  %199 = getelementptr inbounds %struct.mbedtls_ssl_config, ptr %198, i32 0, i32 46
  %200 = load i32, ptr %199, align 4
  %201 = lshr i32 %200, 1
  %202 = and i32 %201, 1
  %203 = icmp eq i32 %202, 1
  br i1 %203, label %204, label %206

204:                                              ; preds = %185
  %205 = load ptr, ptr %3, align 8, !tbaa !5
  call void @mbedtls_ssl_send_flight_completed(ptr noundef %205)
  br label %206

206:                                              ; preds = %204, %185
  %207 = load ptr, ptr %3, align 8, !tbaa !5
  %208 = call i32 @mbedtls_ssl_write_record(ptr noundef %207)
  store i32 %208, ptr %4, align 4, !tbaa !36
  %209 = icmp ne i32 %208, 0
  br i1 %209, label %210, label %214

210:                                              ; preds = %206
  %211 = load ptr, ptr %3, align 8, !tbaa !5
  %212 = load i32, ptr %4, align 4, !tbaa !36
  call void @mbedtls_debug_print_ret(ptr noundef %211, i32 noundef 1, ptr noundef @.str, i32 noundef 5338, ptr noundef @.str.47, i32 noundef %212)
  %213 = load i32, ptr %4, align 4, !tbaa !36
  store i32 %213, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %216

214:                                              ; preds = %206
  %215 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, i32, ptr, ...) @mbedtls_debug_print_msg(ptr noundef %215, i32 noundef 2, ptr noundef @.str, i32 noundef 5342, ptr noundef @.str.118)
  store i32 0, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %216

216:                                              ; preds = %214, %210, %178
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  %217 = load i32, ptr %2, align 4
  ret i32 %217
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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 #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 24}
!10 = !{!"mbedtls_ssl_context", !6, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !11, i64 216, !12, i64 224, !12, i64 232, !13, i64 240, !12, i64 248, !12, i64 256, !12, i64 264, !12, i64 272, !11, i64 280, !11, i64 284, !6, i64 288, !6, i64 296, !6, i64 304, !6, i64 312, !6, i64 320, !6, i64 328, !11, i64 336, !12, i64 344, !12, i64 352, !7, i64 360, !11, i64 364, !6, i64 368, !6, i64 376, !6, i64 384, !12, i64 392, !11, i64 400, !12, i64 408, !7, i64 416, !7, i64 428}
!11 = !{!"int", !7, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!"short", !7, i64 0}
!14 = !{!10, !6, i64 320}
!15 = !{!10, !6, i64 128}
!16 = !{!17, !12, i64 24}
!17 = !{!"mbedtls_ssl_transform", !6, i64 0, !11, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !7, i64 48, !7, i64 64, !18, i64 80, !18, i64 104, !19, i64 128, !19, i64 216}
!18 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16}
!19 = !{!"", !6, i64 0, !11, i64 8, !11, i64 12, !6, i64 16, !6, i64 24, !7, i64 32, !12, i64 48, !7, i64 56, !12, i64 72, !6, i64 80}
!20 = !{!17, !12, i64 32}
!21 = !{!10, !6, i64 328}
!22 = !{!10, !6, i64 96}
!23 = !{!24, !6, i64 1536}
!24 = !{!"mbedtls_ssl_handshake_params", !25, i64 0, !26, i64 8, !28, i64 256, !6, i64 872, !6, i64 880, !12, i64 888, !6, i64 896, !11, i64 904, !6, i64 912, !6, i64 920, !6, i64 928, !11, i64 936, !11, i64 940, !6, i64 944, !7, i64 952, !6, i64 960, !11, i64 968, !7, i64 972, !6, i64 976, !6, i64 984, !11, i64 992, !6, i64 1000, !7, i64 1008, !31, i64 1016, !32, i64 1104, !33, i64 1196, !34, i64 1304, !6, i64 1520, !6, i64 1528, !6, i64 1536, !6, i64 1544, !12, i64 1552, !7, i64 1560, !7, i64 1624, !11, i64 2684, !11, i64 2688, !11, i64 2692, !11, i64 2696, !11, i64 2700, !11, i64 2704}
!25 = !{!"mbedtls_ssl_sig_hash_set_t", !11, i64 0, !11, i64 4}
!26 = !{!"", !12, i64 0, !27, i64 8, !27, i64 32, !27, i64 56, !27, i64 80, !27, i64 104, !27, i64 128, !27, i64 152, !27, i64 176, !27, i64 200, !27, i64 224}
!27 = !{!"", !11, i64 0, !12, i64 8, !6, i64 16}
!28 = !{!"", !29, i64 0, !27, i64 248, !30, i64 272, !30, i64 344, !27, i64 416, !11, i64 440, !30, i64 448, !30, i64 520, !27, i64 592}
!29 = !{!"", !11, i64 0, !27, i64 8, !27, i64 32, !27, i64 56, !30, i64 80, !27, i64 152, !12, i64 176, !12, i64 184, !11, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !12, i64 240}
!30 = !{!"", !27, i64 0, !27, i64 24, !27, i64 48}
!31 = !{!"", !7, i64 0, !7, i64 8, !7, i64 24}
!32 = !{!"", !7, i64 0, !7, i64 8, !7, i64 28}
!33 = !{!"", !7, i64 0, !7, i64 8, !7, i64 40, !11, i64 104}
!34 = !{!"", !7, i64 0, !7, i64 16, !7, i64 80, !11, i64 208}
!35 = !{!10, !6, i64 0}
!36 = !{!11, !11, i64 0}
!37 = !{!10, !12, i64 408}
!38 = !{!10, !12, i64 344}
!39 = !{!10, !11, i64 336}
!40 = !{!7, !7, i64 0}
!41 = !{!24, !11, i64 2684}
!42 = !{!10, !11, i64 8}
!43 = !{!10, !6, i64 112}
!44 = !{!24, !6, i64 1000}
!45 = !{!10, !6, i64 296}
!46 = distinct !{!46, !47}
!47 = !{!"llvm.loop.mustprogress"}
!48 = !{!10, !6, i64 88}
!49 = !{!10, !6, i64 72}


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

@.str = external hidden unnamed_addr constant [97 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.110 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.116 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.117 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.118 = external hidden unnamed_addr constant [18 x i8], align 1

declare void @mbedtls_debug_print_msg(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #0

declare void @mbedtls_debug_print_ret(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @mbedtls_ssl_write_record(ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local void @mbedtls_ssl_send_flight_completed(ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local i32 @mbedtls_ssl_write_finished(ptr noundef %0) local_unnamed_addr #3 {
  tail call void (ptr, i32, ptr, i32, ptr, ...) @mbedtls_debug_print_msg(ptr noundef %0, i32 noundef 2, ptr noundef nonnull @.str, i32 noundef 5233, ptr noundef nonnull @.str.116) #4
  %2 = getelementptr inbounds i8, ptr %0, i64 24
  %3 = load i32, ptr %2, align 8, !tbaa !5
  %4 = icmp sgt i32 %3, 1
  %5 = getelementptr inbounds i8, ptr %0, i64 320
  %6 = load ptr, ptr %5, align 8, !tbaa !13
  br i1 %4, label %7, label %17

7:                                                ; preds = %1
  %8 = getelementptr inbounds i8, ptr %0, i64 128
  %9 = load ptr, ptr %8, align 8, !tbaa !14
  %10 = getelementptr inbounds i8, ptr %9, i64 24
  %11 = load i64, ptr %10, align 8, !tbaa !15
  %12 = getelementptr inbounds i8, ptr %6, i64 %11
  %13 = getelementptr inbounds i8, ptr %9, i64 32
  %14 = load i64, ptr %13, align 8, !tbaa !19
  %15 = sub i64 0, %14
  %16 = getelementptr inbounds i8, ptr %12, i64 %15
  br label %17

17:                                               ; preds = %1, %7
  %.sink = phi ptr [ %16, %7 ], [ %6, %1 ]
  %18 = getelementptr inbounds i8, ptr %0, i64 328
  store ptr %.sink, ptr %18, align 8
  %19 = getelementptr inbounds i8, ptr %0, i64 96
  %20 = load ptr, ptr %19, align 8, !tbaa !20
  %21 = getelementptr inbounds i8, ptr %20, i64 1536
  %22 = load ptr, ptr %21, align 8, !tbaa !21
  %23 = getelementptr inbounds i8, ptr %.sink, i64 4
  %24 = load ptr, ptr %0, align 8, !tbaa !33
  %25 = getelementptr inbounds i8, ptr %24, i64 372
  %26 = load i32, ptr %25, align 4
  %27 = and i32 %26, 1
  tail call void %22(ptr noundef nonnull %0, ptr noundef nonnull %23, i32 noundef %27) #4
  %28 = load i32, ptr %2, align 8, !tbaa !5
  %29 = icmp eq i32 %28, 0
  %30 = select i1 %29, i32 36, i32 12
  %31 = zext nneg i32 %30 to i64
  %32 = getelementptr inbounds i8, ptr %0, i64 408
  store i64 %31, ptr %32, align 8, !tbaa !34
  %33 = getelementptr inbounds i8, ptr %0, i64 416
  %34 = load ptr, ptr %18, align 8, !tbaa !35
  %35 = getelementptr inbounds i8, ptr %34, i64 4
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(1) %33, ptr noundef nonnull align 1 dereferenceable(1) %35, i64 %31, i1 false)
  %36 = add nuw nsw i32 %30, 4
  %37 = zext nneg i32 %36 to i64
  %38 = getelementptr inbounds i8, ptr %0, i64 344
  store i64 %37, ptr %38, align 8, !tbaa !36
  %39 = getelementptr inbounds i8, ptr %0, i64 336
  store i32 22, ptr %39, align 8, !tbaa !37
  store i8 20, ptr %34, align 1, !tbaa !38
  %40 = load ptr, ptr %19, align 8, !tbaa !20
  %41 = getelementptr inbounds i8, ptr %40, i64 2684
  %42 = load i32, ptr %41, align 4, !tbaa !39
  %.not = icmp eq i32 %42, 0
  br i1 %.not, label %53, label %43

43:                                               ; preds = %17
  %44 = load ptr, ptr %0, align 8, !tbaa !33
  %45 = getelementptr inbounds i8, ptr %44, i64 372
  %46 = load i32, ptr %45, align 4
  %47 = and i32 %46, 1
  %48 = icmp eq i32 %47, 0
  br i1 %48, label %49, label %.thread

49:                                               ; preds = %43
  %50 = getelementptr inbounds i8, ptr %0, i64 8
  store i32 15, ptr %50, align 8, !tbaa !40
  %.pre = load i32, ptr %45, align 4
  %.pre66 = and i32 %.pre, 1
  %51 = icmp eq i32 %.pre66, 0
  br i1 %51, label %57, label %.thread

.thread:                                          ; preds = %43, %49
  %52 = getelementptr inbounds i8, ptr %0, i64 8
  store i32 10, ptr %52, align 8, !tbaa !40
  br label %57

53:                                               ; preds = %17
  %54 = getelementptr inbounds i8, ptr %0, i64 8
  %55 = load i32, ptr %54, align 8, !tbaa !40
  %56 = add nsw i32 %55, 1
  store i32 %56, ptr %54, align 8, !tbaa !40
  br label %57

57:                                               ; preds = %49, %.thread, %53
  tail call void (ptr, i32, ptr, i32, ptr, ...) @mbedtls_debug_print_msg(ptr noundef nonnull %0, i32 noundef 3, ptr noundef nonnull @.str, i32 noundef 5287, ptr noundef nonnull @.str.117) #4
  %58 = load ptr, ptr %0, align 8, !tbaa !33
  %59 = getelementptr inbounds i8, ptr %58, i64 372
  %60 = load i32, ptr %59, align 4
  %61 = and i32 %60, 2
  %.not59 = icmp eq i32 %61, 0
  br i1 %.not59, label %82, label %62

62:                                               ; preds = %57
  %63 = getelementptr inbounds i8, ptr %0, i64 112
  %64 = load ptr, ptr %63, align 8, !tbaa !41
  %65 = load ptr, ptr %19, align 8, !tbaa !20
  %66 = getelementptr inbounds i8, ptr %65, i64 1000
  store ptr %64, ptr %66, align 8, !tbaa !42
  %67 = getelementptr inbounds i8, ptr %65, i64 1008
  %68 = getelementptr inbounds i8, ptr %0, i64 296
  %69 = load ptr, ptr %68, align 8, !tbaa !43
  %70 = load i64, ptr %69, align 1
  store i64 %70, ptr %67, align 8
  %71 = load ptr, ptr %68, align 8, !tbaa !43
  %72 = getelementptr inbounds i8, ptr %71, i64 2
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(6) %72, i8 0, i64 6, i1 false)
  %73 = load ptr, ptr %68, align 8, !tbaa !43
  %74 = getelementptr i8, ptr %73, i64 1
  %75 = load i8, ptr %74, align 1, !tbaa !38
  %76 = add i8 %75, 1
  store i8 %76, ptr %74, align 1, !tbaa !38
  %.not61 = icmp eq i8 %76, 0
  br i1 %.not61, label %77, label %.critedge

77:                                               ; preds = %62
  %78 = load ptr, ptr %68, align 8, !tbaa !43
  %79 = load i8, ptr %78, align 1, !tbaa !38
  %80 = add i8 %79, 1
  store i8 %80, ptr %78, align 1, !tbaa !38
  %.not61.1 = icmp eq i8 %80, 0
  br i1 %.not61.1, label %81, label %.critedge

81:                                               ; preds = %77
  tail call void (ptr, i32, ptr, i32, ptr, ...) @mbedtls_debug_print_msg(ptr noundef nonnull %0, i32 noundef 1, ptr noundef nonnull @.str, i32 noundef 5309, ptr noundef nonnull @.str.110) #4
  br label %100

82:                                               ; preds = %57
  %83 = getelementptr inbounds i8, ptr %0, i64 296
  %84 = load ptr, ptr %83, align 8, !tbaa !43
  store i64 0, ptr %84, align 1
  br label %.critedge

.critedge:                                        ; preds = %62, %77, %82
  %85 = getelementptr inbounds i8, ptr %0, i64 128
  %86 = load ptr, ptr %85, align 8, !tbaa !14
  %87 = getelementptr inbounds i8, ptr %0, i64 112
  store ptr %86, ptr %87, align 8, !tbaa !41
  %88 = getelementptr inbounds i8, ptr %0, i64 88
  %89 = load ptr, ptr %88, align 8, !tbaa !44
  %90 = getelementptr inbounds i8, ptr %0, i64 72
  store ptr %89, ptr %90, align 8, !tbaa !45
  %91 = load ptr, ptr %0, align 8, !tbaa !33
  %92 = getelementptr inbounds i8, ptr %91, i64 372
  %93 = load i32, ptr %92, align 4
  %94 = and i32 %93, 2
  %.not63 = icmp eq i32 %94, 0
  br i1 %.not63, label %96, label %95

95:                                               ; preds = %.critedge
  tail call void @mbedtls_ssl_send_flight_completed(ptr noundef nonnull %0)
  br label %96

96:                                               ; preds = %95, %.critedge
  %97 = tail call i32 @mbedtls_ssl_write_record(ptr noundef nonnull %0)
  %.not64 = icmp eq i32 %97, 0
  br i1 %.not64, label %99, label %98

98:                                               ; preds = %96
  tail call void @mbedtls_debug_print_ret(ptr noundef nonnull %0, i32 noundef 1, ptr noundef nonnull @.str, i32 noundef 5338, ptr noundef nonnull @.str.47, i32 noundef %97) #4
  br label %100

99:                                               ; preds = %96
  tail call void (ptr, i32, ptr, i32, ptr, ...) @mbedtls_debug_print_msg(ptr noundef nonnull %0, i32 noundef 2, ptr noundef nonnull @.str, i32 noundef 5342, ptr noundef nonnull @.str.118) #4
  br label %100

100:                                              ; preds = %81, %99, %98
  %.1 = phi i32 [ %97, %98 ], [ 0, %99 ], [ -27520, %81 ]
  ret i32 %.1
}

attributes #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 nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { 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 #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !10, i64 24}
!6 = !{!"mbedtls_ssl_context", !7, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !7, i64 104, !7, i64 112, !7, i64 120, !7, i64 128, !7, i64 136, !7, i64 144, !7, i64 152, !7, i64 160, !7, i64 168, !7, i64 176, !7, i64 184, !7, i64 192, !7, i64 200, !7, i64 208, !10, i64 216, !11, i64 224, !11, i64 232, !12, i64 240, !11, i64 248, !11, i64 256, !11, i64 264, !11, i64 272, !10, i64 280, !10, i64 284, !7, i64 288, !7, i64 296, !7, i64 304, !7, i64 312, !7, i64 320, !7, i64 328, !10, i64 336, !11, i64 344, !11, i64 352, !8, i64 360, !10, i64 364, !7, i64 368, !7, i64 376, !7, i64 384, !11, i64 392, !10, i64 400, !11, i64 408, !8, i64 416, !8, i64 428}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"long", !8, i64 0}
!12 = !{!"short", !8, i64 0}
!13 = !{!6, !7, i64 320}
!14 = !{!6, !7, i64 128}
!15 = !{!16, !11, i64 24}
!16 = !{!"mbedtls_ssl_transform", !7, i64 0, !10, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !8, i64 48, !8, i64 64, !17, i64 80, !17, i64 104, !18, i64 128, !18, i64 216}
!17 = !{!"", !7, i64 0, !7, i64 8, !7, i64 16}
!18 = !{!"", !7, i64 0, !10, i64 8, !10, i64 12, !7, i64 16, !7, i64 24, !8, i64 32, !11, i64 48, !8, i64 56, !11, i64 72, !7, i64 80}
!19 = !{!16, !11, i64 32}
!20 = !{!6, !7, i64 96}
!21 = !{!22, !7, i64 1536}
!22 = !{!"mbedtls_ssl_handshake_params", !23, i64 0, !24, i64 8, !26, i64 256, !7, i64 872, !7, i64 880, !11, i64 888, !7, i64 896, !10, i64 904, !7, i64 912, !7, i64 920, !7, i64 928, !10, i64 936, !10, i64 940, !7, i64 944, !8, i64 952, !7, i64 960, !10, i64 968, !8, i64 972, !7, i64 976, !7, i64 984, !10, i64 992, !7, i64 1000, !8, i64 1008, !29, i64 1016, !30, i64 1104, !31, i64 1196, !32, i64 1304, !7, i64 1520, !7, i64 1528, !7, i64 1536, !7, i64 1544, !11, i64 1552, !8, i64 1560, !8, i64 1624, !10, i64 2684, !10, i64 2688, !10, i64 2692, !10, i64 2696, !10, i64 2700, !10, i64 2704}
!23 = !{!"mbedtls_ssl_sig_hash_set_t", !10, i64 0, !10, i64 4}
!24 = !{!"", !11, i64 0, !25, i64 8, !25, i64 32, !25, i64 56, !25, i64 80, !25, i64 104, !25, i64 128, !25, i64 152, !25, i64 176, !25, i64 200, !25, i64 224}
!25 = !{!"", !10, i64 0, !11, i64 8, !7, i64 16}
!26 = !{!"", !27, i64 0, !25, i64 248, !28, i64 272, !28, i64 344, !25, i64 416, !10, i64 440, !28, i64 448, !28, i64 520, !25, i64 592}
!27 = !{!"", !10, i64 0, !25, i64 8, !25, i64 32, !25, i64 56, !28, i64 80, !25, i64 152, !11, i64 176, !11, i64 184, !10, i64 192, !7, i64 200, !7, i64 208, !7, i64 216, !7, i64 224, !7, i64 232, !11, i64 240}
!28 = !{!"", !25, i64 0, !25, i64 24, !25, i64 48}
!29 = !{!"", !8, i64 0, !8, i64 8, !8, i64 24}
!30 = !{!"", !8, i64 0, !8, i64 8, !8, i64 28}
!31 = !{!"", !8, i64 0, !8, i64 8, !8, i64 40, !10, i64 104}
!32 = !{!"", !8, i64 0, !8, i64 16, !8, i64 80, !10, i64 208}
!33 = !{!6, !7, i64 0}
!34 = !{!6, !11, i64 408}
!35 = !{!6, !7, i64 328}
!36 = !{!6, !11, i64 344}
!37 = !{!6, !10, i64 336}
!38 = !{!8, !8, i64 0}
!39 = !{!22, !10, i64 2684}
!40 = !{!6, !10, i64 8}
!41 = !{!6, !7, i64 112}
!42 = !{!22, !7, i64 1000}
!43 = !{!6, !7, i64 296}
!44 = !{!6, !7, i64 88}
!45 = !{!6, !7, i64 72}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,MergedLoadStoreMotionPass,SROAPass,SimplifyCFGPass,TailCallElimPass