; LLVM IR from fcimeson/cbTSP :: cbLKH/SRC (ReadPenalties)

; 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.Node = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, double, double, double, double, double, double, i8, i8, i8 }

@ReadPenalties.PenaltiesRead = external hidden global i32, align 4
@PiFileName = external dso_local global ptr, align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@PiFile = external dso_local global ptr, align 8
@TraceLevel = external dso_local global i32, align 4
@.str.2 = external hidden unnamed_addr constant [27 x i8], align 1
@Dimension = external dso_local global i32, align 4
@.str.3 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [74 x i8], align 1
@__PRETTY_FUNCTION__.ReadPenalties = external hidden unnamed_addr constant [20 x i8], align 1
@NodeSet = external dso_local global ptr, align 8
@FirstNode = external dso_local global ptr, align 8
@.str.6 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @ReadPenalties() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  store ptr null, ptr %5, align 8, !tbaa !5
  %7 = load ptr, ptr @PiFileName, align 8, !tbaa !5
  %8 = icmp eq ptr %7, null
  br i1 %8, label %9, label %10

9:                                                ; preds = %0
  store i32 0, ptr %1, align 4
  store i32 1, ptr %6, align 4
  br label %103

10:                                               ; preds = %0
  %11 = load i32, ptr @ReadPenalties.PenaltiesRead, align 4, !tbaa !9
  %12 = icmp ne i32 %11, 0
  br i1 %12, label %17, label %13

13:                                               ; preds = %10
  %14 = load ptr, ptr @PiFileName, align 8, !tbaa !5
  %15 = call i32 @strcmp(ptr noundef %14, ptr noundef @.str) #6
  %16 = icmp eq i32 %15, 0
  br i1 %16, label %17, label %18

17:                                               ; preds = %13, %10
  store i32 1, ptr @ReadPenalties.PenaltiesRead, align 4, !tbaa !9
  store i32 1, ptr %1, align 4
  store i32 1, ptr %6, align 4
  br label %103

18:                                               ; preds = %13
  %19 = load ptr, ptr @PiFileName, align 8, !tbaa !5
  %20 = call noalias ptr @fopen(ptr noundef %19, ptr noundef @.str.1)
  store ptr %20, ptr @PiFile, align 8, !tbaa !5
  %21 = icmp ne ptr %20, null
  br i1 %21, label %23, label %22

22:                                               ; preds = %18
  store i32 0, ptr %1, align 4
  store i32 1, ptr %6, align 4
  br label %103

23:                                               ; preds = %18
  %24 = load i32, ptr @TraceLevel, align 4, !tbaa !9
  %25 = icmp sge i32 %24, 1
  br i1 %25, label %26, label %28

26:                                               ; preds = %23
  %27 = load ptr, ptr @PiFileName, align 8, !tbaa !5
  call void (ptr, ...) @printff(ptr noundef @.str.2, ptr noundef %27)
  br label %28

28:                                               ; preds = %26, %23
  %29 = load ptr, ptr @PiFile, align 8, !tbaa !5
  %30 = call i32 @fscanint(ptr noundef %29, ptr noundef %2)
  %31 = load i32, ptr %2, align 4, !tbaa !9
  %32 = load i32, ptr @Dimension, align 4, !tbaa !9
  %33 = icmp ne i32 %31, %32
  br i1 %33, label %34, label %36

34:                                               ; preds = %28
  %35 = load ptr, ptr @PiFileName, align 8, !tbaa !5
  call void (ptr, ...) @eprintf(ptr noundef @.str.3, ptr noundef %35)
  br label %36

36:                                               ; preds = %34, %28
  %37 = load ptr, ptr @PiFile, align 8, !tbaa !5
  %38 = call i32 @fscanint(ptr noundef %37, ptr noundef %3)
  %39 = load i32, ptr %3, align 4, !tbaa !9
  %40 = icmp sge i32 %39, 1
  br i1 %40, label %41, label %46

41:                                               ; preds = %36
  %42 = load i32, ptr %3, align 4, !tbaa !9
  %43 = load i32, ptr @Dimension, align 4, !tbaa !9
  %44 = icmp sle i32 %42, %43
  br i1 %44, label %45, label %46

45:                                               ; preds = %41
  br label %47

46:                                               ; preds = %41, %36
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.5, i32 noundef 37, ptr noundef @__PRETTY_FUNCTION__.ReadPenalties) #7
  unreachable

47:                                               ; preds = %45
  %48 = load ptr, ptr @NodeSet, align 8, !tbaa !5
  %49 = load i32, ptr %3, align 4, !tbaa !9
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds %struct.Node, ptr %48, i64 %50
  store ptr %51, ptr %4, align 8, !tbaa !5
  store ptr %51, ptr @FirstNode, align 8, !tbaa !5
  %52 = load ptr, ptr @PiFile, align 8, !tbaa !5
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.Node, ptr %53, i32 0, i32 9
  %55 = call i32 @fscanint(ptr noundef %52, ptr noundef %54)
  store i32 2, ptr %2, align 4, !tbaa !9
  br label %56

56:                                               ; preds = %87, %47
  %57 = load i32, ptr %2, align 4, !tbaa !9
  %58 = load i32, ptr @Dimension, align 4, !tbaa !9
  %59 = icmp sle i32 %57, %58
  br i1 %59, label %60, label %90

60:                                               ; preds = %56
  %61 = load ptr, ptr @PiFile, align 8, !tbaa !5
  %62 = call i32 @fscanint(ptr noundef %61, ptr noundef %3)
  %63 = load i32, ptr %3, align 4, !tbaa !9
  %64 = icmp sge i32 %63, 1
  br i1 %64, label %65, label %70

65:                                               ; preds = %60
  %66 = load i32, ptr %3, align 4, !tbaa !9
  %67 = load i32, ptr @Dimension, align 4, !tbaa !9
  %68 = icmp sle i32 %66, %67
  br i1 %68, label %69, label %70

69:                                               ; preds = %65
  br label %71

70:                                               ; preds = %65, %60
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.5, i32 noundef 42, ptr noundef @__PRETTY_FUNCTION__.ReadPenalties) #7
  unreachable

71:                                               ; preds = %69
  %72 = load ptr, ptr @NodeSet, align 8, !tbaa !5
  %73 = load i32, ptr %3, align 4, !tbaa !9
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds %struct.Node, ptr %72, i64 %74
  store ptr %75, ptr %5, align 8, !tbaa !5
  %76 = load ptr, ptr @PiFile, align 8, !tbaa !5
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.Node, ptr %77, i32 0, i32 9
  %79 = call i32 @fscanint(ptr noundef %76, ptr noundef %78)
  %80 = load ptr, ptr %4, align 8, !tbaa !5
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.Node, ptr %81, i32 0, i32 15
  store ptr %80, ptr %82, align 8, !tbaa !11
  %83 = load ptr, ptr %5, align 8, !tbaa !5
  %84 = load ptr, ptr %4, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.Node, ptr %84, i32 0, i32 16
  store ptr %83, ptr %85, align 8, !tbaa !14
  %86 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %86, ptr %4, align 8, !tbaa !5
  br label %87

87:                                               ; preds = %71
  %88 = load i32, ptr %2, align 4, !tbaa !9
  %89 = add nsw i32 %88, 1
  store i32 %89, ptr %2, align 4, !tbaa !9
  br label %56, !llvm.loop !15

90:                                               ; preds = %56
  %91 = load ptr, ptr %5, align 8, !tbaa !5
  %92 = load ptr, ptr @FirstNode, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.Node, ptr %92, i32 0, i32 15
  store ptr %91, ptr %93, align 8, !tbaa !11
  %94 = load ptr, ptr @FirstNode, align 8, !tbaa !5
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.Node, ptr %95, i32 0, i32 16
  store ptr %94, ptr %96, align 8, !tbaa !14
  %97 = load ptr, ptr @PiFile, align 8, !tbaa !5
  %98 = call i32 @fclose(ptr noundef %97)
  %99 = load i32, ptr @TraceLevel, align 4, !tbaa !9
  %100 = icmp sge i32 %99, 1
  br i1 %100, label %101, label %102

101:                                              ; preds = %90
  call void (ptr, ...) @printff(ptr noundef @.str.6)
  br label %102

102:                                              ; preds = %101, %90
  store i32 1, ptr @ReadPenalties.PenaltiesRead, align 4, !tbaa !9
  store i32 1, ptr %1, align 4
  store i32 1, ptr %6, align 4
  br label %103

103:                                              ; preds = %102, %22, %17, %9
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  %104 = load i32, ptr %1, align 4
  ret i32 %104
}

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

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #2

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

declare void @printff(ptr noundef, ...) #3

declare i32 @fscanint(ptr noundef, ptr noundef) #3

declare void @eprintf(ptr noundef, ...) #3

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

declare i32 @fclose(ptr noundef) #3

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

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 = { nounwind willreturn memory(read) "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 = { "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 = { 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 #5 = { nounwind }
attributes #6 = { nounwind willreturn memory(read) }
attributes #7 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 64}
!12 = !{!"Node", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !6, i64 280, !6, i64 288, !6, i64 296, !6, i64 304, !13, i64 312, !13, i64 320, !13, i64 328, !13, i64 336, !13, i64 344, !13, i64 352, !7, i64 360, !7, i64 361, !7, i64 362}
!13 = !{!"double", !7, i64 0}
!14 = !{!12, !6, i64 72}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}


; 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.Node = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, double, double, double, double, double, double, i8, i8, i8 }

@ReadPenalties.PenaltiesRead = external hidden local_unnamed_addr global i32, align 4
@PiFileName = external dso_local local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@PiFile = external dso_local local_unnamed_addr global ptr, align 8
@TraceLevel = external dso_local local_unnamed_addr global i32, align 4
@.str.2 = external hidden unnamed_addr constant [27 x i8], align 1
@Dimension = external dso_local local_unnamed_addr global i32, align 4
@.str.3 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [74 x i8], align 1
@__PRETTY_FUNCTION__.ReadPenalties = external hidden unnamed_addr constant [20 x i8], align 1
@NodeSet = external dso_local local_unnamed_addr global ptr, align 8
@FirstNode = external dso_local local_unnamed_addr global ptr, align 8
@.str.6 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @ReadPenalties() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  %3 = load ptr, ptr @PiFileName, align 8, !tbaa !5
  %4 = icmp eq ptr %3, null
  br i1 %4, label %65, label %5

5:                                                ; preds = %0
  %6 = load i32, ptr @ReadPenalties.PenaltiesRead, align 4, !tbaa !9
  %.not = icmp eq i32 %6, 0
  br i1 %.not, label %7, label %.sink.split

7:                                                ; preds = %5
  %8 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str) #7
  %9 = icmp eq i32 %8, 0
  br i1 %9, label %.sink.split, label %10

10:                                               ; preds = %7
  %11 = tail call noalias ptr @fopen(ptr noundef nonnull %3, ptr noundef nonnull @.str.1)
  store ptr %11, ptr @PiFile, align 8, !tbaa !5
  %.not14 = icmp eq ptr %11, null
  br i1 %.not14, label %65, label %12

12:                                               ; preds = %10
  %13 = load i32, ptr @TraceLevel, align 4, !tbaa !9
  %14 = icmp sgt i32 %13, 0
  br i1 %14, label %15, label %17

15:                                               ; preds = %12
  %16 = load ptr, ptr @PiFileName, align 8, !tbaa !5
  tail call void (ptr, ...) @printff(ptr noundef nonnull @.str.2, ptr noundef %16) #6
  %.pre = load ptr, ptr @PiFile, align 8, !tbaa !5
  br label %17

17:                                               ; preds = %15, %12
  %18 = phi ptr [ %.pre, %15 ], [ %11, %12 ]
  %19 = call i32 @fscanint(ptr noundef %18, ptr noundef nonnull %1) #6
  %20 = load i32, ptr %1, align 4, !tbaa !9
  %21 = load i32, ptr @Dimension, align 4, !tbaa !9
  %.not15 = icmp eq i32 %20, %21
  br i1 %.not15, label %24, label %22

22:                                               ; preds = %17
  %23 = load ptr, ptr @PiFileName, align 8, !tbaa !5
  call void (ptr, ...) @eprintf(ptr noundef nonnull @.str.3, ptr noundef %23) #6
  br label %24

24:                                               ; preds = %22, %17
  %25 = load ptr, ptr @PiFile, align 8, !tbaa !5
  %26 = call i32 @fscanint(ptr noundef %25, ptr noundef nonnull %2) #6
  %27 = load i32, ptr %2, align 4, !tbaa !9
  %28 = icmp slt i32 %27, 1
  %29 = load i32, ptr @Dimension, align 4
  %.not16 = icmp sgt i32 %27, %29
  %or.cond = select i1 %28, i1 true, i1 %.not16
  br i1 %or.cond, label %30, label %31

30:                                               ; preds = %24
  call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, i32 noundef 37, ptr noundef nonnull @__PRETTY_FUNCTION__.ReadPenalties) #8
  unreachable

31:                                               ; preds = %24
  %32 = load ptr, ptr @NodeSet, align 8, !tbaa !5
  %33 = zext nneg i32 %27 to i64
  %34 = getelementptr inbounds %struct.Node, ptr %32, i64 %33
  store ptr %34, ptr @FirstNode, align 8, !tbaa !5
  %35 = load ptr, ptr @PiFile, align 8, !tbaa !5
  %36 = getelementptr inbounds i8, ptr %34, i64 36
  %37 = call i32 @fscanint(ptr noundef %35, ptr noundef nonnull %36) #6
  store i32 2, ptr %1, align 4, !tbaa !9
  %38 = load i32, ptr @Dimension, align 4, !tbaa !9
  %.not1721 = icmp slt i32 %38, 2
  br i1 %.not1721, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %31, %45
  %.0922 = phi ptr [ %48, %45 ], [ %34, %31 ]
  %39 = load ptr, ptr @PiFile, align 8, !tbaa !5
  %40 = call i32 @fscanint(ptr noundef %39, ptr noundef nonnull %2) #6
  %41 = load i32, ptr %2, align 4, !tbaa !9
  %42 = icmp slt i32 %41, 1
  %43 = load i32, ptr @Dimension, align 4
  %.not18 = icmp sgt i32 %41, %43
  %or.cond19 = select i1 %42, i1 true, i1 %.not18
  br i1 %or.cond19, label %44, label %45

44:                                               ; preds = %.lr.ph
  call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, i32 noundef 42, ptr noundef nonnull @__PRETTY_FUNCTION__.ReadPenalties) #8
  unreachable

45:                                               ; preds = %.lr.ph
  %46 = load ptr, ptr @NodeSet, align 8, !tbaa !5
  %47 = zext nneg i32 %41 to i64
  %48 = getelementptr inbounds %struct.Node, ptr %46, i64 %47
  %49 = load ptr, ptr @PiFile, align 8, !tbaa !5
  %50 = getelementptr inbounds i8, ptr %48, i64 36
  %51 = call i32 @fscanint(ptr noundef %49, ptr noundef nonnull %50) #6
  %52 = getelementptr inbounds i8, ptr %48, i64 64
  store ptr %.0922, ptr %52, align 8, !tbaa !11
  %53 = getelementptr inbounds i8, ptr %.0922, i64 72
  store ptr %48, ptr %53, align 8, !tbaa !14
  %54 = load i32, ptr %1, align 4, !tbaa !9
  %55 = add nsw i32 %54, 1
  store i32 %55, ptr %1, align 4, !tbaa !9
  %56 = load i32, ptr @Dimension, align 4, !tbaa !9
  %.not17.not = icmp slt i32 %54, %56
  br i1 %.not17.not, label %.lr.ph, label %._crit_edge, !llvm.loop !15

._crit_edge:                                      ; preds = %45, %31
  %.0.lcssa = phi ptr [ null, %31 ], [ %48, %45 ]
  %57 = load ptr, ptr @FirstNode, align 8, !tbaa !5
  %58 = getelementptr inbounds i8, ptr %57, i64 64
  store ptr %.0.lcssa, ptr %58, align 8, !tbaa !11
  %59 = getelementptr inbounds i8, ptr %.0.lcssa, i64 72
  store ptr %57, ptr %59, align 8, !tbaa !14
  %60 = load ptr, ptr @PiFile, align 8, !tbaa !5
  %61 = call i32 @fclose(ptr noundef %60)
  %62 = load i32, ptr @TraceLevel, align 4, !tbaa !9
  %63 = icmp sgt i32 %62, 0
  br i1 %63, label %64, label %.sink.split

64:                                               ; preds = %._crit_edge
  call void (ptr, ...) @printff(ptr noundef nonnull @.str.6) #6
  br label %.sink.split

.sink.split:                                      ; preds = %._crit_edge, %64, %5, %7
  store i32 1, ptr @ReadPenalties.PenaltiesRead, align 4, !tbaa !9
  br label %65

65:                                               ; preds = %.sink.split, %10, %0
  %.010 = phi i32 [ 0, %0 ], [ 0, %10 ], [ 1, %.sink.split ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  ret i32 %.010
}

; 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 nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #3

declare void @printff(ptr noundef, ...) local_unnamed_addr #4

declare i32 @fscanint(ptr noundef, ptr noundef) local_unnamed_addr #4

declare void @eprintf(ptr noundef, ...) local_unnamed_addr #4

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

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #3

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

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 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 = { 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 #4 = { "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 = { 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 #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(read) }
attributes #8 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 64}
!12 = !{!"Node", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !6, i64 280, !6, i64 288, !6, i64 296, !6, i64 304, !13, i64 312, !13, i64 320, !13, i64 328, !13, i64 336, !13, i64 344, !13, i64 352, !7, i64 360, !7, i64 361, !7, i64 362}
!13 = !{!"double", !7, i64 0}
!14 = !{!12, !6, i64 72}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass