; LLVM IR from Shah-Shishir/Codeforces-Solutions :: 17A. Noldbach problem (main)

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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@prime = external dso_local global [1005 x i8], align 16
@v = external dso_local global %"class.std::vector", align 8
@.str = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %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 i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i8 0, ptr getelementptr inbounds ([1005 x i8], ptr @prime, i64 0, i64 1), align 1, !tbaa !5
  store i8 0, ptr @prime, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 2, ptr %8, align 4, !tbaa !9
  call void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) @v, ptr noundef nonnull align 4 dereferenceable(4) %8)
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  store i32 4, ptr %2, align 4, !tbaa !9
  br label %9

9:                                                ; preds = %16, %0
  %10 = load i32, ptr %2, align 4, !tbaa !9
  %11 = icmp slt i32 %10, 1005
  br i1 %11, label %12, label %19

12:                                               ; preds = %9
  %13 = load i32, ptr %2, align 4, !tbaa !9
  %14 = sext i32 %13 to i64
  %15 = getelementptr inbounds [1005 x i8], ptr @prime, i64 0, i64 %14
  store i8 1, ptr %15, align 1, !tbaa !5
  br label %16

16:                                               ; preds = %12
  %17 = load i32, ptr %2, align 4, !tbaa !9
  %18 = add nsw i32 %17, 2
  store i32 %18, ptr %2, align 4, !tbaa !9
  br label %9, !llvm.loop !11

19:                                               ; preds = %9
  store i32 3, ptr %2, align 4, !tbaa !9
  br label %20

20:                                               ; preds = %49, %19
  %21 = load i32, ptr %2, align 4, !tbaa !9
  %22 = load i32, ptr %2, align 4, !tbaa !9
  %23 = mul nsw i32 %21, %22
  %24 = icmp sle i32 %23, 1005
  br i1 %24, label %25, label %52

25:                                               ; preds = %20
  %26 = load i32, ptr %2, align 4, !tbaa !9
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds [1005 x i8], ptr @prime, i64 0, i64 %27
  %29 = load i8, ptr %28, align 1, !tbaa !5, !range !13, !noundef !14
  %30 = trunc i8 %29 to i1
  br i1 %30, label %48, label %31

31:                                               ; preds = %25
  %32 = load i32, ptr %2, align 4, !tbaa !9
  %33 = load i32, ptr %2, align 4, !tbaa !9
  %34 = mul nsw i32 %32, %33
  store i32 %34, ptr %3, align 4, !tbaa !9
  br label %35

35:                                               ; preds = %42, %31
  %36 = load i32, ptr %3, align 4, !tbaa !9
  %37 = icmp sle i32 %36, 1005
  br i1 %37, label %38, label %47

38:                                               ; preds = %35
  %39 = load i32, ptr %3, align 4, !tbaa !9
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [1005 x i8], ptr @prime, i64 0, i64 %40
  store i8 1, ptr %41, align 1, !tbaa !5
  br label %42

42:                                               ; preds = %38
  %43 = load i32, ptr %2, align 4, !tbaa !9
  %44 = mul nsw i32 2, %43
  %45 = load i32, ptr %3, align 4, !tbaa !9
  %46 = add nsw i32 %45, %44
  store i32 %46, ptr %3, align 4, !tbaa !9
  br label %35, !llvm.loop !15

47:                                               ; preds = %35
  br label %48

48:                                               ; preds = %47, %25
  br label %49

49:                                               ; preds = %48
  %50 = load i32, ptr %2, align 4, !tbaa !9
  %51 = add nsw i32 %50, 2
  store i32 %51, ptr %2, align 4, !tbaa !9
  br label %20, !llvm.loop !16

52:                                               ; preds = %20
  store i32 3, ptr %2, align 4, !tbaa !9
  br label %53

53:                                               ; preds = %64, %52
  %54 = load i32, ptr %2, align 4, !tbaa !9
  %55 = icmp slt i32 %54, 1005
  br i1 %55, label %56, label %67

56:                                               ; preds = %53
  %57 = load i32, ptr %2, align 4, !tbaa !9
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [1005 x i8], ptr @prime, i64 0, i64 %58
  %60 = load i8, ptr %59, align 1, !tbaa !5, !range !13, !noundef !14
  %61 = trunc i8 %60 to i1
  br i1 %61, label %63, label %62

62:                                               ; preds = %56
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) @v, ptr noundef nonnull align 4 dereferenceable(4) %2)
  br label %63

63:                                               ; preds = %62, %56
  br label %64

64:                                               ; preds = %63
  %65 = load i32, ptr %2, align 4, !tbaa !9
  %66 = add nsw i32 %65, 2
  store i32 %66, ptr %2, align 4, !tbaa !9
  br label %53, !llvm.loop !17

67:                                               ; preds = %53
  br label %68

68:                                               ; preds = %125, %67
  %69 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %4, ptr noundef %5)
  %70 = icmp ne i32 %69, -1
  br i1 %70, label %71, label %126

71:                                               ; preds = %68
  store i32 0, ptr %6, align 4, !tbaa !9
  store i32 0, ptr %2, align 4, !tbaa !9
  br label %72

72:                                               ; preds = %114, %71
  %73 = load i32, ptr %2, align 4, !tbaa !9
  %74 = sext i32 %73 to i64
  %75 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @v, i64 noundef %74) #5
  %76 = load i32, ptr %75, align 4, !tbaa !9
  %77 = load i32, ptr %4, align 4, !tbaa !9
  %78 = icmp sle i32 %76, %77
  br i1 %78, label %79, label %117

79:                                               ; preds = %72
  %80 = load i32, ptr %2, align 4, !tbaa !9
  %81 = sext i32 %80 to i64
  %82 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @v, i64 noundef %81) #5
  %83 = load i32, ptr %82, align 4, !tbaa !9
  %84 = sub nsw i32 %83, 1
  store i32 %84, ptr %7, align 4, !tbaa !9
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %85

85:                                               ; preds = %110, %79
  %86 = load i32, ptr %3, align 4, !tbaa !9
  %87 = sext i32 %86 to i64
  %88 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @v, i64 noundef %87) #5
  %89 = load i32, ptr %88, align 4, !tbaa !9
  %90 = load i32, ptr %7, align 4, !tbaa !9
  %91 = sdiv i32 %90, 2
  %92 = icmp slt i32 %89, %91
  br i1 %92, label %93, label %113

93:                                               ; preds = %85
  %94 = load i32, ptr %3, align 4, !tbaa !9
  %95 = sext i32 %94 to i64
  %96 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @v, i64 noundef %95) #5
  %97 = load i32, ptr %96, align 4, !tbaa !9
  %98 = load i32, ptr %3, align 4, !tbaa !9
  %99 = add nsw i32 %98, 1
  %100 = sext i32 %99 to i64
  %101 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @v, i64 noundef %100) #5
  %102 = load i32, ptr %101, align 4, !tbaa !9
  %103 = add nsw i32 %97, %102
  %104 = load i32, ptr %7, align 4, !tbaa !9
  %105 = icmp eq i32 %103, %104
  br i1 %105, label %106, label %109

106:                                              ; preds = %93
  %107 = load i32, ptr %6, align 4, !tbaa !9
  %108 = add nsw i32 %107, 1
  store i32 %108, ptr %6, align 4, !tbaa !9
  br label %113

109:                                              ; preds = %93
  br label %110

110:                                              ; preds = %109
  %111 = load i32, ptr %3, align 4, !tbaa !9
  %112 = add nsw i32 %111, 1
  store i32 %112, ptr %3, align 4, !tbaa !9
  br label %85, !llvm.loop !18

113:                                              ; preds = %106, %85
  br label %114

114:                                              ; preds = %113
  %115 = load i32, ptr %2, align 4, !tbaa !9
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %2, align 4, !tbaa !9
  br label %72, !llvm.loop !19

117:                                              ; preds = %72
  %118 = load i32, ptr %6, align 4, !tbaa !9
  %119 = load i32, ptr %5, align 4, !tbaa !9
  %120 = icmp sge i32 %118, %119
  br i1 %120, label %121, label %123

121:                                              ; preds = %117
  %122 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %125

123:                                              ; preds = %117
  %124 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %125

125:                                              ; preds = %123, %121
  br label %68, !llvm.loop !20

126:                                              ; preds = %68
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  ret i32 0
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2

declare i32 @__isoc99_scanf(ptr noundef, ...) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #4 align 2

declare i32 @printf(ptr noundef, ...) #3

attributes #0 = { mustprogress norecurse 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 nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress 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 = { "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 = { mustprogress 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 #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 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@prime = external dso_local local_unnamed_addr global [1005 x i8], align 16
@v = external dso_local global %"class.std::vector", align 8
@.str = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
  store i8 0, ptr getelementptr inbounds (i8, ptr @prime, i64 1), align 1, !tbaa !5
  store i8 0, ptr @prime, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
  store i32 2, ptr %4, align 4, !tbaa !9
  call void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) @v, ptr noundef nonnull align 4 dereferenceable(4) %4)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  br label %7

.preheader25:                                     ; preds = %7
  store i32 1006, ptr %1, align 4, !tbaa !9
  %5 = load i8, ptr getelementptr inbounds (i8, ptr @prime, i64 3), align 1, !tbaa !5, !range !11, !noundef !12
  %6 = trunc nuw i8 %5 to i1
  br i1 %6, label %.loopexit24, label %.lr.ph

7:                                                ; preds = %7, %0
  %indvars.iv = phi i64 [ 4, %0 ], [ %indvars.iv.next.2, %7 ]
  %8 = getelementptr inbounds [1005 x i8], ptr @prime, i64 0, i64 %indvars.iv
  store i8 1, ptr %8, align 2, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 2
  %9 = getelementptr inbounds [1005 x i8], ptr @prime, i64 0, i64 %indvars.iv.next
  store i8 1, ptr %9, align 2, !tbaa !5
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 4
  %10 = getelementptr inbounds [1005 x i8], ptr @prime, i64 0, i64 %indvars.iv.next.1
  store i8 1, ptr %10, align 2, !tbaa !5
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv, 6
  %11 = icmp ult i64 %indvars.iv, 999
  br i1 %11, label %7, label %.preheader25, !llvm.loop !13

.lr.ph:                                           ; preds = %.preheader25, %.lr.ph.756
  %indvars.iv41 = phi i64 [ %indvars.iv.next42.7, %.lr.ph.756 ], [ 9, %.preheader25 ]
  %12 = getelementptr inbounds [1005 x i8], ptr @prime, i64 0, i64 %indvars.iv41
  store i8 1, ptr %12, align 1, !tbaa !5
  %indvars.iv.next42 = add nuw nsw i64 %indvars.iv41, 6
  %13 = getelementptr inbounds [1005 x i8], ptr @prime, i64 0, i64 %indvars.iv.next42
  store i8 1, ptr %13, align 1, !tbaa !5
  %indvars.iv.next42.1 = add nuw nsw i64 %indvars.iv41, 12
  %14 = getelementptr inbounds [1005 x i8], ptr @prime, i64 0, i64 %indvars.iv.next42.1
  store i8 1, ptr %14, align 1, !tbaa !5
  %indvars.iv.next42.2 = add nuw nsw i64 %indvars.iv41, 18
  %15 = getelementptr inbounds [1005 x i8], ptr @prime, i64 0, i64 %indvars.iv.next42.2
  store i8 1, ptr %15, align 1, !tbaa !5
  %indvars.iv.next42.3 = add nuw nsw i64 %indvars.iv41, 24
  %16 = getelementptr inbounds [1005 x i8], ptr @prime, i64 0, i64 %indvars.iv.next42.3
  store i8 1, ptr %16, align 1, !tbaa !5
  %indvars.iv.next42.4 = add nuw nsw i64 %indvars.iv41, 30
  %17 = getelementptr inbounds [1005 x i8], ptr @prime, i64 0, i64 %indvars.iv.next42.4
  store i8 1, ptr %17, align 1, !tbaa !5
  %indvars.iv.next42.5 = add nuw nsw i64 %indvars.iv41, 36
  %18 = getelementptr inbounds [1005 x i8], ptr @prime, i64 0, i64 %indvars.iv.next42.5
  store i8 1, ptr %18, align 1, !tbaa !5
  %19 = icmp ult i64 %indvars.iv41, 964
  br i1 %19, label %.lr.ph.756, label %.loopexit24, !llvm.loop !15

.lr.ph.756:                                       ; preds = %.lr.ph
  %indvars.iv.next42.6 = add nuw nsw i64 %indvars.iv41, 42
  %20 = getelementptr inbounds [1005 x i8], ptr @prime, i64 0, i64 %indvars.iv.next42.6
  store i8 1, ptr %20, align 1, !tbaa !5
  %indvars.iv.next42.7 = add nuw nsw i64 %indvars.iv41, 48
  br label %.lr.ph

.loopexit24:                                      ; preds = %.lr.ph, %.preheader25
  %21 = load i8, ptr getelementptr inbounds (i8, ptr @prime, i64 5), align 1, !tbaa !5, !range !11, !noundef !12
  %22 = trunc nuw i8 %21 to i1
  br i1 %22, label %.loopexit24.1, label %.lr.ph.1

.lr.ph.1:                                         ; preds = %.loopexit24
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 25), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 35), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 45), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 55), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 65), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 75), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 85), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 95), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 105), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 115), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 125), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 135), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 145), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 155), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 165), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 175), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 185), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 195), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 205), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 215), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 225), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 235), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 245), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 255), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 265), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 275), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 285), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 295), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 305), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 315), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 325), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 335), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 345), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 355), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 365), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 375), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 385), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 395), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 405), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 415), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 425), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 435), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 445), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 455), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 465), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 475), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 485), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 495), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 505), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 515), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 525), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 535), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 545), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 555), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 565), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 575), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 585), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 595), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 605), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 615), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 625), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 635), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 645), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 655), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 665), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 675), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 685), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 695), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 705), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 715), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 725), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 735), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 745), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 755), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 765), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 775), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 785), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 795), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 805), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 815), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 825), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 835), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 845), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 855), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 865), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 875), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 885), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 895), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 905), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 915), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 925), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 935), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 945), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 955), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 965), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 975), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 985), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 995), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 1005), align 1, !tbaa !5
  br label %.loopexit24.1

.loopexit24.1:                                    ; preds = %.lr.ph.1, %.loopexit24
  %23 = load i8, ptr getelementptr inbounds (i8, ptr @prime, i64 7), align 1, !tbaa !5, !range !11, !noundef !12
  %24 = trunc nuw i8 %23 to i1
  br i1 %24, label %.loopexit24.2, label %.lr.ph.2

.lr.ph.2:                                         ; preds = %.loopexit24.1
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 49), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 63), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 77), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 91), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 105), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 119), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 133), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 147), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 161), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 175), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 189), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 203), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 217), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 231), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 245), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 259), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 273), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 287), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 301), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 315), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 329), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 343), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 357), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 371), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 385), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 399), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 413), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 427), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 441), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 455), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 469), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 483), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 497), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 511), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 525), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 539), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 553), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 567), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 581), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 595), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 609), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 623), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 637), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 651), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 665), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 679), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 693), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 707), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 721), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 735), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 749), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 763), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 777), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 791), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 805), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 819), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 833), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 847), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 861), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 875), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 889), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 903), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 917), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 931), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 945), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 959), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 973), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 987), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 1001), align 1, !tbaa !5
  br label %.loopexit24.2

.loopexit24.2:                                    ; preds = %.lr.ph.2, %.loopexit24.1
  %25 = load i8, ptr getelementptr inbounds (i8, ptr @prime, i64 9), align 1, !tbaa !5, !range !11, !noundef !12
  %26 = trunc nuw i8 %25 to i1
  br i1 %26, label %.loopexit24.3, label %.lr.ph.3

.lr.ph.3:                                         ; preds = %.loopexit24.2
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 81), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 99), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 117), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 135), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 153), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 171), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 189), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 207), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 225), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 243), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 261), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 279), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 297), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 315), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 333), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 351), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 369), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 387), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 405), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 423), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 441), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 459), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 477), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 495), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 513), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 531), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 549), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 567), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 585), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 603), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 621), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 639), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 657), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 675), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 693), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 711), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 729), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 747), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 765), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 783), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 801), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 819), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 837), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 855), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 873), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 891), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 909), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 927), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 945), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 963), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 981), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 999), align 1, !tbaa !5
  br label %.loopexit24.3

.loopexit24.3:                                    ; preds = %.lr.ph.3, %.loopexit24.2
  %27 = load i8, ptr getelementptr inbounds (i8, ptr @prime, i64 11), align 1, !tbaa !5, !range !11, !noundef !12
  %28 = trunc nuw i8 %27 to i1
  br i1 %28, label %.loopexit24.4, label %.lr.ph.4

.lr.ph.4:                                         ; preds = %.loopexit24.3
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 121), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 143), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 165), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 187), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 209), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 231), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 253), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 275), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 297), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 319), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 341), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 363), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 385), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 407), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 429), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 451), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 473), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 495), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 517), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 539), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 561), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 583), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 605), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 627), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 649), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 671), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 693), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 715), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 737), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 759), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 781), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 803), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 825), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 847), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 869), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 891), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 913), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 935), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 957), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 979), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 1001), align 1, !tbaa !5
  br label %.loopexit24.4

.loopexit24.4:                                    ; preds = %.lr.ph.4, %.loopexit24.3
  %29 = load i8, ptr getelementptr inbounds (i8, ptr @prime, i64 13), align 1, !tbaa !5, !range !11, !noundef !12
  %30 = trunc nuw i8 %29 to i1
  br i1 %30, label %.loopexit24.5, label %.lr.ph.5

.lr.ph.5:                                         ; preds = %.loopexit24.4
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 169), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 195), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 221), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 247), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 273), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 299), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 325), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 351), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 377), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 403), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 429), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 455), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 481), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 507), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 533), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 559), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 585), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 611), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 637), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 663), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 689), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 715), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 741), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 767), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 793), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 819), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 845), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 871), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 897), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 923), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 949), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 975), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 1001), align 1, !tbaa !5
  br label %.loopexit24.5

.loopexit24.5:                                    ; preds = %.lr.ph.5, %.loopexit24.4
  %31 = load i8, ptr getelementptr inbounds (i8, ptr @prime, i64 15), align 1, !tbaa !5, !range !11, !noundef !12
  %32 = trunc nuw i8 %31 to i1
  br i1 %32, label %.loopexit24.6, label %.lr.ph.6

.lr.ph.6:                                         ; preds = %.loopexit24.5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 225), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 255), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 285), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 315), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 345), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 375), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 405), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 435), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 465), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 495), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 525), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 555), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 585), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 615), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 645), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 675), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 705), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 735), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 765), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 795), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 825), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 855), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 885), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 915), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 945), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 975), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 1005), align 1, !tbaa !5
  br label %.loopexit24.6

.loopexit24.6:                                    ; preds = %.lr.ph.6, %.loopexit24.5
  %33 = load i8, ptr getelementptr inbounds (i8, ptr @prime, i64 17), align 1, !tbaa !5, !range !11, !noundef !12
  %34 = trunc nuw i8 %33 to i1
  br i1 %34, label %.loopexit24.7, label %.lr.ph.7

.lr.ph.7:                                         ; preds = %.loopexit24.6
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 289), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 323), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 357), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 391), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 425), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 459), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 493), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 527), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 561), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 595), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 629), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 663), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 697), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 731), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 765), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 799), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 833), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 867), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 901), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 935), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 969), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 1003), align 1, !tbaa !5
  br label %.loopexit24.7

.loopexit24.7:                                    ; preds = %.lr.ph.7, %.loopexit24.6
  %35 = load i8, ptr getelementptr inbounds (i8, ptr @prime, i64 19), align 1, !tbaa !5, !range !11, !noundef !12
  %36 = trunc nuw i8 %35 to i1
  br i1 %36, label %.loopexit24.8, label %.lr.ph.8

.lr.ph.8:                                         ; preds = %.loopexit24.7
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 361), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 399), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 437), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 475), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 513), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 551), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 589), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 627), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 665), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 703), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 741), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 779), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 817), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 855), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 893), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 931), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 969), align 1, !tbaa !5
  br label %.loopexit24.8

.loopexit24.8:                                    ; preds = %.lr.ph.8, %.loopexit24.7
  %37 = load i8, ptr getelementptr inbounds (i8, ptr @prime, i64 21), align 1, !tbaa !5, !range !11, !noundef !12
  %38 = trunc nuw i8 %37 to i1
  br i1 %38, label %.loopexit24.9, label %.lr.ph.9

.lr.ph.9:                                         ; preds = %.loopexit24.8
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 441), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 483), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 525), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 567), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 609), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 651), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 693), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 735), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 777), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 819), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 861), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 903), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 945), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 987), align 1, !tbaa !5
  br label %.loopexit24.9

.loopexit24.9:                                    ; preds = %.lr.ph.9, %.loopexit24.8
  %39 = load i8, ptr getelementptr inbounds (i8, ptr @prime, i64 23), align 1, !tbaa !5, !range !11, !noundef !12
  %40 = trunc nuw i8 %39 to i1
  br i1 %40, label %.loopexit24.10, label %.lr.ph.10

.lr.ph.10:                                        ; preds = %.loopexit24.9
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 529), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 575), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 621), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 667), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 713), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 759), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 805), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 851), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 897), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 943), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 989), align 1, !tbaa !5
  br label %.loopexit24.10

.loopexit24.10:                                   ; preds = %.lr.ph.10, %.loopexit24.9
  %41 = load i8, ptr getelementptr inbounds (i8, ptr @prime, i64 25), align 1, !tbaa !5, !range !11, !noundef !12
  %42 = trunc nuw i8 %41 to i1
  br i1 %42, label %.loopexit24.11, label %.lr.ph.11

.lr.ph.11:                                        ; preds = %.loopexit24.10
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 625), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 675), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 725), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 775), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 825), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 875), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 925), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 975), align 1, !tbaa !5
  br label %.loopexit24.11

.loopexit24.11:                                   ; preds = %.lr.ph.11, %.loopexit24.10
  %43 = load i8, ptr getelementptr inbounds (i8, ptr @prime, i64 27), align 1, !tbaa !5, !range !11, !noundef !12
  %44 = trunc nuw i8 %43 to i1
  br i1 %44, label %.loopexit24.12, label %.lr.ph.12

.lr.ph.12:                                        ; preds = %.loopexit24.11
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 729), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 783), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 837), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 891), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 945), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 999), align 1, !tbaa !5
  br label %.loopexit24.12

.loopexit24.12:                                   ; preds = %.lr.ph.12, %.loopexit24.11
  %45 = load i8, ptr getelementptr inbounds (i8, ptr @prime, i64 29), align 1, !tbaa !5, !range !11, !noundef !12
  %46 = trunc nuw i8 %45 to i1
  br i1 %46, label %.loopexit24.13, label %.lr.ph.13

.lr.ph.13:                                        ; preds = %.loopexit24.12
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 841), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 899), align 1, !tbaa !5
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 957), align 1, !tbaa !5
  br label %.loopexit24.13

.loopexit24.13:                                   ; preds = %.lr.ph.13, %.loopexit24.12
  %47 = load i8, ptr getelementptr inbounds (i8, ptr @prime, i64 31), align 1, !tbaa !5, !range !11, !noundef !12
  %48 = trunc nuw i8 %47 to i1
  br i1 %48, label %.loopexit24.14, label %.lr.ph.14

.lr.ph.14:                                        ; preds = %.loopexit24.13
  store i8 1, ptr getelementptr inbounds (i8, ptr @prime, i64 961), align 1, !tbaa !5
  br label %.loopexit24.14

.loopexit24.14:                                   ; preds = %.lr.ph.14, %.loopexit24.13
  store i32 3, ptr %1, align 4, !tbaa !9
  br label %50

.preheader21:                                     ; preds = %56
  %49 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %2, ptr noundef nonnull %3)
  %.not34 = icmp eq i32 %49, -1
  br i1 %.not34, label %._crit_edge35, label %.preheader

50:                                               ; preds = %.loopexit24.14, %56
  %storemerge1730 = phi i32 [ 3, %.loopexit24.14 ], [ %58, %56 ]
  %51 = sext i32 %storemerge1730 to i64
  %52 = getelementptr inbounds [1005 x i8], ptr @prime, i64 0, i64 %51
  %53 = load i8, ptr %52, align 1, !tbaa !5, !range !11, !noundef !12
  %54 = trunc nuw i8 %53 to i1
  br i1 %54, label %56, label %55

55:                                               ; preds = %50
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) @v, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %.pre = load i32, ptr %1, align 4, !tbaa !9
  br label %56

56:                                               ; preds = %50, %55
  %57 = phi i32 [ %storemerge1730, %50 ], [ %.pre, %55 ]
  %58 = add nsw i32 %57, 2
  store i32 %58, ptr %1, align 4, !tbaa !9
  %59 = icmp slt i32 %57, 1003
  br i1 %59, label %50, label %.preheader21, !llvm.loop !16

.preheader:                                       ; preds = %.preheader21, %._crit_edge
  store i32 0, ptr %1, align 4, !tbaa !9
  %60 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @v, i64 noundef 0) #5
  %61 = load i32, ptr %60, align 4, !tbaa !9
  %62 = load i32, ptr %2, align 4, !tbaa !9
  %.not1931 = icmp sgt i32 %61, %62
  br i1 %.not1931, label %._crit_edge, label %.lr.ph33

.lr.ph33:                                         ; preds = %.preheader, %.loopexit
  %.01132 = phi i32 [ %.112, %.loopexit ], [ 0, %.preheader ]
  %63 = load i32, ptr %1, align 4, !tbaa !9
  %64 = sext i32 %63 to i64
  %65 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @v, i64 noundef %64) #5
  %66 = load i32, ptr %65, align 4, !tbaa !9
  %67 = add nsw i32 %66, -1
  %68 = sdiv i32 %67, 2
  br label %69

69:                                               ; preds = %73, %.lr.ph33
  %indvars.iv47 = phi i64 [ %indvars.iv.next48, %73 ], [ 0, %.lr.ph33 ]
  %70 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @v, i64 noundef %indvars.iv47) #5
  %71 = load i32, ptr %70, align 4, !tbaa !9
  %72 = icmp slt i32 %71, %68
  br i1 %72, label %73, label %.loopexit

73:                                               ; preds = %69
  %74 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @v, i64 noundef %indvars.iv47) #5
  %75 = load i32, ptr %74, align 4, !tbaa !9
  %indvars.iv.next48 = add nuw nsw i64 %indvars.iv47, 1
  %76 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @v, i64 noundef %indvars.iv.next48) #5
  %77 = load i32, ptr %76, align 4, !tbaa !9
  %78 = add nsw i32 %77, %75
  %79 = icmp eq i32 %78, %67
  br i1 %79, label %80, label %69, !llvm.loop !17

80:                                               ; preds = %73
  %81 = add nsw i32 %.01132, 1
  br label %.loopexit

.loopexit:                                        ; preds = %69, %80
  %.112 = phi i32 [ %81, %80 ], [ %.01132, %69 ]
  %82 = load i32, ptr %1, align 4, !tbaa !9
  %83 = add nsw i32 %82, 1
  store i32 %83, ptr %1, align 4, !tbaa !9
  %84 = sext i32 %83 to i64
  %85 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @v, i64 noundef %84) #5
  %86 = load i32, ptr %85, align 4, !tbaa !9
  %87 = load i32, ptr %2, align 4, !tbaa !9
  %.not19 = icmp sgt i32 %86, %87
  br i1 %.not19, label %._crit_edge, label %.lr.ph33, !llvm.loop !18

._crit_edge:                                      ; preds = %.loopexit, %.preheader
  %.011.lcssa = phi i32 [ 0, %.preheader ], [ %.112, %.loopexit ]
  %88 = load i32, ptr %3, align 4, !tbaa !9
  %.not20 = icmp slt i32 %.011.lcssa, %88
  %.str.3..str.2 = select i1 %.not20, ptr @.str.3, ptr @.str.2
  %89 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.3..str.2)
  %90 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %2, ptr noundef nonnull %3)
  %.not = icmp eq i32 %90, -1
  br i1 %.not, label %._crit_edge35, label %.preheader, !llvm.loop !19

._crit_edge35:                                    ; preds = %._crit_edge, %.preheader21
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
  ret i32 0
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #4 align 2

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

attributes #0 = { mustprogress norecurse 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 nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress 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 = { 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 #4 = { mustprogress 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 #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 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass