; LLVM IR from jermp/2i_bench :: external/CRoaring/tests (mixed_container_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 [95 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [45 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 ptr @array_container_create() #1

declare ptr @bitset_container_create() #1

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

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @array_container_cardinality(ptr noundef) #2

declare void @_assert_int_equal(i64 noundef, i64 noundef, ptr noundef, i32 noundef) #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @bitset_container_cardinality(ptr noundef) #2

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

declare void @bitset_container_free(ptr noundef) #1

declare void @array_container_free(ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @array_bitset_run_lazy_xor_test() #3 {
  %1 = alloca ptr, align 8
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #4
  %16 = call ptr @array_container_create()
  store ptr %16, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #4
  %17 = call ptr @array_container_create()
  store ptr %17, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  %18 = call ptr @array_container_create()
  store ptr %18, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  %19 = call ptr @bitset_container_create()
  store ptr %19, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %20 = call ptr @bitset_container_create()
  store ptr %20, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %21 = call ptr @bitset_container_create()
  store ptr %21, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %22 = call ptr @bitset_container_create()
  store ptr %22, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %23 = call ptr @run_container_create()
  store ptr %23, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %24 = call ptr @run_container_create()
  store ptr %24, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %25 = call ptr @run_container_create()
  store ptr %25, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %26

26:                                               ; preds = %42, %0
  %27 = load i32, ptr %11, align 4, !tbaa !9
  %28 = icmp slt i32 %27, 65536
  br i1 %28, label %30, label %29

29:                                               ; preds = %26
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %45

30:                                               ; preds = %26
  %31 = load ptr, ptr %1, align 8, !tbaa !5
  %32 = load i32, ptr %11, align 4, !tbaa !9
  %33 = trunc i32 %32 to i16
  %34 = call zeroext i1 @array_container_add(ptr noundef %31, i16 noundef zeroext %33)
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = load i32, ptr %11, align 4, !tbaa !9
  %37 = trunc i32 %36 to i16
  call void @bitset_container_set(ptr noundef %35, i16 noundef zeroext %37)
  %38 = load ptr, ptr %8, align 8, !tbaa !5
  %39 = load i32, ptr %11, align 4, !tbaa !9
  %40 = trunc i32 %39 to i16
  %41 = call zeroext i1 @run_container_add(ptr noundef %38, i16 noundef zeroext %40)
  br label %42

42:                                               ; preds = %30
  %43 = load i32, ptr %11, align 4, !tbaa !9
  %44 = add nsw i32 %43, 3
  store i32 %44, ptr %11, align 4, !tbaa !9
  br label %26, !llvm.loop !11

45:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %46

46:                                               ; preds = %65, %45
  %47 = load i32, ptr %12, align 4, !tbaa !9
  %48 = icmp slt i32 %47, 65536
  br i1 %48, label %50, label %49

49:                                               ; preds = %46
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %68

50:                                               ; preds = %46
  %51 = load ptr, ptr %2, align 8, !tbaa !5
  %52 = load i32, ptr %12, align 4, !tbaa !9
  %53 = trunc i32 %52 to i16
  %54 = call zeroext i1 @array_container_add(ptr noundef %51, i16 noundef zeroext %53)
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = load i32, ptr %12, align 4, !tbaa !9
  %57 = trunc i32 %56 to i16
  call void @bitset_container_set(ptr noundef %55, i16 noundef zeroext %57)
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = load i32, ptr %12, align 4, !tbaa !9
  %60 = trunc i32 %59 to i16
  call void @bitset_container_set(ptr noundef %58, i16 noundef zeroext %60)
  %61 = load ptr, ptr %9, align 8, !tbaa !5
  %62 = load i32, ptr %12, align 4, !tbaa !9
  %63 = trunc i32 %62 to i16
  %64 = call zeroext i1 @run_container_add(ptr noundef %61, i16 noundef zeroext %63)
  br label %65

65:                                               ; preds = %50
  %66 = load i32, ptr %12, align 4, !tbaa !9
  %67 = add nsw i32 %66, 62
  store i32 %67, ptr %12, align 4, !tbaa !9
  br label %46, !llvm.loop !13

68:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %69

69:                                               ; preds = %97, %68
  %70 = load i32, ptr %13, align 4, !tbaa !9
  %71 = icmp slt i32 %70, 65536
  br i1 %71, label %73, label %72

72:                                               ; preds = %69
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  br label %100

73:                                               ; preds = %69
  %74 = load i32, ptr %13, align 4, !tbaa !9
  %75 = srem i32 %74, 62
  %76 = icmp eq i32 %75, 0
  %77 = zext i1 %76 to i32
  %78 = load i32, ptr %13, align 4, !tbaa !9
  %79 = srem i32 %78, 3
  %80 = icmp eq i32 %79, 0
  %81 = zext i1 %80 to i32
  %82 = xor i32 %77, %81
  %83 = icmp ne i32 %82, 0
  br i1 %83, label %84, label %96

84:                                               ; preds = %73
  %85 = load ptr, ptr %3, align 8, !tbaa !5
  %86 = load i32, ptr %13, align 4, !tbaa !9
  %87 = trunc i32 %86 to i16
  %88 = call zeroext i1 @array_container_add(ptr noundef %85, i16 noundef zeroext %87)
  %89 = load ptr, ptr %7, align 8, !tbaa !5
  %90 = load i32, ptr %13, align 4, !tbaa !9
  %91 = trunc i32 %90 to i16
  call void @bitset_container_set(ptr noundef %89, i16 noundef zeroext %91)
  %92 = load ptr, ptr %10, align 8, !tbaa !5
  %93 = load i32, ptr %13, align 4, !tbaa !9
  %94 = trunc i32 %93 to i16
  %95 = call zeroext i1 @run_container_add(ptr noundef %92, i16 noundef zeroext %94)
  br label %96

96:                                               ; preds = %84, %73
  br label %97

97:                                               ; preds = %96
  %98 = load i32, ptr %13, align 4, !tbaa !9
  %99 = add nsw i32 %98, 1
  store i32 %99, ptr %13, align 4, !tbaa !9
  br label %69, !llvm.loop !14

100:                                              ; preds = %72
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %101 = load ptr, ptr %3, align 8, !tbaa !5
  %102 = call i32 @array_container_cardinality(ptr noundef %101)
  store i32 %102, ptr %14, align 4, !tbaa !9
  %103 = load ptr, ptr %1, align 8, !tbaa !5
  %104 = load ptr, ptr %5, align 8, !tbaa !5
  %105 = load ptr, ptr %7, align 8, !tbaa !5
  call void @array_bitset_container_lazy_xor(ptr noundef %103, ptr noundef %104, ptr noundef %105)
  %106 = load ptr, ptr %7, align 8, !tbaa !5
  %107 = call i32 @bitset_container_cardinality(ptr noundef %106)
  %108 = sext i32 %107 to i64
  call void @_assert_int_equal(i64 noundef -1, i64 noundef %108, ptr noundef @.str, i32 noundef 273)
  %109 = load i32, ptr %14, align 4, !tbaa !9
  %110 = sext i32 %109 to i64
  %111 = load ptr, ptr %7, align 8, !tbaa !5
  %112 = call i32 @bitset_container_compute_cardinality(ptr noundef %111)
  %113 = sext i32 %112 to i64
  call void @_assert_int_equal(i64 noundef %110, i64 noundef %113, ptr noundef @.str, i32 noundef 274)
  %114 = load ptr, ptr %1, align 8, !tbaa !5
  %115 = load ptr, ptr %5, align 8, !tbaa !5
  %116 = load ptr, ptr %5, align 8, !tbaa !5
  call void @array_bitset_container_lazy_xor(ptr noundef %114, ptr noundef %115, ptr noundef %116)
  %117 = load ptr, ptr %5, align 8, !tbaa !5
  %118 = call i32 @bitset_container_cardinality(ptr noundef %117)
  %119 = sext i32 %118 to i64
  call void @_assert_int_equal(i64 noundef -1, i64 noundef %119, ptr noundef @.str, i32 noundef 278)
  %120 = load i32, ptr %14, align 4, !tbaa !9
  %121 = sext i32 %120 to i64
  %122 = load ptr, ptr %5, align 8, !tbaa !5
  %123 = call i32 @bitset_container_compute_cardinality(ptr noundef %122)
  %124 = sext i32 %123 to i64
  call void @_assert_int_equal(i64 noundef %121, i64 noundef %124, ptr noundef @.str, i32 noundef 279)
  %125 = load ptr, ptr %6, align 8, !tbaa !5
  %126 = load ptr, ptr %5, align 8, !tbaa !5
  call void @bitset_container_copy(ptr noundef %125, ptr noundef %126)
  %127 = load ptr, ptr %8, align 8, !tbaa !5
  %128 = load ptr, ptr %5, align 8, !tbaa !5
  %129 = load ptr, ptr %7, align 8, !tbaa !5
  call void @run_bitset_container_lazy_xor(ptr noundef %127, ptr noundef %128, ptr noundef %129)
  %130 = load ptr, ptr %7, align 8, !tbaa !5
  %131 = call i32 @bitset_container_cardinality(ptr noundef %130)
  %132 = sext i32 %131 to i64
  call void @_assert_int_equal(i64 noundef -1, i64 noundef %132, ptr noundef @.str, i32 noundef 284)
  %133 = load i32, ptr %14, align 4, !tbaa !9
  %134 = sext i32 %133 to i64
  %135 = load ptr, ptr %7, align 8, !tbaa !5
  %136 = call i32 @bitset_container_compute_cardinality(ptr noundef %135)
  %137 = sext i32 %136 to i64
  call void @_assert_int_equal(i64 noundef %134, i64 noundef %137, ptr noundef @.str, i32 noundef 285)
  %138 = load ptr, ptr %8, align 8, !tbaa !5
  %139 = load ptr, ptr %5, align 8, !tbaa !5
  %140 = load ptr, ptr %5, align 8, !tbaa !5
  call void @run_bitset_container_lazy_xor(ptr noundef %138, ptr noundef %139, ptr noundef %140)
  %141 = load ptr, ptr %5, align 8, !tbaa !5
  %142 = call i32 @bitset_container_cardinality(ptr noundef %141)
  %143 = sext i32 %142 to i64
  call void @_assert_int_equal(i64 noundef -1, i64 noundef %143, ptr noundef @.str, i32 noundef 290)
  %144 = load i32, ptr %14, align 4, !tbaa !9
  %145 = sext i32 %144 to i64
  %146 = load ptr, ptr %5, align 8, !tbaa !5
  %147 = call i32 @bitset_container_compute_cardinality(ptr noundef %146)
  %148 = sext i32 %147 to i64
  call void @_assert_int_equal(i64 noundef %145, i64 noundef %148, ptr noundef @.str, i32 noundef 291)
  %149 = load ptr, ptr %6, align 8, !tbaa !5
  %150 = load ptr, ptr %5, align 8, !tbaa !5
  call void @bitset_container_copy(ptr noundef %149, ptr noundef %150)
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  store ptr null, ptr %15, align 8, !tbaa !5
  %151 = load ptr, ptr %1, align 8, !tbaa !5
  %152 = load ptr, ptr %2, align 8, !tbaa !5
  %153 = call zeroext i1 @array_array_container_lazy_xor(ptr noundef %151, ptr noundef %152, ptr noundef %15)
  %154 = zext i1 %153 to i64
  call void @_assert_true(i64 noundef %154, ptr noundef @.str.13, ptr noundef @.str, i32 noundef 295)
  %155 = load ptr, ptr %15, align 8, !tbaa !5
  %156 = call i32 @bitset_container_cardinality(ptr noundef %155)
  %157 = sext i32 %156 to i64
  call void @_assert_int_equal(i64 noundef -1, i64 noundef %157, ptr noundef @.str, i32 noundef 297)
  %158 = load i32, ptr %14, align 4, !tbaa !9
  %159 = sext i32 %158 to i64
  %160 = load ptr, ptr %15, align 8, !tbaa !5
  %161 = call i32 @bitset_container_compute_cardinality(ptr noundef %160)
  %162 = sext i32 %161 to i64
  call void @_assert_int_equal(i64 noundef %159, i64 noundef %162, ptr noundef @.str, i32 noundef 298)
  %163 = load ptr, ptr %15, align 8, !tbaa !5
  call void @bitset_container_free(ptr noundef %163)
  %164 = load ptr, ptr %1, align 8, !tbaa !5
  %165 = load ptr, ptr %9, align 8, !tbaa !5
  %166 = load ptr, ptr %10, align 8, !tbaa !5
  call void @array_run_container_lazy_xor(ptr noundef %164, ptr noundef %165, ptr noundef %166)
  %167 = load i32, ptr %14, align 4, !tbaa !9
  %168 = sext i32 %167 to i64
  %169 = load ptr, ptr %10, align 8, !tbaa !5
  %170 = call i32 @run_container_cardinality(ptr noundef %169)
  %171 = sext i32 %170 to i64
  call void @_assert_int_equal(i64 noundef %168, i64 noundef %171, ptr noundef @.str, i32 noundef 302)
  %172 = load ptr, ptr %1, align 8, !tbaa !5
  call void @array_container_free(ptr noundef %172)
  %173 = load ptr, ptr %2, align 8, !tbaa !5
  call void @array_container_free(ptr noundef %173)
  %174 = load ptr, ptr %3, align 8, !tbaa !5
  call void @array_container_free(ptr noundef %174)
  %175 = load ptr, ptr %4, align 8, !tbaa !5
  call void @bitset_container_free(ptr noundef %175)
  %176 = load ptr, ptr %5, align 8, !tbaa !5
  call void @bitset_container_free(ptr noundef %176)
  %177 = load ptr, ptr %6, align 8, !tbaa !5
  call void @bitset_container_free(ptr noundef %177)
  %178 = load ptr, ptr %7, align 8, !tbaa !5
  call void @bitset_container_free(ptr noundef %178)
  %179 = load ptr, ptr %8, align 8, !tbaa !5
  call void @run_container_free(ptr noundef %179)
  %180 = load ptr, ptr %9, align 8, !tbaa !5
  call void @run_container_free(ptr noundef %180)
  %181 = load ptr, ptr %10, align 8, !tbaa !5
  call void @run_container_free(ptr noundef %181)
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #4
  ret void
}

declare ptr @run_container_create() #1

declare zeroext i1 @run_container_add(ptr noundef, i16 noundef zeroext) #1

declare void @array_bitset_container_lazy_xor(ptr noundef, ptr noundef, ptr noundef) #1

declare i32 @bitset_container_compute_cardinality(ptr noundef) #1

declare void @bitset_container_copy(ptr noundef, ptr noundef) #1

declare void @run_bitset_container_lazy_xor(ptr noundef, ptr noundef, ptr noundef) #1

declare zeroext i1 @array_array_container_lazy_xor(ptr noundef, ptr noundef, ptr noundef) #1

declare void @array_run_container_lazy_xor(ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @run_container_cardinality(ptr noundef) #2

declare void @run_container_free(ptr noundef) #1

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 = { 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 = { 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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}


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

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

declare ptr @array_container_create() local_unnamed_addr #1

declare ptr @bitset_container_create() local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i1 @array_container_add(ptr noundef, i16 noundef zeroext) local_unnamed_addr #2

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @array_container_cardinality(ptr noundef) local_unnamed_addr #2

declare void @_assert_int_equal(i64 noundef, i64 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @bitset_container_cardinality(ptr noundef) local_unnamed_addr #2

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

declare void @bitset_container_free(ptr noundef) local_unnamed_addr #1

declare void @array_container_free(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @array_bitset_run_lazy_xor_test() local_unnamed_addr #3 {
  %1 = alloca ptr, align 8
  %2 = tail call ptr @array_container_create() #4
  %3 = tail call ptr @array_container_create() #4
  %4 = tail call ptr @array_container_create() #4
  %5 = tail call ptr @bitset_container_create() #4
  %6 = tail call ptr @bitset_container_create() #4
  %7 = tail call ptr @bitset_container_create() #4
  %8 = tail call ptr @bitset_container_create() #4
  %9 = tail call ptr @run_container_create() #4
  %10 = tail call ptr @run_container_create() #4
  %11 = tail call ptr @run_container_create() #4
  br label %12

12:                                               ; preds = %0, %12
  %.079 = phi i32 [ 0, %0 ], [ %16, %12 ]
  %13 = trunc nuw i32 %.079 to i16
  %14 = tail call zeroext i1 @array_container_add(ptr noundef %2, i16 noundef zeroext %13)
  tail call void @bitset_container_set(ptr noundef %5, i16 noundef zeroext %13)
  %15 = tail call zeroext i1 @run_container_add(ptr noundef %9, i16 noundef zeroext %13) #4
  %16 = add nuw nsw i32 %.079, 3
  %17 = icmp ult i32 %.079, 65533
  br i1 %17, label %12, label %.preheader78, !llvm.loop !5

.preheader78:                                     ; preds = %12, %.preheader78
  %.07580 = phi i32 [ %21, %.preheader78 ], [ 0, %12 ]
  %18 = trunc nuw i32 %.07580 to i16
  %19 = tail call zeroext i1 @array_container_add(ptr noundef %3, i16 noundef zeroext %18)
  tail call void @bitset_container_set(ptr noundef %6, i16 noundef zeroext %18)
  tail call void @bitset_container_set(ptr noundef %7, i16 noundef zeroext %18)
  %20 = tail call zeroext i1 @run_container_add(ptr noundef %10, i16 noundef zeroext %18) #4
  %21 = add nuw nsw i32 %.07580, 62
  %22 = icmp ult i32 %.07580, 65474
  br i1 %22, label %.preheader78, label %.preheader, !llvm.loop !7

23:                                               ; preds = %61
  %24 = tail call i32 @array_container_cardinality(ptr noundef %4)
  tail call void @array_bitset_container_lazy_xor(ptr noundef %2, ptr noundef %6, ptr noundef %8) #4
  %25 = tail call i32 @bitset_container_cardinality(ptr noundef %8)
  %26 = sext i32 %25 to i64
  tail call void @_assert_int_equal(i64 noundef -1, i64 noundef %26, ptr noundef nonnull @.str, i32 noundef 273) #4
  %27 = sext i32 %24 to i64
  %28 = tail call i32 @bitset_container_compute_cardinality(ptr noundef %8) #4
  %29 = sext i32 %28 to i64
  tail call void @_assert_int_equal(i64 noundef %27, i64 noundef %29, ptr noundef nonnull @.str, i32 noundef 274) #4
  tail call void @array_bitset_container_lazy_xor(ptr noundef %2, ptr noundef %6, ptr noundef %6) #4
  %30 = tail call i32 @bitset_container_cardinality(ptr noundef %6)
  %31 = sext i32 %30 to i64
  tail call void @_assert_int_equal(i64 noundef -1, i64 noundef %31, ptr noundef nonnull @.str, i32 noundef 278) #4
  %32 = tail call i32 @bitset_container_compute_cardinality(ptr noundef %6) #4
  %33 = sext i32 %32 to i64
  tail call void @_assert_int_equal(i64 noundef %27, i64 noundef %33, ptr noundef nonnull @.str, i32 noundef 279) #4
  tail call void @bitset_container_copy(ptr noundef %7, ptr noundef %6) #4
  tail call void @run_bitset_container_lazy_xor(ptr noundef %9, ptr noundef %6, ptr noundef %8) #4
  %34 = tail call i32 @bitset_container_cardinality(ptr noundef %8)
  %35 = sext i32 %34 to i64
  tail call void @_assert_int_equal(i64 noundef -1, i64 noundef %35, ptr noundef nonnull @.str, i32 noundef 284) #4
  %36 = tail call i32 @bitset_container_compute_cardinality(ptr noundef %8) #4
  %37 = sext i32 %36 to i64
  tail call void @_assert_int_equal(i64 noundef %27, i64 noundef %37, ptr noundef nonnull @.str, i32 noundef 285) #4
  tail call void @run_bitset_container_lazy_xor(ptr noundef %9, ptr noundef %6, ptr noundef %6) #4
  %38 = tail call i32 @bitset_container_cardinality(ptr noundef %6)
  %39 = sext i32 %38 to i64
  tail call void @_assert_int_equal(i64 noundef -1, i64 noundef %39, ptr noundef nonnull @.str, i32 noundef 290) #4
  %40 = tail call i32 @bitset_container_compute_cardinality(ptr noundef %6) #4
  %41 = sext i32 %40 to i64
  tail call void @_assert_int_equal(i64 noundef %27, i64 noundef %41, ptr noundef nonnull @.str, i32 noundef 291) #4
  tail call void @bitset_container_copy(ptr noundef %7, ptr noundef %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  store ptr null, ptr %1, align 8, !tbaa !8
  %42 = call zeroext i1 @array_array_container_lazy_xor(ptr noundef %2, ptr noundef %3, ptr noundef nonnull %1) #4
  %43 = zext i1 %42 to i64
  call void @_assert_true(i64 noundef %43, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str, i32 noundef 295) #4
  %44 = load ptr, ptr %1, align 8, !tbaa !8
  %45 = call i32 @bitset_container_cardinality(ptr noundef %44)
  %46 = sext i32 %45 to i64
  call void @_assert_int_equal(i64 noundef -1, i64 noundef %46, ptr noundef nonnull @.str, i32 noundef 297) #4
  %47 = load ptr, ptr %1, align 8, !tbaa !8
  %48 = call i32 @bitset_container_compute_cardinality(ptr noundef %47) #4
  %49 = sext i32 %48 to i64
  call void @_assert_int_equal(i64 noundef %27, i64 noundef %49, ptr noundef nonnull @.str, i32 noundef 298) #4
  %50 = load ptr, ptr %1, align 8, !tbaa !8
  call void @bitset_container_free(ptr noundef %50) #4
  call void @array_run_container_lazy_xor(ptr noundef %2, ptr noundef %10, ptr noundef %11) #4
  %51 = call i32 @run_container_cardinality(ptr noundef %11)
  %52 = sext i32 %51 to i64
  call void @_assert_int_equal(i64 noundef %27, i64 noundef %52, ptr noundef nonnull @.str, i32 noundef 302) #4
  call void @array_container_free(ptr noundef %2) #4
  call void @array_container_free(ptr noundef %3) #4
  call void @array_container_free(ptr noundef %4) #4
  call void @bitset_container_free(ptr noundef %5) #4
  call void @bitset_container_free(ptr noundef %6) #4
  call void @bitset_container_free(ptr noundef %7) #4
  call void @bitset_container_free(ptr noundef %8) #4
  call void @run_container_free(ptr noundef %9) #4
  call void @run_container_free(ptr noundef %10) #4
  call void @run_container_free(ptr noundef %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  ret void

.preheader:                                       ; preds = %.preheader78, %61
  %.07481 = phi i32 [ %62, %61 ], [ 0, %.preheader78 ]
  %.lhs.trunc = trunc nuw i32 %.07481 to i16
  %53 = urem i16 %.lhs.trunc, 62
  %54 = icmp eq i16 %53, 0
  %55 = urem i16 %.lhs.trunc, 3
  %56 = icmp eq i16 %55, 0
  %57 = xor i1 %54, %56
  br i1 %57, label %58, label %61

58:                                               ; preds = %.preheader
  %59 = tail call zeroext i1 @array_container_add(ptr noundef %4, i16 noundef zeroext %.lhs.trunc)
  tail call void @bitset_container_set(ptr noundef %8, i16 noundef zeroext %.lhs.trunc)
  %60 = tail call zeroext i1 @run_container_add(ptr noundef %11, i16 noundef zeroext %.lhs.trunc) #4
  br label %61

61:                                               ; preds = %.preheader, %58
  %62 = add nuw nsw i32 %.07481, 1
  %exitcond.not = icmp eq i32 %62, 65536
  br i1 %exitcond.not, label %23, label %.preheader, !llvm.loop !12
}

declare ptr @run_container_create() local_unnamed_addr #1

declare zeroext i1 @run_container_add(ptr noundef, i16 noundef zeroext) local_unnamed_addr #1

declare void @array_bitset_container_lazy_xor(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare i32 @bitset_container_compute_cardinality(ptr noundef) local_unnamed_addr #1

declare void @bitset_container_copy(ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @run_bitset_container_lazy_xor(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare zeroext i1 @array_array_container_lazy_xor(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @array_run_container_lazy_xor(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @run_container_cardinality(ptr noundef) local_unnamed_addr #2

declare void @run_container_free(ptr noundef) local_unnamed_addr #1

attributes #0 = { mustprogress 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 = { 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 = { 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
!12 = distinct !{!12, !6}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass