; LLVM IR from DevonCrawford/A-Pathfinding-in-C-command-line :: backups (pathfinding_copy3)

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

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@size = external dso_local global %struct.GridSize, align 4
@.str.1 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [29 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %struct.GridSize, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca %struct.Node, align 8
  %23 = alloca %struct.Node, align 8
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %24 = load ptr, ptr %5, align 8, !tbaa !9
  %25 = getelementptr inbounds ptr, ptr %24, i64 1
  %26 = load ptr, ptr %25, align 8, !tbaa !9
  %27 = call noalias ptr @fopen(ptr noundef %26, ptr noundef @.str)
  store ptr %27, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !5
  %28 = load ptr, ptr %6, align 8, !tbaa !9
  %29 = icmp ne ptr %28, null
  br i1 %29, label %30, label %88

30:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %31 = load ptr, ptr %6, align 8, !tbaa !9
  %32 = call i64 @getGridSize(ptr noundef %31)
  store i64 %32, ptr %8, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 @size, ptr align 4 %8, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  %33 = load i32, ptr getelementptr inbounds (%struct.GridSize, ptr @size, i32 0, i32 1), align 4, !tbaa !12
  %34 = zext i32 %33 to i64
  %35 = load i32, ptr @size, align 4, !tbaa !14
  %36 = zext i32 %35 to i64
  %37 = call ptr @llvm.stacksave.p0()
  store ptr %37, ptr %9, align 8
  %38 = mul nuw i64 %34, %36
  %39 = alloca i8, i64 %38, align 16
  store i64 %34, ptr %10, align 8
  store i64 %36, ptr %11, align 8
  call void @clearGrid(ptr noundef %39)
  %40 = load ptr, ptr %6, align 8, !tbaa !9
  %41 = call i32 @readFile(ptr noundef %40, ptr noundef %39)
  store i32 %41, ptr %7, align 4, !tbaa !5
  %42 = load i32, ptr %7, align 4, !tbaa !5
  %43 = icmp eq i32 %42, 0
  br i1 %43, label %44, label %86

44:                                               ; preds = %30
  call void @printGrid(ptr noundef %39)
  %45 = load i32, ptr getelementptr inbounds (%struct.GridSize, ptr @size, i32 0, i32 1), align 4, !tbaa !12
  %46 = zext i32 %45 to i64
  %47 = load i32, ptr @size, align 4, !tbaa !14
  %48 = zext i32 %47 to i64
  %49 = call ptr @llvm.stacksave.p0()
  store ptr %49, ptr %12, align 8
  %50 = mul nuw i64 %46, %48
  %51 = alloca %struct.Node, i64 %50, align 16
  store i64 %46, ptr %13, align 8
  store i64 %48, ptr %14, align 8
  %52 = load i32, ptr getelementptr inbounds (%struct.GridSize, ptr @size, i32 0, i32 1), align 4, !tbaa !12
  %53 = zext i32 %52 to i64
  %54 = load i32, ptr @size, align 4, !tbaa !14
  %55 = zext i32 %54 to i64
  %56 = mul nuw i64 %53, %55
  %57 = alloca %struct.Node, i64 %56, align 16
  store i64 %53, ptr %15, align 8
  store i64 %55, ptr %16, align 8
  %58 = load i32, ptr getelementptr inbounds (%struct.GridSize, ptr @size, i32 0, i32 1), align 4, !tbaa !12
  %59 = zext i32 %58 to i64
  %60 = load i32, ptr @size, align 4, !tbaa !14
  %61 = zext i32 %60 to i64
  %62 = mul nuw i64 %59, %61
  %63 = alloca %struct.Node, i64 %62, align 16
  store i64 %59, ptr %17, align 8
  store i64 %61, ptr %18, align 8
  call void @initNodes(ptr noundef %51)
  call void @initNodes(ptr noundef %57)
  call void @initNodes(ptr noundef %63)
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  store i32 0, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  store i32 0, ptr %20, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  store i32 0, ptr %21, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr %22) #5
  call void @getNodeChar(ptr dead_on_unwind writable sret(%struct.Node) align 8 %22, ptr noundef %39, i8 noundef signext 83)
  call void @llvm.lifetime.start.p0(i64 40, ptr %23) #5
  call void @getNodeChar(ptr dead_on_unwind writable sret(%struct.Node) align 8 %23, ptr noundef %39, i8 noundef signext 71)
  %64 = getelementptr inbounds %struct.Node, ptr %22, i32 0, i32 1
  %65 = load i32, ptr %64, align 8, !tbaa !15
  %66 = icmp eq i32 %65, 0
  br i1 %66, label %67, label %69

67:                                               ; preds = %44
  %68 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  br label %69

69:                                               ; preds = %67, %44
  %70 = getelementptr inbounds %struct.Node, ptr %23, i32 0, i32 1
  %71 = load i32, ptr %70, align 8, !tbaa !15
  %72 = icmp eq i32 %71, 0
  br i1 %72, label %73, label %75

73:                                               ; preds = %69
  %74 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %75

75:                                               ; preds = %73, %69
  %76 = getelementptr inbounds %struct.Node, ptr %22, i32 0, i32 1
  %77 = load i32, ptr %76, align 8, !tbaa !15
  %78 = icmp eq i32 %77, 1
  br i1 %78, label %79, label %84

79:                                               ; preds = %75
  %80 = getelementptr inbounds %struct.Node, ptr %23, i32 0, i32 1
  %81 = load i32, ptr %80, align 8, !tbaa !15
  %82 = icmp eq i32 %81, 1
  br i1 %82, label %83, label %84

83:                                               ; preds = %79
  call void @addListNode(ptr noundef %57, ptr noundef %20, ptr noundef byval(%struct.Node) align 8 %22, ptr noundef @.str.3)
  call void @findPath(ptr noundef %39, ptr noundef %51, ptr noundef %57, ptr noundef %63, ptr noundef byval(%struct.Node) align 8 %22, ptr noundef byval(%struct.Node) align 8 %23, ptr noundef byval(%struct.Node) align 8 %22, ptr noundef %19, ptr noundef %20, ptr noundef %21)
  call void @printNodes(ptr noundef %57)
  br label %84

84:                                               ; preds = %83, %79, %75
  call void @llvm.lifetime.end.p0(i64 40, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  %85 = load ptr, ptr %12, align 8
  call void @llvm.stackrestore.p0(ptr %85)
  br label %86

86:                                               ; preds = %84, %30
  %87 = load ptr, ptr %9, align 8
  call void @llvm.stackrestore.p0(ptr %87)
  br label %93

88:                                               ; preds = %2
  %89 = load ptr, ptr %5, align 8, !tbaa !9
  %90 = getelementptr inbounds ptr, ptr %89, i64 1
  %91 = load ptr, ptr %90, align 8, !tbaa !9
  %92 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %91)
  br label %93

93:                                               ; preds = %88, %86
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #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

declare noalias ptr @fopen(ptr noundef, ptr noundef) #2

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

; 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) #3

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #4

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @getNodeChar(ptr dead_on_unwind noalias writable sret(%struct.Node) align 8, ptr noundef, i8 noundef signext) #0

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

; Function Attrs: nounwind uwtable
declare dso_local void @addListNode(ptr noundef, ptr noundef, ptr noundef byval(%struct.Node) align 8, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @findPath(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef byval(%struct.Node) align 8, ptr noundef byval(%struct.Node) align 8, ptr noundef byval(%struct.Node) align 8, ptr noundef, ptr noundef, ptr noundef) #0

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #4

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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nocallback nofree nosync nounwind willreturn }
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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{i64 0, i64 4, !5, i64 4, i64 4, !5}
!12 = !{!13, !6, i64 4}
!13 = !{!"GridSize", !6, i64 0, !6, i64 4}
!14 = !{!13, !6, i64 0}
!15 = !{!16, !6, i64 8}
!16 = !{!"Node", !10, i64 0, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !6, i64 32}


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

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@size = external dso_local local_unnamed_addr global %struct.GridSize, align 4
@.str.1 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [29 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %struct.Node, align 8
  %7 = alloca %struct.Node, align 8
  %8 = getelementptr inbounds i8, ptr %1, i64 8
  %9 = load ptr, ptr %8, align 8, !tbaa !5
  %10 = tail call noalias ptr @fopen(ptr noundef %9, ptr noundef nonnull @.str)
  %.not = icmp eq ptr %10, null
  br i1 %.not, label %54, label %11

11:                                               ; preds = %2
  %12 = tail call i64 @getGridSize(ptr noundef nonnull %10)
  store i64 %12, ptr @size, align 4
  %13 = lshr i64 %12, 32
  %14 = and i64 %12, 4294967295
  %15 = tail call ptr @llvm.stacksave.p0()
  %16 = mul nuw i64 %14, %13
  %17 = alloca i8, i64 %16, align 16
  call void @clearGrid(ptr noundef nonnull %17)
  %18 = call i32 @readFile(ptr noundef nonnull %10, ptr noundef nonnull %17)
  %19 = icmp eq i32 %18, 0
  br i1 %19, label %20, label %53

20:                                               ; preds = %11
  call void @printGrid(ptr noundef nonnull %17)
  %21 = load i32, ptr getelementptr inbounds (i8, ptr @size, i64 4), align 4, !tbaa !9
  %22 = zext i32 %21 to i64
  %23 = load i32, ptr @size, align 4, !tbaa !12
  %24 = zext i32 %23 to i64
  %25 = call ptr @llvm.stacksave.p0()
  %26 = mul nuw i64 %24, %22
  %27 = alloca %struct.Node, i64 %26, align 16
  %28 = load i32, ptr getelementptr inbounds (i8, ptr @size, i64 4), align 4, !tbaa !9
  %29 = zext i32 %28 to i64
  %30 = load i32, ptr @size, align 4, !tbaa !12
  %31 = zext i32 %30 to i64
  %32 = mul nuw i64 %31, %29
  %33 = alloca %struct.Node, i64 %32, align 16
  %34 = alloca %struct.Node, i64 %32, align 16
  call void @initNodes(ptr noundef nonnull %27)
  call void @initNodes(ptr noundef nonnull %33)
  call void @initNodes(ptr noundef nonnull %34)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #4
  store i32 0, ptr %3, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #4
  store i32 0, ptr %4, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #4
  store i32 0, ptr %5, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %6) #4
  call void @getNodeChar(ptr dead_on_unwind nonnull writable sret(%struct.Node) align 8 %6, ptr noundef nonnull %17, i8 noundef signext 83)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %7) #4
  call void @getNodeChar(ptr dead_on_unwind nonnull writable sret(%struct.Node) align 8 %7, ptr noundef nonnull %17, i8 noundef signext 71)
  %35 = getelementptr inbounds i8, ptr %6, i64 8
  %36 = load i32, ptr %35, align 8, !tbaa !14
  %37 = icmp eq i32 %36, 0
  br i1 %37, label %38, label %40

38:                                               ; preds = %20
  %39 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  br label %40

40:                                               ; preds = %38, %20
  %41 = getelementptr inbounds i8, ptr %7, i64 8
  %42 = load i32, ptr %41, align 8
  %43 = icmp eq i32 %42, 0
  br i1 %43, label %44, label %46

44:                                               ; preds = %40
  %45 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  %.pre = load i32, ptr %41, align 8
  br label %46

46:                                               ; preds = %44, %40
  %47 = phi i32 [ %.pre, %44 ], [ %42, %40 ]
  %48 = load i32, ptr %35, align 8, !tbaa !14
  %49 = icmp eq i32 %48, 1
  %50 = icmp eq i32 %47, 1
  %or.cond = select i1 %49, i1 %50, i1 false
  br i1 %or.cond, label %51, label %52

51:                                               ; preds = %46
  call void @addListNode(ptr noundef nonnull %33, ptr noundef nonnull %4, ptr noundef nonnull byval(%struct.Node) align 8 %6, ptr noundef nonnull @.str.3)
  call void @findPath(ptr noundef nonnull %17, ptr noundef nonnull %27, ptr noundef nonnull %33, ptr noundef nonnull %34, ptr noundef nonnull byval(%struct.Node) align 8 %6, ptr noundef nonnull byval(%struct.Node) align 8 %7, ptr noundef nonnull byval(%struct.Node) align 8 %6, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %5)
  call void @printNodes(ptr noundef nonnull %33)
  br label %52

52:                                               ; preds = %51, %46
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #4
  call void @llvm.stackrestore.p0(ptr %25)
  br label %53

53:                                               ; preds = %52, %11
  call void @llvm.stackrestore.p0(ptr %15)
  br label %57

54:                                               ; preds = %2
  %55 = load ptr, ptr %8, align 8, !tbaa !5
  %56 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, ptr noundef %55)
  br label %57

57:                                               ; preds = %54, %53
  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: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #2

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

; 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 nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #3

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @getNodeChar(ptr dead_on_unwind noalias writable sret(%struct.Node) align 8, ptr noundef, i8 noundef signext) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
declare dso_local void @addListNode(ptr noundef, ptr noundef, ptr noundef byval(%struct.Node) align 8, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @findPath(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef byval(%struct.Node) align 8, ptr noundef byval(%struct.Node) align 8, ptr noundef byval(%struct.Node) align 8, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #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 = { mustprogress nocallback nofree nosync nounwind willreturn }
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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 4}
!10 = !{!"GridSize", !11, i64 0, !11, i64 4}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !11, i64 0}
!13 = !{!11, !11, i64 0}
!14 = !{!15, !11, i64 8}
!15 = !{!"Node", !6, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass