; LLVM IR from askforalfred/alfred :: gen/ff_planner (inst_easy)

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

@gtype_size = external global [50 x i32], align 16
@gnum_types = external global i32, align 4
@.str.12 = external hidden unnamed_addr constant [80 x i8], align 1
@gtype_names = external global [50 x ptr], align 16
@gis_member = external global [2000 x [50 x i8]], align 16
@gintersected_types = external global [50 x [10 x i32]], align 16
@gnum_intersected_types = external global [50 x i32], align 16
@gtype_consts = external global [50 x [2000 x i32]], align 16
@.str.13 = external hidden unnamed_addr constant [73 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 i32 @printf(ptr noundef, ...) #1

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #2

; 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 i32 @create_intersected_type(ptr noundef %0, i32 noundef %1) #3 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  %9 = load i32, ptr @gnum_types, align 4, !tbaa !9
  %10 = icmp eq i32 %9, 50
  br i1 %10, label %11, label %13

11:                                               ; preds = %2
  %12 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef 50)
  call void @exit(i32 noundef 1) #5
  unreachable

13:                                               ; preds = %2
  %14 = load i32, ptr @gnum_types, align 4, !tbaa !9
  %15 = sext i32 %14 to i64
  %16 = getelementptr inbounds [50 x ptr], ptr @gtype_names, i64 0, i64 %15
  store ptr null, ptr %16, align 8, !tbaa !5
  %17 = load i32, ptr @gnum_types, align 4, !tbaa !9
  %18 = sext i32 %17 to i64
  %19 = getelementptr inbounds [50 x i32], ptr @gtype_size, i64 0, i64 %18
  store i32 0, ptr %19, align 4, !tbaa !9
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %20

20:                                               ; preds = %30, %13
  %21 = load i32, ptr %5, align 4, !tbaa !9
  %22 = icmp slt i32 %21, 2000
  br i1 %22, label %23, label %33

23:                                               ; preds = %20
  %24 = load i32, ptr %5, align 4, !tbaa !9
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds [2000 x [50 x i8]], ptr @gis_member, i64 0, i64 %25
  %27 = load i32, ptr @gnum_types, align 4, !tbaa !9
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [50 x i8], ptr %26, i64 0, i64 %28
  store i8 0, ptr %29, align 1, !tbaa !11
  br label %30

30:                                               ; preds = %23
  %31 = load i32, ptr %5, align 4, !tbaa !9
  %32 = add nsw i32 %31, 1
  store i32 %32, ptr %5, align 4, !tbaa !9
  br label %20, !llvm.loop !12

33:                                               ; preds = %20
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %34

34:                                               ; preds = %50, %33
  %35 = load i32, ptr %5, align 4, !tbaa !9
  %36 = load i32, ptr %4, align 4, !tbaa !9
  %37 = icmp slt i32 %35, %36
  br i1 %37, label %38, label %53

38:                                               ; preds = %34
  %39 = load ptr, ptr %3, align 8, !tbaa !5
  %40 = load i32, ptr %5, align 4, !tbaa !9
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds i32, ptr %39, i64 %41
  %43 = load i32, ptr %42, align 4, !tbaa !9
  %44 = load i32, ptr @gnum_types, align 4, !tbaa !9
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [50 x [10 x i32]], ptr @gintersected_types, i64 0, i64 %45
  %47 = load i32, ptr %5, align 4, !tbaa !9
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [10 x i32], ptr %46, i64 0, i64 %48
  store i32 %43, ptr %49, align 4, !tbaa !9
  br label %50

50:                                               ; preds = %38
  %51 = load i32, ptr %5, align 4, !tbaa !9
  %52 = add nsw i32 %51, 1
  store i32 %52, ptr %5, align 4, !tbaa !9
  br label %34, !llvm.loop !14

53:                                               ; preds = %34
  %54 = load i32, ptr %4, align 4, !tbaa !9
  %55 = load i32, ptr @gnum_types, align 4, !tbaa !9
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [50 x i32], ptr @gnum_intersected_types, i64 0, i64 %56
  store i32 %54, ptr %57, align 4, !tbaa !9
  %58 = load i32, ptr @gnum_types, align 4, !tbaa !9
  store i32 %58, ptr %8, align 4, !tbaa !9
  %59 = load i32, ptr @gnum_types, align 4, !tbaa !9
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr @gnum_types, align 4, !tbaa !9
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %61

61:                                               ; preds = %148, %53
  %62 = load i32, ptr %6, align 4, !tbaa !9
  %63 = load ptr, ptr %3, align 8, !tbaa !5
  %64 = getelementptr inbounds i32, ptr %63, i64 0
  %65 = load i32, ptr %64, align 4, !tbaa !9
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [50 x i32], ptr @gtype_size, i64 0, i64 %66
  %68 = load i32, ptr %67, align 4, !tbaa !9
  %69 = icmp slt i32 %62, %68
  br i1 %69, label %70, label %151

70:                                               ; preds = %61
  store i32 1, ptr %7, align 4, !tbaa !9
  br label %71

71:                                               ; preds = %98, %70
  %72 = load i32, ptr %7, align 4, !tbaa !9
  %73 = load i32, ptr %4, align 4, !tbaa !9
  %74 = icmp slt i32 %72, %73
  br i1 %74, label %75, label %101

75:                                               ; preds = %71
  %76 = load ptr, ptr %3, align 8, !tbaa !5
  %77 = getelementptr inbounds i32, ptr %76, i64 0
  %78 = load i32, ptr %77, align 4, !tbaa !9
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [50 x [2000 x i32]], ptr @gtype_consts, i64 0, i64 %79
  %81 = load i32, ptr %6, align 4, !tbaa !9
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [2000 x i32], ptr %80, i64 0, i64 %82
  %84 = load i32, ptr %83, align 4, !tbaa !9
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [2000 x [50 x i8]], ptr @gis_member, i64 0, i64 %85
  %87 = load ptr, ptr %3, align 8, !tbaa !5
  %88 = load i32, ptr %7, align 4, !tbaa !9
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds i32, ptr %87, i64 %89
  %91 = load i32, ptr %90, align 4, !tbaa !9
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [50 x i8], ptr %86, i64 0, i64 %92
  %94 = load i8, ptr %93, align 1, !tbaa !11
  %95 = icmp ne i8 %94, 0
  br i1 %95, label %97, label %96

96:                                               ; preds = %75
  br label %101

97:                                               ; preds = %75
  br label %98

98:                                               ; preds = %97
  %99 = load i32, ptr %7, align 4, !tbaa !9
  %100 = add nsw i32 %99, 1
  store i32 %100, ptr %7, align 4, !tbaa !9
  br label %71, !llvm.loop !15

101:                                              ; preds = %96, %71
  %102 = load i32, ptr %7, align 4, !tbaa !9
  %103 = load i32, ptr %4, align 4, !tbaa !9
  %104 = icmp slt i32 %102, %103
  br i1 %104, label %105, label %106

105:                                              ; preds = %101
  br label %148

106:                                              ; preds = %101
  %107 = load i32, ptr %8, align 4, !tbaa !9
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [50 x i32], ptr @gtype_size, i64 0, i64 %108
  %110 = load i32, ptr %109, align 4, !tbaa !9
  %111 = icmp eq i32 %110, 2000
  br i1 %111, label %112, label %114

112:                                              ; preds = %106
  %113 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, i32 noundef 2000)
  call void @exit(i32 noundef 1) #5
  unreachable

114:                                              ; preds = %106
  %115 = load ptr, ptr %3, align 8, !tbaa !5
  %116 = getelementptr inbounds i32, ptr %115, i64 0
  %117 = load i32, ptr %116, align 4, !tbaa !9
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [50 x [2000 x i32]], ptr @gtype_consts, i64 0, i64 %118
  %120 = load i32, ptr %6, align 4, !tbaa !9
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [2000 x i32], ptr %119, i64 0, i64 %121
  %123 = load i32, ptr %122, align 4, !tbaa !9
  %124 = load i32, ptr %8, align 4, !tbaa !9
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [50 x [2000 x i32]], ptr @gtype_consts, i64 0, i64 %125
  %127 = load i32, ptr %8, align 4, !tbaa !9
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds [50 x i32], ptr @gtype_size, i64 0, i64 %128
  %130 = load i32, ptr %129, align 4, !tbaa !9
  %131 = add nsw i32 %130, 1
  store i32 %131, ptr %129, align 4, !tbaa !9
  %132 = sext i32 %130 to i64
  %133 = getelementptr inbounds [2000 x i32], ptr %126, i64 0, i64 %132
  store i32 %123, ptr %133, align 4, !tbaa !9
  %134 = load ptr, ptr %3, align 8, !tbaa !5
  %135 = getelementptr inbounds i32, ptr %134, i64 0
  %136 = load i32, ptr %135, align 4, !tbaa !9
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [50 x [2000 x i32]], ptr @gtype_consts, i64 0, i64 %137
  %139 = load i32, ptr %6, align 4, !tbaa !9
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds [2000 x i32], ptr %138, i64 0, i64 %140
  %142 = load i32, ptr %141, align 4, !tbaa !9
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds [2000 x [50 x i8]], ptr @gis_member, i64 0, i64 %143
  %145 = load i32, ptr %8, align 4, !tbaa !9
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [50 x i8], ptr %144, i64 0, i64 %146
  store i8 1, ptr %147, align 1, !tbaa !11
  br label %148

148:                                              ; preds = %114, %105
  %149 = load i32, ptr %6, align 4, !tbaa !9
  %150 = add nsw i32 %149, 1
  store i32 %150, ptr %6, align 4, !tbaa !9
  br label %61, !llvm.loop !16

151:                                              ; preds = %61
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %152

152:                                              ; preds = %199, %151
  %153 = load i32, ptr %6, align 4, !tbaa !9
  %154 = load i32, ptr %4, align 4, !tbaa !9
  %155 = icmp slt i32 %153, %154
  br i1 %155, label %156, label %202

156:                                              ; preds = %152
  %157 = load i32, ptr %8, align 4, !tbaa !9
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [50 x i32], ptr @gtype_size, i64 0, i64 %158
  %160 = load i32, ptr %159, align 4, !tbaa !9
  %161 = load ptr, ptr %3, align 8, !tbaa !5
  %162 = load i32, ptr %6, align 4, !tbaa !9
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds i32, ptr %161, i64 %163
  %165 = load i32, ptr %164, align 4, !tbaa !9
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds [50 x i32], ptr @gtype_size, i64 0, i64 %166
  %168 = load i32, ptr %167, align 4, !tbaa !9
  %169 = icmp ne i32 %160, %168
  br i1 %169, label %170, label %171

170:                                              ; preds = %156
  br label %199

171:                                              ; preds = %156
  %172 = load i32, ptr %8, align 4, !tbaa !9
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds [50 x i32], ptr @gtype_size, i64 0, i64 %173
  store i32 0, ptr %174, align 4, !tbaa !9
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %175

175:                                              ; preds = %185, %171
  %176 = load i32, ptr %7, align 4, !tbaa !9
  %177 = icmp slt i32 %176, 2000
  br i1 %177, label %178, label %188

178:                                              ; preds = %175
  %179 = load i32, ptr %7, align 4, !tbaa !9
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds [2000 x [50 x i8]], ptr @gis_member, i64 0, i64 %180
  %182 = load i32, ptr %8, align 4, !tbaa !9
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds [50 x i8], ptr %181, i64 0, i64 %183
  store i8 0, ptr %184, align 1, !tbaa !11
  br label %185

185:                                              ; preds = %178
  %186 = load i32, ptr %7, align 4, !tbaa !9
  %187 = add nsw i32 %186, 1
  store i32 %187, ptr %7, align 4, !tbaa !9
  br label %175, !llvm.loop !17

188:                                              ; preds = %175
  %189 = load i32, ptr %8, align 4, !tbaa !9
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds [50 x i32], ptr @gnum_intersected_types, i64 0, i64 %190
  store i32 -1, ptr %191, align 4, !tbaa !9
  %192 = load i32, ptr @gnum_types, align 4, !tbaa !9
  %193 = add nsw i32 %192, -1
  store i32 %193, ptr @gnum_types, align 4, !tbaa !9
  %194 = load ptr, ptr %3, align 8, !tbaa !5
  %195 = load i32, ptr %6, align 4, !tbaa !9
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds i32, ptr %194, i64 %196
  %198 = load i32, ptr %197, align 4, !tbaa !9
  store i32 %198, ptr %8, align 4, !tbaa !9
  br label %202

199:                                              ; preds = %170
  %200 = load i32, ptr %6, align 4, !tbaa !9
  %201 = add nsw i32 %200, 1
  store i32 %201, ptr %6, align 4, !tbaa !9
  br label %152, !llvm.loop !18

202:                                              ; preds = %188, %152
  %203 = load i32, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  ret i32 %203
}

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 = { noreturn nounwind "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 }
attributes #5 = { noreturn 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 = !{!7, !7, i64 0}
!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}


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

@gtype_size = external local_unnamed_addr global [50 x i32], align 16
@gnum_types = external local_unnamed_addr global i32, align 4
@.str.12 = external hidden unnamed_addr constant [80 x i8], align 1
@gtype_names = external local_unnamed_addr global [50 x ptr], align 16
@gis_member = external local_unnamed_addr global [2000 x [50 x i8]], align 16
@gintersected_types = external local_unnamed_addr global [50 x [10 x i32]], align 16
@gnum_intersected_types = external local_unnamed_addr global [50 x i32], align 16
@gtype_consts = external local_unnamed_addr global [50 x [2000 x i32]], align 16
@.str.13 = external hidden unnamed_addr constant [73 x i8], align 1

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #0

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local i32 @create_intersected_type(ptr nocapture noundef readonly %0, i32 noundef %1) local_unnamed_addr #2 {
  %3 = ptrtoint ptr %0 to i64
  %4 = load i32, ptr @gnum_types, align 4, !tbaa !5
  %5 = icmp eq i32 %4, 50
  br i1 %5, label %6, label %8

6:                                                ; preds = %2
  %7 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef 50)
  tail call void @exit(i32 noundef 1) #3
  unreachable

8:                                                ; preds = %2
  %9 = sext i32 %4 to i64
  %10 = getelementptr inbounds [50 x ptr], ptr @gtype_names, i64 0, i64 %9
  store ptr null, ptr %10, align 8, !tbaa !9
  %11 = getelementptr inbounds [50 x i32], ptr @gtype_size, i64 0, i64 %9
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %26

.preheader55:                                     ; preds = %26
  %12 = icmp sgt i32 %1, 0
  br i1 %12, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %.preheader55
  %wide.trip.count = zext nneg i32 %1 to i64
  %min.iters.check = icmp ult i32 %1, 16
  br i1 %min.iters.check, label %.lr.ph.preheader93, label %vector.memcheck

.lr.ph.preheader93:                               ; preds = %middle.block, %vector.memcheck, %.lr.ph.preheader
  %indvars.iv67.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  %xtraiter = and i64 %wide.trip.count, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol

.lr.ph.prol:                                      ; preds = %.lr.ph.preheader93, %.lr.ph.prol
  %indvars.iv67.prol = phi i64 [ %indvars.iv.next68.prol, %.lr.ph.prol ], [ %indvars.iv67.ph, %.lr.ph.preheader93 ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph.prol ], [ 0, %.lr.ph.preheader93 ]
  %13 = getelementptr inbounds i32, ptr %0, i64 %indvars.iv67.prol
  %14 = load i32, ptr %13, align 4, !tbaa !5
  %15 = getelementptr inbounds [50 x [10 x i32]], ptr @gintersected_types, i64 0, i64 %9, i64 %indvars.iv67.prol
  store i32 %14, ptr %15, align 4, !tbaa !5
  %indvars.iv.next68.prol = add nuw nsw i64 %indvars.iv67.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol, !llvm.loop !11

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader93
  %indvars.iv67.unr = phi i64 [ %indvars.iv67.ph, %.lr.ph.preheader93 ], [ %indvars.iv.next68.prol, %.lr.ph.prol ]
  %16 = sub nsw i64 %indvars.iv67.ph, %wide.trip.count
  %17 = icmp ugt i64 %16, -4
  br i1 %17, label %._crit_edge, label %.lr.ph

vector.memcheck:                                  ; preds = %.lr.ph.preheader
  %18 = mul nsw i64 %9, 40
  %19 = add i64 %18, ptrtoint (ptr @gintersected_types to i64)
  %20 = sub i64 %19, %3
  %diff.check = icmp ult i64 %20, 32
  br i1 %diff.check, label %.lr.ph.preheader93, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %wide.trip.count, 2147483640
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %21 = getelementptr inbounds i32, ptr %0, i64 %index
  %22 = getelementptr inbounds i8, ptr %21, i64 16
  %wide.load = load <4 x i32>, ptr %21, align 4, !tbaa !5
  %wide.load91 = load <4 x i32>, ptr %22, align 4, !tbaa !5
  %23 = getelementptr inbounds [50 x [10 x i32]], ptr @gintersected_types, i64 0, i64 %9, i64 %index
  %24 = getelementptr inbounds i8, ptr %23, i64 16
  store <4 x i32> %wide.load, ptr %23, align 8, !tbaa !5
  store <4 x i32> %wide.load91, ptr %24, align 8, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %25 = icmp eq i64 %index.next, %n.vec
  br i1 %25, label %middle.block, label %vector.body, !llvm.loop !13

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph.preheader93

26:                                               ; preds = %26, %8
  %indvars.iv = phi i64 [ 0, %8 ], [ %indvars.iv.next.4, %26 ]
  %27 = getelementptr inbounds [2000 x [50 x i8]], ptr @gis_member, i64 0, i64 %indvars.iv, i64 %9
  store i8 0, ptr %27, align 1, !tbaa !17
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %28 = getelementptr inbounds [2000 x [50 x i8]], ptr @gis_member, i64 0, i64 %indvars.iv.next, i64 %9
  store i8 0, ptr %28, align 1, !tbaa !17
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %29 = getelementptr inbounds [2000 x [50 x i8]], ptr @gis_member, i64 0, i64 %indvars.iv.next.1, i64 %9
  store i8 0, ptr %29, align 1, !tbaa !17
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv, 3
  %30 = getelementptr inbounds [2000 x [50 x i8]], ptr @gis_member, i64 0, i64 %indvars.iv.next.2, i64 %9
  store i8 0, ptr %30, align 1, !tbaa !17
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %31 = getelementptr inbounds [2000 x [50 x i8]], ptr @gis_member, i64 0, i64 %indvars.iv.next.3, i64 %9
  store i8 0, ptr %31, align 1, !tbaa !17
  %indvars.iv.next.4 = add nuw nsw i64 %indvars.iv, 5
  %exitcond.not.4 = icmp eq i64 %indvars.iv.next.4, 2000
  br i1 %exitcond.not.4, label %.preheader55, label %26, !llvm.loop !18

.lr.ph:                                           ; preds = %.lr.ph.prol.loopexit, %.lr.ph
  %indvars.iv67 = phi i64 [ %indvars.iv.next68.3, %.lr.ph ], [ %indvars.iv67.unr, %.lr.ph.prol.loopexit ]
  %32 = getelementptr inbounds i32, ptr %0, i64 %indvars.iv67
  %33 = load i32, ptr %32, align 4, !tbaa !5
  %34 = getelementptr inbounds [50 x [10 x i32]], ptr @gintersected_types, i64 0, i64 %9, i64 %indvars.iv67
  store i32 %33, ptr %34, align 4, !tbaa !5
  %indvars.iv.next68 = add nuw nsw i64 %indvars.iv67, 1
  %35 = getelementptr inbounds i32, ptr %0, i64 %indvars.iv.next68
  %36 = load i32, ptr %35, align 4, !tbaa !5
  %37 = getelementptr inbounds [50 x [10 x i32]], ptr @gintersected_types, i64 0, i64 %9, i64 %indvars.iv.next68
  store i32 %36, ptr %37, align 4, !tbaa !5
  %indvars.iv.next68.1 = add nuw nsw i64 %indvars.iv67, 2
  %38 = getelementptr inbounds i32, ptr %0, i64 %indvars.iv.next68.1
  %39 = load i32, ptr %38, align 4, !tbaa !5
  %40 = getelementptr inbounds [50 x [10 x i32]], ptr @gintersected_types, i64 0, i64 %9, i64 %indvars.iv.next68.1
  store i32 %39, ptr %40, align 4, !tbaa !5
  %indvars.iv.next68.2 = add nuw nsw i64 %indvars.iv67, 3
  %41 = getelementptr inbounds i32, ptr %0, i64 %indvars.iv.next68.2
  %42 = load i32, ptr %41, align 4, !tbaa !5
  %43 = getelementptr inbounds [50 x [10 x i32]], ptr @gintersected_types, i64 0, i64 %9, i64 %indvars.iv.next68.2
  store i32 %42, ptr %43, align 4, !tbaa !5
  %indvars.iv.next68.3 = add nuw nsw i64 %indvars.iv67, 4
  %exitcond70.not.3 = icmp eq i64 %indvars.iv.next68.3, %wide.trip.count
  br i1 %exitcond70.not.3, label %._crit_edge, label %.lr.ph, !llvm.loop !19

._crit_edge:                                      ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %middle.block, %.preheader55
  %44 = getelementptr inbounds [50 x i32], ptr @gnum_intersected_types, i64 0, i64 %9
  store i32 %1, ptr %44, align 4, !tbaa !5
  %45 = add nsw i32 %4, 1
  store i32 %45, ptr @gnum_types, align 4, !tbaa !5
  %46 = load i32, ptr %0, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [50 x i32], ptr @gtype_size, i64 0, i64 %47
  %49 = load i32, ptr %48, align 4, !tbaa !5
  %50 = icmp sgt i32 %49, 0
  br i1 %50, label %.preheader53.lr.ph, label %.preheader

.preheader53.lr.ph:                               ; preds = %._crit_edge
  %51 = icmp sgt i32 %1, 1
  %wide.trip.count74 = zext nneg i32 %1 to i64
  br label %.preheader53

.preheader53:                                     ; preds = %.preheader53.lr.ph, %.loopexit54
  %52 = phi i32 [ %46, %.preheader53.lr.ph ], [ %81, %.loopexit54 ]
  %53 = phi i32 [ 0, %.preheader53.lr.ph ], [ %82, %.loopexit54 ]
  %indvars.iv76 = phi i64 [ 0, %.preheader53.lr.ph ], [ %indvars.iv.next77, %.loopexit54 ]
  %54 = phi i64 [ %47, %.preheader53.lr.ph ], [ %83, %.loopexit54 ]
  br i1 %51, label %.lr.ph59, label %.critedge

.lr.ph59:                                         ; preds = %.preheader53
  %55 = getelementptr inbounds [50 x [2000 x i32]], ptr @gtype_consts, i64 0, i64 %54, i64 %indvars.iv76
  %56 = load i32, ptr %55, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  br label %60

.preheader:                                       ; preds = %.loopexit54, %._crit_edge
  %58 = phi i32 [ 0, %._crit_edge ], [ %82, %.loopexit54 ]
  br i1 %12, label %.lr.ph63, label %.loopexit

.lr.ph63:                                         ; preds = %.preheader
  %wide.trip.count82 = zext nneg i32 %1 to i64
  br label %89

59:                                               ; preds = %60
  %indvars.iv.next72 = add nuw nsw i64 %indvars.iv71, 1
  %exitcond75.not = icmp eq i64 %indvars.iv.next72, %wide.trip.count74
  br i1 %exitcond75.not, label %.critedge, label %60, !llvm.loop !20

60:                                               ; preds = %.lr.ph59, %59
  %indvars.iv71 = phi i64 [ 1, %.lr.ph59 ], [ %indvars.iv.next72, %59 ]
  %61 = getelementptr inbounds i32, ptr %0, i64 %indvars.iv71
  %62 = load i32, ptr %61, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [2000 x [50 x i8]], ptr @gis_member, i64 0, i64 %57, i64 %63
  %65 = load i8, ptr %64, align 1, !tbaa !17
  %.not52 = icmp eq i8 %65, 0
  br i1 %.not52, label %.loopexit54, label %59

.critedge:                                        ; preds = %59, %.preheader53
  %66 = icmp eq i32 %53, 2000
  br i1 %66, label %67, label %69

67:                                               ; preds = %.critedge
  %68 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13, i32 noundef 2000)
  tail call void @exit(i32 noundef 1) #3
  unreachable

69:                                               ; preds = %.critedge
  %70 = getelementptr inbounds [50 x [2000 x i32]], ptr @gtype_consts, i64 0, i64 %54, i64 %indvars.iv76
  %71 = load i32, ptr %70, align 4, !tbaa !5
  %72 = add nsw i32 %53, 1
  store i32 %72, ptr %11, align 4, !tbaa !5
  %73 = sext i32 %53 to i64
  %74 = getelementptr inbounds [50 x [2000 x i32]], ptr @gtype_consts, i64 0, i64 %9, i64 %73
  store i32 %71, ptr %74, align 4, !tbaa !5
  %75 = load i32, ptr %0, align 4, !tbaa !5
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [50 x [2000 x i32]], ptr @gtype_consts, i64 0, i64 %76, i64 %indvars.iv76
  %78 = load i32, ptr %77, align 4, !tbaa !5
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [2000 x [50 x i8]], ptr @gis_member, i64 0, i64 %79, i64 %9
  store i8 1, ptr %80, align 1, !tbaa !17
  %.pre = load i32, ptr %0, align 4, !tbaa !5
  br label %.loopexit54

.loopexit54:                                      ; preds = %60, %69
  %81 = phi i32 [ %.pre, %69 ], [ %52, %60 ]
  %82 = phi i32 [ %72, %69 ], [ %53, %60 ]
  %indvars.iv.next77 = add nuw nsw i64 %indvars.iv76, 1
  %83 = sext i32 %81 to i64
  %84 = getelementptr inbounds [50 x i32], ptr @gtype_size, i64 0, i64 %83
  %85 = load i32, ptr %84, align 4, !tbaa !5
  %86 = sext i32 %85 to i64
  %87 = icmp slt i64 %indvars.iv.next77, %86
  br i1 %87, label %.preheader53, label %.preheader, !llvm.loop !21

88:                                               ; preds = %89
  %indvars.iv.next80 = add nuw nsw i64 %indvars.iv79, 1
  %exitcond83.not = icmp eq i64 %indvars.iv.next80, %wide.trip.count82
  br i1 %exitcond83.not, label %.loopexit, label %89, !llvm.loop !22

89:                                               ; preds = %.lr.ph63, %88
  %indvars.iv79 = phi i64 [ 0, %.lr.ph63 ], [ %indvars.iv.next80, %88 ]
  %90 = getelementptr inbounds i32, ptr %0, i64 %indvars.iv79
  %91 = load i32, ptr %90, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [50 x i32], ptr @gtype_size, i64 0, i64 %92
  %94 = load i32, ptr %93, align 4, !tbaa !5
  %.not = icmp eq i32 %58, %94
  br i1 %.not, label %95, label %88

95:                                               ; preds = %89
  %96 = getelementptr inbounds i32, ptr %0, i64 %indvars.iv79
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %97

97:                                               ; preds = %97, %95
  %indvars.iv84 = phi i64 [ 0, %95 ], [ %indvars.iv.next85.4, %97 ]
  %98 = getelementptr inbounds [2000 x [50 x i8]], ptr @gis_member, i64 0, i64 %indvars.iv84, i64 %9
  store i8 0, ptr %98, align 1, !tbaa !17
  %indvars.iv.next85 = add nuw nsw i64 %indvars.iv84, 1
  %99 = getelementptr inbounds [2000 x [50 x i8]], ptr @gis_member, i64 0, i64 %indvars.iv.next85, i64 %9
  store i8 0, ptr %99, align 1, !tbaa !17
  %indvars.iv.next85.1 = add nuw nsw i64 %indvars.iv84, 2
  %100 = getelementptr inbounds [2000 x [50 x i8]], ptr @gis_member, i64 0, i64 %indvars.iv.next85.1, i64 %9
  store i8 0, ptr %100, align 1, !tbaa !17
  %indvars.iv.next85.2 = add nuw nsw i64 %indvars.iv84, 3
  %101 = getelementptr inbounds [2000 x [50 x i8]], ptr @gis_member, i64 0, i64 %indvars.iv.next85.2, i64 %9
  store i8 0, ptr %101, align 1, !tbaa !17
  %indvars.iv.next85.3 = add nuw nsw i64 %indvars.iv84, 4
  %102 = getelementptr inbounds [2000 x [50 x i8]], ptr @gis_member, i64 0, i64 %indvars.iv.next85.3, i64 %9
  store i8 0, ptr %102, align 1, !tbaa !17
  %indvars.iv.next85.4 = add nuw nsw i64 %indvars.iv84, 5
  %exitcond87.not.4 = icmp eq i64 %indvars.iv.next85.4, 2000
  br i1 %exitcond87.not.4, label %103, label %97, !llvm.loop !23

103:                                              ; preds = %97
  store i32 -1, ptr %44, align 4, !tbaa !5
  store i32 %4, ptr @gnum_types, align 4, !tbaa !5
  %104 = load i32, ptr %96, align 4, !tbaa !5
  br label %.loopexit

.loopexit:                                        ; preds = %88, %.preheader, %103
  %.0 = phi i32 [ %104, %103 ], [ %4, %.preheader ], [ %4, %88 ]
  ret i32 %.0
}

attributes #0 = { nofree nounwind "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 = { noreturn nounwind "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 = { noreturn 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.unroll.disable"}
!13 = distinct !{!13, !14, !15, !16}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!"llvm.loop.isvectorized", i32 1}
!16 = !{!"llvm.loop.unroll.runtime.disable"}
!17 = !{!7, !7, i64 0}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14, !15}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !14}
!22 = distinct !{!22, !14}
!23 = distinct !{!23, !14}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass