; LLVM IR from osmart/hole2 :: src/retired_routines (surface)

; 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.base_line = type { i32, i32, i32, i32, i32, i32, ptr, ptr }
%struct.edge_list = type { i32, i32, ptr, i32, ptr }

@max_dots = external dso_local global i32, align 4
@start_point = external dso_local global i32, align 4
@dots = external dso_local global [30000 x [7 x double]], align 16
@start = external dso_local global ptr, align 8
@end = external dso_local global ptr, align 8
@root = external dso_local global ptr, align 8

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

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #1

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

; Function Attrs: nounwind uwtable
define dso_local void @polygonize() #2 {
  %1 = alloca i32, align 4
  %2 = alloca double, align 8
  %3 = alloca double, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 0, ptr %6, align 4, !tbaa !5
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %7

7:                                                ; preds = %65, %0
  %8 = load i32, ptr %4, align 4, !tbaa !5
  %9 = load i32, ptr @max_dots, align 4, !tbaa !5
  %10 = icmp slt i32 %8, %9
  br i1 %10, label %11, label %68

11:                                               ; preds = %7
  %12 = load i32, ptr %4, align 4, !tbaa !5
  %13 = load i32, ptr @start_point, align 4, !tbaa !5
  %14 = icmp eq i32 %12, %13
  br i1 %14, label %15, label %16

15:                                               ; preds = %11
  br label %65

16:                                               ; preds = %11
  %17 = load i32, ptr %4, align 4, !tbaa !5
  %18 = sext i32 %17 to i64
  %19 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %18
  %20 = getelementptr inbounds [7 x double], ptr %19, i64 0, i64 0
  %21 = load double, ptr %20, align 8, !tbaa !9
  %22 = load i32, ptr @start_point, align 4, !tbaa !5
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %23
  %25 = getelementptr inbounds [7 x double], ptr %24, i64 0, i64 0
  %26 = load double, ptr %25, align 8, !tbaa !9
  %27 = fsub double %21, %26
  %28 = call double @pow(double noundef %27, double noundef 2.000000e+00) #4
  %29 = load i32, ptr %4, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %30
  %32 = getelementptr inbounds [7 x double], ptr %31, i64 0, i64 1
  %33 = load double, ptr %32, align 8, !tbaa !9
  %34 = load i32, ptr @start_point, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %35
  %37 = getelementptr inbounds [7 x double], ptr %36, i64 0, i64 1
  %38 = load double, ptr %37, align 8, !tbaa !9
  %39 = fsub double %33, %38
  %40 = call double @pow(double noundef %39, double noundef 2.000000e+00) #4
  %41 = fadd double %28, %40
  %42 = load i32, ptr %4, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %43
  %45 = getelementptr inbounds [7 x double], ptr %44, i64 0, i64 2
  %46 = load double, ptr %45, align 8, !tbaa !9
  %47 = load i32, ptr @start_point, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %48
  %50 = getelementptr inbounds [7 x double], ptr %49, i64 0, i64 2
  %51 = load double, ptr %50, align 8, !tbaa !9
  %52 = fsub double %46, %51
  %53 = call double @pow(double noundef %52, double noundef 2.000000e+00) #4
  %54 = fadd double %41, %53
  store double %54, ptr %2, align 8, !tbaa !9
  %55 = load double, ptr %2, align 8, !tbaa !9
  %56 = load double, ptr %3, align 8, !tbaa !9
  %57 = fcmp olt double %55, %56
  br i1 %57, label %61, label %58

58:                                               ; preds = %16
  %59 = load i32, ptr %6, align 4, !tbaa !5
  %60 = icmp eq i32 %59, 0
  br i1 %60, label %61, label %64

61:                                               ; preds = %58, %16
  store i32 1, ptr %6, align 4, !tbaa !5
  %62 = load double, ptr %2, align 8, !tbaa !9
  store double %62, ptr %3, align 8, !tbaa !9
  %63 = load i32, ptr %4, align 4, !tbaa !5
  store i32 %63, ptr %1, align 4, !tbaa !5
  br label %64

64:                                               ; preds = %61, %58
  br label %65

65:                                               ; preds = %64, %15
  %66 = load i32, ptr %4, align 4, !tbaa !5
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr %4, align 4, !tbaa !5
  br label %7, !llvm.loop !11

68:                                               ; preds = %7
  %69 = call noalias ptr @malloc(i64 noundef 40) #5
  store ptr %69, ptr @root, align 8, !tbaa !13
  %70 = load i32, ptr @start_point, align 4, !tbaa !5
  %71 = load ptr, ptr @root, align 8, !tbaa !13
  %72 = getelementptr inbounds %struct.base_line, ptr %71, i32 0, i32 0
  store i32 %70, ptr %72, align 8, !tbaa !15
  %73 = load i32, ptr %1, align 4, !tbaa !5
  %74 = load ptr, ptr @root, align 8, !tbaa !13
  %75 = getelementptr inbounds %struct.base_line, ptr %74, i32 0, i32 1
  store i32 %73, ptr %75, align 4, !tbaa !17
  %76 = load i32, ptr %1, align 4, !tbaa !5
  %77 = load ptr, ptr @root, align 8, !tbaa !13
  %78 = getelementptr inbounds %struct.base_line, ptr %77, i32 0, i32 3
  store i32 %76, ptr %78, align 4, !tbaa !18
  %79 = load ptr, ptr @root, align 8, !tbaa !13
  %80 = getelementptr inbounds %struct.base_line, ptr %79, i32 0, i32 2
  store i32 0, ptr %80, align 8, !tbaa !19
  %81 = load ptr, ptr @root, align 8, !tbaa !13
  %82 = getelementptr inbounds %struct.base_line, ptr %81, i32 0, i32 6
  store ptr null, ptr %82, align 8, !tbaa !20
  %83 = load ptr, ptr @root, align 8, !tbaa !13
  %84 = getelementptr inbounds %struct.base_line, ptr %83, i32 0, i32 7
  store ptr null, ptr %84, align 8, !tbaa !21
  %85 = load ptr, ptr @root, align 8, !tbaa !13
  %86 = getelementptr inbounds %struct.base_line, ptr %85, i32 0, i32 4
  store i32 1, ptr %86, align 8, !tbaa !22
  %87 = load ptr, ptr @root, align 8, !tbaa !13
  %88 = getelementptr inbounds %struct.base_line, ptr %87, i32 0, i32 5
  store i32 1, ptr %88, align 4, !tbaa !23
  %89 = load ptr, ptr @end, align 8, !tbaa !13
  %90 = load ptr, ptr @start, align 8, !tbaa !13
  %91 = icmp eq ptr %89, %90
  br i1 %91, label %92, label %105

92:                                               ; preds = %68
  %93 = load ptr, ptr @end, align 8, !tbaa !13
  %94 = getelementptr inbounds %struct.edge_list, ptr %93, i32 0, i32 4
  store ptr null, ptr %94, align 8, !tbaa !24
  %95 = load i32, ptr @start_point, align 4, !tbaa !5
  %96 = load ptr, ptr @end, align 8, !tbaa !13
  %97 = getelementptr inbounds %struct.edge_list, ptr %96, i32 0, i32 0
  store i32 %95, ptr %97, align 8, !tbaa !26
  %98 = load i32, ptr %1, align 4, !tbaa !5
  %99 = load ptr, ptr @end, align 8, !tbaa !13
  %100 = getelementptr inbounds %struct.edge_list, ptr %99, i32 0, i32 1
  store i32 %98, ptr %100, align 4, !tbaa !27
  %101 = load ptr, ptr @end, align 8, !tbaa !13
  %102 = getelementptr inbounds %struct.edge_list, ptr %101, i32 0, i32 2
  store ptr %5, ptr %102, align 8, !tbaa !28
  %103 = load ptr, ptr @end, align 8, !tbaa !13
  %104 = getelementptr inbounds %struct.edge_list, ptr %103, i32 0, i32 3
  store i32 2, ptr %104, align 8, !tbaa !29
  br label %124

105:                                              ; preds = %68
  %106 = call noalias ptr @malloc(i64 noundef 32) #5
  %107 = load ptr, ptr @end, align 8, !tbaa !13
  %108 = getelementptr inbounds %struct.edge_list, ptr %107, i32 0, i32 4
  store ptr %106, ptr %108, align 8, !tbaa !24
  %109 = load ptr, ptr @end, align 8, !tbaa !13
  %110 = getelementptr inbounds %struct.edge_list, ptr %109, i32 0, i32 4
  %111 = load ptr, ptr %110, align 8, !tbaa !24
  store ptr %111, ptr @end, align 8, !tbaa !13
  %112 = load ptr, ptr @end, align 8, !tbaa !13
  %113 = getelementptr inbounds %struct.edge_list, ptr %112, i32 0, i32 4
  store ptr null, ptr %113, align 8, !tbaa !24
  %114 = load i32, ptr @start_point, align 4, !tbaa !5
  %115 = load ptr, ptr @end, align 8, !tbaa !13
  %116 = getelementptr inbounds %struct.edge_list, ptr %115, i32 0, i32 0
  store i32 %114, ptr %116, align 8, !tbaa !26
  %117 = load i32, ptr %1, align 4, !tbaa !5
  %118 = load ptr, ptr @end, align 8, !tbaa !13
  %119 = getelementptr inbounds %struct.edge_list, ptr %118, i32 0, i32 1
  store i32 %117, ptr %119, align 4, !tbaa !27
  %120 = load ptr, ptr @end, align 8, !tbaa !13
  %121 = getelementptr inbounds %struct.edge_list, ptr %120, i32 0, i32 2
  store ptr %5, ptr %121, align 8, !tbaa !28
  %122 = load ptr, ptr @end, align 8, !tbaa !13
  %123 = getelementptr inbounds %struct.edge_list, ptr %122, i32 0, i32 3
  store i32 2, ptr %123, align 8, !tbaa !29
  br label %124

124:                                              ; preds = %105, %92
  %125 = load ptr, ptr @root, align 8, !tbaa !13
  %126 = call i32 @calc_tri(ptr noundef %125)
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #4
  ret void
}

; Function Attrs: nounwind
declare double @pow(double noundef, double noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local i32 @calc_tri(ptr noundef) #2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"any pointer", !7, i64 0}
!15 = !{!16, !6, i64 0}
!16 = !{!"base_line", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !14, i64 24, !14, i64 32}
!17 = !{!16, !6, i64 4}
!18 = !{!16, !6, i64 12}
!19 = !{!16, !6, i64 8}
!20 = !{!16, !14, i64 24}
!21 = !{!16, !14, i64 32}
!22 = !{!16, !6, i64 16}
!23 = !{!16, !6, i64 20}
!24 = !{!25, !14, i64 24}
!25 = !{!"edge_list", !6, i64 0, !6, i64 4, !14, i64 8, !6, i64 16, !14, i64 24}
!26 = !{!25, !6, i64 0}
!27 = !{!25, !6, i64 4}
!28 = !{!25, !14, i64 8}
!29 = !{!25, !6, i64 16}


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

@max_dots = external dso_local local_unnamed_addr global i32, align 4
@start_point = external dso_local local_unnamed_addr global i32, align 4
@dots = external dso_local local_unnamed_addr global [30000 x [7 x double]], align 16
@start = external dso_local local_unnamed_addr global ptr, align 8
@end = external dso_local local_unnamed_addr global ptr, align 8
@root = external dso_local local_unnamed_addr global ptr, align 8

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
define dso_local void @polygonize() local_unnamed_addr #2 {
  %1 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #4
  %2 = load i32, ptr @max_dots, align 4, !tbaa !5
  %3 = icmp sgt i32 %2, 0
  %.pre = load i32, ptr @start_point, align 4, !tbaa !5
  br i1 %3, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %0
  %4 = sext i32 %.pre to i64
  %5 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %4
  %6 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %4, i64 1
  %7 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %4, i64 2
  %8 = zext i32 %.pre to i64
  %wide.trip.count = zext nneg i32 %2 to i64
  br label %9

9:                                                ; preds = %.lr.ph, %36
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %36 ]
  %.027 = phi i32 [ 0, %.lr.ph ], [ %.1, %36 ]
  %.01625 = phi double [ undef, %.lr.ph ], [ %.117, %36 ]
  %.01824 = phi i32 [ undef, %.lr.ph ], [ %.119, %36 ]
  %10 = icmp eq i64 %indvars.iv, %8
  br i1 %10, label %36, label %11

11:                                               ; preds = %9
  %12 = getelementptr inbounds [30000 x [7 x double]], ptr @dots, i64 0, i64 %indvars.iv
  %13 = load double, ptr %12, align 8, !tbaa !9
  %14 = load double, ptr %5, align 8, !tbaa !9
  %15 = getelementptr inbounds i8, ptr %12, i64 8
  %16 = load double, ptr %15, align 8, !tbaa !9
  %17 = load double, ptr %6, align 8, !tbaa !9
  %18 = fsub double %16, %17
  %square22 = fmul double %18, %18
  %19 = getelementptr inbounds i8, ptr %12, i64 16
  %20 = load double, ptr %19, align 8, !tbaa !9
  %21 = load double, ptr %7, align 8, !tbaa !9
  %22 = insertelement <2 x double> poison, double %13, i64 0
  %23 = insertelement <2 x double> %22, double %20, i64 1
  %24 = insertelement <2 x double> poison, double %14, i64 0
  %25 = insertelement <2 x double> %24, double %21, i64 1
  %26 = fsub <2 x double> %23, %25
  %27 = fmul <2 x double> %26, %26
  %28 = extractelement <2 x double> %27, i64 0
  %29 = fadd double %28, %square22
  %30 = extractelement <2 x double> %27, i64 1
  %31 = fadd double %29, %30
  %32 = fcmp olt double %31, %.01625
  %33 = icmp eq i32 %.027, 0
  %or.cond = select i1 %32, i1 true, i1 %33
  br i1 %or.cond, label %34, label %36

34:                                               ; preds = %11
  %35 = trunc nuw nsw i64 %indvars.iv to i32
  br label %36

36:                                               ; preds = %34, %11, %9
  %.119 = phi i32 [ %.01824, %9 ], [ %35, %34 ], [ %.01824, %11 ]
  %.117 = phi double [ %.01625, %9 ], [ %31, %34 ], [ %.01625, %11 ]
  %.1 = phi i32 [ %.027, %9 ], [ 1, %34 ], [ %.027, %11 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %9, !llvm.loop !11

._crit_edge:                                      ; preds = %36, %0
  %.018.lcssa = phi i32 [ undef, %0 ], [ %.119, %36 ]
  %37 = tail call noalias dereferenceable_or_null(40) ptr @malloc(i64 noundef 40) #5
  store ptr %37, ptr @root, align 8, !tbaa !13
  store i32 %.pre, ptr %37, align 8, !tbaa !15
  %38 = getelementptr inbounds i8, ptr %37, i64 4
  store i32 %.018.lcssa, ptr %38, align 4, !tbaa !17
  %39 = getelementptr inbounds i8, ptr %37, i64 12
  store i32 %.018.lcssa, ptr %39, align 4, !tbaa !18
  %40 = getelementptr inbounds i8, ptr %37, i64 8
  store i32 0, ptr %40, align 8, !tbaa !19
  %41 = getelementptr inbounds i8, ptr %37, i64 24
  %42 = getelementptr inbounds i8, ptr %37, i64 16
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %41, i8 0, i64 16, i1 false)
  store i32 1, ptr %42, align 8, !tbaa !20
  %43 = getelementptr inbounds i8, ptr %37, i64 20
  store i32 1, ptr %43, align 4, !tbaa !21
  %44 = load ptr, ptr @end, align 8, !tbaa !13
  %45 = load ptr, ptr @start, align 8, !tbaa !13
  %46 = icmp eq ptr %44, %45
  br i1 %46, label %50, label %47

47:                                               ; preds = %._crit_edge
  %48 = tail call noalias dereferenceable_or_null(32) ptr @malloc(i64 noundef 32) #5
  %49 = getelementptr inbounds i8, ptr %44, i64 24
  store ptr %48, ptr %49, align 8, !tbaa !22
  store ptr %48, ptr @end, align 8, !tbaa !13
  br label %50

50:                                               ; preds = %._crit_edge, %47
  %.sink33 = phi ptr [ %48, %47 ], [ %44, %._crit_edge ]
  %51 = getelementptr inbounds i8, ptr %.sink33, i64 24
  store ptr null, ptr %51, align 8, !tbaa !22
  store i32 %.pre, ptr %.sink33, align 8, !tbaa !24
  %52 = getelementptr inbounds i8, ptr %.sink33, i64 4
  store i32 %.018.lcssa, ptr %52, align 4, !tbaa !25
  %53 = getelementptr inbounds i8, ptr %.sink33, i64 8
  store ptr %1, ptr %53, align 8, !tbaa !26
  %54 = getelementptr inbounds i8, ptr %.sink33, i64 16
  store i32 2, ptr %54, align 8, !tbaa !27
  %55 = call i32 @calc_tri(ptr noundef nonnull %37)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #4
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local i32 @calc_tri(ptr noundef) 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { nounwind }
attributes #5 = { nounwind allocsize(0) }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"any pointer", !7, i64 0}
!15 = !{!16, !6, i64 0}
!16 = !{!"base_line", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !14, i64 24, !14, i64 32}
!17 = !{!16, !6, i64 4}
!18 = !{!16, !6, i64 12}
!19 = !{!16, !6, i64 8}
!20 = !{!16, !6, i64 16}
!21 = !{!16, !6, i64 20}
!22 = !{!23, !14, i64 24}
!23 = !{!"edge_list", !6, i64 0, !6, i64 4, !14, i64 8, !6, i64 16, !14, i64 24}
!24 = !{!23, !6, i64 0}
!25 = !{!23, !6, i64 4}
!26 = !{!23, !14, i64 8}
!27 = !{!23, !6, i64 16}


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