; LLVM IR from erincatto/box2d :: test (test_world)

; 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.b2WorldId = type { i16, i16 }
%struct.b2WorldDef = type { %struct.b2Vec2, float, float, float, float, float, float, float, float, ptr, ptr, i8, i8, i32, ptr, ptr, ptr, ptr, i32 }
%struct.b2Vec2 = type { float, float }
%struct.b2BodyDef = type { i32, %struct.b2Vec2, %struct.b2Rot, %struct.b2Vec2, float, float, float, float, float, ptr, ptr, i8, i8, i8, i8, i8, i8, i32 }
%struct.b2Rot = type { float, float }
%struct.b2BodyId = type { i32, i16, i16 }

@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [57 x i8], align 1
@__PRETTY_FUNCTION__.TestWorldRecycle = external hidden unnamed_addr constant [27 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [58 x i8], align 1
@b2_nullWorldId = external hidden constant %struct.b2WorldId, align 2

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

declare void @b2DefaultWorldDef(ptr dead_on_unwind writable sret(%struct.b2WorldDef) align 8) #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

declare i32 @b2CreateWorld(ptr noundef) #1

declare zeroext i1 @b2World_IsValid(i32) #1

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

declare void @b2DefaultBodyDef(ptr dead_on_unwind writable sret(%struct.b2BodyDef) align 8) #1

declare i64 @b2CreateBody(i32, ptr noundef) #1

declare void @b2World_Step(i32, float noundef, i32 noundef) #1

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

declare void @b2DestroyWorld(i32) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @TestWorldRecycle() #4 {
  %1 = alloca i32, align 4
  %2 = alloca [64 x %struct.b2WorldId], align 16
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %struct.b2WorldDef, align 8
  %6 = alloca i32, align 4
  %7 = alloca %struct.b2WorldId, align 2
  %8 = alloca %struct.b2BodyDef, align 8
  %9 = alloca %struct.b2BodyId, align 4
  %10 = alloca i32, align 4
  %11 = alloca float, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #5
  store i32 100, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 256, ptr %2) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %15

15:                                               ; preds = %109, %0
  %16 = load i32, ptr %3, align 4, !tbaa !5
  %17 = load i32, ptr %1, align 4, !tbaa !5
  %18 = icmp slt i32 %16, %17
  br i1 %18, label %20, label %19

19:                                               ; preds = %15
  store i32 2, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  br label %112

20:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 104, ptr %5) #5
  call void @b2DefaultWorldDef(ptr dead_on_unwind writable sret(%struct.b2WorldDef) align 8 %5)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %21

21:                                               ; preds = %50, %20
  %22 = load i32, ptr %6, align 4, !tbaa !5
  %23 = icmp slt i32 %22, 64
  br i1 %23, label %25, label %24

24:                                               ; preds = %21
  store i32 5, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %53

25:                                               ; preds = %21
  %26 = load i32, ptr %6, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds [64 x %struct.b2WorldId], ptr %2, i64 0, i64 %27
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %29 = call i32 @b2CreateWorld(ptr noundef %5)
  store i32 %29, ptr %7, align 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %28, ptr align 2 %7, i64 4, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %30

30:                                               ; preds = %25
  %31 = load i32, ptr %6, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [64 x %struct.b2WorldId], ptr %2, i64 0, i64 %32
  %34 = load i32, ptr %33, align 4
  %35 = call zeroext i1 @b2World_IsValid(i32 %34)
  %36 = zext i1 %35 to i32
  %37 = icmp eq i32 %36, 1
  %38 = zext i1 %37 to i32
  %39 = icmp eq i32 %38, 0
  br i1 %39, label %40, label %42

40:                                               ; preds = %30
  %41 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
  call void @__assert_fail(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 219, ptr noundef @__PRETTY_FUNCTION__.TestWorldRecycle) #6
  unreachable

42:                                               ; preds = %30
  br label %43

43:                                               ; preds = %42
  br label %44

44:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 80, ptr %8) #5
  call void @b2DefaultBodyDef(ptr dead_on_unwind writable sret(%struct.b2BodyDef) align 8 %8)
  %45 = load i32, ptr %6, align 4, !tbaa !5
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [64 x %struct.b2WorldId], ptr %2, i64 0, i64 %46
  %48 = load i32, ptr %47, align 4
  %49 = call i64 @b2CreateBody(i32 %48, ptr noundef %8)
  store i64 %49, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 80, ptr %8) #5
  br label %50

50:                                               ; preds = %44
  %51 = load i32, ptr %6, align 4, !tbaa !5
  %52 = add nsw i32 %51, 1
  store i32 %52, ptr %6, align 4, !tbaa !5
  br label %21, !llvm.loop !12

53:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %54

54:                                               ; preds = %74, %53
  %55 = load i32, ptr %10, align 4, !tbaa !5
  %56 = icmp slt i32 %55, 64
  br i1 %56, label %58, label %57

57:                                               ; preds = %54
  store i32 10, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %77

58:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store float 0x3F91111120000000, ptr %11, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 1, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %59

59:                                               ; preds = %70, %58
  %60 = load i32, ptr %13, align 4, !tbaa !5
  %61 = icmp slt i32 %60, 10
  br i1 %61, label %63, label %62

62:                                               ; preds = %59
  store i32 13, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %73

63:                                               ; preds = %59
  %64 = load i32, ptr %10, align 4, !tbaa !5
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [64 x %struct.b2WorldId], ptr %2, i64 0, i64 %65
  %67 = load float, ptr %11, align 4, !tbaa !14
  %68 = load i32, ptr %12, align 4, !tbaa !5
  %69 = load i32, ptr %66, align 4
  call void @b2World_Step(i32 %69, float noundef %67, i32 noundef %68)
  br label %70

70:                                               ; preds = %63
  %71 = load i32, ptr %13, align 4, !tbaa !5
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr %13, align 4, !tbaa !5
  br label %59, !llvm.loop !16

73:                                               ; preds = %62
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %74

74:                                               ; preds = %73
  %75 = load i32, ptr %10, align 4, !tbaa !5
  %76 = add nsw i32 %75, 1
  store i32 %76, ptr %10, align 4, !tbaa !5
  br label %54, !llvm.loop !17

77:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 63, ptr %14, align 4, !tbaa !5
  br label %78

78:                                               ; preds = %105, %77
  %79 = load i32, ptr %14, align 4, !tbaa !5
  %80 = icmp sge i32 %79, 0
  br i1 %80, label %82, label %81

81:                                               ; preds = %78
  store i32 16, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %108

82:                                               ; preds = %78
  %83 = load i32, ptr %14, align 4, !tbaa !5
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [64 x %struct.b2WorldId], ptr %2, i64 0, i64 %84
  %86 = load i32, ptr %85, align 4
  call void @b2DestroyWorld(i32 %86)
  br label %87

87:                                               ; preds = %82
  %88 = load i32, ptr %14, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [64 x %struct.b2WorldId], ptr %2, i64 0, i64 %89
  %91 = load i32, ptr %90, align 4
  %92 = call zeroext i1 @b2World_IsValid(i32 %91)
  %93 = zext i1 %92 to i32
  %94 = icmp eq i32 %93, 0
  %95 = zext i1 %94 to i32
  %96 = icmp eq i32 %95, 0
  br i1 %96, label %97, label %99

97:                                               ; preds = %87
  %98 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
  call void @__assert_fail(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 239, ptr noundef @__PRETTY_FUNCTION__.TestWorldRecycle) #6
  unreachable

99:                                               ; preds = %87
  br label %100

100:                                              ; preds = %99
  br label %101

101:                                              ; preds = %100
  %102 = load i32, ptr %14, align 4, !tbaa !5
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [64 x %struct.b2WorldId], ptr %2, i64 0, i64 %103
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %104, ptr align 2 @b2_nullWorldId, i64 4, i1 false), !tbaa.struct !9
  br label %105

105:                                              ; preds = %101
  %106 = load i32, ptr %14, align 4, !tbaa !5
  %107 = add nsw i32 %106, -1
  store i32 %107, ptr %14, align 4, !tbaa !5
  br label %78, !llvm.loop !18

108:                                              ; preds = %81
  call void @llvm.lifetime.end.p0(i64 104, ptr %5) #5
  br label %109

109:                                              ; preds = %108
  %110 = load i32, ptr %3, align 4, !tbaa !5
  %111 = add nsw i32 %110, 1
  store i32 %111, ptr %3, align 4, !tbaa !5
  br label %15, !llvm.loop !19

112:                                              ; preds = %19
  store i32 1, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 256, ptr %2) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #5
  ret i32 0
}

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

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

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


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

%struct.b2WorldId = type { i16, i16 }
%struct.b2WorldDef = type { %struct.b2Vec2, float, float, float, float, float, float, float, float, ptr, ptr, i8, i8, i32, ptr, ptr, ptr, ptr, i32 }
%struct.b2Vec2 = type { float, float }
%struct.b2BodyDef = type { i32, %struct.b2Vec2, %struct.b2Rot, %struct.b2Vec2, float, float, float, float, float, ptr, ptr, i8, i8, i8, i8, i8, i8, i32 }
%struct.b2Rot = type { float, float }

@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [57 x i8], align 1
@__PRETTY_FUNCTION__.TestWorldRecycle = external hidden unnamed_addr constant [27 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [58 x i8], align 1
@b2_nullWorldId = external hidden local_unnamed_addr constant %struct.b2WorldId, align 2

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

declare void @b2DefaultWorldDef(ptr dead_on_unwind writable sret(%struct.b2WorldDef) align 8) local_unnamed_addr #1

declare i32 @b2CreateWorld(ptr noundef) local_unnamed_addr #1

declare zeroext i1 @b2World_IsValid(i32) local_unnamed_addr #1

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

declare void @b2DefaultBodyDef(ptr dead_on_unwind writable sret(%struct.b2BodyDef) align 8) local_unnamed_addr #1

declare i64 @b2CreateBody(i32, ptr noundef) local_unnamed_addr #1

declare void @b2World_Step(i32, float noundef, i32 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

declare void @b2DestroyWorld(i32) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @TestWorldRecycle() local_unnamed_addr #4 {
  %1 = alloca [64 x %struct.b2WorldId], align 16
  %2 = alloca %struct.b2WorldDef, align 8
  %3 = alloca %struct.b2BodyDef, align 8
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %1) #5
  %4 = load i32, ptr @b2_nullWorldId, align 2
  br label %6

5:                                                ; preds = %17
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %1) #5
  ret i32 0

6:                                                ; preds = %0, %17
  %.02130 = phi i32 [ 0, %0 ], [ %18, %17 ]
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %2) #5
  call void @b2DefaultWorldDef(ptr dead_on_unwind nonnull writable sret(%struct.b2WorldDef) align 8 %2) #5
  br label %7

7:                                                ; preds = %6, %13
  %indvars.iv = phi i64 [ 0, %6 ], [ %indvars.iv.next, %13 ]
  %8 = getelementptr inbounds [64 x %struct.b2WorldId], ptr %1, i64 0, i64 %indvars.iv
  %9 = call i32 @b2CreateWorld(ptr noundef nonnull %2) #5
  store i32 %9, ptr %8, align 4
  %10 = call zeroext i1 @b2World_IsValid(i32 %9) #5
  br i1 %10, label %13, label %11

11:                                               ; preds = %7
  %12 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10)
  call void @__assert_fail(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 219, ptr noundef nonnull @__PRETTY_FUNCTION__.TestWorldRecycle) #6
  unreachable

13:                                               ; preds = %7
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %3) #5
  call void @b2DefaultBodyDef(ptr dead_on_unwind nonnull writable sret(%struct.b2BodyDef) align 8 %3) #5
  %14 = call i64 @b2CreateBody(i32 %9, ptr noundef nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %3) #5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 64
  br i1 %exitcond.not, label %.preheader, label %7, !llvm.loop !5

.preheader:                                       ; preds = %13, %.preheader
  %indvars.iv33 = phi i64 [ %indvars.iv.next34, %.preheader ], [ 0, %13 ]
  %15 = getelementptr inbounds [64 x %struct.b2WorldId], ptr %1, i64 0, i64 %indvars.iv33
  %16 = load i32, ptr %15, align 4
  call void @b2World_Step(i32 %16, float noundef 0x3F91111120000000, i32 noundef 1) #5
  call void @b2World_Step(i32 %16, float noundef 0x3F91111120000000, i32 noundef 1) #5
  call void @b2World_Step(i32 %16, float noundef 0x3F91111120000000, i32 noundef 1) #5
  call void @b2World_Step(i32 %16, float noundef 0x3F91111120000000, i32 noundef 1) #5
  call void @b2World_Step(i32 %16, float noundef 0x3F91111120000000, i32 noundef 1) #5
  call void @b2World_Step(i32 %16, float noundef 0x3F91111120000000, i32 noundef 1) #5
  call void @b2World_Step(i32 %16, float noundef 0x3F91111120000000, i32 noundef 1) #5
  call void @b2World_Step(i32 %16, float noundef 0x3F91111120000000, i32 noundef 1) #5
  call void @b2World_Step(i32 %16, float noundef 0x3F91111120000000, i32 noundef 1) #5
  call void @b2World_Step(i32 %16, float noundef 0x3F91111120000000, i32 noundef 1) #5
  %indvars.iv.next34 = add nuw nsw i64 %indvars.iv33, 1
  %exitcond36.not = icmp eq i64 %indvars.iv.next34, 64
  br i1 %exitcond36.not, label %.preheader24, label %.preheader, !llvm.loop !7

17:                                               ; preds = %24
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %2) #5
  %18 = add nuw nsw i32 %.02130, 1
  %exitcond40.not = icmp eq i32 %18, 100
  br i1 %exitcond40.not, label %5, label %6, !llvm.loop !8

.preheader24:                                     ; preds = %.preheader, %24
  %indvars.iv37 = phi i64 [ %indvars.iv.next38, %24 ], [ 63, %.preheader ]
  %19 = getelementptr inbounds [64 x %struct.b2WorldId], ptr %1, i64 0, i64 %indvars.iv37
  %20 = load i32, ptr %19, align 4
  call void @b2DestroyWorld(i32 %20) #5
  %21 = call zeroext i1 @b2World_IsValid(i32 %20) #5
  br i1 %21, label %22, label %24

22:                                               ; preds = %.preheader24
  %23 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11)
  call void @__assert_fail(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 239, ptr noundef nonnull @__PRETTY_FUNCTION__.TestWorldRecycle) #6
  unreachable

24:                                               ; preds = %.preheader24
  store i32 %4, ptr %19, align 4
  %indvars.iv.next38 = add nsw i64 %indvars.iv37, -1
  %.not = icmp eq i64 %indvars.iv37, 0
  br i1 %.not, label %17, label %.preheader24, !llvm.loop !9
}

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}
!8 = distinct !{!8, !6}
!9 = distinct !{!9, !6}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass