; 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.19 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [64 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

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 void @_assert_int_not_equal(i64 noundef, i64 noundef, ptr noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @array_bitset_iandnot_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 ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #4
  %21 = call ptr @array_container_create()
  store ptr %21, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #4
  %22 = call ptr @array_container_create()
  store ptr %22, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  %23 = call ptr @array_container_create()
  store ptr %23, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  %24 = call ptr @array_container_create()
  store ptr %24, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %25 = call ptr @array_container_create()
  store ptr %25, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %26 = call ptr @array_container_create()
  store ptr %26, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %27 = call ptr @array_container_create()
  store ptr %27, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %28 = call ptr @bitset_container_create()
  store ptr %28, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %29 = call ptr @bitset_container_create()
  store ptr %29, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %30 = call ptr @bitset_container_create()
  store ptr %30, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %31 = call ptr @bitset_container_create()
  store ptr %31, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %32 = call ptr @bitset_container_create()
  store ptr %32, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %33 = call ptr @bitset_container_create()
  store ptr %33, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %34 = call ptr @bitset_container_create()
  store ptr %34, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %35

35:                                               ; preds = %47, %0
  %36 = load i32, ptr %15, align 4, !tbaa !9
  %37 = icmp slt i32 %36, 65536
  br i1 %37, label %39, label %38

38:                                               ; preds = %35
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %50

39:                                               ; preds = %35
  %40 = load ptr, ptr %1, align 8, !tbaa !5
  %41 = load i32, ptr %15, align 4, !tbaa !9
  %42 = trunc i32 %41 to i16
  %43 = call zeroext i1 @array_container_add(ptr noundef %40, i16 noundef zeroext %42)
  %44 = load ptr, ptr %8, align 8, !tbaa !5
  %45 = load i32, ptr %15, align 4, !tbaa !9
  %46 = trunc i32 %45 to i16
  call void @bitset_container_set(ptr noundef %44, i16 noundef zeroext %46)
  br label %47

47:                                               ; preds = %39
  %48 = load i32, ptr %15, align 4, !tbaa !9
  %49 = add nsw i32 %48, 3
  store i32 %49, ptr %15, align 4, !tbaa !9
  br label %35, !llvm.loop !11

50:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %51

51:                                               ; preds = %63, %50
  %52 = load i32, ptr %16, align 4, !tbaa !9
  %53 = icmp slt i32 %52, 65536
  br i1 %53, label %55, label %54

54:                                               ; preds = %51
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  br label %66

55:                                               ; preds = %51
  %56 = load ptr, ptr %7, align 8, !tbaa !5
  %57 = load i32, ptr %16, align 4, !tbaa !9
  %58 = trunc i32 %57 to i16
  %59 = call zeroext i1 @array_container_add(ptr noundef %56, i16 noundef zeroext %58)
  %60 = load ptr, ptr %13, align 8, !tbaa !5
  %61 = load i32, ptr %16, align 4, !tbaa !9
  %62 = trunc i32 %61 to i16
  call void @bitset_container_set(ptr noundef %60, i16 noundef zeroext %62)
  br label %63

63:                                               ; preds = %55
  %64 = load i32, ptr %16, align 4, !tbaa !9
  %65 = add nsw i32 %64, 62
  store i32 %65, ptr %16, align 4, !tbaa !9
  br label %51, !llvm.loop !13

66:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %67

67:                                               ; preds = %104, %66
  %68 = load i32, ptr %17, align 4, !tbaa !9
  %69 = icmp slt i32 %68, 65536
  br i1 %69, label %71, label %70

70:                                               ; preds = %67
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  br label %107

71:                                               ; preds = %67
  %72 = load i32, ptr %17, align 4, !tbaa !9
  %73 = srem i32 %72, 3
  %74 = icmp eq i32 %73, 0
  br i1 %74, label %75, label %87

75:                                               ; preds = %71
  %76 = load i32, ptr %17, align 4, !tbaa !9
  %77 = srem i32 %76, 62
  %78 = icmp eq i32 %77, 0
  br i1 %78, label %87, label %79

79:                                               ; preds = %75
  %80 = load ptr, ptr %2, align 8, !tbaa !5
  %81 = load i32, ptr %17, align 4, !tbaa !9
  %82 = trunc i32 %81 to i16
  %83 = call zeroext i1 @array_container_add(ptr noundef %80, i16 noundef zeroext %82)
  %84 = load ptr, ptr %9, align 8, !tbaa !5
  %85 = load i32, ptr %17, align 4, !tbaa !9
  %86 = trunc i32 %85 to i16
  call void @bitset_container_set(ptr noundef %84, i16 noundef zeroext %86)
  br label %87

87:                                               ; preds = %79, %75, %71
  %88 = load i32, ptr %17, align 4, !tbaa !9
  %89 = srem i32 %88, 62
  %90 = icmp eq i32 %89, 0
  br i1 %90, label %91, label %103

91:                                               ; preds = %87
  %92 = load i32, ptr %17, align 4, !tbaa !9
  %93 = srem i32 %92, 3
  %94 = icmp eq i32 %93, 0
  br i1 %94, label %103, label %95

95:                                               ; preds = %91
  %96 = load ptr, ptr %3, align 8, !tbaa !5
  %97 = load i32, ptr %17, align 4, !tbaa !9
  %98 = trunc i32 %97 to i16
  %99 = call zeroext i1 @array_container_add(ptr noundef %96, i16 noundef zeroext %98)
  %100 = load ptr, ptr %10, align 8, !tbaa !5
  %101 = load i32, ptr %17, align 4, !tbaa !9
  %102 = trunc i32 %101 to i16
  call void @bitset_container_set(ptr noundef %100, i16 noundef zeroext %102)
  br label %103

103:                                              ; preds = %95, %91, %87
  br label %104

104:                                              ; preds = %103
  %105 = load i32, ptr %17, align 4, !tbaa !9
  %106 = add nsw i32 %105, 1
  store i32 %106, ptr %17, align 4, !tbaa !9
  br label %67, !llvm.loop !14

107:                                              ; preds = %70
  %108 = load ptr, ptr %1, align 8, !tbaa !5
  %109 = load ptr, ptr %4, align 8, !tbaa !5
  call void @array_container_copy(ptr noundef %108, ptr noundef %109)
  %110 = load ptr, ptr %7, align 8, !tbaa !5
  %111 = load ptr, ptr %5, align 8, !tbaa !5
  call void @array_container_copy(ptr noundef %110, ptr noundef %111)
  %112 = load ptr, ptr %8, align 8, !tbaa !5
  %113 = load ptr, ptr %11, align 8, !tbaa !5
  call void @bitset_container_copy(ptr noundef %112, ptr noundef %113)
  %114 = load ptr, ptr %13, align 8, !tbaa !5
  %115 = load ptr, ptr %14, align 8, !tbaa !5
  call void @bitset_container_copy(ptr noundef %114, ptr noundef %115)
  %116 = load ptr, ptr %1, align 8, !tbaa !5
  %117 = load ptr, ptr %6, align 8, !tbaa !5
  call void @array_container_copy(ptr noundef %116, ptr noundef %117)
  %118 = load ptr, ptr %6, align 8, !tbaa !5
  %119 = call zeroext i1 @array_container_add(ptr noundef %118, i16 noundef zeroext 2)
  %120 = load ptr, ptr %8, align 8, !tbaa !5
  %121 = load ptr, ptr %12, align 8, !tbaa !5
  call void @bitset_container_copy(ptr noundef %120, ptr noundef %121)
  %122 = load ptr, ptr %12, align 8, !tbaa !5
  %123 = call zeroext i1 @bitset_container_add(ptr noundef %122, i16 noundef zeroext 2)
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  %124 = load ptr, ptr %2, align 8, !tbaa !5
  %125 = call i32 @array_container_cardinality(ptr noundef %124)
  store i32 %125, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  %126 = load ptr, ptr %3, align 8, !tbaa !5
  %127 = call i32 @array_container_cardinality(ptr noundef %126)
  store i32 %127, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  store ptr null, ptr %20, align 8, !tbaa !5
  %128 = load ptr, ptr %13, align 8, !tbaa !5
  %129 = load ptr, ptr %1, align 8, !tbaa !5
  %130 = call zeroext i1 @bitset_array_container_iandnot(ptr noundef %128, ptr noundef %129, ptr noundef %20)
  %131 = xor i1 %130, true
  %132 = zext i1 %131 to i32
  %133 = sext i32 %132 to i64
  call void @_assert_true(i64 noundef %133, ptr noundef @.str.19, ptr noundef @.str, i32 noundef 454)
  %134 = load i32, ptr %19, align 4, !tbaa !9
  %135 = sext i32 %134 to i64
  %136 = load ptr, ptr %20, align 8, !tbaa !5
  %137 = call i32 @array_container_cardinality(ptr noundef %136)
  %138 = sext i32 %137 to i64
  call void @_assert_int_equal(i64 noundef %135, i64 noundef %138, ptr noundef @.str, i32 noundef 455)
  %139 = load ptr, ptr %20, align 8, !tbaa !5
  %140 = ptrtoint ptr %139 to i64
  %141 = load ptr, ptr %13, align 8, !tbaa !5
  %142 = ptrtoint ptr %141 to i64
  call void @_assert_int_not_equal(i64 noundef %140, i64 noundef %142, ptr noundef @.str, i32 noundef 457)
  %143 = call ptr @bitset_container_create()
  store ptr %143, ptr %13, align 8, !tbaa !5
  %144 = load ptr, ptr %20, align 8, !tbaa !5
  call void @array_container_free(ptr noundef %144)
  %145 = load ptr, ptr %14, align 8, !tbaa !5
  %146 = load ptr, ptr %13, align 8, !tbaa !5
  call void @bitset_container_copy(ptr noundef %145, ptr noundef %146)
  %147 = load ptr, ptr %8, align 8, !tbaa !5
  %148 = load ptr, ptr %7, align 8, !tbaa !5
  %149 = call zeroext i1 @bitset_array_container_iandnot(ptr noundef %147, ptr noundef %148, ptr noundef %20)
  %150 = zext i1 %149 to i64
  call void @_assert_true(i64 noundef %150, ptr noundef @.str.20, ptr noundef @.str, i32 noundef 462)
  %151 = load i32, ptr %18, align 4, !tbaa !9
  %152 = sext i32 %151 to i64
  %153 = load ptr, ptr %20, align 8, !tbaa !5
  %154 = call i32 @bitset_container_cardinality(ptr noundef %153)
  %155 = sext i32 %154 to i64
  call void @_assert_int_equal(i64 noundef %152, i64 noundef %155, ptr noundef @.str, i32 noundef 463)
  %156 = load ptr, ptr %20, align 8, !tbaa !5
  %157 = ptrtoint ptr %156 to i64
  %158 = load ptr, ptr %8, align 8, !tbaa !5
  %159 = ptrtoint ptr %158 to i64
  call void @_assert_int_equal(i64 noundef %157, i64 noundef %159, ptr noundef @.str, i32 noundef 465)
  %160 = load ptr, ptr %11, align 8, !tbaa !5
  %161 = load ptr, ptr %8, align 8, !tbaa !5
  call void @bitset_container_copy(ptr noundef %160, ptr noundef %161)
  %162 = load ptr, ptr %7, align 8, !tbaa !5
  %163 = load ptr, ptr %8, align 8, !tbaa !5
  call void @array_bitset_container_iandnot(ptr noundef %162, ptr noundef %163)
  %164 = load i32, ptr %19, align 4, !tbaa !9
  %165 = sext i32 %164 to i64
  %166 = load ptr, ptr %7, align 8, !tbaa !5
  %167 = call i32 @array_container_cardinality(ptr noundef %166)
  %168 = sext i32 %167 to i64
  call void @_assert_int_equal(i64 noundef %165, i64 noundef %168, ptr noundef @.str, i32 noundef 469)
  %169 = load ptr, ptr %5, align 8, !tbaa !5
  %170 = load ptr, ptr %7, align 8, !tbaa !5
  call void @array_container_copy(ptr noundef %169, ptr noundef %170)
  %171 = load ptr, ptr %1, align 8, !tbaa !5
  %172 = load ptr, ptr %8, align 8, !tbaa !5
  call void @array_bitset_container_iandnot(ptr noundef %171, ptr noundef %172)
  %173 = load ptr, ptr %1, align 8, !tbaa !5
  %174 = call i32 @array_container_cardinality(ptr noundef %173)
  %175 = sext i32 %174 to i64
  call void @_assert_int_equal(i64 noundef 0, i64 noundef %175, ptr noundef @.str, i32 noundef 474)
  %176 = load ptr, ptr %4, align 8, !tbaa !5
  %177 = load ptr, ptr %1, align 8, !tbaa !5
  call void @array_container_copy(ptr noundef %176, ptr noundef %177)
  %178 = load ptr, ptr %12, align 8, !tbaa !5
  %179 = load ptr, ptr %11, align 8, !tbaa !5
  %180 = call zeroext i1 @bitset_bitset_container_iandnot(ptr noundef %178, ptr noundef %179, ptr noundef %20)
  %181 = xor i1 %180, true
  %182 = zext i1 %181 to i32
  %183 = sext i32 %182 to i64
  call void @_assert_true(i64 noundef %183, ptr noundef @.str.21, ptr noundef @.str, i32 noundef 479)
  %184 = load ptr, ptr %20, align 8, !tbaa !5
  %185 = call i32 @array_container_cardinality(ptr noundef %184)
  %186 = sext i32 %185 to i64
  call void @_assert_int_equal(i64 noundef 1, i64 noundef %186, ptr noundef @.str, i32 noundef 480)
  %187 = load ptr, ptr %20, align 8, !tbaa !5
  call void @array_container_free(ptr noundef %187)
  store ptr null, ptr %20, align 8, !tbaa !5
  %188 = load ptr, ptr %6, align 8, !tbaa !5
  %189 = load ptr, ptr %4, align 8, !tbaa !5
  call void @array_array_container_iandnot(ptr noundef %188, ptr noundef %189)
  %190 = load ptr, ptr %6, align 8, !tbaa !5
  %191 = call i32 @array_container_cardinality(ptr noundef %190)
  %192 = sext i32 %191 to i64
  call void @_assert_int_equal(i64 noundef 1, i64 noundef %192, ptr noundef @.str, i32 noundef 485)
  %193 = load ptr, ptr %1, align 8, !tbaa !5
  call void @array_container_free(ptr noundef %193)
  %194 = load ptr, ptr %7, align 8, !tbaa !5
  call void @array_container_free(ptr noundef %194)
  %195 = load ptr, ptr %2, align 8, !tbaa !5
  call void @array_container_free(ptr noundef %195)
  %196 = load ptr, ptr %3, align 8, !tbaa !5
  call void @array_container_free(ptr noundef %196)
  %197 = load ptr, ptr %4, align 8, !tbaa !5
  call void @array_container_free(ptr noundef %197)
  %198 = load ptr, ptr %5, align 8, !tbaa !5
  call void @array_container_free(ptr noundef %198)
  %199 = load ptr, ptr %6, align 8, !tbaa !5
  call void @array_container_free(ptr noundef %199)
  %200 = load ptr, ptr %8, align 8, !tbaa !5
  call void @bitset_container_free(ptr noundef %200)
  %201 = load ptr, ptr %11, align 8, !tbaa !5
  call void @bitset_container_free(ptr noundef %201)
  %202 = load ptr, ptr %13, align 8, !tbaa !5
  call void @bitset_container_free(ptr noundef %202)
  %203 = load ptr, ptr %14, align 8, !tbaa !5
  call void @bitset_container_free(ptr noundef %203)
  %204 = load ptr, ptr %9, align 8, !tbaa !5
  call void @bitset_container_free(ptr noundef %204)
  %205 = load ptr, ptr %10, align 8, !tbaa !5
  call void @bitset_container_free(ptr noundef %205)
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #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 zeroext i1 @bitset_array_container_iandnot(ptr noundef, ptr noundef, ptr noundef) #1

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

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

declare void @array_array_container_iandnot(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.19 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [64 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

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 void @_assert_int_not_equal(i64 noundef, i64 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @array_bitset_iandnot_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 @array_container_create() #4
  %8 = tail call ptr @array_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
  %12 = tail call ptr @bitset_container_create() #4
  %13 = tail call ptr @bitset_container_create() #4
  %14 = tail call ptr @bitset_container_create() #4
  %15 = tail call ptr @bitset_container_create() #4
  br label %16

16:                                               ; preds = %0, %16
  %.092 = phi i32 [ 0, %0 ], [ %19, %16 ]
  %17 = trunc nuw i32 %.092 to i16
  %18 = tail call zeroext i1 @array_container_add(ptr noundef %2, i16 noundef zeroext %17)
  tail call void @bitset_container_set(ptr noundef %9, i16 noundef zeroext %17)
  %19 = add nuw nsw i32 %.092, 3
  %20 = icmp ult i32 %.092, 65533
  br i1 %20, label %16, label %.preheader91, !llvm.loop !5

.preheader91:                                     ; preds = %16, %.preheader91
  %.08393 = phi i32 [ %23, %.preheader91 ], [ 0, %16 ]
  %21 = trunc nuw i32 %.08393 to i16
  %22 = tail call zeroext i1 @array_container_add(ptr noundef %8, i16 noundef zeroext %21)
  tail call void @bitset_container_set(ptr noundef %14, i16 noundef zeroext %21)
  %23 = add nuw nsw i32 %.08393, 62
  %24 = icmp ult i32 %.08393, 65474
  br i1 %24, label %.preheader91, label %.preheader, !llvm.loop !7

25:                                               ; preds = %70
  tail call void @array_container_copy(ptr noundef %2, ptr noundef %5) #4
  tail call void @array_container_copy(ptr noundef %8, ptr noundef %6) #4
  tail call void @bitset_container_copy(ptr noundef %9, ptr noundef %12) #4
  tail call void @bitset_container_copy(ptr noundef %14, ptr noundef %15) #4
  tail call void @array_container_copy(ptr noundef %2, ptr noundef %7) #4
  %26 = tail call zeroext i1 @array_container_add(ptr noundef %7, i16 noundef zeroext 2)
  tail call void @bitset_container_copy(ptr noundef %9, ptr noundef %13) #4
  %27 = tail call zeroext i1 @bitset_container_add(ptr noundef %13, i16 noundef zeroext 2)
  %28 = tail call i32 @array_container_cardinality(ptr noundef %3)
  %29 = tail call i32 @array_container_cardinality(ptr noundef %4)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  store ptr null, ptr %1, align 8, !tbaa !8
  %30 = call zeroext i1 @bitset_array_container_iandnot(ptr noundef %14, ptr noundef %2, ptr noundef nonnull %1) #4
  %31 = xor i1 %30, true
  %32 = zext i1 %31 to i64
  call void @_assert_true(i64 noundef %32, ptr noundef nonnull @.str.19, ptr noundef nonnull @.str, i32 noundef 454) #4
  %33 = sext i32 %29 to i64
  %34 = load ptr, ptr %1, align 8, !tbaa !8
  %35 = call i32 @array_container_cardinality(ptr noundef %34)
  %36 = sext i32 %35 to i64
  call void @_assert_int_equal(i64 noundef %33, i64 noundef %36, ptr noundef nonnull @.str, i32 noundef 455) #4
  %37 = load ptr, ptr %1, align 8, !tbaa !8
  %38 = ptrtoint ptr %37 to i64
  %39 = ptrtoint ptr %14 to i64
  call void @_assert_int_not_equal(i64 noundef %38, i64 noundef %39, ptr noundef nonnull @.str, i32 noundef 457) #4
  %40 = call ptr @bitset_container_create() #4
  %41 = load ptr, ptr %1, align 8, !tbaa !8
  call void @array_container_free(ptr noundef %41) #4
  call void @bitset_container_copy(ptr noundef %15, ptr noundef %40) #4
  %42 = call zeroext i1 @bitset_array_container_iandnot(ptr noundef %9, ptr noundef %8, ptr noundef nonnull %1) #4
  %43 = zext i1 %42 to i64
  call void @_assert_true(i64 noundef %43, ptr noundef nonnull @.str.20, ptr noundef nonnull @.str, i32 noundef 462) #4
  %44 = sext i32 %28 to i64
  %45 = load ptr, ptr %1, align 8, !tbaa !8
  %46 = call i32 @bitset_container_cardinality(ptr noundef %45)
  %47 = sext i32 %46 to i64
  call void @_assert_int_equal(i64 noundef %44, i64 noundef %47, ptr noundef nonnull @.str, i32 noundef 463) #4
  %48 = load ptr, ptr %1, align 8, !tbaa !8
  %49 = ptrtoint ptr %48 to i64
  %50 = ptrtoint ptr %9 to i64
  call void @_assert_int_equal(i64 noundef %49, i64 noundef %50, ptr noundef nonnull @.str, i32 noundef 465) #4
  call void @bitset_container_copy(ptr noundef %12, ptr noundef %9) #4
  call void @array_bitset_container_iandnot(ptr noundef %8, ptr noundef %9) #4
  %51 = call i32 @array_container_cardinality(ptr noundef %8)
  %52 = sext i32 %51 to i64
  call void @_assert_int_equal(i64 noundef %33, i64 noundef %52, ptr noundef nonnull @.str, i32 noundef 469) #4
  call void @array_container_copy(ptr noundef %6, ptr noundef %8) #4
  call void @array_bitset_container_iandnot(ptr noundef %2, ptr noundef %9) #4
  %53 = call i32 @array_container_cardinality(ptr noundef %2)
  %54 = sext i32 %53 to i64
  call void @_assert_int_equal(i64 noundef 0, i64 noundef %54, ptr noundef nonnull @.str, i32 noundef 474) #4
  call void @array_container_copy(ptr noundef %5, ptr noundef %2) #4
  %55 = call zeroext i1 @bitset_bitset_container_iandnot(ptr noundef %13, ptr noundef %12, ptr noundef nonnull %1) #4
  %56 = xor i1 %55, true
  %57 = zext i1 %56 to i64
  call void @_assert_true(i64 noundef %57, ptr noundef nonnull @.str.21, ptr noundef nonnull @.str, i32 noundef 479) #4
  %58 = load ptr, ptr %1, align 8, !tbaa !8
  %59 = call i32 @array_container_cardinality(ptr noundef %58)
  %60 = sext i32 %59 to i64
  call void @_assert_int_equal(i64 noundef 1, i64 noundef %60, ptr noundef nonnull @.str, i32 noundef 480) #4
  %61 = load ptr, ptr %1, align 8, !tbaa !8
  call void @array_container_free(ptr noundef %61) #4
  store ptr null, ptr %1, align 8, !tbaa !8
  call void @array_array_container_iandnot(ptr noundef %7, ptr noundef %5) #4
  %62 = call i32 @array_container_cardinality(ptr noundef %7)
  %63 = sext i32 %62 to i64
  call void @_assert_int_equal(i64 noundef 1, i64 noundef %63, ptr noundef nonnull @.str, i32 noundef 485) #4
  call void @array_container_free(ptr noundef %2) #4
  call void @array_container_free(ptr noundef %8) #4
  call void @array_container_free(ptr noundef %3) #4
  call void @array_container_free(ptr noundef %4) #4
  call void @array_container_free(ptr noundef %5) #4
  call void @array_container_free(ptr noundef %6) #4
  call void @array_container_free(ptr noundef %7) #4
  call void @bitset_container_free(ptr noundef %9) #4
  call void @bitset_container_free(ptr noundef %12) #4
  call void @bitset_container_free(ptr noundef %40) #4
  call void @bitset_container_free(ptr noundef %15) #4
  call void @bitset_container_free(ptr noundef %10) #4
  call void @bitset_container_free(ptr noundef %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  ret void

.preheader:                                       ; preds = %.preheader91, %70
  %.08294 = phi i32 [ %71, %70 ], [ 0, %.preheader91 ]
  %.lhs.trunc = trunc nuw i32 %.08294 to i16
  %64 = urem i16 %.lhs.trunc, 3
  %65 = icmp eq i16 %64, 0
  %66 = urem i16 %.lhs.trunc, 62
  %67 = icmp ne i16 %66, 0
  %or.cond.not = and i1 %67, %65
  br i1 %or.cond.not, label %.sink.split, label %68

68:                                               ; preds = %.preheader
  %brmerge = or i1 %67, %65
  br i1 %brmerge, label %70, label %.sink.split

.sink.split:                                      ; preds = %68, %.preheader
  %.sink95 = phi ptr [ %3, %.preheader ], [ %4, %68 ]
  %.sink = phi ptr [ %10, %.preheader ], [ %11, %68 ]
  %69 = tail call zeroext i1 @array_container_add(ptr noundef %.sink95, i16 noundef zeroext %.lhs.trunc)
  tail call void @bitset_container_set(ptr noundef %.sink, i16 noundef zeroext %.lhs.trunc)
  br label %70

70:                                               ; preds = %.sink.split, %68
  %71 = add nuw nsw i32 %.08294, 1
  %exitcond.not = icmp eq i32 %71, 65536
  br i1 %exitcond.not, label %25, label %.preheader, !llvm.loop !12
}

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

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

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

declare void @array_array_container_iandnot(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,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass