; LLVM IR from aagdev/mlimgsynth :: src/ccommon (any)

; 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.Any = type { i16, i16, i32, %union.AnyPayload }
%union.AnyPayload = type { i64 }
%struct.AnyPair = type { %struct.Any, %struct.Any }

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i1 @anyb_scalar_is(i32 noundef) #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @anyb_size(i32 noundef) #0

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @any_free(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @any_realloc(ptr noundef, i32 noundef) #3

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @anyb_pointer_deref(i32 noundef) #0

; Function Attrs: nounwind uwtable
define dso_local zeroext i1 @any_obj_copy(ptr noundef %0, ptr noundef %1) #3 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %struct.Any, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %11 = load ptr, ptr %5, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.Any, ptr %11, i32 0, i32 0
  %13 = load i16, ptr %12, align 8, !tbaa !9
  %14 = zext i16 %13 to i32
  %15 = call zeroext i1 @anyb_scalar_is(i32 noundef %14)
  br i1 %15, label %16, label %20

16:                                               ; preds = %2
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  call void @any_free(ptr noundef %17)
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %18, ptr align 8 %19, i64 16, i1 false), !tbaa.struct !13
  br label %186

20:                                               ; preds = %2
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.Any, ptr %21, i32 0, i32 0
  %23 = load i16, ptr %22, align 8, !tbaa !9
  %24 = zext i16 %23 to i32
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.Any, ptr %25, i32 0, i32 0
  %27 = load i16, ptr %26, align 8, !tbaa !9
  %28 = zext i16 %27 to i32
  %29 = icmp ne i32 %24, %28
  br i1 %29, label %36, label %30

30:                                               ; preds = %20
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.Any, ptr %31, i32 0, i32 1
  %33 = load i16, ptr %32, align 2, !tbaa !17
  %34 = zext i16 %33 to i32
  %35 = icmp eq i32 %34, 0
  br i1 %35, label %36, label %49

36:                                               ; preds = %30, %20
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  call void @any_free(ptr noundef %37)
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.Any, ptr %6, i32 0, i32 0
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.Any, ptr %40, i32 0, i32 0
  %42 = load i16, ptr %41, align 8, !tbaa !9
  store i16 %42, ptr %39, align 8, !tbaa !9
  %43 = getelementptr inbounds %struct.Any, ptr %6, i32 0, i32 1
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.Any, ptr %44, i32 0, i32 1
  %46 = load i16, ptr %45, align 2, !tbaa !17
  store i16 %46, ptr %43, align 2, !tbaa !17
  %47 = getelementptr inbounds %struct.Any, ptr %6, i32 0, i32 2
  store i32 0, ptr %47, align 4, !tbaa !18
  %48 = getelementptr inbounds %struct.Any, ptr %6, i32 0, i32 3
  call void @llvm.memset.p0.i64(ptr align 8 %48, i8 0, i64 8, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %38, ptr align 8 %6, i64 16, i1 false), !tbaa.struct !13
  br label %49

49:                                               ; preds = %36, %30
  br label %50

50:                                               ; preds = %49
  %51 = load ptr, ptr %4, align 8, !tbaa !5
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.Any, ptr %52, i32 0, i32 2
  %54 = load i32, ptr %53, align 4, !tbaa !18
  %55 = call zeroext i1 @any_realloc(ptr noundef %51, i32 noundef %54)
  br i1 %55, label %57, label %56

56:                                               ; preds = %50
  store i1 false, ptr %3, align 1
  br label %187

57:                                               ; preds = %50
  br label %58

58:                                               ; preds = %57
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.Any, ptr %59, i32 0, i32 0
  %61 = load i16, ptr %60, align 8, !tbaa !9
  %62 = zext i16 %61 to i32
  %63 = icmp eq i32 %62, 27
  br i1 %63, label %64, label %119

64:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !15
  br label %65

65:                                               ; preds = %113, %64
  %66 = load i32, ptr %7, align 4, !tbaa !15
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.Any, ptr %67, i32 0, i32 2
  %69 = load i32, ptr %68, align 4, !tbaa !18
  %70 = icmp ult i32 %66, %69
  br i1 %70, label %72, label %71

71:                                               ; preds = %65
  store i32 4, ptr %8, align 4
  br label %116

72:                                               ; preds = %65
  br label %73

73:                                               ; preds = %72
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.Any, ptr %74, i32 0, i32 3
  %76 = load ptr, ptr %75, align 8, !tbaa !16
  %77 = load i32, ptr %7, align 4, !tbaa !15
  %78 = zext i32 %77 to i64
  %79 = getelementptr inbounds %struct.AnyPair, ptr %76, i64 %78
  %80 = getelementptr inbounds %struct.AnyPair, ptr %79, i32 0, i32 0
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.Any, ptr %81, i32 0, i32 3
  %83 = load ptr, ptr %82, align 8, !tbaa !16
  %84 = load i32, ptr %7, align 4, !tbaa !15
  %85 = zext i32 %84 to i64
  %86 = getelementptr inbounds %struct.AnyPair, ptr %83, i64 %85
  %87 = getelementptr inbounds %struct.AnyPair, ptr %86, i32 0, i32 0
  %88 = call zeroext i1 @any_obj_copy(ptr noundef %80, ptr noundef %87)
  br i1 %88, label %90, label %89

89:                                               ; preds = %73
  store i1 false, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %116

90:                                               ; preds = %73
  br label %91

91:                                               ; preds = %90
  br label %92

92:                                               ; preds = %91
  br label %93

93:                                               ; preds = %92
  %94 = load ptr, ptr %4, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.Any, ptr %94, i32 0, i32 3
  %96 = load ptr, ptr %95, align 8, !tbaa !16
  %97 = load i32, ptr %7, align 4, !tbaa !15
  %98 = zext i32 %97 to i64
  %99 = getelementptr inbounds %struct.AnyPair, ptr %96, i64 %98
  %100 = getelementptr inbounds %struct.AnyPair, ptr %99, i32 0, i32 1
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.Any, ptr %101, i32 0, i32 3
  %103 = load ptr, ptr %102, align 8, !tbaa !16
  %104 = load i32, ptr %7, align 4, !tbaa !15
  %105 = zext i32 %104 to i64
  %106 = getelementptr inbounds %struct.AnyPair, ptr %103, i64 %105
  %107 = getelementptr inbounds %struct.AnyPair, ptr %106, i32 0, i32 1
  %108 = call zeroext i1 @any_obj_copy(ptr noundef %100, ptr noundef %107)
  br i1 %108, label %110, label %109

109:                                              ; preds = %93
  store i1 false, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %116

110:                                              ; preds = %93
  br label %111

111:                                              ; preds = %110
  br label %112

112:                                              ; preds = %111
  br label %113

113:                                              ; preds = %112
  %114 = load i32, ptr %7, align 4, !tbaa !15
  %115 = add i32 %114, 1
  store i32 %115, ptr %7, align 4, !tbaa !15
  br label %65, !llvm.loop !19

116:                                              ; preds = %109, %89, %71
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  %117 = load i32, ptr %8, align 4
  switch i32 %117, label %189 [
    i32 4, label %118
    i32 1, label %187
  ]

118:                                              ; preds = %116
  br label %185

119:                                              ; preds = %58
  %120 = load ptr, ptr %5, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.Any, ptr %120, i32 0, i32 0
  %122 = load i16, ptr %121, align 8, !tbaa !9
  %123 = zext i16 %122 to i32
  %124 = icmp eq i32 %123, 26
  br i1 %124, label %125, label %158

125:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !15
  br label %126

126:                                              ; preds = %152, %125
  %127 = load i32, ptr %9, align 4, !tbaa !15
  %128 = load ptr, ptr %5, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.Any, ptr %128, i32 0, i32 2
  %130 = load i32, ptr %129, align 4, !tbaa !18
  %131 = icmp ult i32 %127, %130
  br i1 %131, label %133, label %132

132:                                              ; preds = %126
  store i32 11, ptr %8, align 4
  br label %155

133:                                              ; preds = %126
  br label %134

134:                                              ; preds = %133
  %135 = load ptr, ptr %4, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.Any, ptr %135, i32 0, i32 3
  %137 = load ptr, ptr %136, align 8, !tbaa !16
  %138 = load i32, ptr %9, align 4, !tbaa !15
  %139 = zext i32 %138 to i64
  %140 = getelementptr inbounds %struct.Any, ptr %137, i64 %139
  %141 = load ptr, ptr %5, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.Any, ptr %141, i32 0, i32 3
  %143 = load ptr, ptr %142, align 8, !tbaa !16
  %144 = load i32, ptr %9, align 4, !tbaa !15
  %145 = zext i32 %144 to i64
  %146 = getelementptr inbounds %struct.Any, ptr %143, i64 %145
  %147 = call zeroext i1 @any_obj_copy(ptr noundef %140, ptr noundef %146)
  br i1 %147, label %149, label %148

148:                                              ; preds = %134
  store i1 false, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %155

149:                                              ; preds = %134
  br label %150

150:                                              ; preds = %149
  br label %151

151:                                              ; preds = %150
  br label %152

152:                                              ; preds = %151
  %153 = load i32, ptr %9, align 4, !tbaa !15
  %154 = add i32 %153, 1
  store i32 %154, ptr %9, align 4, !tbaa !15
  br label %126, !llvm.loop !21

155:                                              ; preds = %148, %132
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  %156 = load i32, ptr %8, align 4
  switch i32 %156, label %189 [
    i32 11, label %157
    i32 1, label %187
  ]

157:                                              ; preds = %155
  br label %184

158:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %159 = load ptr, ptr %5, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.Any, ptr %159, i32 0, i32 0
  %161 = load i16, ptr %160, align 8, !tbaa !9
  %162 = zext i16 %161 to i32
  %163 = call i32 @anyb_pointer_deref(i32 noundef %162)
  store i32 %163, ptr %10, align 4, !tbaa !15
  %164 = load i32, ptr %10, align 4, !tbaa !15
  %165 = icmp ne i32 %164, 0
  br i1 %165, label %167, label %166

166:                                              ; preds = %158
  store i1 false, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %181

167:                                              ; preds = %158
  %168 = load ptr, ptr %4, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.Any, ptr %168, i32 0, i32 3
  %170 = load ptr, ptr %169, align 8, !tbaa !16
  %171 = load ptr, ptr %5, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.Any, ptr %171, i32 0, i32 3
  %173 = load ptr, ptr %172, align 8, !tbaa !16
  %174 = load i32, ptr %10, align 4, !tbaa !15
  %175 = call i64 @anyb_size(i32 noundef %174)
  %176 = load ptr, ptr %5, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.Any, ptr %176, i32 0, i32 2
  %178 = load i32, ptr %177, align 4, !tbaa !18
  %179 = zext i32 %178 to i64
  %180 = mul i64 %175, %179
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %170, ptr align 1 %173, i64 %180, i1 false)
  store i32 0, ptr %8, align 4
  br label %181

181:                                              ; preds = %167, %166
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  %182 = load i32, ptr %8, align 4
  switch i32 %182, label %189 [
    i32 0, label %183
    i32 1, label %187
  ]

183:                                              ; preds = %181
  br label %184

184:                                              ; preds = %183, %157
  br label %185

185:                                              ; preds = %184, %118
  br label %186

186:                                              ; preds = %185, %16
  store i1 true, ptr %3, align 1
  br label %187

187:                                              ; preds = %186, %181, %155, %116, %56
  %188 = load i1, ptr %3, align 1
  ret i1 %188

189:                                              ; preds = %181, %155, %116
  unreachable
}

attributes #0 = { 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 #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { 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, !11, i64 0}
!10 = !{!"Any", !11, i64 0, !11, i64 2, !12, i64 4, !7, i64 8}
!11 = !{!"short", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{i64 0, i64 2, !14, i64 2, i64 2, !14, i64 4, i64 4, !15, i64 8, i64 8, !16}
!14 = !{!11, !11, i64 0}
!15 = !{!12, !12, i64 0}
!16 = !{!7, !7, i64 0}
!17 = !{!10, !11, i64 2}
!18 = !{!10, !12, i64 4}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}


; 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"

%struct.AnyPair = type { %struct.Any, %struct.Any }
%struct.Any = type { i16, i16, i32, %union.AnyPayload }
%union.AnyPayload = type { i64 }

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i1 @anyb_scalar_is(i32 noundef) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @anyb_size(i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; Function Attrs: nounwind uwtable
declare dso_local void @any_free(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @any_realloc(ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @anyb_pointer_deref(i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local noundef zeroext i1 @any_obj_copy(ptr noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #2 {
  %3 = load i16, ptr %1, align 8, !tbaa !5
  %4 = zext i16 %3 to i32
  %5 = tail call zeroext i1 @anyb_scalar_is(i32 noundef %4)
  br i1 %5, label %6, label %7

6:                                                ; preds = %2
  tail call void @any_free(ptr noundef %0)
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, i64 16, i1 false), !tbaa.struct !11
  br label %.thread

7:                                                ; preds = %2
  %8 = load i16, ptr %0, align 8, !tbaa !5
  %9 = load i16, ptr %1, align 8, !tbaa !5
  %.not = icmp eq i16 %8, %9
  br i1 %.not, label %10, label %14

10:                                               ; preds = %7
  %11 = getelementptr inbounds i8, ptr %0, i64 2
  %12 = load i16, ptr %11, align 2, !tbaa !15
  %13 = icmp eq i16 %12, 0
  br i1 %13, label %14, label %16

14:                                               ; preds = %10, %7
  tail call void @any_free(ptr noundef nonnull %0)
  %15 = load <2 x i16>, ptr %1, align 8, !tbaa !12
  store <2 x i16> %15, ptr %0, align 8, !tbaa !12
  %.sroa.3.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 4
  store i32 0, ptr %.sroa.3.0..sroa_idx, align 4, !tbaa !13
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 8
  store i64 0, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !14
  br label %16

16:                                               ; preds = %10, %14
  %17 = getelementptr inbounds i8, ptr %1, i64 4
  %18 = load i32, ptr %17, align 4, !tbaa !16
  %19 = tail call zeroext i1 @any_realloc(ptr noundef nonnull %0, i32 noundef %18)
  br i1 %19, label %20, label %.thread

20:                                               ; preds = %16
  %21 = load i16, ptr %1, align 8, !tbaa !5
  switch i16 %21, label %54 [
    i16 27, label %.preheader
    i16 26, label %.preheader62
  ]

.preheader62:                                     ; preds = %20
  %22 = load i32, ptr %17, align 4, !tbaa !16
  %.not75 = icmp eq i32 %22, 0
  br i1 %.not75, label %.thread, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader62
  %23 = getelementptr inbounds i8, ptr %0, i64 8
  %24 = getelementptr inbounds i8, ptr %1, i64 8
  br label %48

.preheader:                                       ; preds = %20
  %25 = load i32, ptr %17, align 4, !tbaa !16
  %.not76 = icmp eq i32 %25, 0
  br i1 %.not76, label %.thread, label %.lr.ph69

.lr.ph69:                                         ; preds = %.preheader
  %26 = getelementptr inbounds i8, ptr %0, i64 8
  %27 = getelementptr inbounds i8, ptr %1, i64 8
  br label %32

28:                                               ; preds = %38
  %indvars.iv.next81 = add nuw nsw i64 %indvars.iv80, 1
  %29 = load i32, ptr %17, align 4, !tbaa !16
  %30 = zext i32 %29 to i64
  %31 = icmp ult i64 %indvars.iv.next81, %30
  br i1 %31, label %32, label %.thread, !llvm.loop !17

32:                                               ; preds = %.lr.ph69, %28
  %indvars.iv80 = phi i64 [ 0, %.lr.ph69 ], [ %indvars.iv.next81, %28 ]
  %33 = load ptr, ptr %26, align 8, !tbaa !14
  %34 = getelementptr inbounds %struct.AnyPair, ptr %33, i64 %indvars.iv80
  %35 = load ptr, ptr %27, align 8, !tbaa !14
  %36 = getelementptr inbounds %struct.AnyPair, ptr %35, i64 %indvars.iv80
  %37 = tail call zeroext i1 @any_obj_copy(ptr noundef %34, ptr noundef %36)
  br i1 %37, label %38, label %.thread

38:                                               ; preds = %32
  %39 = load ptr, ptr %26, align 8, !tbaa !14
  %40 = getelementptr inbounds %struct.AnyPair, ptr %39, i64 %indvars.iv80, i32 1
  %41 = load ptr, ptr %27, align 8, !tbaa !14
  %42 = getelementptr inbounds %struct.AnyPair, ptr %41, i64 %indvars.iv80, i32 1
  %43 = tail call zeroext i1 @any_obj_copy(ptr noundef nonnull %40, ptr noundef nonnull %42)
  br i1 %43, label %28, label %.thread

44:                                               ; preds = %48
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %45 = load i32, ptr %17, align 4, !tbaa !16
  %46 = zext i32 %45 to i64
  %47 = icmp ult i64 %indvars.iv.next, %46
  br i1 %47, label %48, label %.thread, !llvm.loop !19

48:                                               ; preds = %.lr.ph, %44
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %44 ]
  %49 = load ptr, ptr %23, align 8, !tbaa !14
  %50 = getelementptr inbounds %struct.Any, ptr %49, i64 %indvars.iv
  %51 = load ptr, ptr %24, align 8, !tbaa !14
  %52 = getelementptr inbounds %struct.Any, ptr %51, i64 %indvars.iv
  %53 = tail call zeroext i1 @any_obj_copy(ptr noundef %50, ptr noundef %52)
  br i1 %53, label %44, label %.thread

54:                                               ; preds = %20
  %55 = zext i16 %21 to i32
  %56 = tail call i32 @anyb_pointer_deref(i32 noundef %55)
  %.not48 = icmp eq i32 %56, 0
  br i1 %.not48, label %.thread, label %.thread60

.thread60:                                        ; preds = %54
  %57 = getelementptr inbounds i8, ptr %0, i64 8
  %58 = load ptr, ptr %57, align 8, !tbaa !14
  %59 = getelementptr inbounds i8, ptr %1, i64 8
  %60 = load ptr, ptr %59, align 8, !tbaa !14
  %61 = tail call i64 @anyb_size(i32 noundef %56)
  %62 = load i32, ptr %17, align 4, !tbaa !16
  %63 = zext i32 %62 to i64
  %64 = mul i64 %61, %63
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 1 %58, ptr align 1 %60, i64 %64, i1 false)
  br label %.thread

.thread:                                          ; preds = %44, %48, %32, %38, %28, %.preheader62, %.preheader, %6, %.thread60, %54, %16
  %.3 = phi i1 [ false, %16 ], [ false, %54 ], [ true, %.thread60 ], [ true, %6 ], [ true, %.preheader ], [ true, %.preheader62 ], [ false, %32 ], [ false, %38 ], [ true, %28 ], [ %53, %48 ], [ %53, %44 ]
  ret i1 %.3
}

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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" }

!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 = !{!"Any", !7, i64 0, !7, i64 2, !10, i64 4, !8, i64 8}
!7 = !{!"short", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{i64 0, i64 2, !12, i64 2, i64 2, !12, i64 4, i64 4, !13, i64 8, i64 8, !14}
!12 = !{!7, !7, i64 0}
!13 = !{!10, !10, i64 0}
!14 = !{!8, !8, i64 0}
!15 = !{!6, !7, i64 2}
!16 = !{!6, !10, i64 4}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass