; 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.14 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [49 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

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

; Function Attrs: nounwind uwtable
define dso_local void @array_bitset_ixor_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 @array_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 @array_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 @bitset_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 @bitset_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 @bitset_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 = %38, %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 %41

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 %6, 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)
  br label %38

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

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

42:                                               ; preds = %54, %41
  %43 = load i32, ptr %12, align 4, !tbaa !9
  %44 = icmp slt i32 %43, 65536
  br i1 %44, label %46, label %45

45:                                               ; preds = %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %57

46:                                               ; preds = %42
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  %48 = load i32, ptr %12, align 4, !tbaa !9
  %49 = trunc i32 %48 to i16
  %50 = call zeroext i1 @array_container_add(ptr noundef %47, i16 noundef zeroext %49)
  %51 = load ptr, ptr %9, align 8, !tbaa !5
  %52 = load i32, ptr %12, align 4, !tbaa !9
  %53 = trunc i32 %52 to i16
  call void @bitset_container_set(ptr noundef %51, i16 noundef zeroext %53)
  br label %54

54:                                               ; preds = %46
  %55 = load i32, ptr %12, align 4, !tbaa !9
  %56 = add nsw i32 %55, 62
  store i32 %56, ptr %12, align 4, !tbaa !9
  br label %42, !llvm.loop !13

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

58:                                               ; preds = %82, %57
  %59 = load i32, ptr %13, align 4, !tbaa !9
  %60 = icmp slt i32 %59, 65536
  br i1 %60, label %62, label %61

61:                                               ; preds = %58
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  br label %85

62:                                               ; preds = %58
  %63 = load i32, ptr %13, align 4, !tbaa !9
  %64 = srem i32 %63, 62
  %65 = icmp eq i32 %64, 0
  %66 = zext i1 %65 to i32
  %67 = load i32, ptr %13, align 4, !tbaa !9
  %68 = srem i32 %67, 3
  %69 = icmp eq i32 %68, 0
  %70 = zext i1 %69 to i32
  %71 = xor i32 %66, %70
  %72 = icmp ne i32 %71, 0
  br i1 %72, label %73, label %81

73:                                               ; preds = %62
  %74 = load ptr, ptr %5, align 8, !tbaa !5
  %75 = load i32, ptr %13, align 4, !tbaa !9
  %76 = trunc i32 %75 to i16
  %77 = call zeroext i1 @array_container_add(ptr noundef %74, i16 noundef zeroext %76)
  %78 = load ptr, ptr %10, align 8, !tbaa !5
  %79 = load i32, ptr %13, align 4, !tbaa !9
  %80 = trunc i32 %79 to i16
  call void @bitset_container_set(ptr noundef %78, i16 noundef zeroext %80)
  br label %81

81:                                               ; preds = %73, %62
  br label %82

82:                                               ; preds = %81
  %83 = load i32, ptr %13, align 4, !tbaa !9
  %84 = add nsw i32 %83, 1
  store i32 %84, ptr %13, align 4, !tbaa !9
  br label %58, !llvm.loop !14

85:                                               ; preds = %61
  %86 = load ptr, ptr %1, align 8, !tbaa !5
  %87 = load ptr, ptr %2, align 8, !tbaa !5
  call void @array_container_copy(ptr noundef %86, ptr noundef %87)
  %88 = load ptr, ptr %6, align 8, !tbaa !5
  %89 = load ptr, ptr %7, align 8, !tbaa !5
  call void @bitset_container_copy(ptr noundef %88, ptr noundef %89)
  %90 = load ptr, ptr %1, align 8, !tbaa !5
  %91 = load ptr, ptr %3, align 8, !tbaa !5
  call void @array_container_copy(ptr noundef %90, ptr noundef %91)
  %92 = load ptr, ptr %3, align 8, !tbaa !5
  %93 = call zeroext i1 @array_container_add(ptr noundef %92, i16 noundef zeroext 2)
  %94 = load ptr, ptr %6, align 8, !tbaa !5
  %95 = load ptr, ptr %8, align 8, !tbaa !5
  call void @bitset_container_copy(ptr noundef %94, ptr noundef %95)
  %96 = load ptr, ptr %8, align 8, !tbaa !5
  %97 = call zeroext i1 @bitset_container_add(ptr noundef %96, i16 noundef zeroext 2)
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %98 = load ptr, ptr %5, align 8, !tbaa !5
  %99 = call i32 @array_container_cardinality(ptr noundef %98)
  store i32 %99, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  store ptr null, ptr %15, align 8, !tbaa !5
  %100 = load ptr, ptr %9, align 8, !tbaa !5
  %101 = load ptr, ptr %1, align 8, !tbaa !5
  %102 = call zeroext i1 @bitset_array_container_ixor(ptr noundef %100, ptr noundef %101, ptr noundef %15)
  %103 = zext i1 %102 to i64
  call void @_assert_true(i64 noundef %103, ptr noundef @.str.14, ptr noundef @.str, i32 noundef 359)
  %104 = load i32, ptr %14, align 4, !tbaa !9
  %105 = sext i32 %104 to i64
  %106 = load ptr, ptr %15, 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 %105, i64 noundef %108, ptr noundef @.str, i32 noundef 360)
  %109 = load ptr, ptr %15, align 8, !tbaa !5
  %110 = ptrtoint ptr %109 to i64
  %111 = load ptr, ptr %9, align 8, !tbaa !5
  %112 = ptrtoint ptr %111 to i64
  call void @_assert_int_equal(i64 noundef %110, i64 noundef %112, ptr noundef @.str, i32 noundef 362)
  store ptr null, ptr %15, align 8, !tbaa !5
  %113 = load ptr, ptr %4, align 8, !tbaa !5
  %114 = load ptr, ptr %6, align 8, !tbaa !5
  %115 = call zeroext i1 @array_bitset_container_ixor(ptr noundef %113, ptr noundef %114, ptr noundef %15)
  %116 = zext i1 %115 to i64
  call void @_assert_true(i64 noundef %116, ptr noundef @.str.15, ptr noundef @.str, i32 noundef 365)
  %117 = load i32, ptr %14, align 4, !tbaa !9
  %118 = sext i32 %117 to i64
  %119 = load ptr, ptr %15, align 8, !tbaa !5
  %120 = call i32 @bitset_container_cardinality(ptr noundef %119)
  %121 = sext i32 %120 to i64
  call void @_assert_int_equal(i64 noundef %118, i64 noundef %121, ptr noundef @.str, i32 noundef 366)
  %122 = load ptr, ptr %15, align 8, !tbaa !5
  %123 = ptrtoint ptr %122 to i64
  %124 = load ptr, ptr %4, align 8, !tbaa !5
  %125 = ptrtoint ptr %124 to i64
  call void @_assert_int_not_equal(i64 noundef %123, i64 noundef %125, ptr noundef @.str, i32 noundef 367)
  %126 = load ptr, ptr %15, align 8, !tbaa !5
  call void @bitset_container_free(ptr noundef %126)
  store ptr null, ptr %15, align 8, !tbaa !5
  %127 = load ptr, ptr %1, align 8, !tbaa !5
  %128 = load ptr, ptr %6, align 8, !tbaa !5
  %129 = call zeroext i1 @array_bitset_container_ixor(ptr noundef %127, ptr noundef %128, ptr noundef %15)
  %130 = xor i1 %129, true
  %131 = zext i1 %130 to i32
  %132 = sext i32 %131 to i64
  call void @_assert_true(i64 noundef %132, ptr noundef @.str.16, ptr noundef @.str, i32 noundef 374)
  %133 = load ptr, ptr %15, align 8, !tbaa !5
  %134 = call i32 @array_container_cardinality(ptr noundef %133)
  %135 = sext i32 %134 to i64
  call void @_assert_int_equal(i64 noundef 0, i64 noundef %135, ptr noundef @.str, i32 noundef 375)
  %136 = load ptr, ptr %15, align 8, !tbaa !5
  call void @array_container_free(ptr noundef %136)
  store ptr null, ptr %15, align 8, !tbaa !5
  %137 = load ptr, ptr %8, align 8, !tbaa !5
  %138 = load ptr, ptr %7, align 8, !tbaa !5
  %139 = call zeroext i1 @bitset_bitset_container_ixor(ptr noundef %137, ptr noundef %138, ptr noundef %15)
  %140 = xor i1 %139, true
  %141 = zext i1 %140 to i32
  %142 = sext i32 %141 to i64
  call void @_assert_true(i64 noundef %142, ptr noundef @.str.17, ptr noundef @.str, i32 noundef 381)
  %143 = load ptr, ptr %15, align 8, !tbaa !5
  %144 = call i32 @array_container_cardinality(ptr noundef %143)
  %145 = sext i32 %144 to i64
  call void @_assert_int_equal(i64 noundef 1, i64 noundef %145, ptr noundef @.str, i32 noundef 382)
  %146 = load ptr, ptr %15, align 8, !tbaa !5
  call void @array_container_free(ptr noundef %146)
  store ptr null, ptr %15, align 8, !tbaa !5
  %147 = load ptr, ptr %3, align 8, !tbaa !5
  %148 = load ptr, ptr %2, align 8, !tbaa !5
  %149 = call zeroext i1 @array_array_container_ixor(ptr noundef %147, ptr noundef %148, ptr noundef %15)
  %150 = xor i1 %149, true
  %151 = zext i1 %150 to i32
  %152 = sext i32 %151 to i64
  call void @_assert_true(i64 noundef %152, ptr noundef @.str.18, ptr noundef @.str, i32 noundef 386)
  %153 = load ptr, ptr %15, align 8, !tbaa !5
  %154 = call i32 @array_container_cardinality(ptr noundef %153)
  %155 = sext i32 %154 to i64
  call void @_assert_int_equal(i64 noundef 1, i64 noundef %155, ptr noundef @.str, i32 noundef 387)
  %156 = load ptr, ptr %5, align 8, !tbaa !5
  call void @array_container_free(ptr noundef %156)
  %157 = load ptr, ptr %2, align 8, !tbaa !5
  call void @array_container_free(ptr noundef %157)
  %158 = load ptr, ptr %6, align 8, !tbaa !5
  call void @bitset_container_free(ptr noundef %158)
  %159 = load ptr, ptr %7, align 8, !tbaa !5
  call void @bitset_container_free(ptr noundef %159)
  %160 = load ptr, ptr %9, align 8, !tbaa !5
  call void @bitset_container_free(ptr noundef %160)
  %161 = load ptr, ptr %10, align 8, !tbaa !5
  call void @bitset_container_free(ptr noundef %161)
  %162 = load ptr, ptr %15, align 8, !tbaa !5
  call void @array_container_free(ptr noundef %162)
  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 void @array_container_copy(ptr noundef, ptr noundef) #1

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

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

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

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

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

declare zeroext i1 @array_array_container_ixor(ptr noundef, ptr noundef, 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.14 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [49 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

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

; Function Attrs: nounwind uwtable
define dso_local void @array_bitset_ixor_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 @array_container_create() #4
  %6 = tail call ptr @array_container_create() #4
  %7 = tail call ptr @bitset_container_create() #4
  %8 = tail call ptr @bitset_container_create() #4
  %9 = tail call ptr @bitset_container_create() #4
  %10 = tail call ptr @bitset_container_create() #4
  %11 = tail call ptr @bitset_container_create() #4
  br label %12

12:                                               ; preds = %0, %12
  %.055 = phi i32 [ 0, %0 ], [ %15, %12 ]
  %13 = trunc nuw i32 %.055 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 %7, i16 noundef zeroext %13)
  %15 = add nuw nsw i32 %.055, 3
  %16 = icmp ult i32 %.055, 65533
  br i1 %16, label %12, label %.preheader54, !llvm.loop !5

.preheader54:                                     ; preds = %12, %.preheader54
  %.05156 = phi i32 [ %19, %.preheader54 ], [ 0, %12 ]
  %17 = trunc nuw i32 %.05156 to i16
  %18 = tail call zeroext i1 @array_container_add(ptr noundef %5, i16 noundef zeroext %17)
  tail call void @bitset_container_set(ptr noundef %10, i16 noundef zeroext %17)
  %19 = add nuw nsw i32 %.05156, 62
  %20 = icmp ult i32 %.05156, 65474
  br i1 %20, label %.preheader54, label %.preheader, !llvm.loop !7

21:                                               ; preds = %71
  tail call void @array_container_copy(ptr noundef %2, ptr noundef %3) #4
  tail call void @bitset_container_copy(ptr noundef %7, ptr noundef %8) #4
  tail call void @array_container_copy(ptr noundef %2, ptr noundef %4) #4
  %22 = tail call zeroext i1 @array_container_add(ptr noundef %4, i16 noundef zeroext 2)
  tail call void @bitset_container_copy(ptr noundef %7, ptr noundef %9) #4
  %23 = tail call zeroext i1 @bitset_container_add(ptr noundef %9, i16 noundef zeroext 2)
  %24 = tail call i32 @array_container_cardinality(ptr noundef %6)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  store ptr null, ptr %1, align 8, !tbaa !8
  %25 = call zeroext i1 @bitset_array_container_ixor(ptr noundef %10, ptr noundef %2, ptr noundef nonnull %1) #4
  %26 = zext i1 %25 to i64
  call void @_assert_true(i64 noundef %26, ptr noundef nonnull @.str.14, ptr noundef nonnull @.str, i32 noundef 359) #4
  %27 = sext i32 %24 to i64
  %28 = load ptr, ptr %1, align 8, !tbaa !8
  %29 = call i32 @bitset_container_cardinality(ptr noundef %28)
  %30 = sext i32 %29 to i64
  call void @_assert_int_equal(i64 noundef %27, i64 noundef %30, ptr noundef nonnull @.str, i32 noundef 360) #4
  %31 = load ptr, ptr %1, align 8, !tbaa !8
  %32 = ptrtoint ptr %31 to i64
  %33 = ptrtoint ptr %10 to i64
  call void @_assert_int_equal(i64 noundef %32, i64 noundef %33, ptr noundef nonnull @.str, i32 noundef 362) #4
  store ptr null, ptr %1, align 8, !tbaa !8
  %34 = call zeroext i1 @array_bitset_container_ixor(ptr noundef %5, ptr noundef %7, ptr noundef nonnull %1) #4
  %35 = zext i1 %34 to i64
  call void @_assert_true(i64 noundef %35, ptr noundef nonnull @.str.15, ptr noundef nonnull @.str, i32 noundef 365) #4
  %36 = load ptr, ptr %1, align 8, !tbaa !8
  %37 = call i32 @bitset_container_cardinality(ptr noundef %36)
  %38 = sext i32 %37 to i64
  call void @_assert_int_equal(i64 noundef %27, i64 noundef %38, ptr noundef nonnull @.str, i32 noundef 366) #4
  %39 = load ptr, ptr %1, align 8, !tbaa !8
  %40 = ptrtoint ptr %39 to i64
  %41 = ptrtoint ptr %5 to i64
  call void @_assert_int_not_equal(i64 noundef %40, i64 noundef %41, ptr noundef nonnull @.str, i32 noundef 367) #4
  %42 = load ptr, ptr %1, align 8, !tbaa !8
  call void @bitset_container_free(ptr noundef %42) #4
  store ptr null, ptr %1, align 8, !tbaa !8
  %43 = call zeroext i1 @array_bitset_container_ixor(ptr noundef %2, ptr noundef %7, ptr noundef nonnull %1) #4
  %44 = xor i1 %43, true
  %45 = zext i1 %44 to i64
  call void @_assert_true(i64 noundef %45, ptr noundef nonnull @.str.16, ptr noundef nonnull @.str, i32 noundef 374) #4
  %46 = load ptr, ptr %1, align 8, !tbaa !8
  %47 = call i32 @array_container_cardinality(ptr noundef %46)
  %48 = sext i32 %47 to i64
  call void @_assert_int_equal(i64 noundef 0, i64 noundef %48, ptr noundef nonnull @.str, i32 noundef 375) #4
  %49 = load ptr, ptr %1, align 8, !tbaa !8
  call void @array_container_free(ptr noundef %49) #4
  store ptr null, ptr %1, align 8, !tbaa !8
  %50 = call zeroext i1 @bitset_bitset_container_ixor(ptr noundef %9, ptr noundef %8, ptr noundef nonnull %1) #4
  %51 = xor i1 %50, true
  %52 = zext i1 %51 to i64
  call void @_assert_true(i64 noundef %52, ptr noundef nonnull @.str.17, ptr noundef nonnull @.str, i32 noundef 381) #4
  %53 = load ptr, ptr %1, align 8, !tbaa !8
  %54 = call i32 @array_container_cardinality(ptr noundef %53)
  %55 = sext i32 %54 to i64
  call void @_assert_int_equal(i64 noundef 1, i64 noundef %55, ptr noundef nonnull @.str, i32 noundef 382) #4
  %56 = load ptr, ptr %1, align 8, !tbaa !8
  call void @array_container_free(ptr noundef %56) #4
  store ptr null, ptr %1, align 8, !tbaa !8
  %57 = call zeroext i1 @array_array_container_ixor(ptr noundef %4, ptr noundef %3, ptr noundef nonnull %1) #4
  %58 = xor i1 %57, true
  %59 = zext i1 %58 to i64
  call void @_assert_true(i64 noundef %59, ptr noundef nonnull @.str.18, ptr noundef nonnull @.str, i32 noundef 386) #4
  %60 = load ptr, ptr %1, align 8, !tbaa !8
  %61 = call i32 @array_container_cardinality(ptr noundef %60)
  %62 = sext i32 %61 to i64
  call void @_assert_int_equal(i64 noundef 1, i64 noundef %62, ptr noundef nonnull @.str, i32 noundef 387) #4
  call void @array_container_free(ptr noundef %6) #4
  call void @array_container_free(ptr noundef %3) #4
  call void @bitset_container_free(ptr noundef %7) #4
  call void @bitset_container_free(ptr noundef %8) #4
  call void @bitset_container_free(ptr noundef %10) #4
  call void @bitset_container_free(ptr noundef %11) #4
  %63 = load ptr, ptr %1, align 8, !tbaa !8
  call void @array_container_free(ptr noundef %63) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  ret void

.preheader:                                       ; preds = %.preheader54, %71
  %.05057 = phi i32 [ %72, %71 ], [ 0, %.preheader54 ]
  %.lhs.trunc = trunc nuw i32 %.05057 to i16
  %64 = urem i16 %.lhs.trunc, 62
  %65 = icmp eq i16 %64, 0
  %66 = urem i16 %.lhs.trunc, 3
  %67 = icmp eq i16 %66, 0
  %68 = xor i1 %65, %67
  br i1 %68, label %69, label %71

69:                                               ; preds = %.preheader
  %70 = tail call zeroext i1 @array_container_add(ptr noundef %6, i16 noundef zeroext %.lhs.trunc)
  tail call void @bitset_container_set(ptr noundef %11, i16 noundef zeroext %.lhs.trunc)
  br label %71

71:                                               ; preds = %.preheader, %69
  %72 = add nuw nsw i32 %.05057, 1
  %exitcond.not = icmp eq i32 %72, 65536
  br i1 %exitcond.not, label %21, label %.preheader, !llvm.loop !12
}

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

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

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

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

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

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

declare zeroext i1 @array_array_container_ixor(ptr noundef, ptr noundef, 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,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass