; LLVM IR from jermp/2i_bench :: external/CRoaring/tests (array_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"

%struct.array_container_s = type { i32, i32, ptr }

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [29 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 void @_assert_true(i64 noundef, ptr noundef, ptr noundef, i32 noundef) #1

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

declare void @array_container_free(ptr noundef) #1

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

; Function Attrs: nounwind uwtable
define dso_local void @add_contains_test() #3 {
  %1 = alloca ptr, align 8
  %2 = alloca i32, align 4
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i32, align 4
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #4
  %9 = call ptr @array_container_create()
  store ptr %9, ptr %1, align 8, !tbaa !5
  %10 = load ptr, ptr %1, align 8, !tbaa !5
  %11 = ptrtoint ptr %10 to i64
  call void @_assert_true(i64 noundef %11, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 33)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  store i32 0, ptr %2, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  store i64 0, ptr %3, align 8, !tbaa !11
  br label %12

12:                                               ; preds = %47, %0
  %13 = load i64, ptr %3, align 8, !tbaa !11
  %14 = icmp ult i64 %13, 65536
  br i1 %14, label %16, label %15

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

16:                                               ; preds = %12
  %17 = load ptr, ptr %1, align 8, !tbaa !5
  %18 = load i64, ptr %3, align 8, !tbaa !11
  %19 = trunc i64 %18 to i16
  %20 = call zeroext i1 @array_container_add(ptr noundef %17, i16 noundef zeroext %19)
  %21 = zext i1 %20 to i64
  call void @_assert_true(i64 noundef %21, ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 38)
  %22 = load ptr, ptr %1, align 8, !tbaa !5
  %23 = load i64, ptr %3, align 8, !tbaa !11
  %24 = trunc i64 %23 to i16
  %25 = call zeroext i1 @array_container_contains(ptr noundef %22, i16 noundef zeroext %24)
  %26 = zext i1 %25 to i64
  call void @_assert_true(i64 noundef %26, ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 39)
  %27 = load ptr, ptr %1, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.array_container_s, ptr %27, i32 0, i32 0
  %29 = load i32, ptr %28, align 8, !tbaa !13
  %30 = sext i32 %29 to i64
  %31 = load i32, ptr %2, align 4, !tbaa !9
  %32 = add nsw i32 %31, 1
  store i32 %32, ptr %2, align 4, !tbaa !9
  %33 = sext i32 %32 to i64
  call void @_assert_int_equal(i64 noundef %30, i64 noundef %33, ptr noundef @.str.1, i32 noundef 40)
  %34 = load ptr, ptr %1, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.array_container_s, ptr %34, i32 0, i32 0
  %36 = load i32, ptr %35, align 8, !tbaa !13
  %37 = load ptr, ptr %1, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.array_container_s, ptr %37, i32 0, i32 1
  %39 = load i32, ptr %38, align 4, !tbaa !15
  %40 = icmp sgt i32 %36, %39
  %41 = zext i1 %40 to i32
  %42 = sext i32 %41 to i64
  %43 = icmp ne i64 %42, 0
  %44 = xor i1 %43, true
  %45 = zext i1 %44 to i32
  %46 = sext i32 %45 to i64
  call void @_assert_true(i64 noundef %46, ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 41)
  br label %47

47:                                               ; preds = %16
  %48 = load i64, ptr %3, align 8, !tbaa !11
  %49 = add i64 %48, 3
  store i64 %49, ptr %3, align 8, !tbaa !11
  br label %12, !llvm.loop !16

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

51:                                               ; preds = %68, %50
  %52 = load i64, ptr %4, align 8, !tbaa !11
  %53 = icmp ult i64 %52, 65536
  br i1 %53, label %55, label %54

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

55:                                               ; preds = %51
  %56 = load ptr, ptr %1, align 8, !tbaa !5
  %57 = load i64, ptr %4, align 8, !tbaa !11
  %58 = trunc i64 %57 to i16
  %59 = call zeroext i1 @array_container_contains(ptr noundef %56, i16 noundef zeroext %58)
  %60 = zext i1 %59 to i64
  %61 = load i64, ptr %4, align 8, !tbaa !11
  %62 = udiv i64 %61, 3
  %63 = mul i64 %62, 3
  %64 = load i64, ptr %4, align 8, !tbaa !11
  %65 = icmp eq i64 %63, %64
  %66 = zext i1 %65 to i32
  %67 = sext i32 %66 to i64
  call void @_assert_int_equal(i64 noundef %60, i64 noundef %67, ptr noundef @.str.1, i32 noundef 45)
  br label %68

68:                                               ; preds = %55
  %69 = load i64, ptr %4, align 8, !tbaa !11
  %70 = add i64 %69, 1
  store i64 %70, ptr %4, align 8, !tbaa !11
  br label %51, !llvm.loop !18

71:                                               ; preds = %54
  %72 = load ptr, ptr %1, align 8, !tbaa !5
  %73 = call i32 @array_container_cardinality(ptr noundef %72)
  %74 = sext i32 %73 to i64
  call void @_assert_int_equal(i64 noundef %74, i64 noundef 21846, ptr noundef @.str.1, i32 noundef 48)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  store i64 0, ptr %5, align 8, !tbaa !11
  br label %75

75:                                               ; preds = %104, %71
  %76 = load i64, ptr %5, align 8, !tbaa !11
  %77 = icmp ult i64 %76, 65536
  br i1 %77, label %79, label %78

78:                                               ; preds = %75
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  br label %107

79:                                               ; preds = %75
  %80 = load ptr, ptr %1, align 8, !tbaa !5
  %81 = load i64, ptr %5, align 8, !tbaa !11
  %82 = trunc i64 %81 to i16
  %83 = call zeroext i1 @array_container_contains(ptr noundef %80, i16 noundef zeroext %82)
  %84 = zext i1 %83 to i64
  call void @_assert_true(i64 noundef %84, ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 51)
  %85 = load ptr, ptr %1, align 8, !tbaa !5
  %86 = load i64, ptr %5, align 8, !tbaa !11
  %87 = trunc i64 %86 to i16
  %88 = call zeroext i1 @array_container_remove(ptr noundef %85, i16 noundef zeroext %87)
  %89 = zext i1 %88 to i64
  call void @_assert_true(i64 noundef %89, ptr noundef @.str.6, ptr noundef @.str.1, i32 noundef 52)
  %90 = load ptr, ptr %1, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.array_container_s, ptr %90, i32 0, i32 0
  %92 = load i32, ptr %91, align 8, !tbaa !13
  %93 = sext i32 %92 to i64
  %94 = load i32, ptr %2, align 4, !tbaa !9
  %95 = add nsw i32 %94, -1
  store i32 %95, ptr %2, align 4, !tbaa !9
  %96 = sext i32 %95 to i64
  call void @_assert_int_equal(i64 noundef %93, i64 noundef %96, ptr noundef @.str.1, i32 noundef 53)
  %97 = load ptr, ptr %1, align 8, !tbaa !5
  %98 = load i64, ptr %5, align 8, !tbaa !11
  %99 = trunc i64 %98 to i16
  %100 = call zeroext i1 @array_container_contains(ptr noundef %97, i16 noundef zeroext %99)
  %101 = xor i1 %100, true
  %102 = zext i1 %101 to i32
  %103 = sext i32 %102 to i64
  call void @_assert_true(i64 noundef %103, ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 54)
  br label %104

104:                                              ; preds = %79
  %105 = load i64, ptr %5, align 8, !tbaa !11
  %106 = add i64 %105, 3
  store i64 %106, ptr %5, align 8, !tbaa !11
  br label %75, !llvm.loop !19

107:                                              ; preds = %78
  %108 = load ptr, ptr %1, align 8, !tbaa !5
  %109 = call i32 @array_container_cardinality(ptr noundef %108)
  %110 = sext i32 %109 to i64
  call void @_assert_int_equal(i64 noundef %110, i64 noundef 0, ptr noundef @.str.1, i32 noundef 57)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 65535, ptr %6, align 4, !tbaa !9
  br label %111

111:                                              ; preds = %146, %107
  %112 = load i32, ptr %6, align 4, !tbaa !9
  %113 = icmp sge i32 %112, 0
  br i1 %113, label %115, label %114

114:                                              ; preds = %111
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %149

115:                                              ; preds = %111
  %116 = load ptr, ptr %1, align 8, !tbaa !5
  %117 = load i32, ptr %6, align 4, !tbaa !9
  %118 = trunc i32 %117 to i16
  %119 = call zeroext i1 @array_container_add(ptr noundef %116, i16 noundef zeroext %118)
  %120 = zext i1 %119 to i64
  call void @_assert_true(i64 noundef %120, ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 60)
  %121 = load ptr, ptr %1, align 8, !tbaa !5
  %122 = load i32, ptr %6, align 4, !tbaa !9
  %123 = trunc i32 %122 to i16
  %124 = call zeroext i1 @array_container_contains(ptr noundef %121, i16 noundef zeroext %123)
  %125 = zext i1 %124 to i64
  call void @_assert_true(i64 noundef %125, ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 61)
  %126 = load ptr, ptr %1, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.array_container_s, ptr %126, i32 0, i32 0
  %128 = load i32, ptr %127, align 8, !tbaa !13
  %129 = sext i32 %128 to i64
  %130 = load i32, ptr %2, align 4, !tbaa !9
  %131 = add nsw i32 %130, 1
  store i32 %131, ptr %2, align 4, !tbaa !9
  %132 = sext i32 %131 to i64
  call void @_assert_int_equal(i64 noundef %129, i64 noundef %132, ptr noundef @.str.1, i32 noundef 62)
  %133 = load ptr, ptr %1, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.array_container_s, ptr %133, i32 0, i32 0
  %135 = load i32, ptr %134, align 8, !tbaa !13
  %136 = load ptr, ptr %1, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.array_container_s, ptr %136, i32 0, i32 1
  %138 = load i32, ptr %137, align 4, !tbaa !15
  %139 = icmp sgt i32 %135, %138
  %140 = zext i1 %139 to i32
  %141 = sext i32 %140 to i64
  %142 = icmp ne i64 %141, 0
  %143 = xor i1 %142, true
  %144 = zext i1 %143 to i32
  %145 = sext i32 %144 to i64
  call void @_assert_true(i64 noundef %145, ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 63)
  br label %146

146:                                              ; preds = %115
  %147 = load i32, ptr %6, align 4, !tbaa !9
  %148 = sub nsw i32 %147, 3
  store i32 %148, ptr %6, align 4, !tbaa !9
  br label %111, !llvm.loop !20

149:                                              ; preds = %114
  %150 = load ptr, ptr %1, align 8, !tbaa !5
  %151 = call i32 @array_container_cardinality(ptr noundef %150)
  %152 = sext i32 %151 to i64
  %153 = load i32, ptr %2, align 4, !tbaa !9
  %154 = sext i32 %153 to i64
  call void @_assert_int_equal(i64 noundef %152, i64 noundef %154, ptr noundef @.str.1, i32 noundef 66)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  store i64 0, ptr %7, align 8, !tbaa !11
  br label %155

155:                                              ; preds = %172, %149
  %156 = load i64, ptr %7, align 8, !tbaa !11
  %157 = icmp ult i64 %156, 65536
  br i1 %157, label %159, label %158

158:                                              ; preds = %155
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  br label %175

159:                                              ; preds = %155
  %160 = load ptr, ptr %1, align 8, !tbaa !5
  %161 = load i64, ptr %7, align 8, !tbaa !11
  %162 = trunc i64 %161 to i16
  %163 = call zeroext i1 @array_container_contains(ptr noundef %160, i16 noundef zeroext %162)
  %164 = zext i1 %163 to i64
  %165 = load i64, ptr %7, align 8, !tbaa !11
  %166 = udiv i64 %165, 3
  %167 = mul i64 %166, 3
  %168 = load i64, ptr %7, align 8, !tbaa !11
  %169 = icmp eq i64 %167, %168
  %170 = zext i1 %169 to i32
  %171 = sext i32 %170 to i64
  call void @_assert_int_equal(i64 noundef %164, i64 noundef %171, ptr noundef @.str.1, i32 noundef 69)
  br label %172

172:                                              ; preds = %159
  %173 = load i64, ptr %7, align 8, !tbaa !11
  %174 = add i64 %173, 1
  store i64 %174, ptr %7, align 8, !tbaa !11
  br label %155, !llvm.loop !21

175:                                              ; preds = %158
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  store i64 0, ptr %8, align 8, !tbaa !11
  br label %176

176:                                              ; preds = %205, %175
  %177 = load i64, ptr %8, align 8, !tbaa !11
  %178 = icmp ult i64 %177, 65536
  br i1 %178, label %180, label %179

179:                                              ; preds = %176
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  br label %208

180:                                              ; preds = %176
  %181 = load ptr, ptr %1, align 8, !tbaa !5
  %182 = load i64, ptr %8, align 8, !tbaa !11
  %183 = trunc i64 %182 to i16
  %184 = call zeroext i1 @array_container_contains(ptr noundef %181, i16 noundef zeroext %183)
  %185 = zext i1 %184 to i64
  call void @_assert_true(i64 noundef %185, ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 73)
  %186 = load ptr, ptr %1, align 8, !tbaa !5
  %187 = load i64, ptr %8, align 8, !tbaa !11
  %188 = trunc i64 %187 to i16
  %189 = call zeroext i1 @array_container_remove(ptr noundef %186, i16 noundef zeroext %188)
  %190 = zext i1 %189 to i64
  call void @_assert_true(i64 noundef %190, ptr noundef @.str.6, ptr noundef @.str.1, i32 noundef 74)
  %191 = load ptr, ptr %1, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.array_container_s, ptr %191, i32 0, i32 0
  %193 = load i32, ptr %192, align 8, !tbaa !13
  %194 = sext i32 %193 to i64
  %195 = load i32, ptr %2, align 4, !tbaa !9
  %196 = add nsw i32 %195, -1
  store i32 %196, ptr %2, align 4, !tbaa !9
  %197 = sext i32 %196 to i64
  call void @_assert_int_equal(i64 noundef %194, i64 noundef %197, ptr noundef @.str.1, i32 noundef 75)
  %198 = load ptr, ptr %1, align 8, !tbaa !5
  %199 = load i64, ptr %8, align 8, !tbaa !11
  %200 = trunc i64 %199 to i16
  %201 = call zeroext i1 @array_container_contains(ptr noundef %198, i16 noundef zeroext %200)
  %202 = xor i1 %201, true
  %203 = zext i1 %202 to i32
  %204 = sext i32 %203 to i64
  call void @_assert_true(i64 noundef %204, ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 76)
  br label %205

205:                                              ; preds = %180
  %206 = load i64, ptr %8, align 8, !tbaa !11
  %207 = add i64 %206, 3
  store i64 %207, ptr %8, align 8, !tbaa !11
  br label %176, !llvm.loop !22

208:                                              ; preds = %179
  %209 = load ptr, ptr %1, align 8, !tbaa !5
  call void @array_container_free(ptr noundef %209)
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #4
  ret void
}

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

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

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

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

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 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"array_container_s", !10, i64 0, !10, i64 4, !6, i64 8}
!15 = !{!14, !10, i64 4}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}
!20 = distinct !{!20, !17}
!21 = distinct !{!21, !17}
!22 = distinct !{!22, !17}


; 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 [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [29 x i8], align 1

declare ptr @array_container_create() local_unnamed_addr #0

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

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

declare void @array_container_free(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @add_contains_test() local_unnamed_addr #2 {
  %1 = tail call ptr @array_container_create() #3
  %2 = ptrtoint ptr %1 to i64
  tail call void @_assert_true(i64 noundef %2, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 33) #3
  %3 = getelementptr inbounds i8, ptr %1, i64 4
  br label %4

4:                                                ; preds = %0, %4
  %indvars.iv = phi i64 [ 0, %0 ], [ %indvars.iv.next, %4 ]
  %.06167 = phi i64 [ 0, %0 ], [ %16, %4 ]
  %5 = trunc nuw i64 %.06167 to i16
  %6 = tail call zeroext i1 @array_container_add(ptr noundef %1, i16 noundef zeroext %5)
  %7 = zext i1 %6 to i64
  tail call void @_assert_true(i64 noundef %7, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 38) #3
  %8 = tail call zeroext i1 @array_container_contains(ptr noundef %1, i16 noundef zeroext %5)
  %9 = zext i1 %8 to i64
  tail call void @_assert_true(i64 noundef %9, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 39) #3
  %10 = load i32, ptr %1, align 8, !tbaa !5
  %11 = sext i32 %10 to i64
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  tail call void @_assert_int_equal(i64 noundef %11, i64 noundef %indvars.iv.next, ptr noundef nonnull @.str.1, i32 noundef 40) #3
  %12 = load i32, ptr %1, align 8, !tbaa !5
  %13 = load i32, ptr %3, align 4, !tbaa !11
  %14 = icmp sle i32 %12, %13
  %15 = zext i1 %14 to i64
  tail call void @_assert_true(i64 noundef %15, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i32 noundef 41) #3
  %16 = add nuw nsw i64 %.06167, 3
  %exitcond.not = icmp eq i64 %indvars.iv.next, 21846
  br i1 %exitcond.not, label %.preheader65, label %4, !llvm.loop !12

17:                                               ; preds = %.preheader65
  %18 = tail call i32 @array_container_cardinality(ptr noundef nonnull %1)
  %19 = sext i32 %18 to i64
  tail call void @_assert_int_equal(i64 noundef %19, i64 noundef 21846, ptr noundef nonnull @.str.1, i32 noundef 48) #3
  br label %30

.preheader65:                                     ; preds = %4, %.preheader65
  %.06068 = phi i64 [ %26, %.preheader65 ], [ 0, %4 ]
  %20 = trunc nuw i64 %.06068 to i16
  %21 = tail call zeroext i1 @array_container_contains(ptr noundef nonnull %1, i16 noundef zeroext %20)
  %22 = zext i1 %21 to i64
  %23 = urem i16 %20, 3
  %24 = icmp eq i16 %23, 0
  %25 = zext i1 %24 to i64
  tail call void @_assert_int_equal(i64 noundef %22, i64 noundef %25, ptr noundef nonnull @.str.1, i32 noundef 45) #3
  %26 = add nuw nsw i64 %.06068, 1
  %exitcond79.not = icmp eq i64 %26, 65536
  br i1 %exitcond79.not, label %17, label %.preheader65, !llvm.loop !14

27:                                               ; preds = %30
  %28 = tail call i32 @array_container_cardinality(ptr noundef nonnull %1)
  %29 = sext i32 %28 to i64
  tail call void @_assert_int_equal(i64 noundef %29, i64 noundef 0, ptr noundef nonnull @.str.1, i32 noundef 57) #3
  br label %46

30:                                               ; preds = %17, %30
  %indvars.iv80 = phi i64 [ 21846, %17 ], [ %indvars.iv.next81, %30 ]
  %.05970 = phi i64 [ 0, %17 ], [ %41, %30 ]
  %31 = trunc nuw i64 %.05970 to i16
  %32 = tail call zeroext i1 @array_container_contains(ptr noundef nonnull %1, i16 noundef zeroext %31)
  %33 = zext i1 %32 to i64
  tail call void @_assert_true(i64 noundef %33, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 51) #3
  %34 = tail call zeroext i1 @array_container_remove(ptr noundef nonnull %1, i16 noundef zeroext %31)
  %35 = zext i1 %34 to i64
  tail call void @_assert_true(i64 noundef %35, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.1, i32 noundef 52) #3
  %36 = load i32, ptr %1, align 8, !tbaa !5
  %37 = sext i32 %36 to i64
  %indvars.iv.next81 = add nsw i64 %indvars.iv80, -1
  tail call void @_assert_int_equal(i64 noundef %37, i64 noundef %indvars.iv.next81, ptr noundef nonnull @.str.1, i32 noundef 53) #3
  %38 = tail call zeroext i1 @array_container_contains(ptr noundef nonnull %1, i16 noundef zeroext %31)
  %39 = xor i1 %38, true
  %40 = zext i1 %39 to i64
  tail call void @_assert_true(i64 noundef %40, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 54) #3
  %41 = add nuw nsw i64 %.05970, 3
  %42 = icmp ult i64 %.05970, 65533
  br i1 %42, label %30, label %27, !llvm.loop !15

43:                                               ; preds = %46
  %44 = tail call i32 @array_container_cardinality(ptr noundef nonnull %1)
  %45 = sext i32 %44 to i64
  tail call void @_assert_int_equal(i64 noundef %45, i64 noundef 21846, ptr noundef nonnull @.str.1, i32 noundef 66) #3
  br label %59

46:                                               ; preds = %27, %46
  %indvars.iv83 = phi i64 [ 0, %27 ], [ %indvars.iv.next84, %46 ]
  %.05872 = phi i32 [ 65535, %27 ], [ %58, %46 ]
  %47 = trunc i32 %.05872 to i16
  %48 = tail call zeroext i1 @array_container_add(ptr noundef nonnull %1, i16 noundef zeroext %47)
  %49 = zext i1 %48 to i64
  tail call void @_assert_true(i64 noundef %49, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 60) #3
  %50 = tail call zeroext i1 @array_container_contains(ptr noundef nonnull %1, i16 noundef zeroext %47)
  %51 = zext i1 %50 to i64
  tail call void @_assert_true(i64 noundef %51, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 61) #3
  %52 = load i32, ptr %1, align 8, !tbaa !5
  %53 = sext i32 %52 to i64
  %indvars.iv.next84 = add nuw nsw i64 %indvars.iv83, 1
  tail call void @_assert_int_equal(i64 noundef %53, i64 noundef %indvars.iv.next84, ptr noundef nonnull @.str.1, i32 noundef 62) #3
  %54 = load i32, ptr %1, align 8, !tbaa !5
  %55 = load i32, ptr %3, align 4, !tbaa !11
  %56 = icmp sle i32 %54, %55
  %57 = zext i1 %56 to i64
  tail call void @_assert_true(i64 noundef %57, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i32 noundef 63) #3
  %58 = add nsw i32 %.05872, -3
  %exitcond86.not = icmp eq i64 %indvars.iv.next84, 21846
  br i1 %exitcond86.not, label %43, label %46, !llvm.loop !16

59:                                               ; preds = %43, %59
  %.05773 = phi i64 [ 0, %43 ], [ %66, %59 ]
  %60 = trunc nuw i64 %.05773 to i16
  %61 = tail call zeroext i1 @array_container_contains(ptr noundef nonnull %1, i16 noundef zeroext %60)
  %62 = zext i1 %61 to i64
  %63 = urem i16 %60, 3
  %64 = icmp eq i16 %63, 0
  %65 = zext i1 %64 to i64
  tail call void @_assert_int_equal(i64 noundef %62, i64 noundef %65, ptr noundef nonnull @.str.1, i32 noundef 69) #3
  %66 = add nuw nsw i64 %.05773, 1
  %exitcond87.not = icmp eq i64 %66, 65536
  br i1 %exitcond87.not, label %.preheader, label %59, !llvm.loop !17

67:                                               ; preds = %.preheader
  tail call void @array_container_free(ptr noundef nonnull %1) #3
  ret void

.preheader:                                       ; preds = %59, %.preheader
  %indvars.iv88 = phi i64 [ %indvars.iv.next89, %.preheader ], [ 21846, %59 ]
  %.075 = phi i64 [ %78, %.preheader ], [ 0, %59 ]
  %68 = trunc nuw i64 %.075 to i16
  %69 = tail call zeroext i1 @array_container_contains(ptr noundef nonnull %1, i16 noundef zeroext %68)
  %70 = zext i1 %69 to i64
  tail call void @_assert_true(i64 noundef %70, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 73) #3
  %71 = tail call zeroext i1 @array_container_remove(ptr noundef nonnull %1, i16 noundef zeroext %68)
  %72 = zext i1 %71 to i64
  tail call void @_assert_true(i64 noundef %72, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.1, i32 noundef 74) #3
  %73 = load i32, ptr %1, align 8, !tbaa !5
  %74 = sext i32 %73 to i64
  %indvars.iv.next89 = add nsw i64 %indvars.iv88, -1
  tail call void @_assert_int_equal(i64 noundef %74, i64 noundef %indvars.iv.next89, ptr noundef nonnull @.str.1, i32 noundef 75) #3
  %75 = tail call zeroext i1 @array_container_contains(ptr noundef nonnull %1, i16 noundef zeroext %68)
  %76 = xor i1 %75, true
  %77 = zext i1 %76 to i64
  tail call void @_assert_true(i64 noundef %77, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 76) #3
  %78 = add nuw nsw i64 %.075, 3
  %79 = icmp ult i64 %.075, 65533
  br i1 %79, label %.preheader, label %67, !llvm.loop !18
}

; Function Attrs: inlinehint nounwind uwtable
declare zeroext i1 @array_container_contains(ptr noundef, i16 noundef zeroext) local_unnamed_addr #1

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

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

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

attributes #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 = { 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 }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"array_container_s", !7, i64 0, !7, i64 4, !10, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 4}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}
!16 = distinct !{!16, !13}
!17 = distinct !{!17, !13}
!18 = distinct !{!18, !13}


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