; LLVM IR from jingweizhanghuai/Morn :: src/util (morn_graph)

; 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.GraphNode = type { ptr, ptr, ptr, i32, i32, i32, ptr }
%struct.HandleList = type { %struct.MList, i32, i32, i32, i32 }
%struct.MList = type { i32, ptr }
%struct.MHandle = type { i32, i32, ptr, ptr }
%struct.HandleGraphCreate = type { ptr, i32, i32, ptr, i32, ptr, ptr }
%struct.HandleGraphWay = type { ptr, ptr, i32, ptr }
%struct.MMatrix = type { i32, i32, ptr }
%struct.MTable = type { i32, i32, i32, %union.anon.1 }
%union.anon.1 = type { ptr }

@.str.2 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [20 x i8], align 1
@morn_float_sup = external global [8 x i8], align 1
@__FUNCTION__.m_GraphWay = external hidden unnamed_addr constant [11 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [19 x i8], align 1

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

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

declare ptr @GetHandle(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1

declare void @m_Exception(i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ...) #1

; Function Attrs: nounwind uwtable
declare dso_local void @endGraphWay(ptr noundef) #2

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

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

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

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

31:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  %32 = load ptr, ptr %14, align 8, !tbaa !5
  %33 = load ptr, ptr %13, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.GraphNode, ptr %33, i32 0, i32 6
  %35 = load ptr, ptr %34, align 8, !tbaa !9
  %36 = icmp ne ptr %32, %35
  %37 = zext i1 %36 to i32
  store i32 %37, ptr %15, align 4, !tbaa !12
  %38 = load i32, ptr %15, align 4, !tbaa !12
  %39 = icmp ne i32 %38, 0
  br i1 %39, label %40, label %42

40:                                               ; preds = %31
  %41 = load i32, ptr %15, align 4, !tbaa !12
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %41, i32 noundef -1, ptr noundef @.str.2, i32 noundef 347, ptr noundef @__FUNCTION__.m_GraphWay, ptr noundef @.str.7)
  br label %42

42:                                               ; preds = %40, %31
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  br label %43

43:                                               ; preds = %42
  br label %44

44:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  %45 = load ptr, ptr %14, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.HandleList, ptr %45, i64 -1
  %47 = getelementptr inbounds %struct.HandleList, ptr %46, i32 0, i32 0
  %48 = getelementptr inbounds %struct.MList, ptr %47, i32 0, i32 1
  %49 = load ptr, ptr %48, align 8, !tbaa !13
  %50 = getelementptr inbounds ptr, ptr %49, i64 1
  %51 = load ptr, ptr %50, align 8, !tbaa !5
  store ptr %51, ptr %16, align 8, !tbaa !5
  br label %52

52:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  %53 = load ptr, ptr %16, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.MHandle, ptr %53, i32 0, i32 0
  %55 = load volatile i32, ptr %54, align 8, !tbaa !16
  %56 = icmp ne i32 %55, -562223887
  %57 = zext i1 %56 to i32
  store i32 %57, ptr %17, align 4, !tbaa !12
  %58 = load i32, ptr %17, align 4, !tbaa !12
  %59 = icmp ne i32 %58, 0
  br i1 %59, label %60, label %62

60:                                               ; preds = %52
  %61 = load i32, ptr %17, align 4, !tbaa !12
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %61, i32 noundef -1, ptr noundef @.str.2, i32 noundef 350, ptr noundef @__FUNCTION__.m_GraphWay, ptr noundef @.str.3)
  br label %62

62:                                               ; preds = %60, %52
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  br label %63

63:                                               ; preds = %62
  br label %64

64:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  %65 = load ptr, ptr %16, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.MHandle, ptr %65, i32 0, i32 3
  %67 = load ptr, ptr %66, align 8, !tbaa !18
  store ptr %67, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  %68 = load ptr, ptr %18, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.HandleGraphCreate, ptr %68, i32 0, i32 0
  %70 = load ptr, ptr %69, align 8, !tbaa !19
  store ptr %70, ptr %19, align 8, !tbaa !5
  %71 = load ptr, ptr %14, align 8, !tbaa !5
  %72 = call ptr @GetHandle(ptr noundef %71, i32 noundef 32, i32 noundef -504282372, ptr noundef @endGraphWay)
  store ptr %72, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #3
  %73 = load ptr, ptr %16, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.MHandle, ptr %73, i32 0, i32 3
  %75 = load ptr, ptr %74, align 8, !tbaa !18
  store ptr %75, ptr %20, align 8, !tbaa !5
  %76 = load ptr, ptr %20, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.HandleGraphWay, ptr %76, i32 0, i32 2
  %78 = load i32, ptr %77, align 8, !tbaa !21
  %79 = load ptr, ptr %18, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.HandleGraphCreate, ptr %79, i32 0, i32 4
  %81 = load i32, ptr %80, align 8, !tbaa !23
  %82 = icmp ne i32 %78, %81
  br i1 %82, label %83, label %86

83:                                               ; preds = %64
  %84 = load ptr, ptr %16, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.MHandle, ptr %84, i32 0, i32 1
  store volatile i32 0, ptr %85, align 4, !tbaa !24
  br label %86

86:                                               ; preds = %83, %64
  %87 = load ptr, ptr %20, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.HandleGraphWay, ptr %87, i32 0, i32 3
  %89 = load ptr, ptr %88, align 8, !tbaa !25
  %90 = load ptr, ptr %10, align 8, !tbaa !5
  %91 = icmp ne ptr %89, %90
  br i1 %91, label %92, label %95

92:                                               ; preds = %86
  %93 = load ptr, ptr %16, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.MHandle, ptr %93, i32 0, i32 1
  store volatile i32 0, ptr %94, align 4, !tbaa !24
  br label %95

95:                                               ; preds = %92, %86
  %96 = load ptr, ptr %16, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.MHandle, ptr %96, i32 0, i32 1
  %98 = load volatile i32, ptr %97, align 4, !tbaa !24
  %99 = icmp eq i32 %98, 0
  br i1 %99, label %100, label %114

100:                                              ; preds = %95
  %101 = load ptr, ptr %18, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.HandleGraphCreate, ptr %101, i32 0, i32 4
  %103 = load i32, ptr %102, align 8, !tbaa !23
  %104 = load ptr, ptr %20, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.HandleGraphWay, ptr %104, i32 0, i32 2
  store i32 %103, ptr %105, align 8, !tbaa !21
  %106 = load ptr, ptr %10, align 8, !tbaa !5
  %107 = load ptr, ptr %20, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.HandleGraphWay, ptr %107, i32 0, i32 3
  store ptr %106, ptr %108, align 8, !tbaa !25
  %109 = load ptr, ptr %14, align 8, !tbaa !5
  %110 = load ptr, ptr %10, align 8, !tbaa !5
  %111 = load ptr, ptr %11, align 8, !tbaa !5
  call void @GraphWay(ptr noundef %109, ptr noundef %110, ptr noundef %111)
  %112 = load ptr, ptr %16, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.MHandle, ptr %112, i32 0, i32 1
  store volatile i32 1, ptr %113, align 4, !tbaa !24
  br label %114

114:                                              ; preds = %100, %95
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #3
  %115 = load ptr, ptr %12, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.GraphNode, ptr %115, i32 0, i32 5
  %117 = load i32, ptr %116, align 8, !tbaa !26
  store i32 %117, ptr %21, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #3
  %118 = load ptr, ptr %13, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.GraphNode, ptr %118, i32 0, i32 5
  %120 = load i32, ptr %119, align 8, !tbaa !26
  store i32 %120, ptr %22, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #3
  %121 = load ptr, ptr %20, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.HandleGraphWay, ptr %121, i32 0, i32 0
  %123 = load ptr, ptr %122, align 8, !tbaa !27
  %124 = getelementptr inbounds %struct.MMatrix, ptr %123, i32 0, i32 2
  %125 = load ptr, ptr %124, align 8, !tbaa !28
  %126 = load i32, ptr %21, align 4, !tbaa !12
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds ptr, ptr %125, i64 %127
  %129 = load ptr, ptr %128, align 8, !tbaa !5
  %130 = load i32, ptr %22, align 4, !tbaa !12
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds float, ptr %129, i64 %131
  %133 = load float, ptr %132, align 4, !tbaa !30
  store float %133, ptr %23, align 4, !tbaa !30
  %134 = load ptr, ptr %7, align 8, !tbaa !5
  %135 = icmp ne ptr %134, null
  br i1 %135, label %136, label %138

136:                                              ; preds = %114
  %137 = load ptr, ptr %7, align 8, !tbaa !5
  call void @mListClear(ptr noundef %137)
  br label %138

138:                                              ; preds = %136, %114
  %139 = load float, ptr %23, align 4, !tbaa !30
  %140 = fpext float %139 to double
  %141 = load double, ptr @morn_float_sup, align 1, !tbaa !32
  %142 = fcmp oge double %140, %141
  br i1 %142, label %143, label %144

143:                                              ; preds = %138
  store float -1.000000e+00, ptr %6, align 4
  store i32 1, ptr %24, align 4
  br label %192

144:                                              ; preds = %138
  %145 = load ptr, ptr %7, align 8, !tbaa !5
  %146 = icmp ne ptr %145, null
  br i1 %146, label %147, label %190

147:                                              ; preds = %144
  %148 = load ptr, ptr %7, align 8, !tbaa !5
  call void @mListClear(ptr noundef %148)
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #3
  %149 = load ptr, ptr %20, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.HandleGraphWay, ptr %149, i32 0, i32 1
  %151 = load ptr, ptr %150, align 8, !tbaa !34
  %152 = getelementptr inbounds %struct.MTable, ptr %151, i32 0, i32 3
  %153 = load ptr, ptr %152, align 8, !tbaa !35
  store ptr %153, ptr %25, align 8, !tbaa !5
  br label %154

154:                                              ; preds = %147
  %155 = load ptr, ptr %7, align 8, !tbaa !5
  call void @m_ListAppend(ptr noundef %155, ptr noundef null, i32 noundef -1)
  br label %156

156:                                              ; preds = %154
  br label %157

157:                                              ; preds = %156
  %158 = load ptr, ptr %19, align 8, !tbaa !5
  %159 = load i32, ptr %21, align 4, !tbaa !12
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds ptr, ptr %158, i64 %160
  %162 = load ptr, ptr %161, align 8, !tbaa !5
  %163 = load ptr, ptr %7, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.MList, ptr %163, i32 0, i32 1
  %165 = load ptr, ptr %164, align 8, !tbaa !36
  %166 = getelementptr inbounds ptr, ptr %165, i64 0
  store ptr %162, ptr %166, align 8, !tbaa !5
  %167 = load ptr, ptr %19, align 8, !tbaa !5
  %168 = load i32, ptr %21, align 4, !tbaa !12
  %169 = load i32, ptr %22, align 4, !tbaa !12
  %170 = load ptr, ptr %25, align 8, !tbaa !5
  %171 = load ptr, ptr %7, align 8, !tbaa !5
  call void @WayList(ptr noundef %167, i32 noundef %168, i32 noundef %169, ptr noundef %170, ptr noundef %171)
  br label %172

172:                                              ; preds = %157
  %173 = load ptr, ptr %7, align 8, !tbaa !5
  call void @m_ListAppend(ptr noundef %173, ptr noundef null, i32 noundef -1)
  br label %174

174:                                              ; preds = %172
  br label %175

175:                                              ; preds = %174
  %176 = load ptr, ptr %19, align 8, !tbaa !5
  %177 = load i32, ptr %22, align 4, !tbaa !12
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds ptr, ptr %176, i64 %178
  %180 = load ptr, ptr %179, align 8, !tbaa !5
  %181 = load ptr, ptr %7, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.MList, ptr %181, i32 0, i32 1
  %183 = load ptr, ptr %182, align 8, !tbaa !36
  %184 = load ptr, ptr %7, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.MList, ptr %184, i32 0, i32 0
  %186 = load i32, ptr %185, align 8, !tbaa !37
  %187 = sub nsw i32 %186, 1
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds ptr, ptr %183, i64 %188
  store ptr %180, ptr %189, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #3
  br label %190

190:                                              ; preds = %175, %144
  %191 = load float, ptr %23, align 4, !tbaa !30
  store float %191, ptr %6, align 4
  store i32 1, ptr %24, align 4
  br label %192

192:                                              ; preds = %190, %143
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  %193 = load float, ptr %6, align 4
  ret float %193
}

declare void @mListClear(ptr noundef) #1

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 = { 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 }

!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, !6, i64 40}
!10 = !{!"GraphNode", !6, i64 0, !6, i64 8, !6, i64 16, !11, i64 24, !11, i64 28, !11, i64 32, !6, i64 40}
!11 = !{!"int", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!14, !6, i64 8}
!14 = !{!"HandleList", !15, i64 0, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28}
!15 = !{!"MList", !11, i64 0, !6, i64 8}
!16 = !{!17, !11, i64 0}
!17 = !{!"MHandle", !11, i64 0, !11, i64 4, !6, i64 8, !6, i64 16}
!18 = !{!17, !6, i64 16}
!19 = !{!20, !6, i64 0}
!20 = !{!"HandleGraphCreate", !6, i64 0, !11, i64 8, !11, i64 12, !6, i64 16, !11, i64 24, !6, i64 32, !6, i64 40}
!21 = !{!22, !11, i64 16}
!22 = !{!"HandleGraphWay", !6, i64 0, !6, i64 8, !11, i64 16, !6, i64 24}
!23 = !{!20, !11, i64 24}
!24 = !{!17, !11, i64 4}
!25 = !{!22, !6, i64 24}
!26 = !{!10, !11, i64 32}
!27 = !{!22, !6, i64 0}
!28 = !{!29, !6, i64 8}
!29 = !{!"MMatrix", !11, i64 0, !11, i64 4, !6, i64 8}
!30 = !{!31, !31, i64 0}
!31 = !{!"float", !7, i64 0}
!32 = !{!33, !33, i64 0}
!33 = !{!"double", !7, i64 0}
!34 = !{!22, !6, i64 8}
!35 = !{!7, !7, i64 0}
!36 = !{!15, !6, i64 8}
!37 = !{!15, !11, i64 0}


; 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.2 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [20 x i8], align 1
@morn_float_sup = external local_unnamed_addr global [8 x i8], align 1
@__FUNCTION__.m_GraphWay = external hidden unnamed_addr constant [11 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [19 x i8], align 1

declare ptr @GetHandle(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

declare void @m_Exception(i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ...) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @endGraphWay(ptr noundef) #1

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

; Function Attrs: nounwind uwtable
declare dso_local void @WayList(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @m_ListAppend(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local float @m_GraphWay(ptr noundef %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #1 {
  %6 = getelementptr inbounds i8, ptr %1, i64 40
  %7 = load ptr, ptr %6, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %2, i64 40
  %9 = load ptr, ptr %8, align 8, !tbaa !5
  %.not63 = icmp eq ptr %7, %9
  br i1 %.not63, label %11, label %10

10:                                               ; preds = %5
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str.2, i32 noundef 347, ptr noundef nonnull @__FUNCTION__.m_GraphWay, ptr noundef nonnull @.str.7) #2
  br label %11

11:                                               ; preds = %10, %5
  %12 = getelementptr inbounds i8, ptr %7, i64 -24
  %13 = load ptr, ptr %12, align 8, !tbaa !11
  %14 = getelementptr inbounds i8, ptr %13, i64 8
  %15 = load ptr, ptr %14, align 8, !tbaa !14
  %16 = load volatile i32, ptr %15, align 8, !tbaa !15
  %.not64 = icmp eq i32 %16, -562223887
  br i1 %.not64, label %18, label %17

17:                                               ; preds = %11
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str.2, i32 noundef 350, ptr noundef nonnull @__FUNCTION__.m_GraphWay, ptr noundef nonnull @.str.3) #2
  br label %18

18:                                               ; preds = %17, %11
  %19 = getelementptr inbounds i8, ptr %15, i64 16
  %20 = load ptr, ptr %19, align 8, !tbaa !17
  %21 = load ptr, ptr %20, align 8, !tbaa !18
  %22 = tail call ptr @GetHandle(ptr noundef nonnull %7, i32 noundef 32, i32 noundef -504282372, ptr noundef nonnull @endGraphWay) #2
  %23 = getelementptr inbounds i8, ptr %22, i64 16
  %24 = load ptr, ptr %23, align 8, !tbaa !17
  %25 = getelementptr inbounds i8, ptr %24, i64 16
  %26 = load i32, ptr %25, align 8, !tbaa !20
  %27 = getelementptr inbounds i8, ptr %20, i64 24
  %28 = load i32, ptr %27, align 8, !tbaa !22
  %.not = icmp eq i32 %26, %28
  br i1 %.not, label %31, label %29

29:                                               ; preds = %18
  %30 = getelementptr inbounds i8, ptr %22, i64 4
  store volatile i32 0, ptr %30, align 4, !tbaa !23
  br label %31

31:                                               ; preds = %29, %18
  %32 = getelementptr inbounds i8, ptr %24, i64 24
  %33 = load ptr, ptr %32, align 8, !tbaa !24
  %.not57 = icmp eq ptr %33, %3
  br i1 %.not57, label %36, label %34

34:                                               ; preds = %31
  %35 = getelementptr inbounds i8, ptr %22, i64 4
  store volatile i32 0, ptr %35, align 4, !tbaa !23
  br label %36

36:                                               ; preds = %34, %31
  %37 = getelementptr inbounds i8, ptr %22, i64 4
  %38 = load volatile i32, ptr %37, align 4, !tbaa !23
  %39 = icmp eq i32 %38, 0
  br i1 %39, label %40, label %41

40:                                               ; preds = %36
  store i32 %28, ptr %25, align 8, !tbaa !20
  store ptr %3, ptr %32, align 8, !tbaa !24
  tail call void @GraphWay(ptr noundef nonnull %7, ptr noundef %3, ptr noundef %4)
  store volatile i32 1, ptr %37, align 4, !tbaa !23
  br label %41

41:                                               ; preds = %40, %36
  %42 = getelementptr inbounds i8, ptr %1, i64 32
  %43 = load i32, ptr %42, align 8, !tbaa !25
  %44 = getelementptr inbounds i8, ptr %2, i64 32
  %45 = load i32, ptr %44, align 8, !tbaa !25
  %46 = load ptr, ptr %24, align 8, !tbaa !26
  %47 = getelementptr inbounds i8, ptr %46, i64 8
  %48 = load ptr, ptr %47, align 8, !tbaa !27
  %49 = sext i32 %43 to i64
  %50 = getelementptr inbounds ptr, ptr %48, i64 %49
  %51 = load ptr, ptr %50, align 8, !tbaa !14
  %52 = sext i32 %45 to i64
  %53 = getelementptr inbounds float, ptr %51, i64 %52
  %54 = load float, ptr %53, align 4, !tbaa !29
  %.not58 = icmp eq ptr %0, null
  br i1 %.not58, label %.thread, label %58

.thread:                                          ; preds = %41
  %55 = fpext float %54 to double
  %56 = load double, ptr @morn_float_sup, align 1, !tbaa !31
  %57 = fcmp ole double %56, %55
  %.mux62 = select i1 %57, float -1.000000e+00, float %54
  br label %78

58:                                               ; preds = %41
  tail call void @mListClear(ptr noundef nonnull %0) #2
  %59 = fpext float %54 to double
  %60 = load double, ptr @morn_float_sup, align 1, !tbaa !31
  %61 = fcmp ugt double %60, %59
  br i1 %61, label %62, label %78

62:                                               ; preds = %58
  tail call void @mListClear(ptr noundef nonnull %0) #2
  %63 = getelementptr inbounds i8, ptr %24, i64 8
  %64 = load ptr, ptr %63, align 8, !tbaa !33
  %65 = getelementptr inbounds i8, ptr %64, i64 16
  %66 = load ptr, ptr %65, align 8, !tbaa !34
  tail call void @m_ListAppend(ptr noundef nonnull %0, ptr noundef null, i32 noundef -1) #2
  %67 = getelementptr inbounds ptr, ptr %21, i64 %49
  %68 = load ptr, ptr %67, align 8, !tbaa !14
  %69 = getelementptr inbounds i8, ptr %0, i64 8
  %70 = load ptr, ptr %69, align 8, !tbaa !35
  store ptr %68, ptr %70, align 8, !tbaa !14
  tail call void @WayList(ptr noundef %21, i32 noundef %43, i32 noundef %45, ptr noundef %66, ptr noundef nonnull %0)
  tail call void @m_ListAppend(ptr noundef nonnull %0, ptr noundef null, i32 noundef -1) #2
  %71 = getelementptr inbounds ptr, ptr %21, i64 %52
  %72 = load ptr, ptr %71, align 8, !tbaa !14
  %73 = load ptr, ptr %69, align 8, !tbaa !35
  %74 = load i32, ptr %0, align 8, !tbaa !36
  %75 = sext i32 %74 to i64
  %76 = getelementptr ptr, ptr %73, i64 %75
  %77 = getelementptr i8, ptr %76, i64 -8
  store ptr %72, ptr %77, align 8, !tbaa !14
  br label %78

78:                                               ; preds = %.thread, %58, %62
  %.0 = phi float [ -1.000000e+00, %58 ], [ %54, %62 ], [ %.mux62, %.thread ]
  ret float %.0
}

declare void @mListClear(ptr noundef) local_unnamed_addr #0

attributes #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 = { 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 #2 = { 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 40}
!6 = !{!"GraphNode", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !7, i64 40}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!12, !7, i64 8}
!12 = !{!"HandleList", !13, i64 0, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28}
!13 = !{!"MList", !10, i64 0, !7, i64 8}
!14 = !{!7, !7, i64 0}
!15 = !{!16, !10, i64 0}
!16 = !{!"MHandle", !10, i64 0, !10, i64 4, !7, i64 8, !7, i64 16}
!17 = !{!16, !7, i64 16}
!18 = !{!19, !7, i64 0}
!19 = !{!"HandleGraphCreate", !7, i64 0, !10, i64 8, !10, i64 12, !7, i64 16, !10, i64 24, !7, i64 32, !7, i64 40}
!20 = !{!21, !10, i64 16}
!21 = !{!"HandleGraphWay", !7, i64 0, !7, i64 8, !10, i64 16, !7, i64 24}
!22 = !{!19, !10, i64 24}
!23 = !{!16, !10, i64 4}
!24 = !{!21, !7, i64 24}
!25 = !{!6, !10, i64 32}
!26 = !{!21, !7, i64 0}
!27 = !{!28, !7, i64 8}
!28 = !{!"MMatrix", !10, i64 0, !10, i64 4, !7, i64 8}
!29 = !{!30, !30, i64 0}
!30 = !{!"float", !8, i64 0}
!31 = !{!32, !32, i64 0}
!32 = !{!"double", !8, i64 0}
!33 = !{!21, !7, i64 8}
!34 = !{!8, !8, i64 0}
!35 = !{!13, !7, i64 8}
!36 = !{!13, !10, i64 0}


; Effective O3 passes: ADCEPass,ConstraintEliminationPass,CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass