; LLVM IR from GGiecold-zz/Cluster_Ensembles :: src/Cluster_Ensembles/Hypergraph_Partitioning/metis-5.1.0/libmetis (srefine)

; 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.ctrl_t = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, i32, i32, float, ptr, ptr, ptr, float, double, double, double, double, double, double, double, double, double, double, double, double, ptr, i64, i64, i64, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.graph_t = type { i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, ptr, ptr, i32, i32, ptr, ptr, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [76 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [140 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [42 x i8], align 1
@__PRETTY_FUNCTION__.libmetis__Refine2WayNode = external hidden unnamed_addr constant [62 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @libmetis__Refine2WayNode(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %7 = load ptr, ptr %4, align 8, !tbaa !5
  %8 = getelementptr inbounds %struct.ctrl_t, ptr %7, i32 0, i32 2
  %9 = load i32, ptr %8, align 8, !tbaa !9
  %10 = and i32 %9, 2
  %11 = icmp ne i32 %10, 0
  br i1 %11, label %12, label %18

12:                                               ; preds = %3
  %13 = call double @gk_CPUSeconds()
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.ctrl_t, ptr %14, i32 0, i32 32
  %16 = load double, ptr %15, align 8, !tbaa !15
  %17 = fsub double %16, %13
  store double %17, ptr %15, align 8, !tbaa !15
  br label %18

18:                                               ; preds = %12, %3
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = icmp eq ptr %19, %20
  br i1 %21, label %22, label %25

22:                                               ; preds = %18
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  call void @libmetis__Compute2WayNodePartitionParams(ptr noundef %23, ptr noundef %24)
  br label %119

25:                                               ; preds = %18
  br label %26

26:                                               ; preds = %114, %25
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.graph_t, ptr %27, i32 0, i32 30
  %29 = load ptr, ptr %28, align 8, !tbaa !16
  store ptr %29, ptr %6, align 8, !tbaa !5
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.ctrl_t, ptr %30, i32 0, i32 2
  %32 = load i32, ptr %31, align 8, !tbaa !9
  %33 = and i32 %32, 2
  %34 = icmp ne i32 %33, 0
  br i1 %34, label %35, label %41

35:                                               ; preds = %26
  %36 = call double @gk_CPUSeconds()
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.ctrl_t, ptr %37, i32 0, i32 34
  %39 = load double, ptr %38, align 8, !tbaa !18
  %40 = fsub double %39, %36
  store double %40, ptr %38, align 8, !tbaa !18
  br label %41

41:                                               ; preds = %35, %26
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  call void @libmetis__Project2WayNodePartition(ptr noundef %42, ptr noundef %43)
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.ctrl_t, ptr %44, i32 0, i32 2
  %46 = load i32, ptr %45, align 8, !tbaa !9
  %47 = and i32 %46, 2
  %48 = icmp ne i32 %47, 0
  br i1 %48, label %49, label %55

49:                                               ; preds = %41
  %50 = call double @gk_CPUSeconds()
  %51 = load ptr, ptr %4, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.ctrl_t, ptr %51, i32 0, i32 34
  %53 = load double, ptr %52, align 8, !tbaa !18
  %54 = fadd double %53, %50
  store double %54, ptr %52, align 8, !tbaa !18
  br label %55

55:                                               ; preds = %49, %41
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.ctrl_t, ptr %56, i32 0, i32 2
  %58 = load i32, ptr %57, align 8, !tbaa !9
  %59 = and i32 %58, 2
  %60 = icmp ne i32 %59, 0
  br i1 %60, label %61, label %67

61:                                               ; preds = %55
  %62 = call double @gk_CPUSeconds()
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.ctrl_t, ptr %63, i32 0, i32 33
  %65 = load double, ptr %64, align 8, !tbaa !19
  %66 = fsub double %65, %62
  store double %66, ptr %64, align 8, !tbaa !19
  br label %67

67:                                               ; preds = %61, %55
  %68 = load ptr, ptr %4, align 8, !tbaa !5
  %69 = load ptr, ptr %6, align 8, !tbaa !5
  call void @libmetis__FM_2WayNodeBalance(ptr noundef %68, ptr noundef %69)
  %70 = load ptr, ptr %6, align 8, !tbaa !5
  %71 = call i32 @libmetis__CheckNodePartitionParams(ptr noundef %70)
  %72 = icmp ne i32 %71, 0
  br i1 %72, label %81, label %73

73:                                               ; preds = %67
  %74 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef 42, ptr noundef @.str.1)
  %75 = load ptr, ptr %6, align 8, !tbaa !5
  %76 = call i32 @libmetis__CheckNodePartitionParams(ptr noundef %75)
  %77 = icmp ne i32 %76, 0
  br i1 %77, label %78, label %79

78:                                               ; preds = %73
  br label %80

79:                                               ; preds = %73
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 42, ptr noundef @__PRETTY_FUNCTION__.libmetis__Refine2WayNode) #3
  unreachable

80:                                               ; preds = %78
  br label %81

81:                                               ; preds = %80, %67
  %82 = load ptr, ptr %4, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.ctrl_t, ptr %82, i32 0, i32 5
  %84 = load i32, ptr %83, align 4, !tbaa !20
  switch i32 %84, label %97 [
    i32 2, label %85
    i32 3, label %91
  ]

85:                                               ; preds = %81
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = load ptr, ptr %6, align 8, !tbaa !5
  %88 = load ptr, ptr %4, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.ctrl_t, ptr %88, i32 0, i32 17
  %90 = load i32, ptr %89, align 4, !tbaa !21
  call void @libmetis__FM_2WayNodeRefine2Sided(ptr noundef %86, ptr noundef %87, i32 noundef %90)
  br label %101

91:                                               ; preds = %81
  %92 = load ptr, ptr %4, align 8, !tbaa !5
  %93 = load ptr, ptr %6, align 8, !tbaa !5
  %94 = load ptr, ptr %4, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.ctrl_t, ptr %94, i32 0, i32 17
  %96 = load i32, ptr %95, align 4, !tbaa !21
  call void @libmetis__FM_2WayNodeRefine1Sided(ptr noundef %92, ptr noundef %93, i32 noundef %96)
  br label %101

97:                                               ; preds = %81
  %98 = load ptr, ptr %4, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.ctrl_t, ptr %98, i32 0, i32 5
  %100 = load i32, ptr %99, align 4, !tbaa !20
  call void (i32, ptr, ...) @gk_errexit(i32 noundef 15, ptr noundef @.str.3, i32 noundef %100)
  br label %101

101:                                              ; preds = %97, %91, %85
  %102 = load ptr, ptr %4, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.ctrl_t, ptr %102, i32 0, i32 2
  %104 = load i32, ptr %103, align 8, !tbaa !9
  %105 = and i32 %104, 2
  %106 = icmp ne i32 %105, 0
  br i1 %106, label %107, label %113

107:                                              ; preds = %101
  %108 = call double @gk_CPUSeconds()
  %109 = load ptr, ptr %4, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.ctrl_t, ptr %109, i32 0, i32 33
  %111 = load double, ptr %110, align 8, !tbaa !19
  %112 = fadd double %111, %108
  store double %112, ptr %110, align 8, !tbaa !19
  br label %113

113:                                              ; preds = %107, %101
  br label %114

114:                                              ; preds = %113
  %115 = load ptr, ptr %6, align 8, !tbaa !5
  %116 = load ptr, ptr %5, align 8, !tbaa !5
  %117 = icmp ne ptr %115, %116
  br i1 %117, label %26, label %118, !llvm.loop !22

118:                                              ; preds = %114
  br label %119

119:                                              ; preds = %118, %22
  %120 = load ptr, ptr %4, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.ctrl_t, ptr %120, i32 0, i32 2
  %122 = load i32, ptr %121, align 8, !tbaa !9
  %123 = and i32 %122, 2
  %124 = icmp ne i32 %123, 0
  br i1 %124, label %125, label %131

125:                                              ; preds = %119
  %126 = call double @gk_CPUSeconds()
  %127 = load ptr, ptr %4, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.ctrl_t, ptr %127, i32 0, i32 32
  %129 = load double, ptr %128, align 8, !tbaa !15
  %130 = fadd double %129, %126
  store double %130, ptr %128, align 8, !tbaa !15
  br label %131

131:                                              ; preds = %125, %119
  ret void
}

declare double @gk_CPUSeconds() #1

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

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

declare void @libmetis__FM_2WayNodeBalance(ptr noundef, ptr noundef) #1

declare i32 @libmetis__CheckNodePartitionParams(ptr noundef) #1

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

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

declare void @libmetis__FM_2WayNodeRefine2Sided(ptr noundef, ptr noundef, i32 noundef) #1

declare void @libmetis__FM_2WayNodeRefine1Sided(ptr noundef, ptr noundef, i32 noundef) #1

declare void @gk_errexit(i32 noundef, ptr noundef, ...) #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 = { "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 = { 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 #3 = { 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, !11, i64 8}
!10 = !{!"ctrl_t", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68, !11, i64 72, !6, i64 80, !11, i64 88, !11, i64 92, !12, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !12, i64 128, !13, i64 136, !13, i64 144, !13, i64 152, !13, i64 160, !13, i64 168, !13, i64 176, !13, i64 184, !13, i64 192, !13, i64 200, !13, i64 208, !13, i64 216, !13, i64 224, !6, i64 232, !14, i64 240, !14, i64 248, !14, i64 256, !6, i64 264, !6, i64 272, !6, i64 280, !6, i64 288, !6, i64 296, !6, i64 304, !6, i64 312, !6, i64 320}
!11 = !{!"int", !7, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!10, !13, i64 176}
!16 = !{!17, !6, i64 208}
!17 = !{!"graph_t", !11, i64 0, !11, i64 4, !11, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !11, i64 72, !11, i64 76, !11, i64 80, !11, i64 84, !11, i64 88, !6, i64 96, !6, i64 104, !11, i64 112, !11, i64 116, !6, i64 120, !6, i64 128, !11, 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}
!18 = !{!10, !13, i64 192}
!19 = !{!10, !13, i64 184}
!20 = !{!10, !11, i64 20}
!21 = !{!10, !11, i64 68}
!22 = distinct !{!22, !23}
!23 = !{!"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"

@.str = external hidden unnamed_addr constant [76 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [140 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [42 x i8], align 1
@__PRETTY_FUNCTION__.libmetis__Refine2WayNode = external hidden unnamed_addr constant [62 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @libmetis__Refine2WayNode(ptr noundef %0, ptr noundef readnone %1, ptr noundef %2) local_unnamed_addr #0 {
  %4 = getelementptr inbounds i8, ptr %0, i64 8
  %5 = load i32, ptr %4, align 8, !tbaa !5
  %6 = and i32 %5, 2
  %.not = icmp eq i32 %6, 0
  br i1 %.not, label %12, label %7

7:                                                ; preds = %3
  %8 = tail call double @gk_CPUSeconds() #4
  %9 = getelementptr inbounds i8, ptr %0, i64 176
  %10 = load double, ptr %9, align 8, !tbaa !14
  %11 = fsub double %10, %8
  store double %11, ptr %9, align 8, !tbaa !14
  br label %12

12:                                               ; preds = %7, %3
  %13 = icmp eq ptr %2, %1
  br i1 %13, label %18, label %.preheader

.preheader:                                       ; preds = %12
  %14 = getelementptr inbounds i8, ptr %0, i64 192
  %15 = getelementptr inbounds i8, ptr %0, i64 184
  %16 = getelementptr inbounds i8, ptr %0, i64 20
  %17 = getelementptr inbounds i8, ptr %0, i64 68
  br label %19

18:                                               ; preds = %12
  tail call void @libmetis__Compute2WayNodePartitionParams(ptr noundef nonnull %0, ptr noundef %2)
  br label %.loopexit

19:                                               ; preds = %.preheader, %58
  %.0 = phi ptr [ %21, %58 ], [ %2, %.preheader ]
  %20 = getelementptr inbounds i8, ptr %.0, i64 208
  %21 = load ptr, ptr %20, align 8, !tbaa !15
  %22 = load i32, ptr %4, align 8, !tbaa !5
  %23 = and i32 %22, 2
  %.not35 = icmp eq i32 %23, 0
  br i1 %.not35, label %28, label %24

24:                                               ; preds = %19
  %25 = tail call double @gk_CPUSeconds() #4
  %26 = load double, ptr %14, align 8, !tbaa !17
  %27 = fsub double %26, %25
  store double %27, ptr %14, align 8, !tbaa !17
  br label %28

28:                                               ; preds = %24, %19
  tail call void @libmetis__Project2WayNodePartition(ptr noundef nonnull %0, ptr noundef %21)
  %29 = load i32, ptr %4, align 8, !tbaa !5
  %30 = and i32 %29, 2
  %.not36 = icmp eq i32 %30, 0
  br i1 %.not36, label %.thread, label %31

31:                                               ; preds = %28
  %32 = tail call double @gk_CPUSeconds() #4
  %33 = load double, ptr %14, align 8, !tbaa !17
  %34 = fadd double %32, %33
  store double %34, ptr %14, align 8, !tbaa !17
  %.pre = load i32, ptr %4, align 8, !tbaa !5
  %.pre43 = and i32 %.pre, 2
  %.not37 = icmp eq i32 %.pre43, 0
  br i1 %.not37, label %.thread, label %35

35:                                               ; preds = %31
  %36 = tail call double @gk_CPUSeconds() #4
  %37 = load double, ptr %15, align 8, !tbaa !18
  %38 = fsub double %37, %36
  store double %38, ptr %15, align 8, !tbaa !18
  br label %.thread

.thread:                                          ; preds = %28, %35, %31
  tail call void @libmetis__FM_2WayNodeBalance(ptr noundef nonnull %0, ptr noundef %21) #4
  %39 = tail call i32 @libmetis__CheckNodePartitionParams(ptr noundef %21) #4
  %.not38 = icmp eq i32 %39, 0
  br i1 %.not38, label %40, label %44

40:                                               ; preds = %.thread
  %41 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef 42, ptr noundef nonnull @.str.1)
  %42 = tail call i32 @libmetis__CheckNodePartitionParams(ptr noundef %21) #4
  %.not39 = icmp eq i32 %42, 0
  br i1 %.not39, label %43, label %44

43:                                               ; preds = %40
  tail call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 42, ptr noundef nonnull @__PRETTY_FUNCTION__.libmetis__Refine2WayNode) #5
  unreachable

44:                                               ; preds = %40, %.thread
  %45 = load i32, ptr %16, align 4, !tbaa !19
  switch i32 %45, label %50 [
    i32 2, label %46
    i32 3, label %48
  ]

46:                                               ; preds = %44
  %47 = load i32, ptr %17, align 4, !tbaa !20
  tail call void @libmetis__FM_2WayNodeRefine2Sided(ptr noundef nonnull %0, ptr noundef %21, i32 noundef %47) #4
  br label %51

48:                                               ; preds = %44
  %49 = load i32, ptr %17, align 4, !tbaa !20
  tail call void @libmetis__FM_2WayNodeRefine1Sided(ptr noundef nonnull %0, ptr noundef %21, i32 noundef %49) #4
  br label %51

50:                                               ; preds = %44
  tail call void (i32, ptr, ...) @gk_errexit(i32 noundef 15, ptr noundef nonnull @.str.3, i32 noundef %45) #4
  br label %51

51:                                               ; preds = %50, %48, %46
  %52 = load i32, ptr %4, align 8, !tbaa !5
  %53 = and i32 %52, 2
  %.not40 = icmp eq i32 %53, 0
  br i1 %.not40, label %58, label %54

54:                                               ; preds = %51
  %55 = tail call double @gk_CPUSeconds() #4
  %56 = load double, ptr %15, align 8, !tbaa !18
  %57 = fadd double %55, %56
  store double %57, ptr %15, align 8, !tbaa !18
  br label %58

58:                                               ; preds = %51, %54
  %.not41 = icmp eq ptr %21, %1
  br i1 %.not41, label %.loopexit, label %19, !llvm.loop !21

.loopexit:                                        ; preds = %58, %18
  %59 = load i32, ptr %4, align 8, !tbaa !5
  %60 = and i32 %59, 2
  %.not42 = icmp eq i32 %60, 0
  br i1 %.not42, label %66, label %61

61:                                               ; preds = %.loopexit
  %62 = tail call double @gk_CPUSeconds() #4
  %63 = getelementptr inbounds i8, ptr %0, i64 176
  %64 = load double, ptr %63, align 8, !tbaa !14
  %65 = fadd double %62, %64
  store double %65, ptr %63, align 8, !tbaa !14
  br label %66

66:                                               ; preds = %61, %.loopexit
  ret void
}

declare double @gk_CPUSeconds() local_unnamed_addr #1

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

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

declare void @libmetis__FM_2WayNodeBalance(ptr noundef, ptr noundef) local_unnamed_addr #1

declare i32 @libmetis__CheckNodePartitionParams(ptr noundef) 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 @libmetis__FM_2WayNodeRefine2Sided(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

declare void @libmetis__FM_2WayNodeRefine1Sided(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

declare void @gk_errexit(i32 noundef, ptr noundef, ...) local_unnamed_addr #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 = { "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 }
attributes #5 = { 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, !7, i64 8}
!6 = !{!"ctrl_t", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44, !7, i64 48, !7, i64 52, !7, i64 56, !7, i64 60, !7, i64 64, !7, i64 68, !7, i64 72, !10, i64 80, !7, i64 88, !7, i64 92, !11, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !11, i64 128, !12, i64 136, !12, i64 144, !12, i64 152, !12, i64 160, !12, i64 168, !12, i64 176, !12, i64 184, !12, i64 192, !12, i64 200, !12, i64 208, !12, i64 216, !12, i64 224, !10, i64 232, !13, i64 240, !13, i64 248, !13, i64 256, !10, i64 264, !10, i64 272, !10, i64 280, !10, i64 288, !10, i64 296, !10, i64 304, !10, i64 312, !10, i64 320}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"float", !8, i64 0}
!12 = !{!"double", !8, i64 0}
!13 = !{!"long", !8, i64 0}
!14 = !{!6, !12, i64 176}
!15 = !{!16, !10, i64 208}
!16 = !{!"graph_t", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !7, i64 72, !7, i64 76, !7, i64 80, !7, i64 84, !7, i64 88, !10, i64 96, !10, i64 104, !7, i64 112, !7, i64 116, !10, i64 120, !10, i64 128, !7, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !10, i64 184, !10, i64 192, !10, i64 200, !10, i64 208}
!17 = !{!6, !12, i64 192}
!18 = !{!6, !12, i64 184}
!19 = !{!6, !7, i64 20}
!20 = !{!6, !7, i64 68}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass