; LLVM IR from AlgoGenesis/C :: Searching Algorithms/Uniform_Cost_Search (program)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.PriorityQueue = type { [100 x %struct.Edge], i32 }
%struct.Edge = type { i32, i32 }

@cost = external dso_local global [100 x i32], align 16
@visited = external dso_local global [100 x i32], align 16
@.str = external hidden unnamed_addr constant [45 x i8], align 1
@graph = external dso_local global [100 x [100 x i32]], align 16
@.str.1 = external hidden unnamed_addr constant [39 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @initQueue(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @push(ptr noundef, i32 noundef, i32 noundef) #0

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

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

; Function Attrs: nounwind uwtable
declare dso_local i64 @pop(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @isEmpty(ptr noundef) #0

; Function Attrs: nounwind uwtable
define dso_local void @uniformCostSearch(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca %struct.PriorityQueue, align 4
  %9 = alloca %struct.Edge, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %14

14:                                               ; preds = %26, %3
  %15 = load i32, ptr %7, align 4, !tbaa !5
  %16 = load i32, ptr %6, align 4, !tbaa !5
  %17 = icmp slt i32 %15, %16
  br i1 %17, label %19, label %18

18:                                               ; preds = %14
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  br label %29

19:                                               ; preds = %14
  %20 = load i32, ptr %7, align 4, !tbaa !5
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds [100 x i32], ptr @cost, i64 0, i64 %21
  store i32 1000000, ptr %22, align 4, !tbaa !5
  %23 = load i32, ptr %7, align 4, !tbaa !5
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds [100 x i32], ptr @visited, i64 0, i64 %24
  store i32 0, ptr %25, align 4, !tbaa !5
  br label %26

26:                                               ; preds = %19
  %27 = load i32, ptr %7, align 4, !tbaa !5
  %28 = add nsw i32 %27, 1
  store i32 %28, ptr %7, align 4, !tbaa !5
  br label %14, !llvm.loop !9

29:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 804, ptr %8) #3
  call void @initQueue(ptr noundef %8)
  %30 = load i32, ptr %4, align 4, !tbaa !5
  call void @push(ptr noundef %8, i32 noundef %30, i32 noundef 0)
  %31 = load i32, ptr %4, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [100 x i32], ptr @cost, i64 0, i64 %32
  store i32 0, ptr %33, align 4, !tbaa !5
  br label %34

34:                                               ; preds = %118, %116, %29
  %35 = call i32 @isEmpty(ptr noundef %8)
  %36 = icmp ne i32 %35, 0
  %37 = xor i1 %36, true
  br i1 %37, label %38, label %119

38:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %39 = call i64 @pop(ptr noundef %8)
  store i64 %39, ptr %9, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  %40 = getelementptr inbounds %struct.Edge, ptr %9, i32 0, i32 0
  %41 = load i32, ptr %40, align 4, !tbaa !11
  store i32 %41, ptr %10, align 4, !tbaa !5
  %42 = load i32, ptr %10, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [100 x i32], ptr @visited, i64 0, i64 %43
  %45 = load i32, ptr %44, align 4, !tbaa !5
  %46 = icmp ne i32 %45, 0
  br i1 %46, label %47, label %48

47:                                               ; preds = %38
  store i32 5, ptr %11, align 4
  br label %116, !llvm.loop !13

48:                                               ; preds = %38
  %49 = load i32, ptr %10, align 4, !tbaa !5
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds [100 x i32], ptr @visited, i64 0, i64 %50
  store i32 1, ptr %51, align 4, !tbaa !5
  %52 = load i32, ptr %10, align 4, !tbaa !5
  %53 = load i32, ptr %5, align 4, !tbaa !5
  %54 = icmp eq i32 %52, %53
  br i1 %54, label %55, label %63

55:                                               ; preds = %48
  %56 = load i32, ptr %4, align 4, !tbaa !5
  %57 = load i32, ptr %5, align 4, !tbaa !5
  %58 = load i32, ptr %5, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [100 x i32], ptr @cost, i64 0, i64 %59
  %61 = load i32, ptr %60, align 4, !tbaa !5
  %62 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %56, i32 noundef %57, i32 noundef %61)
  store i32 1, ptr %11, align 4
  br label %116

63:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %64

64:                                               ; preds = %112, %63
  %65 = load i32, ptr %12, align 4, !tbaa !5
  %66 = load i32, ptr %6, align 4, !tbaa !5
  %67 = icmp slt i32 %65, %66
  br i1 %67, label %69, label %68

68:                                               ; preds = %64
  store i32 7, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  br label %115

69:                                               ; preds = %64
  %70 = load i32, ptr %10, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [100 x [100 x i32]], ptr @graph, i64 0, i64 %71
  %73 = load i32, ptr %12, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [100 x i32], ptr %72, i64 0, i64 %74
  %76 = load i32, ptr %75, align 4, !tbaa !5
  %77 = icmp ne i32 %76, 0
  br i1 %77, label %78, label %111

78:                                               ; preds = %69
  %79 = load i32, ptr %12, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [100 x i32], ptr @visited, i64 0, i64 %80
  %82 = load i32, ptr %81, align 4, !tbaa !5
  %83 = icmp ne i32 %82, 0
  br i1 %83, label %111, label %84

84:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  %85 = load i32, ptr %10, align 4, !tbaa !5
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [100 x i32], ptr @cost, i64 0, i64 %86
  %88 = load i32, ptr %87, align 4, !tbaa !5
  %89 = load i32, ptr %10, align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [100 x [100 x i32]], ptr @graph, i64 0, i64 %90
  %92 = load i32, ptr %12, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [100 x i32], ptr %91, i64 0, i64 %93
  %95 = load i32, ptr %94, align 4, !tbaa !5
  %96 = add nsw i32 %88, %95
  store i32 %96, ptr %13, align 4, !tbaa !5
  %97 = load i32, ptr %13, align 4, !tbaa !5
  %98 = load i32, ptr %12, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [100 x i32], ptr @cost, i64 0, i64 %99
  %101 = load i32, ptr %100, align 4, !tbaa !5
  %102 = icmp slt i32 %97, %101
  br i1 %102, label %103, label %110

103:                                              ; preds = %84
  %104 = load i32, ptr %13, align 4, !tbaa !5
  %105 = load i32, ptr %12, align 4, !tbaa !5
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [100 x i32], ptr @cost, i64 0, i64 %106
  store i32 %104, ptr %107, align 4, !tbaa !5
  %108 = load i32, ptr %12, align 4, !tbaa !5
  %109 = load i32, ptr %13, align 4, !tbaa !5
  call void @push(ptr noundef %8, i32 noundef %108, i32 noundef %109)
  br label %110

110:                                              ; preds = %103, %84
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  br label %111

111:                                              ; preds = %110, %78, %69
  br label %112

112:                                              ; preds = %111
  %113 = load i32, ptr %12, align 4, !tbaa !5
  %114 = add nsw i32 %113, 1
  store i32 %114, ptr %12, align 4, !tbaa !5
  br label %64, !llvm.loop !14

115:                                              ; preds = %68
  store i32 0, ptr %11, align 4
  br label %116

116:                                              ; preds = %115, %55, %47
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  %117 = load i32, ptr %11, align 4
  switch i32 %117, label %123 [
    i32 0, label %118
    i32 5, label %34
  ]

118:                                              ; preds = %116
  br label %34, !llvm.loop !13

119:                                              ; preds = %34
  %120 = load i32, ptr %4, align 4, !tbaa !5
  %121 = load i32, ptr %5, align 4, !tbaa !5
  %122 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %120, i32 noundef %121)
  store i32 0, ptr %11, align 4
  br label %123

123:                                              ; preds = %119, %116
  call void @llvm.lifetime.end.p0(i64 804, ptr %8) #3
  %124 = load i32, ptr %11, align 4
  switch i32 %124, label %126 [
    i32 0, label %125
    i32 1, label %125
  ]

125:                                              ; preds = %123, %123
  ret void

126:                                              ; preds = %123
  unreachable
}

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !6, i64 0}
!12 = !{!"", !6, i64 0, !6, i64 4}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !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"

%struct.PriorityQueue = type { [100 x %struct.Edge], i32 }
%struct.Edge = type { i32, i32 }

@cost = external dso_local local_unnamed_addr global [100 x i32], align 16
@visited = external dso_local local_unnamed_addr global [100 x i32], align 16
@.str = external hidden unnamed_addr constant [45 x i8], align 1
@graph = external dso_local local_unnamed_addr global [100 x [100 x i32]], align 16
@.str.1 = external hidden unnamed_addr constant [39 x i8], align 1

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

; Function Attrs: nounwind uwtable
declare dso_local void @push(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nounwind uwtable
declare dso_local i64 @pop(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @isEmpty(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @uniformCostSearch(i32 noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #0 {
  %4 = alloca %struct.PriorityQueue, align 4
  %5 = icmp sgt i32 %2, 0
  br i1 %5, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %3
  %6 = zext nneg i32 %2 to i64
  %7 = shl nuw nsw i64 %6, 2
  tail call void @llvm.memset.p0.i64(ptr nonnull align 16 @visited, i8 0, i64 %7, i1 false), !tbaa !5
  %min.iters.check = icmp ult i32 %2, 8
  br i1 %min.iters.check, label %.lr.ph.preheader63, label %vector.ph

.lr.ph.preheader63:                               ; preds = %middle.block, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %6, 2147483640
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %8 = getelementptr inbounds [100 x i32], ptr @cost, i64 0, i64 %index
  %9 = getelementptr inbounds i8, ptr %8, i64 16
  store <4 x i32> <i32 1000000, i32 1000000, i32 1000000, i32 1000000>, ptr %8, align 16, !tbaa !5
  store <4 x i32> <i32 1000000, i32 1000000, i32 1000000, i32 1000000>, ptr %9, align 16, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %10 = icmp eq i64 %index.next, %n.vec
  br i1 %10, label %middle.block, label %vector.body, !llvm.loop !9

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %6
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph.preheader63

._crit_edge:                                      ; preds = %.lr.ph, %middle.block, %3
  call void @llvm.lifetime.start.p0(i64 804, ptr nonnull %4) #4
  call void @initQueue(ptr noundef nonnull %4)
  call void @push(ptr noundef nonnull %4, i32 noundef %0, i32 noundef 0)
  %11 = sext i32 %0 to i64
  %12 = getelementptr inbounds [100 x i32], ptr @cost, i64 0, i64 %11
  store i32 0, ptr %12, align 4, !tbaa !5
  %13 = call i32 @isEmpty(ptr noundef nonnull %4)
  %.not45 = icmp eq i32 %13, 0
  br i1 %.not45, label %.lr.ph47, label %._crit_edge48

.lr.ph47:                                         ; preds = %._crit_edge
  br i1 %5, label %.lr.ph47.split.us.preheader, label %.lr.ph47.split

.lr.ph47.split.us.preheader:                      ; preds = %.lr.ph47
  %wide.trip.count55 = zext nneg i32 %2 to i64
  br label %.lr.ph47.split.us

.lr.ph47.split.us:                                ; preds = %.lr.ph47.split.us.preheader, %..loopexit_crit_edge.us
  %14 = call i64 @pop(ptr noundef nonnull %4)
  %sext.us = shl i64 %14, 32
  %15 = ashr exact i64 %sext.us, 32
  %16 = getelementptr inbounds [100 x i32], ptr @visited, i64 0, i64 %15
  %17 = load i32, ptr %16, align 4, !tbaa !5
  %.not38.us = icmp eq i32 %17, 0
  br i1 %.not38.us, label %18, label %..loopexit_crit_edge.us, !llvm.loop !13

18:                                               ; preds = %.lr.ph47.split.us
  %.sroa.0.0.extract.trunc.us = trunc i64 %14 to i32
  store i32 1, ptr %16, align 4, !tbaa !5
  %19 = icmp eq i32 %.sroa.0.0.extract.trunc.us, %1
  br i1 %19, label %.thread, label %.preheader.us

..loopexit_crit_edge.us:                          ; preds = %35, %.lr.ph47.split.us
  %20 = call i32 @isEmpty(ptr noundef nonnull %4)
  %.not.us = icmp eq i32 %20, 0
  br i1 %.not.us, label %.lr.ph47.split.us, label %._crit_edge48

21:                                               ; preds = %.preheader.us, %35
  %indvars.iv52 = phi i64 [ 0, %.preheader.us ], [ %indvars.iv.next53, %35 ]
  %22 = getelementptr inbounds [100 x [100 x i32]], ptr @graph, i64 0, i64 %15, i64 %indvars.iv52
  %23 = load i32, ptr %22, align 4, !tbaa !5
  %.not39.us = icmp eq i32 %23, 0
  br i1 %.not39.us, label %35, label %24

24:                                               ; preds = %21
  %25 = getelementptr inbounds [100 x i32], ptr @visited, i64 0, i64 %indvars.iv52
  %26 = load i32, ptr %25, align 4, !tbaa !5
  %.not40.us = icmp eq i32 %26, 0
  br i1 %.not40.us, label %27, label %35

27:                                               ; preds = %24
  %28 = load i32, ptr %36, align 4, !tbaa !5
  %29 = add nsw i32 %28, %23
  %30 = getelementptr inbounds [100 x i32], ptr @cost, i64 0, i64 %indvars.iv52
  %31 = load i32, ptr %30, align 4, !tbaa !5
  %32 = icmp slt i32 %29, %31
  br i1 %32, label %33, label %35

33:                                               ; preds = %27
  store i32 %29, ptr %30, align 4, !tbaa !5
  %34 = trunc nuw nsw i64 %indvars.iv52 to i32
  call void @push(ptr noundef nonnull %4, i32 noundef %34, i32 noundef %29)
  br label %35

35:                                               ; preds = %33, %27, %24, %21
  %indvars.iv.next53 = add nuw nsw i64 %indvars.iv52, 1
  %exitcond56.not = icmp eq i64 %indvars.iv.next53, %wide.trip.count55
  br i1 %exitcond56.not, label %..loopexit_crit_edge.us, label %21, !llvm.loop !14

.preheader.us:                                    ; preds = %18
  %36 = getelementptr inbounds [100 x i32], ptr @cost, i64 0, i64 %15
  br label %21

.lr.ph:                                           ; preds = %.lr.ph.preheader63, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %indvars.iv.ph, %.lr.ph.preheader63 ]
  %37 = getelementptr inbounds [100 x i32], ptr @cost, i64 0, i64 %indvars.iv
  store i32 1000000, ptr %37, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %6
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !15

.lr.ph47.split:                                   ; preds = %.lr.ph47, %.preheader
  %38 = call i64 @pop(ptr noundef nonnull %4)
  %sext = shl i64 %38, 32
  %39 = ashr exact i64 %sext, 32
  %40 = getelementptr inbounds [100 x i32], ptr @visited, i64 0, i64 %39
  %41 = load i32, ptr %40, align 4, !tbaa !5
  %.not38 = icmp eq i32 %41, 0
  br i1 %.not38, label %42, label %.preheader, !llvm.loop !13

42:                                               ; preds = %.lr.ph47.split
  %.sroa.0.0.extract.trunc = trunc i64 %38 to i32
  store i32 1, ptr %40, align 4, !tbaa !5
  %43 = icmp eq i32 %.sroa.0.0.extract.trunc, %1
  br i1 %43, label %.thread, label %.preheader

.thread:                                          ; preds = %42, %18
  %44 = sext i32 %1 to i64
  %45 = getelementptr inbounds [100 x i32], ptr @cost, i64 0, i64 %44
  %46 = load i32, ptr %45, align 4, !tbaa !5
  %47 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %0, i32 noundef %1, i32 noundef %46)
  br label %50

.preheader:                                       ; preds = %42, %.lr.ph47.split
  %48 = call i32 @isEmpty(ptr noundef nonnull %4)
  %.not = icmp eq i32 %48, 0
  br i1 %.not, label %.lr.ph47.split, label %._crit_edge48

._crit_edge48:                                    ; preds = %.preheader, %..loopexit_crit_edge.us, %._crit_edge
  %49 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %0, i32 noundef %1)
  br label %50

50:                                               ; preds = %.thread, %._crit_edge48
  call void @llvm.lifetime.end.p0(i64 804, ptr nonnull %4) #4
  ret void
}

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

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10, !11, !12}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.isvectorized", i32 1}
!12 = !{!"llvm.loop.unroll.runtime.disable"}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10, !12, !11}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopIdiomRecognizePass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,SROAPass,SimplifyCFGPass,TailCallElimPass