; LLVM IR from lelegard/cryptobench :: src/lib.ll (ZN3lib13aes_auto_testEv)

; 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.TV_AES = type { i64, [32 x i8], [16 x i8], [16 x i8] }
%struct.TV_AES_CHAIN = type { i64, [32 x i8], i64, [16 x i8], i64, [256 x i8], i64, [256 x i8] }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

@_ZZN3lib13aes_auto_testEvE6tv_aes = external hidden constant <{ { i64, <{ [16 x i8], [16 x i8] }>, [16 x i8], [16 x i8] }, { i64, <{ [16 x i8], [16 x i8] }>, [16 x i8], [16 x i8] }, { i64, <{ [24 x i8], [8 x i8] }>, [16 x i8], [16 x i8] }, { i64, <{ [24 x i8], [8 x i8] }>, [16 x i8], [16 x i8] }, %struct.TV_AES, %struct.TV_AES, %struct.TV_AES }>, align 16
@.str.13 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [33 x i8], align 1
@_ZZN3lib13aes_auto_testEvE10tv_cbc_aes = external hidden constant <{ { i64, <{ [16 x i8], [16 x i8] }>, i64, [16 x i8], i64, <{ [16 x i8], [240 x i8] }>, i64, <{ [15 x i8], [241 x i8] }> }, { i64, <{ [16 x i8], [16 x i8] }>, i64, [16 x i8], i64, <{ [32 x i8], [224 x i8] }>, i64, <{ [32 x i8], [224 x i8] }> }, %struct.TV_AES_CHAIN }>, align 16
@.str.15 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [33 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3lib8aes_nameB5cxx11Ev(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(48)) #0 align 2

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

declare i32 @__gxx_personality_v0(...)

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

declare void @_ZN3sys5fatalERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #5

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3lib13aes_auto_testEv(ptr noundef nonnull align 8 dereferenceable(48) %0) #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca [16 x i8], align 16
  %5 = alloca i64, align 8
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca ptr, align 8
  %13 = alloca [256 x i8], align 16
  %14 = alloca i64, align 8
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  %17 = alloca %"class.std::__cxx11::basic_string", align 8
  %18 = alloca %"class.std::__cxx11::basic_string", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %19 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  store ptr @_ZZN3lib13aes_auto_testEvE6tv_aes, ptr %3, align 8, !tbaa !5
  br label %20

20:                                               ; preds = %101, %1
  %21 = load ptr, ptr %3, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.TV_AES, ptr %21, i32 0, i32 0
  %23 = load i64, ptr %22, align 8, !tbaa !9
  %24 = icmp ne i64 %23, 0
  br i1 %24, label %26, label %25

25:                                               ; preds = %20
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  br label %105

26:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  store i64 0, ptr %5, align 8, !tbaa !12
  %27 = load ptr, ptr %3, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.TV_AES, ptr %27, i32 0, i32 1
  %29 = getelementptr inbounds [32 x i8], ptr %28, i64 0, i64 0
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.TV_AES, ptr %30, i32 0, i32 0
  %32 = load i64, ptr %31, align 8, !tbaa !9
  %33 = load ptr, ptr %3, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.TV_AES, ptr %33, i32 0, i32 2
  %35 = getelementptr inbounds [16 x i8], ptr %34, i64 0, i64 0
  %36 = getelementptr inbounds [16 x i8], ptr %4, i64 0, i64 0
  %37 = load ptr, ptr %19, align 8, !tbaa !13
  %38 = getelementptr inbounds ptr, ptr %37, i64 15
  %39 = load ptr, ptr %38, align 8
  %40 = call noundef i64 %39(ptr noundef nonnull align 8 dereferenceable(48) %19, ptr noundef %29, i64 noundef %32, ptr noundef %35, i64 noundef 16, ptr noundef %36, i64 noundef 16)
  store i64 %40, ptr %5, align 8, !tbaa !12
  %41 = load i64, ptr %5, align 8, !tbaa !12
  %42 = icmp ne i64 %41, 16
  br i1 %42, label %51, label %43

43:                                               ; preds = %26
  %44 = getelementptr inbounds [16 x i8], ptr %4, i64 0, i64 0
  %45 = load ptr, ptr %3, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.TV_AES, ptr %45, i32 0, i32 3
  %47 = getelementptr inbounds [16 x i8], ptr %46, i64 0, i64 0
  %48 = load i64, ptr %5, align 8, !tbaa !12
  %49 = call i32 @memcmp(ptr noundef %44, ptr noundef %47, i64 noundef %48) #7
  %50 = icmp ne i32 %49, 0
  br i1 %50, label %51, label %63

51:                                               ; preds = %43, %26
  call void @llvm.lifetime.start.p0(i64 32, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %7) #6
  call void @_ZNK3lib8aes_nameB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %7, ptr noundef nonnull align 8 dereferenceable(48) %19)
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %6, ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef @.str.13)
          to label %52 unwind label %54

52:                                               ; preds = %51
  invoke void @_ZN3sys5fatalERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi(ptr noundef nonnull align 8 dereferenceable(32) %6, i32 noundef 0)
          to label %53 unwind label %58

53:                                               ; preds = %52
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #6
  br label %63

54:                                               ; preds = %51
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %8, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %9, align 4
  br label %62

58:                                               ; preds = %52
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %8, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %9, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  br label %62

62:                                               ; preds = %58, %54
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #6
  br label %104

63:                                               ; preds = %53, %43
  %64 = load ptr, ptr %3, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.TV_AES, ptr %64, i32 0, i32 1
  %66 = getelementptr inbounds [32 x i8], ptr %65, i64 0, i64 0
  %67 = load ptr, ptr %3, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.TV_AES, ptr %67, i32 0, i32 0
  %69 = load i64, ptr %68, align 8, !tbaa !9
  %70 = load ptr, ptr %3, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.TV_AES, ptr %70, i32 0, i32 3
  %72 = getelementptr inbounds [16 x i8], ptr %71, i64 0, i64 0
  %73 = getelementptr inbounds [16 x i8], ptr %4, i64 0, i64 0
  %74 = load ptr, ptr %19, align 8, !tbaa !13
  %75 = getelementptr inbounds ptr, ptr %74, i64 16
  %76 = load ptr, ptr %75, align 8
  %77 = call noundef i64 %76(ptr noundef nonnull align 8 dereferenceable(48) %19, ptr noundef %66, i64 noundef %69, ptr noundef %72, i64 noundef 16, ptr noundef %73, i64 noundef 16)
  store i64 %77, ptr %5, align 8, !tbaa !12
  %78 = load i64, ptr %5, align 8, !tbaa !12
  %79 = icmp ne i64 %78, 16
  br i1 %79, label %88, label %80

80:                                               ; preds = %63
  %81 = getelementptr inbounds [16 x i8], ptr %4, i64 0, i64 0
  %82 = load ptr, ptr %3, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.TV_AES, ptr %82, i32 0, i32 2
  %84 = getelementptr inbounds [16 x i8], ptr %83, i64 0, i64 0
  %85 = load i64, ptr %5, align 8, !tbaa !12
  %86 = call i32 @memcmp(ptr noundef %81, ptr noundef %84, i64 noundef %85) #7
  %87 = icmp ne i32 %86, 0
  br i1 %87, label %88, label %100

88:                                               ; preds = %80, %63
  call void @llvm.lifetime.start.p0(i64 32, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #6
  call void @_ZNK3lib8aes_nameB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %11, ptr noundef nonnull align 8 dereferenceable(48) %19)
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %10, ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef @.str.14)
          to label %89 unwind label %91

89:                                               ; preds = %88
  invoke void @_ZN3sys5fatalERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi(ptr noundef nonnull align 8 dereferenceable(32) %10, i32 noundef 0)
          to label %90 unwind label %95

90:                                               ; preds = %89
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #6
  br label %100

91:                                               ; preds = %88
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %8, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %9, align 4
  br label %99

95:                                               ; preds = %89
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %8, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %9, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  br label %99

99:                                               ; preds = %95, %91
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #6
  br label %104

100:                                              ; preds = %90, %80
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #6
  br label %101

101:                                              ; preds = %100
  %102 = load ptr, ptr %3, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.TV_AES, ptr %102, i32 1
  store ptr %103, ptr %3, align 8, !tbaa !5
  br label %20, !llvm.loop !15

104:                                              ; preds = %99, %62
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  br label %216

105:                                              ; preds = %25
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  store ptr @_ZZN3lib13aes_auto_testEvE10tv_cbc_aes, ptr %12, align 8, !tbaa !5
  br label %106

106:                                              ; preds = %211, %105
  %107 = load ptr, ptr %12, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.TV_AES_CHAIN, ptr %107, i32 0, i32 0
  %109 = load i64, ptr %108, align 8, !tbaa !17
  %110 = icmp ne i64 %109, 0
  br i1 %110, label %112, label %111

111:                                              ; preds = %106
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %215

112:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 256, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  store i64 0, ptr %14, align 8, !tbaa !12
  %113 = load ptr, ptr %12, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.TV_AES_CHAIN, ptr %113, i32 0, i32 1
  %115 = getelementptr inbounds [32 x i8], ptr %114, i64 0, i64 0
  %116 = load ptr, ptr %12, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.TV_AES_CHAIN, ptr %116, i32 0, i32 0
  %118 = load i64, ptr %117, align 8, !tbaa !17
  %119 = load ptr, ptr %12, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.TV_AES_CHAIN, ptr %119, i32 0, i32 3
  %121 = getelementptr inbounds [16 x i8], ptr %120, i64 0, i64 0
  %122 = load ptr, ptr %12, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.TV_AES_CHAIN, ptr %122, i32 0, i32 2
  %124 = load i64, ptr %123, align 8, !tbaa !19
  %125 = load ptr, ptr %12, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.TV_AES_CHAIN, ptr %125, i32 0, i32 5
  %127 = getelementptr inbounds [256 x i8], ptr %126, i64 0, i64 0
  %128 = load ptr, ptr %12, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.TV_AES_CHAIN, ptr %128, i32 0, i32 4
  %130 = load i64, ptr %129, align 8, !tbaa !20
  %131 = getelementptr inbounds [256 x i8], ptr %13, i64 0, i64 0
  %132 = load ptr, ptr %19, align 8, !tbaa !13
  %133 = getelementptr inbounds ptr, ptr %132, i64 17
  %134 = load ptr, ptr %133, align 8
  %135 = call noundef i64 %134(ptr noundef nonnull align 8 dereferenceable(48) %19, ptr noundef %115, i64 noundef %118, ptr noundef %121, i64 noundef %124, ptr noundef %127, i64 noundef %130, ptr noundef %131, i64 noundef 256)
  store i64 %135, ptr %14, align 8, !tbaa !12
  %136 = load i64, ptr %14, align 8, !tbaa !12
  %137 = load ptr, ptr %12, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.TV_AES_CHAIN, ptr %137, i32 0, i32 6
  %139 = load i64, ptr %138, align 8, !tbaa !21
  %140 = icmp ne i64 %136, %139
  br i1 %140, label %149, label %141

141:                                              ; preds = %112
  %142 = getelementptr inbounds [256 x i8], ptr %13, i64 0, i64 0
  %143 = load ptr, ptr %12, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.TV_AES_CHAIN, ptr %143, i32 0, i32 7
  %145 = getelementptr inbounds [256 x i8], ptr %144, i64 0, i64 0
  %146 = load i64, ptr %14, align 8, !tbaa !12
  %147 = call i32 @memcmp(ptr noundef %142, ptr noundef %145, i64 noundef %146) #7
  %148 = icmp ne i32 %147, 0
  br i1 %148, label %149, label %161

149:                                              ; preds = %141, %112
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %16) #6
  call void @_ZNK3lib8aes_nameB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %16, ptr noundef nonnull align 8 dereferenceable(48) %19)
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %15, ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef @.str.15)
          to label %150 unwind label %152

150:                                              ; preds = %149
  invoke void @_ZN3sys5fatalERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi(ptr noundef nonnull align 8 dereferenceable(32) %15, i32 noundef 0)
          to label %151 unwind label %156

151:                                              ; preds = %150
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #6
  br label %161

152:                                              ; preds = %149
  %153 = landingpad { ptr, i32 }
          cleanup
  %154 = extractvalue { ptr, i32 } %153, 0
  store ptr %154, ptr %8, align 8
  %155 = extractvalue { ptr, i32 } %153, 1
  store i32 %155, ptr %9, align 4
  br label %160

156:                                              ; preds = %150
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %8, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %9, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  br label %160

160:                                              ; preds = %156, %152
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #6
  br label %214

161:                                              ; preds = %151, %141
  %162 = load ptr, ptr %12, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.TV_AES_CHAIN, ptr %162, i32 0, i32 1
  %164 = getelementptr inbounds [32 x i8], ptr %163, i64 0, i64 0
  %165 = load ptr, ptr %12, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.TV_AES_CHAIN, ptr %165, i32 0, i32 0
  %167 = load i64, ptr %166, align 8, !tbaa !17
  %168 = load ptr, ptr %12, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.TV_AES_CHAIN, ptr %168, i32 0, i32 3
  %170 = getelementptr inbounds [16 x i8], ptr %169, i64 0, i64 0
  %171 = load ptr, ptr %12, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.TV_AES_CHAIN, ptr %171, i32 0, i32 2
  %173 = load i64, ptr %172, align 8, !tbaa !19
  %174 = load ptr, ptr %12, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.TV_AES_CHAIN, ptr %174, i32 0, i32 7
  %176 = getelementptr inbounds [256 x i8], ptr %175, i64 0, i64 0
  %177 = load ptr, ptr %12, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.TV_AES_CHAIN, ptr %177, i32 0, i32 6
  %179 = load i64, ptr %178, align 8, !tbaa !21
  %180 = getelementptr inbounds [256 x i8], ptr %13, i64 0, i64 0
  %181 = load ptr, ptr %19, align 8, !tbaa !13
  %182 = getelementptr inbounds ptr, ptr %181, i64 18
  %183 = load ptr, ptr %182, align 8
  %184 = call noundef i64 %183(ptr noundef nonnull align 8 dereferenceable(48) %19, ptr noundef %164, i64 noundef %167, ptr noundef %170, i64 noundef %173, ptr noundef %176, i64 noundef %179, ptr noundef %180, i64 noundef 256)
  store i64 %184, ptr %14, align 8, !tbaa !12
  %185 = load i64, ptr %14, align 8, !tbaa !12
  %186 = load ptr, ptr %12, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.TV_AES_CHAIN, ptr %186, i32 0, i32 4
  %188 = load i64, ptr %187, align 8, !tbaa !20
  %189 = icmp ne i64 %185, %188
  br i1 %189, label %198, label %190

190:                                              ; preds = %161
  %191 = getelementptr inbounds [256 x i8], ptr %13, i64 0, i64 0
  %192 = load ptr, ptr %12, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.TV_AES_CHAIN, ptr %192, i32 0, i32 5
  %194 = getelementptr inbounds [256 x i8], ptr %193, i64 0, i64 0
  %195 = load i64, ptr %14, align 8, !tbaa !12
  %196 = call i32 @memcmp(ptr noundef %191, ptr noundef %194, i64 noundef %195) #7
  %197 = icmp ne i32 %196, 0
  br i1 %197, label %198, label %210

198:                                              ; preds = %190, %161
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %18) #6
  call void @_ZNK3lib8aes_nameB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %18, ptr noundef nonnull align 8 dereferenceable(48) %19)
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %17, ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef @.str.16)
          to label %199 unwind label %201

199:                                              ; preds = %198
  invoke void @_ZN3sys5fatalERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi(ptr noundef nonnull align 8 dereferenceable(32) %17, i32 noundef 0)
          to label %200 unwind label %205

200:                                              ; preds = %199
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #6
  br label %210

201:                                              ; preds = %198
  %202 = landingpad { ptr, i32 }
          cleanup
  %203 = extractvalue { ptr, i32 } %202, 0
  store ptr %203, ptr %8, align 8
  %204 = extractvalue { ptr, i32 } %202, 1
  store i32 %204, ptr %9, align 4
  br label %209

205:                                              ; preds = %199
  %206 = landingpad { ptr, i32 }
          cleanup
  %207 = extractvalue { ptr, i32 } %206, 0
  store ptr %207, ptr %8, align 8
  %208 = extractvalue { ptr, i32 } %206, 1
  store i32 %208, ptr %9, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #6
  br label %209

209:                                              ; preds = %205, %201
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #6
  br label %214

210:                                              ; preds = %200, %190
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 256, ptr %13) #6
  br label %211

211:                                              ; preds = %210
  %212 = load ptr, ptr %12, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.TV_AES_CHAIN, ptr %212, i32 1
  store ptr %213, ptr %12, align 8, !tbaa !5
  br label %106, !llvm.loop !22

214:                                              ; preds = %209, %160
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 256, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %216

215:                                              ; preds = %111
  ret void

216:                                              ; preds = %214, %104
  %217 = load ptr, ptr %8, align 8
  %218 = load i32, ptr %9, align 4
  %219 = insertvalue { ptr, i32 } poison, ptr %217, 0
  %220 = insertvalue { ptr, i32 } %219, i32 %218, 1
  resume { ptr, i32 } %220
}

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 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 #5 = { inlinehint mustprogress 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 #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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTSZN3lib13aes_auto_testEvE6TV_AES", !11, i64 0, !7, i64 8, !7, i64 40, !7, i64 56}
!11 = !{!"long", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"vtable pointer", !8, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!18, !11, i64 0}
!18 = !{!"_ZTSZN3lib13aes_auto_testEvE12TV_AES_CHAIN", !11, i64 0, !7, i64 8, !11, i64 40, !7, i64 48, !11, i64 64, !7, i64 72, !11, i64 328, !7, i64 336}
!19 = !{!18, !11, i64 40}
!20 = !{!18, !11, i64 64}
!21 = !{!18, !11, i64 328}
!22 = distinct !{!22, !16}


; 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.TV_AES = type { i64, [32 x i8], [16 x i8], [16 x i8] }
%struct.TV_AES_CHAIN = type { i64, [32 x i8], i64, [16 x i8], i64, [256 x i8], i64, [256 x i8] }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

@_ZZN3lib13aes_auto_testEvE6tv_aes = external hidden constant <{ { i64, <{ [16 x i8], [16 x i8] }>, [16 x i8], [16 x i8] }, { i64, <{ [16 x i8], [16 x i8] }>, [16 x i8], [16 x i8] }, { i64, <{ [24 x i8], [8 x i8] }>, [16 x i8], [16 x i8] }, { i64, <{ [24 x i8], [8 x i8] }>, [16 x i8], [16 x i8] }, %struct.TV_AES, %struct.TV_AES, %struct.TV_AES }>, align 16
@.str.13 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [33 x i8], align 1
@_ZZN3lib13aes_auto_testEvE10tv_cbc_aes = external hidden constant <{ { i64, <{ [16 x i8], [16 x i8] }>, i64, [16 x i8], i64, <{ [16 x i8], [240 x i8] }>, i64, <{ [15 x i8], [241 x i8] }> }, { i64, <{ [16 x i8], [16 x i8] }>, i64, [16 x i8], i64, <{ [32 x i8], [224 x i8] }>, i64, <{ [32 x i8], [224 x i8] }> }, %struct.TV_AES_CHAIN }>, align 16
@.str.15 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [33 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3lib8aes_nameB5cxx11Ev(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #0 align 2

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

declare i32 @__gxx_personality_v0(...)

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

declare void @_ZN3sys5fatalERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3lib13aes_auto_testEv(ptr noundef nonnull align 8 dereferenceable(48) %0) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca [16 x i8], align 16
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca [256 x i8], align 16
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = load i64, ptr @_ZZN3lib13aes_auto_testEvE6tv_aes, align 16, !tbaa !5
  %.not73 = icmp eq i64 %12, 0
  br i1 %.not73, label %.preheader, label %.lr.ph

.preheader:                                       ; preds = %46, %1
  %13 = load i64, ptr @_ZZN3lib13aes_auto_testEvE10tv_cbc_aes, align 16, !tbaa !10
  %.not5175 = icmp eq i64 %13, 0
  br i1 %.not5175, label %._crit_edge, label %.lr.ph77

.lr.ph:                                           ; preds = %1, %46
  %14 = phi i64 [ %48, %46 ], [ %12, %1 ]
  %.04674 = phi ptr [ %47, %46 ], [ @_ZZN3lib13aes_auto_testEvE6tv_aes, %1 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #6
  %15 = getelementptr inbounds i8, ptr %.04674, i64 8
  %16 = getelementptr inbounds i8, ptr %.04674, i64 40
  %17 = load ptr, ptr %0, align 8, !tbaa !12
  %18 = getelementptr inbounds i8, ptr %17, i64 120
  %19 = load ptr, ptr %18, align 8
  %20 = call noundef i64 %19(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull %15, i64 noundef %14, ptr noundef nonnull %16, i64 noundef 16, ptr noundef nonnull %2, i64 noundef 16)
  %.not61 = icmp eq i64 %20, 16
  br i1 %.not61, label %21, label %23

21:                                               ; preds = %.lr.ph
  %22 = getelementptr inbounds i8, ptr %.04674, i64 56
  %bcmp62 = call i32 @bcmp(ptr noundef nonnull dereferenceable(16) %2, ptr noundef nonnull dereferenceable(16) %22, i64 16)
  %.not63 = icmp eq i32 %bcmp62, 0
  br i1 %.not63, label %31, label %23

23:                                               ; preds = %21, %.lr.ph
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #6
  call void @_ZNK3lib8aes_nameB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %4, ptr noundef nonnull align 8 dereferenceable(48) %0)
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %3, ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull @.str.13)
          to label %24 unwind label %26

24:                                               ; preds = %23
  invoke void @_ZN3sys5fatalERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi(ptr noundef nonnull align 8 dereferenceable(32) %3, i32 noundef 0)
          to label %25 unwind label %28

25:                                               ; preds = %24
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  br label %31

26:                                               ; preds = %23
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %30

28:                                               ; preds = %24
  %29 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  br label %30

30:                                               ; preds = %28, %26
  %.pn64 = phi { ptr, i32 } [ %29, %28 ], [ %27, %26 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  br label %49

31:                                               ; preds = %25, %21
  %32 = getelementptr inbounds i8, ptr %.04674, i64 56
  %33 = load ptr, ptr %0, align 8, !tbaa !12
  %34 = getelementptr inbounds i8, ptr %33, i64 128
  %35 = load ptr, ptr %34, align 8
  %36 = call noundef i64 %35(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull %15, i64 noundef %14, ptr noundef nonnull %32, i64 noundef 16, ptr noundef nonnull %2, i64 noundef 16)
  %.not66 = icmp eq i64 %36, 16
  br i1 %.not66, label %37, label %38

37:                                               ; preds = %31
  %bcmp67 = call i32 @bcmp(ptr noundef nonnull dereferenceable(16) %2, ptr noundef nonnull dereferenceable(16) %16, i64 16)
  %.not68 = icmp eq i32 %bcmp67, 0
  br i1 %.not68, label %46, label %38

38:                                               ; preds = %37, %31
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #6
  call void @_ZNK3lib8aes_nameB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %6, ptr noundef nonnull align 8 dereferenceable(48) %0)
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %5, ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull @.str.14)
          to label %39 unwind label %41

39:                                               ; preds = %38
  invoke void @_ZN3sys5fatalERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi(ptr noundef nonnull align 8 dereferenceable(32) %5, i32 noundef 0)
          to label %40 unwind label %43

40:                                               ; preds = %39
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #6
  br label %46

41:                                               ; preds = %38
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %45

43:                                               ; preds = %39
  %44 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  br label %45

45:                                               ; preds = %43, %41
  %.pn69 = phi { ptr, i32 } [ %44, %43 ], [ %42, %41 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #6
  br label %49

46:                                               ; preds = %40, %37
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #6
  %47 = getelementptr inbounds i8, ptr %.04674, i64 72
  %48 = load i64, ptr %47, align 8, !tbaa !5
  %.not = icmp eq i64 %48, 0
  br i1 %.not, label %.preheader, label %.lr.ph, !llvm.loop !14

49:                                               ; preds = %45, %30
  %.pn69.pn = phi { ptr, i32 } [ %.pn69, %45 ], [ %.pn64, %30 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #6
  br label %93

._crit_edge:                                      ; preds = %89, %.preheader
  ret void

.lr.ph77:                                         ; preds = %.preheader, %89
  %50 = phi i64 [ %91, %89 ], [ %13, %.preheader ]
  %.076 = phi ptr [ %90, %89 ], [ @_ZZN3lib13aes_auto_testEvE10tv_cbc_aes, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %7) #6
  %51 = getelementptr inbounds i8, ptr %.076, i64 8
  %52 = getelementptr inbounds i8, ptr %.076, i64 48
  %53 = getelementptr inbounds i8, ptr %.076, i64 40
  %54 = load i64, ptr %53, align 8, !tbaa !16
  %55 = getelementptr inbounds i8, ptr %.076, i64 72
  %56 = getelementptr inbounds i8, ptr %.076, i64 64
  %57 = load i64, ptr %56, align 8, !tbaa !17
  %58 = load ptr, ptr %0, align 8, !tbaa !12
  %59 = getelementptr inbounds i8, ptr %58, i64 136
  %60 = load ptr, ptr %59, align 8
  %61 = call noundef i64 %60(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull %51, i64 noundef %50, ptr noundef nonnull %52, i64 noundef %54, ptr noundef nonnull %55, i64 noundef %57, ptr noundef nonnull %7, i64 noundef 256)
  %62 = getelementptr inbounds i8, ptr %.076, i64 328
  %63 = load i64, ptr %62, align 8, !tbaa !18
  %.not52 = icmp eq i64 %61, %63
  br i1 %.not52, label %64, label %66

64:                                               ; preds = %.lr.ph77
  %65 = getelementptr inbounds i8, ptr %.076, i64 336
  %bcmp = call i32 @bcmp(ptr nonnull %7, ptr nonnull %65, i64 %61)
  %.not53 = icmp eq i32 %bcmp, 0
  br i1 %.not53, label %74, label %66

66:                                               ; preds = %64, %.lr.ph77
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #6
  call void @_ZNK3lib8aes_nameB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %9, ptr noundef nonnull align 8 dereferenceable(48) %0)
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %8, ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull @.str.15)
          to label %67 unwind label %69

67:                                               ; preds = %66
  invoke void @_ZN3sys5fatalERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi(ptr noundef nonnull align 8 dereferenceable(32) %8, i32 noundef 0)
          to label %68 unwind label %71

68:                                               ; preds = %67
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #6
  br label %74

69:                                               ; preds = %66
  %70 = landingpad { ptr, i32 }
          cleanup
  br label %73

71:                                               ; preds = %67
  %72 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  br label %73

73:                                               ; preds = %71, %69
  %.pn = phi { ptr, i32 } [ %72, %71 ], [ %70, %69 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #6
  br label %92

74:                                               ; preds = %68, %64
  %75 = getelementptr inbounds i8, ptr %.076, i64 336
  %76 = load ptr, ptr %0, align 8, !tbaa !12
  %77 = getelementptr inbounds i8, ptr %76, i64 144
  %78 = load ptr, ptr %77, align 8
  %79 = call noundef i64 %78(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull %51, i64 noundef %50, ptr noundef nonnull %52, i64 noundef %54, ptr noundef nonnull %75, i64 noundef %63, ptr noundef nonnull %7, i64 noundef 256)
  %.not55 = icmp eq i64 %79, %57
  br i1 %.not55, label %80, label %81

80:                                               ; preds = %74
  %bcmp56 = call i32 @bcmp(ptr nonnull %7, ptr nonnull %55, i64 %57)
  %.not57 = icmp eq i32 %bcmp56, 0
  br i1 %.not57, label %89, label %81

81:                                               ; preds = %80, %74
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #6
  call void @_ZNK3lib8aes_nameB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %11, ptr noundef nonnull align 8 dereferenceable(48) %0)
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %10, ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull @.str.16)
          to label %82 unwind label %84

82:                                               ; preds = %81
  invoke void @_ZN3sys5fatalERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi(ptr noundef nonnull align 8 dereferenceable(32) %10, i32 noundef 0)
          to label %83 unwind label %86

83:                                               ; preds = %82
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #6
  br label %89

84:                                               ; preds = %81
  %85 = landingpad { ptr, i32 }
          cleanup
  br label %88

86:                                               ; preds = %82
  %87 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  br label %88

88:                                               ; preds = %86, %84
  %.pn58 = phi { ptr, i32 } [ %87, %86 ], [ %85, %84 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #6
  br label %92

89:                                               ; preds = %83, %80
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %7) #6
  %90 = getelementptr inbounds i8, ptr %.076, i64 592
  %91 = load i64, ptr %90, align 8, !tbaa !10
  %.not51 = icmp eq i64 %91, 0
  br i1 %.not51, label %._crit_edge, label %.lr.ph77, !llvm.loop !19

92:                                               ; preds = %88, %73
  %.pn58.pn = phi { ptr, i32 } [ %.pn58, %88 ], [ %.pn, %73 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %7) #6
  br label %93

93:                                               ; preds = %92, %49
  %.pn69.pn.pn = phi { ptr, i32 } [ %.pn69.pn, %49 ], [ %.pn58.pn, %92 ]
  resume { ptr, i32 } %.pn69.pn.pn
}

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 = { inlinehint mustprogress 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 = { 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 = !{!6, !7, i64 0}
!6 = !{!"_ZTSZN3lib13aes_auto_testEvE6TV_AES", !7, i64 0, !8, i64 8, !8, i64 40, !8, i64 56}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !7, i64 0}
!11 = !{!"_ZTSZN3lib13aes_auto_testEvE12TV_AES_CHAIN", !7, i64 0, !8, i64 8, !7, i64 40, !8, i64 48, !7, i64 64, !8, i64 72, !7, i64 328, !8, i64 336}
!12 = !{!13, !13, i64 0}
!13 = !{!"vtable pointer", !9, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!11, !7, i64 40}
!17 = !{!11, !7, i64 64}
!18 = !{!11, !7, i64 328}
!19 = distinct !{!19, !15}


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