; LLVM IR from jermp/2i_bench :: external/CRoaring/tests (container_comparison_unit)

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

@.str = external hidden unnamed_addr constant [55 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [100 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @generic_equal_test(i8 noundef zeroext %0, i8 noundef zeroext %1) #0 {
  %3 = alloca i8, align 1
  %4 = alloca i8, align 1
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  store i8 %0, ptr %3, align 1, !tbaa !5
  store i8 %1, ptr %4, align 1, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %11 = load i8, ptr %3, align 1, !tbaa !5
  %12 = call ptr @container_create(i8 noundef zeroext %11)
  store ptr %12, ptr %5, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %13 = load i8, ptr %4, align 1, !tbaa !5
  %14 = call ptr @container_create(i8 noundef zeroext %13)
  store ptr %14, ptr %6, align 8, !tbaa !8
  %15 = load ptr, ptr %5, align 8, !tbaa !8
  %16 = load i8, ptr %3, align 1, !tbaa !5
  %17 = load ptr, ptr %6, align 8, !tbaa !8
  %18 = load i8, ptr %4, align 1, !tbaa !5
  %19 = call zeroext i1 @container_equals(ptr noundef %15, i8 noundef zeroext %16, ptr noundef %17, i8 noundef zeroext %18)
  %20 = zext i1 %19 to i64
  call void @_assert_true(i64 noundef %20, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 68)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 0, ptr %7, align 4, !tbaa !10
  br label %21

21:                                               ; preds = %42, %2
  %22 = load i32, ptr %7, align 4, !tbaa !10
  %23 = icmp slt i32 %22, 100
  br i1 %23, label %25, label %24

24:                                               ; preds = %21
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %45

25:                                               ; preds = %21
  %26 = load ptr, ptr %5, align 8, !tbaa !8
  %27 = load i32, ptr %7, align 4, !tbaa !10
  %28 = mul nsw i32 %27, 10
  %29 = trunc i32 %28 to i16
  %30 = load i8, ptr %3, align 1, !tbaa !5
  call void @container_checked_add(ptr noundef %26, i16 noundef zeroext %29, i8 noundef zeroext %30)
  %31 = load ptr, ptr %6, align 8, !tbaa !8
  %32 = load i32, ptr %7, align 4, !tbaa !10
  %33 = mul nsw i32 %32, 10
  %34 = trunc i32 %33 to i16
  %35 = load i8, ptr %4, align 1, !tbaa !5
  call void @container_checked_add(ptr noundef %31, i16 noundef zeroext %34, i8 noundef zeroext %35)
  %36 = load ptr, ptr %5, align 8, !tbaa !8
  %37 = load i8, ptr %3, align 1, !tbaa !5
  %38 = load ptr, ptr %6, align 8, !tbaa !8
  %39 = load i8, ptr %4, align 1, !tbaa !5
  %40 = call zeroext i1 @container_equals(ptr noundef %36, i8 noundef zeroext %37, ptr noundef %38, i8 noundef zeroext %39)
  %41 = zext i1 %40 to i64
  call void @_assert_true(i64 noundef %41, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 72)
  br label %42

42:                                               ; preds = %25
  %43 = load i32, ptr %7, align 4, !tbaa !10
  %44 = add nsw i32 %43, 1
  store i32 %44, ptr %7, align 4, !tbaa !10
  br label %21, !llvm.loop !12

45:                                               ; preds = %24
  %46 = load ptr, ptr %5, align 8, !tbaa !8
  %47 = load i8, ptr %3, align 1, !tbaa !5
  call void @container_checked_add(ptr noundef %46, i16 noundef zeroext 273, i8 noundef zeroext %47)
  %48 = load ptr, ptr %5, align 8, !tbaa !8
  %49 = load i8, ptr %3, align 1, !tbaa !5
  %50 = load ptr, ptr %6, align 8, !tbaa !8
  %51 = load i8, ptr %4, align 1, !tbaa !5
  %52 = call zeroext i1 @container_equals(ptr noundef %48, i8 noundef zeroext %49, ptr noundef %50, i8 noundef zeroext %51)
  %53 = xor i1 %52, true
  %54 = zext i1 %53 to i32
  %55 = sext i32 %54 to i64
  call void @_assert_true(i64 noundef %55, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 75)
  %56 = load ptr, ptr %6, align 8, !tbaa !8
  %57 = load i8, ptr %4, align 1, !tbaa !5
  call void @container_checked_add(ptr noundef %56, i16 noundef zeroext 854, i8 noundef zeroext %57)
  %58 = load ptr, ptr %5, align 8, !tbaa !8
  %59 = load i8, ptr %3, align 1, !tbaa !5
  %60 = load ptr, ptr %6, align 8, !tbaa !8
  %61 = load i8, ptr %4, align 1, !tbaa !5
  %62 = call zeroext i1 @container_equals(ptr noundef %58, i8 noundef zeroext %59, ptr noundef %60, i8 noundef zeroext %61)
  %63 = xor i1 %62, true
  %64 = zext i1 %63 to i32
  %65 = sext i32 %64 to i64
  call void @_assert_true(i64 noundef %65, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 77)
  %66 = load ptr, ptr %5, align 8, !tbaa !8
  %67 = load i8, ptr %3, align 1, !tbaa !5
  call void @container_checked_add(ptr noundef %66, i16 noundef zeroext 854, i8 noundef zeroext %67)
  %68 = load ptr, ptr %5, align 8, !tbaa !8
  %69 = load i8, ptr %3, align 1, !tbaa !5
  %70 = load ptr, ptr %6, align 8, !tbaa !8
  %71 = load i8, ptr %4, align 1, !tbaa !5
  %72 = call zeroext i1 @container_equals(ptr noundef %68, i8 noundef zeroext %69, ptr noundef %70, i8 noundef zeroext %71)
  %73 = xor i1 %72, true
  %74 = zext i1 %73 to i32
  %75 = sext i32 %74 to i64
  call void @_assert_true(i64 noundef %75, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 79)
  %76 = load ptr, ptr %6, align 8, !tbaa !8
  %77 = load i8, ptr %4, align 1, !tbaa !5
  call void @container_checked_add(ptr noundef %76, i16 noundef zeroext 273, i8 noundef zeroext %77)
  %78 = load ptr, ptr %5, align 8, !tbaa !8
  %79 = load i8, ptr %3, align 1, !tbaa !5
  %80 = load ptr, ptr %6, align 8, !tbaa !8
  %81 = load i8, ptr %4, align 1, !tbaa !5
  %82 = call zeroext i1 @container_equals(ptr noundef %78, i8 noundef zeroext %79, ptr noundef %80, i8 noundef zeroext %81)
  %83 = zext i1 %82 to i64
  call void @_assert_true(i64 noundef %83, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 81)
  %84 = load ptr, ptr %5, align 8, !tbaa !8
  %85 = load i8, ptr %3, align 1, !tbaa !5
  call void @container_free(ptr noundef %84, i8 noundef zeroext %85)
  %86 = load ptr, ptr %6, align 8, !tbaa !8
  %87 = load i8, ptr %4, align 1, !tbaa !5
  call void @container_free(ptr noundef %86, i8 noundef zeroext %87)
  %88 = load i8, ptr %3, align 1, !tbaa !5
  %89 = call ptr @container_create(i8 noundef zeroext %88)
  store ptr %89, ptr %5, align 8, !tbaa !8
  %90 = load i8, ptr %4, align 1, !tbaa !5
  %91 = call ptr @container_create(i8 noundef zeroext %90)
  store ptr %91, ptr %6, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 0, ptr %8, align 4, !tbaa !10
  br label %92

92:                                               ; preds = %105, %45
  %93 = load i32, ptr %8, align 4, !tbaa !10
  %94 = icmp ult i32 %93, 65536
  br i1 %94, label %96, label %95

95:                                               ; preds = %92
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %108

96:                                               ; preds = %92
  %97 = load ptr, ptr %5, align 8, !tbaa !8
  %98 = load i8, ptr %3, align 1, !tbaa !5
  %99 = load i32, ptr %8, align 4, !tbaa !10
  %100 = trunc i32 %99 to i16
  call void @delegated_add(ptr noundef %97, i8 noundef zeroext %98, i16 noundef zeroext %100)
  %101 = load ptr, ptr %6, align 8, !tbaa !8
  %102 = load i8, ptr %4, align 1, !tbaa !5
  %103 = load i32, ptr %8, align 4, !tbaa !10
  %104 = trunc i32 %103 to i16
  call void @delegated_add(ptr noundef %101, i8 noundef zeroext %102, i16 noundef zeroext %104)
  br label %105

105:                                              ; preds = %96
  %106 = load i32, ptr %8, align 4, !tbaa !10
  %107 = add i32 %106, 1
  store i32 %107, ptr %8, align 4, !tbaa !10
  br label %92, !llvm.loop !14

108:                                              ; preds = %95
  %109 = load ptr, ptr %5, align 8, !tbaa !8
  %110 = load i8, ptr %3, align 1, !tbaa !5
  %111 = load ptr, ptr %6, align 8, !tbaa !8
  %112 = load i8, ptr %4, align 1, !tbaa !5
  %113 = call zeroext i1 @container_equals(ptr noundef %109, i8 noundef zeroext %110, ptr noundef %111, i8 noundef zeroext %112)
  %114 = zext i1 %113 to i64
  call void @_assert_true(i64 noundef %114, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 92)
  %115 = load ptr, ptr %5, align 8, !tbaa !8
  %116 = load i8, ptr %3, align 1, !tbaa !5
  call void @container_free(ptr noundef %115, i8 noundef zeroext %116)
  %117 = load ptr, ptr %6, align 8, !tbaa !8
  %118 = load i8, ptr %4, align 1, !tbaa !5
  call void @container_free(ptr noundef %117, i8 noundef zeroext %118)
  %119 = load i8, ptr %3, align 1, !tbaa !5
  %120 = call ptr @container_create(i8 noundef zeroext %119)
  store ptr %120, ptr %5, align 8, !tbaa !8
  %121 = load i8, ptr %4, align 1, !tbaa !5
  %122 = call ptr @container_create(i8 noundef zeroext %121)
  store ptr %122, ptr %6, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 0, ptr %9, align 4, !tbaa !10
  br label %123

123:                                              ; preds = %144, %108
  %124 = load i32, ptr %9, align 4, !tbaa !10
  %125 = icmp slt i32 %124, 65536
  br i1 %125, label %127, label %126

126:                                              ; preds = %123
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %147

127:                                              ; preds = %123
  %128 = load i32, ptr %9, align 4, !tbaa !10
  %129 = icmp ne i32 %128, 0
  br i1 %129, label %130, label %135

130:                                              ; preds = %127
  %131 = load ptr, ptr %5, align 8, !tbaa !8
  %132 = load i8, ptr %3, align 1, !tbaa !5
  %133 = load i32, ptr %9, align 4, !tbaa !10
  %134 = trunc i32 %133 to i16
  call void @delegated_add(ptr noundef %131, i8 noundef zeroext %132, i16 noundef zeroext %134)
  br label %135

135:                                              ; preds = %130, %127
  %136 = load i32, ptr %9, align 4, !tbaa !10
  %137 = icmp ne i32 %136, 1
  br i1 %137, label %138, label %143

138:                                              ; preds = %135
  %139 = load ptr, ptr %6, align 8, !tbaa !8
  %140 = load i8, ptr %4, align 1, !tbaa !5
  %141 = load i32, ptr %9, align 4, !tbaa !10
  %142 = trunc i32 %141 to i16
  call void @delegated_add(ptr noundef %139, i8 noundef zeroext %140, i16 noundef zeroext %142)
  br label %143

143:                                              ; preds = %138, %135
  br label %144

144:                                              ; preds = %143
  %145 = load i32, ptr %9, align 4, !tbaa !10
  %146 = add nsw i32 %145, 1
  store i32 %146, ptr %9, align 4, !tbaa !10
  br label %123, !llvm.loop !15

147:                                              ; preds = %126
  %148 = load ptr, ptr %5, align 8, !tbaa !8
  %149 = load i8, ptr %3, align 1, !tbaa !5
  %150 = load ptr, ptr %6, align 8, !tbaa !8
  %151 = load i8, ptr %4, align 1, !tbaa !5
  %152 = call zeroext i1 @container_equals(ptr noundef %148, i8 noundef zeroext %149, ptr noundef %150, i8 noundef zeroext %151)
  %153 = xor i1 %152, true
  %154 = zext i1 %153 to i32
  %155 = sext i32 %154 to i64
  call void @_assert_true(i64 noundef %155, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 103)
  %156 = load ptr, ptr %5, align 8, !tbaa !8
  %157 = load i8, ptr %3, align 1, !tbaa !5
  call void @container_free(ptr noundef %156, i8 noundef zeroext %157)
  %158 = load ptr, ptr %6, align 8, !tbaa !8
  %159 = load i8, ptr %4, align 1, !tbaa !5
  call void @container_free(ptr noundef %158, i8 noundef zeroext %159)
  %160 = load i8, ptr %3, align 1, !tbaa !5
  %161 = call ptr @container_create(i8 noundef zeroext %160)
  store ptr %161, ptr %5, align 8, !tbaa !8
  %162 = load i8, ptr %4, align 1, !tbaa !5
  %163 = call ptr @container_create(i8 noundef zeroext %162)
  store ptr %163, ptr %6, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !10
  br label %164

164:                                              ; preds = %185, %147
  %165 = load i32, ptr %10, align 4, !tbaa !10
  %166 = icmp slt i32 %165, 65536
  br i1 %166, label %168, label %167

167:                                              ; preds = %164
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %188

168:                                              ; preds = %164
  %169 = load i32, ptr %10, align 4, !tbaa !10
  %170 = icmp ne i32 %169, 65534
  br i1 %170, label %171, label %176

171:                                              ; preds = %168
  %172 = load ptr, ptr %5, align 8, !tbaa !8
  %173 = load i8, ptr %3, align 1, !tbaa !5
  %174 = load i32, ptr %10, align 4, !tbaa !10
  %175 = trunc i32 %174 to i16
  call void @delegated_add(ptr noundef %172, i8 noundef zeroext %173, i16 noundef zeroext %175)
  br label %176

176:                                              ; preds = %171, %168
  %177 = load i32, ptr %10, align 4, !tbaa !10
  %178 = icmp ne i32 %177, 65535
  br i1 %178, label %179, label %184

179:                                              ; preds = %176
  %180 = load ptr, ptr %6, align 8, !tbaa !8
  %181 = load i8, ptr %4, align 1, !tbaa !5
  %182 = load i32, ptr %10, align 4, !tbaa !10
  %183 = trunc i32 %182 to i16
  call void @delegated_add(ptr noundef %180, i8 noundef zeroext %181, i16 noundef zeroext %183)
  br label %184

184:                                              ; preds = %179, %176
  br label %185

185:                                              ; preds = %184
  %186 = load i32, ptr %10, align 4, !tbaa !10
  %187 = add nsw i32 %186, 1
  store i32 %187, ptr %10, align 4, !tbaa !10
  br label %164, !llvm.loop !16

188:                                              ; preds = %167
  %189 = load ptr, ptr %5, align 8, !tbaa !8
  %190 = load i8, ptr %3, align 1, !tbaa !5
  %191 = load ptr, ptr %6, align 8, !tbaa !8
  %192 = load i8, ptr %4, align 1, !tbaa !5
  %193 = call zeroext i1 @container_equals(ptr noundef %189, i8 noundef zeroext %190, ptr noundef %191, i8 noundef zeroext %192)
  %194 = xor i1 %193, true
  %195 = zext i1 %194 to i32
  %196 = sext i32 %195 to i64
  call void @_assert_true(i64 noundef %196, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 114)
  %197 = load ptr, ptr %5, align 8, !tbaa !8
  %198 = load i8, ptr %3, align 1, !tbaa !5
  call void @container_free(ptr noundef %197, i8 noundef zeroext %198)
  %199 = load ptr, ptr %6, align 8, !tbaa !8
  %200 = load i8, ptr %4, align 1, !tbaa !5
  call void @container_free(ptr noundef %199, i8 noundef zeroext %200)
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  ret void
}

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @container_create(i8 noundef zeroext) #2

declare void @_assert_true(i64 noundef, ptr noundef, ptr noundef, i32 noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i1 @container_equals(ptr noundef, i8 noundef zeroext, ptr noundef, i8 noundef zeroext) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @container_checked_add(ptr noundef, i16 noundef zeroext, i8 noundef zeroext) #2

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

declare void @container_free(ptr noundef, i8 noundef zeroext) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @delegated_add(ptr noundef, i8 noundef zeroext, i16 noundef zeroext) #2

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


; 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 [55 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [100 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @generic_equal_test(i8 noundef zeroext %0, i8 noundef zeroext %1) local_unnamed_addr #0 {
  %3 = tail call ptr @container_create(i8 noundef zeroext %0)
  %4 = tail call ptr @container_create(i8 noundef zeroext %1)
  %5 = tail call zeroext i1 @container_equals(ptr noundef %3, i8 noundef zeroext %0, ptr noundef %4, i8 noundef zeroext %1)
  %6 = zext i1 %5 to i64
  tail call void @_assert_true(i64 noundef %6, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 68) #3
  br label %21

7:                                                ; preds = %21
  tail call void @container_checked_add(ptr noundef %3, i16 noundef zeroext 273, i8 noundef zeroext %0)
  %8 = tail call zeroext i1 @container_equals(ptr noundef %3, i8 noundef zeroext %0, ptr noundef %4, i8 noundef zeroext %1)
  %9 = xor i1 %8, true
  %10 = zext i1 %9 to i64
  tail call void @_assert_true(i64 noundef %10, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 75) #3
  tail call void @container_checked_add(ptr noundef %4, i16 noundef zeroext 854, i8 noundef zeroext %1)
  %11 = tail call zeroext i1 @container_equals(ptr noundef %3, i8 noundef zeroext %0, ptr noundef %4, i8 noundef zeroext %1)
  %12 = xor i1 %11, true
  %13 = zext i1 %12 to i64
  tail call void @_assert_true(i64 noundef %13, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 77) #3
  tail call void @container_checked_add(ptr noundef %3, i16 noundef zeroext 854, i8 noundef zeroext %0)
  %14 = tail call zeroext i1 @container_equals(ptr noundef %3, i8 noundef zeroext %0, ptr noundef %4, i8 noundef zeroext %1)
  %15 = xor i1 %14, true
  %16 = zext i1 %15 to i64
  tail call void @_assert_true(i64 noundef %16, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 79) #3
  tail call void @container_checked_add(ptr noundef %4, i16 noundef zeroext 273, i8 noundef zeroext %1)
  %17 = tail call zeroext i1 @container_equals(ptr noundef %3, i8 noundef zeroext %0, ptr noundef %4, i8 noundef zeroext %1)
  %18 = zext i1 %17 to i64
  tail call void @_assert_true(i64 noundef %18, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 81) #3
  tail call void @container_free(ptr noundef %3, i8 noundef zeroext %0) #3
  tail call void @container_free(ptr noundef %4, i8 noundef zeroext %1) #3
  %19 = tail call ptr @container_create(i8 noundef zeroext %0)
  %20 = tail call ptr @container_create(i8 noundef zeroext %1)
  br label %31

21:                                               ; preds = %2, %21
  %.0105110 = phi i32 [ 0, %2 ], [ %26, %21 ]
  %22 = trunc nuw i32 %.0105110 to i16
  %23 = mul nuw nsw i16 %22, 10
  tail call void @container_checked_add(ptr noundef %3, i16 noundef zeroext %23, i8 noundef zeroext %0)
  tail call void @container_checked_add(ptr noundef %4, i16 noundef zeroext %23, i8 noundef zeroext %1)
  %24 = tail call zeroext i1 @container_equals(ptr noundef %3, i8 noundef zeroext %0, ptr noundef %4, i8 noundef zeroext %1)
  %25 = zext i1 %24 to i64
  tail call void @_assert_true(i64 noundef %25, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 72) #3
  %26 = add nuw nsw i32 %.0105110, 1
  %exitcond.not = icmp eq i32 %26, 100
  br i1 %exitcond.not, label %7, label %21, !llvm.loop !5

.peel.next116:                                    ; preds = %31
  %27 = tail call zeroext i1 @container_equals(ptr noundef %19, i8 noundef zeroext %0, ptr noundef %20, i8 noundef zeroext %1)
  %28 = zext i1 %27 to i64
  tail call void @_assert_true(i64 noundef %28, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 92) #3
  tail call void @container_free(ptr noundef %19, i8 noundef zeroext %0) #3
  tail call void @container_free(ptr noundef %20, i8 noundef zeroext %1) #3
  %29 = tail call ptr @container_create(i8 noundef zeroext %0)
  %30 = tail call ptr @container_create(i8 noundef zeroext %1)
  tail call void @delegated_add(ptr noundef %30, i8 noundef zeroext %1, i16 noundef zeroext 0)
  tail call void @delegated_add(ptr noundef %29, i8 noundef zeroext %0, i16 noundef zeroext 1)
  br label %39

31:                                               ; preds = %7, %31
  %.0104111 = phi i32 [ 0, %7 ], [ %33, %31 ]
  %32 = trunc nuw i32 %.0104111 to i16
  tail call void @delegated_add(ptr noundef %19, i8 noundef zeroext %0, i16 noundef zeroext %32)
  tail call void @delegated_add(ptr noundef %20, i8 noundef zeroext %1, i16 noundef zeroext %32)
  %33 = add nuw nsw i32 %.0104111, 1
  %exitcond114.not = icmp eq i32 %33, 65536
  br i1 %exitcond114.not, label %.peel.next116, label %31, !llvm.loop !7

.loopexit:                                        ; preds = %39
  %34 = tail call zeroext i1 @container_equals(ptr noundef %29, i8 noundef zeroext %0, ptr noundef %30, i8 noundef zeroext %1)
  %35 = xor i1 %34, true
  %36 = zext i1 %35 to i64
  tail call void @_assert_true(i64 noundef %36, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 103) #3
  tail call void @container_free(ptr noundef %29, i8 noundef zeroext %0) #3
  tail call void @container_free(ptr noundef %30, i8 noundef zeroext %1) #3
  %37 = tail call ptr @container_create(i8 noundef zeroext %0)
  %38 = tail call ptr @container_create(i8 noundef zeroext %1)
  br label %46

39:                                               ; preds = %39, %.peel.next116
  %.0103112 = phi i32 [ 2, %.peel.next116 ], [ %41, %39 ]
  %40 = trunc nuw i32 %.0103112 to i16
  tail call void @delegated_add(ptr noundef %29, i8 noundef zeroext %0, i16 noundef zeroext %40)
  tail call void @delegated_add(ptr noundef %30, i8 noundef zeroext %1, i16 noundef zeroext %40)
  %41 = add nuw nsw i32 %.0103112, 1
  %exitcond115.not = icmp eq i32 %41, 65536
  br i1 %exitcond115.not, label %.loopexit, label %39, !llvm.loop !8

42:                                               ; preds = %47
  %43 = tail call zeroext i1 @container_equals(ptr noundef %37, i8 noundef zeroext %0, ptr noundef %38, i8 noundef zeroext %1)
  %44 = xor i1 %43, true
  %45 = zext i1 %44 to i64
  tail call void @_assert_true(i64 noundef %45, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 114) #3
  tail call void @container_free(ptr noundef %37, i8 noundef zeroext %0) #3
  tail call void @container_free(ptr noundef %38, i8 noundef zeroext %1) #3
  ret void

46:                                               ; preds = %49, %.loopexit
  %.0113 = phi i32 [ 0, %.loopexit ], [ %50, %49 ]
  %cond109 = icmp eq i32 %.0113, 65534
  br i1 %cond109, label %49, label %47

47:                                               ; preds = %46
  %48 = trunc nuw i32 %.0113 to i16
  tail call void @delegated_add(ptr noundef %37, i8 noundef zeroext %0, i16 noundef zeroext %48)
  %.not106 = icmp eq i32 %.0113, 65535
  br i1 %.not106, label %42, label %49

49:                                               ; preds = %47, %46
  %.pre-phi130 = phi i16 [ %48, %47 ], [ -2, %46 ]
  tail call void @delegated_add(ptr noundef %38, i8 noundef zeroext %1, i16 noundef zeroext %.pre-phi130)
  %50 = add nuw nsw i32 %.0113, 1
  br label %46
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @container_create(i8 noundef zeroext) local_unnamed_addr #1

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i1 @container_equals(ptr noundef, i8 noundef zeroext, ptr noundef, i8 noundef zeroext) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @container_checked_add(ptr noundef, i16 noundef zeroext, i8 noundef zeroext) local_unnamed_addr #1

declare void @container_free(ptr noundef, i8 noundef zeroext) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @delegated_add(ptr noundef, i8 noundef zeroext, i16 noundef zeroext) local_unnamed_addr #1

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { inlinehint 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 = { "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 = { 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 = distinct !{!8, !6, !9}
!9 = !{!"llvm.loop.peeled.count", i32 2}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopFullUnrollPass,LoopRotatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass