; LLVM IR from jermp/2i_bench :: external/CRoaring/tests (run_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.run_container_s = type { i32, i32, ptr }

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [27 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 @run_container_create() #1

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

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

declare void @run_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() #2 {
  %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 @run_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 = %41, %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 %44

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 @run_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 37)
  %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 @run_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 38)
  %27 = load ptr, ptr %1, align 8, !tbaa !5
  %28 = call i32 @run_container_cardinality(ptr noundef %27)
  %29 = sext i32 %28 to i64
  %30 = load i32, ptr %2, align 4, !tbaa !9
  %31 = add nsw i32 %30, 1
  store i32 %31, ptr %2, align 4, !tbaa !9
  %32 = sext i32 %31 to i64
  call void @_assert_int_equal(i64 noundef %29, i64 noundef %32, ptr noundef @.str.1, i32 noundef 39)
  %33 = load ptr, ptr %1, align 8, !tbaa !5
  %34 = call i32 @run_container_cardinality(ptr noundef %33)
  %35 = load ptr, ptr %1, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.run_container_s, ptr %35, i32 0, i32 1
  %37 = load i32, ptr %36, align 4, !tbaa !13
  %38 = icmp sle i32 %34, %37
  %39 = zext i1 %38 to i32
  %40 = sext i32 %39 to i64
  call void @_assert_true(i64 noundef %40, ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 40)
  br label %41

41:                                               ; preds = %16
  %42 = load i64, ptr %3, align 8, !tbaa !11
  %43 = add i64 %42, 3
  store i64 %43, ptr %3, align 8, !tbaa !11
  br label %12, !llvm.loop !15

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

45:                                               ; preds = %62, %44
  %46 = load i64, ptr %4, align 8, !tbaa !11
  %47 = icmp ult i64 %46, 65536
  br i1 %47, label %49, label %48

48:                                               ; preds = %45
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  br label %65

49:                                               ; preds = %45
  %50 = load ptr, ptr %1, align 8, !tbaa !5
  %51 = load i64, ptr %4, align 8, !tbaa !11
  %52 = trunc i64 %51 to i16
  %53 = call zeroext i1 @run_container_contains(ptr noundef %50, i16 noundef zeroext %52)
  %54 = zext i1 %53 to i64
  %55 = load i64, ptr %4, align 8, !tbaa !11
  %56 = udiv i64 %55, 3
  %57 = mul i64 %56, 3
  %58 = load i64, ptr %4, align 8, !tbaa !11
  %59 = icmp eq i64 %57, %58
  %60 = zext i1 %59 to i32
  %61 = sext i32 %60 to i64
  call void @_assert_int_equal(i64 noundef %54, i64 noundef %61, ptr noundef @.str.1, i32 noundef 44)
  br label %62

62:                                               ; preds = %49
  %63 = load i64, ptr %4, align 8, !tbaa !11
  %64 = add i64 %63, 1
  store i64 %64, ptr %4, align 8, !tbaa !11
  br label %45, !llvm.loop !17

65:                                               ; preds = %48
  %66 = load ptr, ptr %1, align 8, !tbaa !5
  %67 = call i32 @run_container_cardinality(ptr noundef %66)
  %68 = sext i32 %67 to i64
  call void @_assert_int_equal(i64 noundef %68, i64 noundef 21846, ptr noundef @.str.1, i32 noundef 47)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  store i64 0, ptr %5, align 8, !tbaa !11
  br label %69

69:                                               ; preds = %97, %65
  %70 = load i64, ptr %5, align 8, !tbaa !11
  %71 = icmp ult i64 %70, 65536
  br i1 %71, label %73, label %72

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

73:                                               ; preds = %69
  %74 = load ptr, ptr %1, align 8, !tbaa !5
  %75 = load i64, ptr %5, align 8, !tbaa !11
  %76 = trunc i64 %75 to i16
  %77 = call zeroext i1 @run_container_contains(ptr noundef %74, i16 noundef zeroext %76)
  %78 = zext i1 %77 to i64
  call void @_assert_true(i64 noundef %78, ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 50)
  %79 = load ptr, ptr %1, align 8, !tbaa !5
  %80 = load i64, ptr %5, align 8, !tbaa !11
  %81 = trunc i64 %80 to i16
  %82 = call zeroext i1 @run_container_remove(ptr noundef %79, i16 noundef zeroext %81)
  %83 = zext i1 %82 to i64
  call void @_assert_true(i64 noundef %83, ptr noundef @.str.6, ptr noundef @.str.1, i32 noundef 51)
  %84 = load ptr, ptr %1, align 8, !tbaa !5
  %85 = call i32 @run_container_cardinality(ptr noundef %84)
  %86 = sext i32 %85 to i64
  %87 = load i32, ptr %2, align 4, !tbaa !9
  %88 = add nsw i32 %87, -1
  store i32 %88, ptr %2, align 4, !tbaa !9
  %89 = sext i32 %88 to i64
  call void @_assert_int_equal(i64 noundef %86, i64 noundef %89, ptr noundef @.str.1, i32 noundef 52)
  %90 = load ptr, ptr %1, align 8, !tbaa !5
  %91 = load i64, ptr %5, align 8, !tbaa !11
  %92 = trunc i64 %91 to i16
  %93 = call zeroext i1 @run_container_contains(ptr noundef %90, i16 noundef zeroext %92)
  %94 = xor i1 %93, true
  %95 = zext i1 %94 to i32
  %96 = sext i32 %95 to i64
  call void @_assert_true(i64 noundef %96, ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 53)
  br label %97

97:                                               ; preds = %73
  %98 = load i64, ptr %5, align 8, !tbaa !11
  %99 = add i64 %98, 3
  store i64 %99, ptr %5, align 8, !tbaa !11
  br label %69, !llvm.loop !18

100:                                              ; preds = %72
  %101 = load ptr, ptr %1, align 8, !tbaa !5
  %102 = call i32 @run_container_cardinality(ptr noundef %101)
  %103 = sext i32 %102 to i64
  call void @_assert_int_equal(i64 noundef %103, i64 noundef 0, ptr noundef @.str.1, i32 noundef 56)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 65535, ptr %6, align 4, !tbaa !9
  br label %104

104:                                              ; preds = %133, %100
  %105 = load i32, ptr %6, align 4, !tbaa !9
  %106 = icmp sge i32 %105, 0
  br i1 %106, label %108, label %107

107:                                              ; preds = %104
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %136

108:                                              ; preds = %104
  %109 = load ptr, ptr %1, align 8, !tbaa !5
  %110 = load i32, ptr %6, align 4, !tbaa !9
  %111 = trunc i32 %110 to i16
  %112 = call zeroext i1 @run_container_add(ptr noundef %109, i16 noundef zeroext %111)
  %113 = zext i1 %112 to i64
  call void @_assert_true(i64 noundef %113, ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 59)
  %114 = load ptr, ptr %1, align 8, !tbaa !5
  %115 = load i32, ptr %6, align 4, !tbaa !9
  %116 = trunc i32 %115 to i16
  %117 = call zeroext i1 @run_container_contains(ptr noundef %114, i16 noundef zeroext %116)
  %118 = zext i1 %117 to i64
  call void @_assert_true(i64 noundef %118, ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 60)
  %119 = load ptr, ptr %1, align 8, !tbaa !5
  %120 = call i32 @run_container_cardinality(ptr noundef %119)
  %121 = sext i32 %120 to i64
  %122 = load i32, ptr %2, align 4, !tbaa !9
  %123 = add nsw i32 %122, 1
  store i32 %123, ptr %2, align 4, !tbaa !9
  %124 = sext i32 %123 to i64
  call void @_assert_int_equal(i64 noundef %121, i64 noundef %124, ptr noundef @.str.1, i32 noundef 61)
  %125 = load ptr, ptr %1, align 8, !tbaa !5
  %126 = call i32 @run_container_cardinality(ptr noundef %125)
  %127 = load ptr, ptr %1, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.run_container_s, ptr %127, i32 0, i32 1
  %129 = load i32, ptr %128, align 4, !tbaa !13
  %130 = icmp sle i32 %126, %129
  %131 = zext i1 %130 to i32
  %132 = sext i32 %131 to i64
  call void @_assert_true(i64 noundef %132, ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 62)
  br label %133

133:                                              ; preds = %108
  %134 = load i32, ptr %6, align 4, !tbaa !9
  %135 = sub nsw i32 %134, 3
  store i32 %135, ptr %6, align 4, !tbaa !9
  br label %104, !llvm.loop !19

136:                                              ; preds = %107
  %137 = load ptr, ptr %1, align 8, !tbaa !5
  %138 = call i32 @run_container_cardinality(ptr noundef %137)
  %139 = sext i32 %138 to i64
  call void @_assert_int_equal(i64 noundef %139, i64 noundef 21846, ptr noundef @.str.1, i32 noundef 65)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  store i64 0, ptr %7, align 8, !tbaa !11
  br label %140

140:                                              ; preds = %157, %136
  %141 = load i64, ptr %7, align 8, !tbaa !11
  %142 = icmp ult i64 %141, 65536
  br i1 %142, label %144, label %143

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

144:                                              ; preds = %140
  %145 = load ptr, ptr %1, align 8, !tbaa !5
  %146 = load i64, ptr %7, align 8, !tbaa !11
  %147 = trunc i64 %146 to i16
  %148 = call zeroext i1 @run_container_contains(ptr noundef %145, i16 noundef zeroext %147)
  %149 = zext i1 %148 to i64
  %150 = load i64, ptr %7, align 8, !tbaa !11
  %151 = udiv i64 %150, 3
  %152 = mul i64 %151, 3
  %153 = load i64, ptr %7, align 8, !tbaa !11
  %154 = icmp eq i64 %152, %153
  %155 = zext i1 %154 to i32
  %156 = sext i32 %155 to i64
  call void @_assert_int_equal(i64 noundef %149, i64 noundef %156, ptr noundef @.str.1, i32 noundef 68)
  br label %157

157:                                              ; preds = %144
  %158 = load i64, ptr %7, align 8, !tbaa !11
  %159 = add i64 %158, 1
  store i64 %159, ptr %7, align 8, !tbaa !11
  br label %140, !llvm.loop !20

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

161:                                              ; preds = %189, %160
  %162 = load i64, ptr %8, align 8, !tbaa !11
  %163 = icmp ult i64 %162, 65536
  br i1 %163, label %165, label %164

164:                                              ; preds = %161
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  br label %192

165:                                              ; preds = %161
  %166 = load ptr, ptr %1, align 8, !tbaa !5
  %167 = load i64, ptr %8, align 8, !tbaa !11
  %168 = trunc i64 %167 to i16
  %169 = call zeroext i1 @run_container_contains(ptr noundef %166, i16 noundef zeroext %168)
  %170 = zext i1 %169 to i64
  call void @_assert_true(i64 noundef %170, ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 72)
  %171 = load ptr, ptr %1, align 8, !tbaa !5
  %172 = load i64, ptr %8, align 8, !tbaa !11
  %173 = trunc i64 %172 to i16
  %174 = call zeroext i1 @run_container_remove(ptr noundef %171, i16 noundef zeroext %173)
  %175 = zext i1 %174 to i64
  call void @_assert_true(i64 noundef %175, ptr noundef @.str.6, ptr noundef @.str.1, i32 noundef 73)
  %176 = load ptr, ptr %1, align 8, !tbaa !5
  %177 = call i32 @run_container_cardinality(ptr noundef %176)
  %178 = sext i32 %177 to i64
  %179 = load i32, ptr %2, align 4, !tbaa !9
  %180 = add nsw i32 %179, -1
  store i32 %180, ptr %2, align 4, !tbaa !9
  %181 = sext i32 %180 to i64
  call void @_assert_int_equal(i64 noundef %178, i64 noundef %181, ptr noundef @.str.1, i32 noundef 74)
  %182 = load ptr, ptr %1, align 8, !tbaa !5
  %183 = load i64, ptr %8, align 8, !tbaa !11
  %184 = trunc i64 %183 to i16
  %185 = call zeroext i1 @run_container_contains(ptr noundef %182, i16 noundef zeroext %184)
  %186 = xor i1 %185, true
  %187 = zext i1 %186 to i32
  %188 = sext i32 %187 to i64
  call void @_assert_true(i64 noundef %188, ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 75)
  br label %189

189:                                              ; preds = %165
  %190 = load i64, ptr %8, align 8, !tbaa !11
  %191 = add i64 %190, 3
  store i64 %191, ptr %8, align 8, !tbaa !11
  br label %161, !llvm.loop !21

192:                                              ; preds = %164
  %193 = load ptr, ptr %1, align 8, !tbaa !5
  call void @run_container_free(ptr noundef %193)
  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 @run_container_contains(ptr noundef, i16 noundef zeroext) #3

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

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

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

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


; 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 [93 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [27 x i8], align 1

declare ptr @run_container_create() local_unnamed_addr #0

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

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

declare void @run_container_free(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @add_contains_test() local_unnamed_addr #1 {
  %1 = tail call ptr @run_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 ]
  %.06066 = phi i64 [ 0, %0 ], [ %16, %4 ]
  %5 = trunc nuw i64 %.06066 to i16
  %6 = tail call zeroext i1 @run_container_add(ptr noundef %1, i16 noundef zeroext %5) #3
  %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 37) #3
  %8 = tail call zeroext i1 @run_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 38) #3
  %10 = tail call i32 @run_container_cardinality(ptr noundef %1)
  %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 39) #3
  %12 = tail call i32 @run_container_cardinality(ptr noundef %1)
  %13 = load i32, ptr %3, align 4, !tbaa !5
  %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 40) #3
  %16 = add nuw nsw i64 %.06066, 3
  %exitcond.not = icmp eq i64 %indvars.iv.next, 21846
  br i1 %exitcond.not, label %.preheader64, label %4, !llvm.loop !11

17:                                               ; preds = %.preheader64
  %18 = tail call i32 @run_container_cardinality(ptr noundef %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 47) #3
  br label %30

.preheader64:                                     ; preds = %4, %.preheader64
  %.05967 = phi i64 [ %26, %.preheader64 ], [ 0, %4 ]
  %20 = trunc nuw i64 %.05967 to i16
  %21 = tail call zeroext i1 @run_container_contains(ptr noundef %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 44) #3
  %26 = add nuw nsw i64 %.05967, 1
  %exitcond78.not = icmp eq i64 %26, 65536
  br i1 %exitcond78.not, label %17, label %.preheader64, !llvm.loop !13

27:                                               ; preds = %30
  %28 = tail call i32 @run_container_cardinality(ptr noundef %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 56) #3
  br label %46

30:                                               ; preds = %17, %30
  %indvars.iv79 = phi i64 [ 21846, %17 ], [ %indvars.iv.next80, %30 ]
  %.05869 = phi i64 [ 0, %17 ], [ %41, %30 ]
  %31 = trunc nuw i64 %.05869 to i16
  %32 = tail call zeroext i1 @run_container_contains(ptr noundef %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 50) #3
  %34 = tail call zeroext i1 @run_container_remove(ptr noundef %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 51) #3
  %36 = tail call i32 @run_container_cardinality(ptr noundef %1)
  %37 = sext i32 %36 to i64
  %indvars.iv.next80 = add nsw i64 %indvars.iv79, -1
  tail call void @_assert_int_equal(i64 noundef %37, i64 noundef %indvars.iv.next80, ptr noundef nonnull @.str.1, i32 noundef 52) #3
  %38 = tail call zeroext i1 @run_container_contains(ptr noundef %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 53) #3
  %41 = add nuw nsw i64 %.05869, 3
  %42 = icmp ult i64 %.05869, 65533
  br i1 %42, label %30, label %27, !llvm.loop !14

43:                                               ; preds = %46
  %44 = tail call i32 @run_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 65) #3
  br label %59

46:                                               ; preds = %27, %46
  %indvars.iv82 = phi i64 [ 0, %27 ], [ %indvars.iv.next83, %46 ]
  %.05771 = phi i32 [ 65535, %27 ], [ %58, %46 ]
  %47 = trunc i32 %.05771 to i16
  %48 = tail call zeroext i1 @run_container_add(ptr noundef %1, i16 noundef zeroext %47) #3
  %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 59) #3
  %50 = tail call zeroext i1 @run_container_contains(ptr noundef %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 60) #3
  %52 = tail call i32 @run_container_cardinality(ptr noundef %1)
  %53 = sext i32 %52 to i64
  %indvars.iv.next83 = add nuw nsw i64 %indvars.iv82, 1
  tail call void @_assert_int_equal(i64 noundef %53, i64 noundef %indvars.iv.next83, ptr noundef nonnull @.str.1, i32 noundef 61) #3
  %54 = tail call i32 @run_container_cardinality(ptr noundef %1)
  %55 = load i32, ptr %3, align 4, !tbaa !5
  %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 62) #3
  %58 = add nsw i32 %.05771, -3
  %exitcond85.not = icmp eq i64 %indvars.iv.next83, 21846
  br i1 %exitcond85.not, label %43, label %46, !llvm.loop !15

59:                                               ; preds = %43, %59
  %.05672 = phi i64 [ 0, %43 ], [ %66, %59 ]
  %60 = trunc nuw i64 %.05672 to i16
  %61 = tail call zeroext i1 @run_container_contains(ptr noundef %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 68) #3
  %66 = add nuw nsw i64 %.05672, 1
  %exitcond86.not = icmp eq i64 %66, 65536
  br i1 %exitcond86.not, label %.preheader, label %59, !llvm.loop !16

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

.preheader:                                       ; preds = %59, %.preheader
  %indvars.iv87 = phi i64 [ %indvars.iv.next88, %.preheader ], [ 21846, %59 ]
  %.074 = phi i64 [ %78, %.preheader ], [ 0, %59 ]
  %68 = trunc nuw i64 %.074 to i16
  %69 = tail call zeroext i1 @run_container_contains(ptr noundef %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 72) #3
  %71 = tail call zeroext i1 @run_container_remove(ptr noundef %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 73) #3
  %73 = tail call i32 @run_container_cardinality(ptr noundef %1)
  %74 = sext i32 %73 to i64
  %indvars.iv.next88 = add nsw i64 %indvars.iv87, -1
  tail call void @_assert_int_equal(i64 noundef %74, i64 noundef %indvars.iv.next88, ptr noundef nonnull @.str.1, i32 noundef 74) #3
  %75 = tail call zeroext i1 @run_container_contains(ptr noundef %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 75) #3
  %78 = add nuw nsw i64 %.074, 3
  %79 = icmp ult i64 %.074, 65533
  br i1 %79, label %.preheader, label %67, !llvm.loop !17
}

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

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 @run_container_cardinality(ptr noundef) local_unnamed_addr #2

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

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

!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 4}
!6 = !{!"run_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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}


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