; LLVM IR from xtaci/algorithms :: src (m_based_demo)

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

@.str = external hidden unnamed_addr constant [34 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [12 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca [64 x i32], align 16
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 256, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  store i32 9, ptr %3, align 4, !tbaa !5
  br label %6

6:                                                ; preds = %12, %0
  %7 = load i32, ptr %3, align 4, !tbaa !5
  %8 = call noundef zeroext i1 @_ZN3algL8is_primeEj(i32 noundef %7)
  br i1 %8, label %9, label %11

9:                                                ; preds = %6
  %10 = load i32, ptr %3, align 4, !tbaa !5
  store i32 %10, ptr %4, align 4, !tbaa !5
  br label %15

11:                                               ; preds = %6
  br label %12

12:                                               ; preds = %11
  %13 = load i32, ptr %3, align 4, !tbaa !5
  %14 = add nsw i32 %13, 2
  store i32 %14, ptr %3, align 4, !tbaa !5
  br label %6, !llvm.loop !9

15:                                               ; preds = %9
  %16 = call i64 @time(ptr noundef null) #6
  %17 = trunc i64 %16 to i32
  call void @srand(i32 noundef %17) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  %18 = call i32 @rand() #6
  %19 = srem i32 %18, 1000
  store i32 %19, ptr %5, align 4, !tbaa !5
  %20 = load i32, ptr %5, align 4, !tbaa !5
  %21 = sext i32 %20 to i64
  %22 = load i32, ptr %4, align 4, !tbaa !5
  %23 = getelementptr inbounds [64 x i32], ptr %2, i64 0, i64 0
  call void @_ZN3algL7m_basedEmiPj(i64 noundef %21, i32 noundef %22, ptr noundef %23)
  %24 = load i32, ptr %5, align 4, !tbaa !5
  %25 = load i32, ptr %4, align 4, !tbaa !5
  %26 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %24, i32 noundef %25)
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %27

27:                                               ; preds = %37, %15
  %28 = load i32, ptr %3, align 4, !tbaa !5
  %29 = icmp slt i32 %28, 64
  br i1 %29, label %30, label %40

30:                                               ; preds = %27
  %31 = load i32, ptr %3, align 4, !tbaa !5
  %32 = load i32, ptr %3, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [64 x i32], ptr %2, i64 0, i64 %33
  %35 = load i32, ptr %34, align 4, !tbaa !5
  %36 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %31, i32 noundef %35)
  br label %37

37:                                               ; preds = %30
  %38 = load i32, ptr %3, align 4, !tbaa !5
  %39 = add nsw i32 %38, 1
  store i32 %39, ptr %3, align 4, !tbaa !5
  br label %27, !llvm.loop !11

40:                                               ; preds = %27
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 256, ptr %2) #6
  %41 = load i32, ptr %1, align 4
  ret i32 %41
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN3algL8is_primeEj(i32 noundef) #2

; Function Attrs: nounwind
declare void @srand(i32 noundef) #3

; Function Attrs: nounwind
declare i64 @time(ptr noundef) #3

; Function Attrs: nounwind
declare i32 @rand() #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN3algL7m_basedEmiPj(i64 noundef, i32 noundef, ptr noundef) #4

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

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

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 = { inlinehint 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 = { 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 = { "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 #6 = { 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++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}


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

@.str = external hidden unnamed_addr constant [34 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [12 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca [64 x i32], align 16
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %1) #6
  br label %2

2:                                                ; preds = %2, %0
  %.0 = phi i32 [ 9, %0 ], [ %4, %2 ]
  %3 = tail call noundef zeroext i1 @_ZN3algL8is_primeEj(i32 noundef %.0)
  %4 = add nuw nsw i32 %.0, 2
  br i1 %3, label %5, label %2, !llvm.loop !5

5:                                                ; preds = %2
  %6 = tail call i64 @time(ptr noundef null) #6
  %7 = trunc i64 %6 to i32
  tail call void @srand(i32 noundef %7) #6
  %8 = tail call i32 @rand() #6
  %9 = srem i32 %8, 1000
  %10 = sext i32 %9 to i64
  call void @_ZN3algL7m_basedEmiPj(i64 noundef %10, i32 noundef %.0, ptr noundef nonnull %1)
  %11 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %9, i32 noundef %.0)
  %12 = load i32, ptr %1, align 16, !tbaa !7
  %13 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 0, i32 noundef %12)
  %14 = getelementptr inbounds i8, ptr %1, i64 4
  %15 = load i32, ptr %14, align 4, !tbaa !7
  %16 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 1, i32 noundef %15)
  %17 = getelementptr inbounds i8, ptr %1, i64 8
  %18 = load i32, ptr %17, align 8, !tbaa !7
  %19 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 2, i32 noundef %18)
  %20 = getelementptr inbounds i8, ptr %1, i64 12
  %21 = load i32, ptr %20, align 4, !tbaa !7
  %22 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 3, i32 noundef %21)
  %23 = getelementptr inbounds i8, ptr %1, i64 16
  %24 = load i32, ptr %23, align 16, !tbaa !7
  %25 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 4, i32 noundef %24)
  %26 = getelementptr inbounds i8, ptr %1, i64 20
  %27 = load i32, ptr %26, align 4, !tbaa !7
  %28 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 5, i32 noundef %27)
  %29 = getelementptr inbounds i8, ptr %1, i64 24
  %30 = load i32, ptr %29, align 8, !tbaa !7
  %31 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 6, i32 noundef %30)
  %32 = getelementptr inbounds i8, ptr %1, i64 28
  %33 = load i32, ptr %32, align 4, !tbaa !7
  %34 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 7, i32 noundef %33)
  %35 = getelementptr inbounds i8, ptr %1, i64 32
  %36 = load i32, ptr %35, align 16, !tbaa !7
  %37 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 8, i32 noundef %36)
  %38 = getelementptr inbounds i8, ptr %1, i64 36
  %39 = load i32, ptr %38, align 4, !tbaa !7
  %40 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 9, i32 noundef %39)
  %41 = getelementptr inbounds i8, ptr %1, i64 40
  %42 = load i32, ptr %41, align 8, !tbaa !7
  %43 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 10, i32 noundef %42)
  %44 = getelementptr inbounds i8, ptr %1, i64 44
  %45 = load i32, ptr %44, align 4, !tbaa !7
  %46 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 11, i32 noundef %45)
  %47 = getelementptr inbounds i8, ptr %1, i64 48
  %48 = load i32, ptr %47, align 16, !tbaa !7
  %49 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 12, i32 noundef %48)
  %50 = getelementptr inbounds i8, ptr %1, i64 52
  %51 = load i32, ptr %50, align 4, !tbaa !7
  %52 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 13, i32 noundef %51)
  %53 = getelementptr inbounds i8, ptr %1, i64 56
  %54 = load i32, ptr %53, align 8, !tbaa !7
  %55 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 14, i32 noundef %54)
  %56 = getelementptr inbounds i8, ptr %1, i64 60
  %57 = load i32, ptr %56, align 4, !tbaa !7
  %58 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 15, i32 noundef %57)
  %59 = getelementptr inbounds i8, ptr %1, i64 64
  %60 = load i32, ptr %59, align 16, !tbaa !7
  %61 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 16, i32 noundef %60)
  %62 = getelementptr inbounds i8, ptr %1, i64 68
  %63 = load i32, ptr %62, align 4, !tbaa !7
  %64 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 17, i32 noundef %63)
  %65 = getelementptr inbounds i8, ptr %1, i64 72
  %66 = load i32, ptr %65, align 8, !tbaa !7
  %67 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 18, i32 noundef %66)
  %68 = getelementptr inbounds i8, ptr %1, i64 76
  %69 = load i32, ptr %68, align 4, !tbaa !7
  %70 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 19, i32 noundef %69)
  %71 = getelementptr inbounds i8, ptr %1, i64 80
  %72 = load i32, ptr %71, align 16, !tbaa !7
  %73 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 20, i32 noundef %72)
  %74 = getelementptr inbounds i8, ptr %1, i64 84
  %75 = load i32, ptr %74, align 4, !tbaa !7
  %76 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 21, i32 noundef %75)
  %77 = getelementptr inbounds i8, ptr %1, i64 88
  %78 = load i32, ptr %77, align 8, !tbaa !7
  %79 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 22, i32 noundef %78)
  %80 = getelementptr inbounds i8, ptr %1, i64 92
  %81 = load i32, ptr %80, align 4, !tbaa !7
  %82 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 23, i32 noundef %81)
  %83 = getelementptr inbounds i8, ptr %1, i64 96
  %84 = load i32, ptr %83, align 16, !tbaa !7
  %85 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 24, i32 noundef %84)
  %86 = getelementptr inbounds i8, ptr %1, i64 100
  %87 = load i32, ptr %86, align 4, !tbaa !7
  %88 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 25, i32 noundef %87)
  %89 = getelementptr inbounds i8, ptr %1, i64 104
  %90 = load i32, ptr %89, align 8, !tbaa !7
  %91 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 26, i32 noundef %90)
  %92 = getelementptr inbounds i8, ptr %1, i64 108
  %93 = load i32, ptr %92, align 4, !tbaa !7
  %94 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 27, i32 noundef %93)
  %95 = getelementptr inbounds i8, ptr %1, i64 112
  %96 = load i32, ptr %95, align 16, !tbaa !7
  %97 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 28, i32 noundef %96)
  %98 = getelementptr inbounds i8, ptr %1, i64 116
  %99 = load i32, ptr %98, align 4, !tbaa !7
  %100 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 29, i32 noundef %99)
  %101 = getelementptr inbounds i8, ptr %1, i64 120
  %102 = load i32, ptr %101, align 8, !tbaa !7
  %103 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 30, i32 noundef %102)
  %104 = getelementptr inbounds i8, ptr %1, i64 124
  %105 = load i32, ptr %104, align 4, !tbaa !7
  %106 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 31, i32 noundef %105)
  %107 = getelementptr inbounds i8, ptr %1, i64 128
  %108 = load i32, ptr %107, align 16, !tbaa !7
  %109 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 32, i32 noundef %108)
  %110 = getelementptr inbounds i8, ptr %1, i64 132
  %111 = load i32, ptr %110, align 4, !tbaa !7
  %112 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 33, i32 noundef %111)
  %113 = getelementptr inbounds i8, ptr %1, i64 136
  %114 = load i32, ptr %113, align 8, !tbaa !7
  %115 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 34, i32 noundef %114)
  %116 = getelementptr inbounds i8, ptr %1, i64 140
  %117 = load i32, ptr %116, align 4, !tbaa !7
  %118 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 35, i32 noundef %117)
  %119 = getelementptr inbounds i8, ptr %1, i64 144
  %120 = load i32, ptr %119, align 16, !tbaa !7
  %121 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 36, i32 noundef %120)
  %122 = getelementptr inbounds i8, ptr %1, i64 148
  %123 = load i32, ptr %122, align 4, !tbaa !7
  %124 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 37, i32 noundef %123)
  %125 = getelementptr inbounds i8, ptr %1, i64 152
  %126 = load i32, ptr %125, align 8, !tbaa !7
  %127 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 38, i32 noundef %126)
  %128 = getelementptr inbounds i8, ptr %1, i64 156
  %129 = load i32, ptr %128, align 4, !tbaa !7
  %130 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 39, i32 noundef %129)
  %131 = getelementptr inbounds i8, ptr %1, i64 160
  %132 = load i32, ptr %131, align 16, !tbaa !7
  %133 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 40, i32 noundef %132)
  %134 = getelementptr inbounds i8, ptr %1, i64 164
  %135 = load i32, ptr %134, align 4, !tbaa !7
  %136 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 41, i32 noundef %135)
  %137 = getelementptr inbounds i8, ptr %1, i64 168
  %138 = load i32, ptr %137, align 8, !tbaa !7
  %139 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 42, i32 noundef %138)
  %140 = getelementptr inbounds i8, ptr %1, i64 172
  %141 = load i32, ptr %140, align 4, !tbaa !7
  %142 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 43, i32 noundef %141)
  %143 = getelementptr inbounds i8, ptr %1, i64 176
  %144 = load i32, ptr %143, align 16, !tbaa !7
  %145 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 44, i32 noundef %144)
  %146 = getelementptr inbounds i8, ptr %1, i64 180
  %147 = load i32, ptr %146, align 4, !tbaa !7
  %148 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 45, i32 noundef %147)
  %149 = getelementptr inbounds i8, ptr %1, i64 184
  %150 = load i32, ptr %149, align 8, !tbaa !7
  %151 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 46, i32 noundef %150)
  %152 = getelementptr inbounds i8, ptr %1, i64 188
  %153 = load i32, ptr %152, align 4, !tbaa !7
  %154 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 47, i32 noundef %153)
  %155 = getelementptr inbounds i8, ptr %1, i64 192
  %156 = load i32, ptr %155, align 16, !tbaa !7
  %157 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 48, i32 noundef %156)
  %158 = getelementptr inbounds i8, ptr %1, i64 196
  %159 = load i32, ptr %158, align 4, !tbaa !7
  %160 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 49, i32 noundef %159)
  %161 = getelementptr inbounds i8, ptr %1, i64 200
  %162 = load i32, ptr %161, align 8, !tbaa !7
  %163 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 50, i32 noundef %162)
  %164 = getelementptr inbounds i8, ptr %1, i64 204
  %165 = load i32, ptr %164, align 4, !tbaa !7
  %166 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 51, i32 noundef %165)
  %167 = getelementptr inbounds i8, ptr %1, i64 208
  %168 = load i32, ptr %167, align 16, !tbaa !7
  %169 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 52, i32 noundef %168)
  %170 = getelementptr inbounds i8, ptr %1, i64 212
  %171 = load i32, ptr %170, align 4, !tbaa !7
  %172 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 53, i32 noundef %171)
  %173 = getelementptr inbounds i8, ptr %1, i64 216
  %174 = load i32, ptr %173, align 8, !tbaa !7
  %175 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 54, i32 noundef %174)
  %176 = getelementptr inbounds i8, ptr %1, i64 220
  %177 = load i32, ptr %176, align 4, !tbaa !7
  %178 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 55, i32 noundef %177)
  %179 = getelementptr inbounds i8, ptr %1, i64 224
  %180 = load i32, ptr %179, align 16, !tbaa !7
  %181 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 56, i32 noundef %180)
  %182 = getelementptr inbounds i8, ptr %1, i64 228
  %183 = load i32, ptr %182, align 4, !tbaa !7
  %184 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 57, i32 noundef %183)
  %185 = getelementptr inbounds i8, ptr %1, i64 232
  %186 = load i32, ptr %185, align 8, !tbaa !7
  %187 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 58, i32 noundef %186)
  %188 = getelementptr inbounds i8, ptr %1, i64 236
  %189 = load i32, ptr %188, align 4, !tbaa !7
  %190 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 59, i32 noundef %189)
  %191 = getelementptr inbounds i8, ptr %1, i64 240
  %192 = load i32, ptr %191, align 16, !tbaa !7
  %193 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 60, i32 noundef %192)
  %194 = getelementptr inbounds i8, ptr %1, i64 244
  %195 = load i32, ptr %194, align 4, !tbaa !7
  %196 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 61, i32 noundef %195)
  %197 = getelementptr inbounds i8, ptr %1, i64 248
  %198 = load i32, ptr %197, align 8, !tbaa !7
  %199 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 62, i32 noundef %198)
  %200 = getelementptr inbounds i8, ptr %1, i64 252
  %201 = load i32, ptr %200, align 4, !tbaa !7
  %202 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 63, i32 noundef %201)
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %1) #6
  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: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN3algL8is_primeEj(i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind
declare void @srand(i32 noundef) local_unnamed_addr #3

; Function Attrs: nounwind
declare i64 @time(ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind
declare i32 @rand() local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN3algL7m_basedEmiPj(i64 noundef, i32 noundef, ptr noundef) local_unnamed_addr #4

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

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

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 = { inlinehint 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 = { 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 = { 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 #6 = { 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LoopRotatePass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass