; LLVM IR from OpenDiS/OpenDiS :: core/pydis/c/util (Util_subset)

; 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, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, %struct._tag, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, ptr, ptr, i32 }
%struct._tag = type { i32, i32 }
%struct._home = type { i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, i32, i32, ptr, i32, i32, i32, ptr, i32, i32, ptr, ptr, ptr, double, double, double, double, double, double, i32, i32, i32, ptr, ptr, ptr, i32, ptr, i32, ptr, ptr, ptr, i32, i32, ptr, i32, ptr, ptr, ptr, i32, i32, i32, ptr, ptr, i32, i32, ptr, ptr, ptr, i32, i32, i32, [3 x [3 x double]], [3 x [3 x double]], %struct.BurgInfo_t, i32, i32, i32, i32, i32, i32, i32, %struct.timeval }
%struct.BurgInfo_t = type { i32, i32, ptr, ptr, ptr, ptr }
%struct.timeval = type { i64, i64 }

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #0

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @RecalcSegGlidePlane(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #1 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca [3 x double], align 16
  %12 = alloca [3 x double], align 16
  %13 = alloca [3 x double], align 16
  %14 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store i32 %3, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #4
  %15 = load ptr, ptr %6, align 8, !tbaa !5
  %16 = icmp eq ptr %15, null
  br i1 %16, label %24, label %17

17:                                               ; preds = %4
  %18 = load ptr, ptr %7, align 8, !tbaa !5
  %19 = icmp eq ptr %18, null
  br i1 %19, label %24, label %20

20:                                               ; preds = %17
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  %22 = load ptr, ptr %7, align 8, !tbaa !5
  %23 = icmp eq ptr %21, %22
  br i1 %23, label %24, label %25

24:                                               ; preds = %20, %17, %4
  store i32 1, ptr %14, align 4
  br label %171

25:                                               ; preds = %20
  %26 = load ptr, ptr %6, align 8, !tbaa !5
  %27 = load ptr, ptr %7, align 8, !tbaa !5
  %28 = call i32 @Connected(ptr noundef %26, ptr noundef %27, ptr noundef %9)
  %29 = icmp ne i32 %28, 0
  br i1 %29, label %31, label %30

30:                                               ; preds = %25
  store i32 1, ptr %14, align 4
  br label %171

31:                                               ; preds = %25
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = call i32 @GetArmID(ptr noundef %32, ptr noundef %33, ptr noundef %34)
  store i32 %35, ptr %10, align 4, !tbaa !9
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct._node, ptr %36, i32 0, i32 25
  %38 = load ptr, ptr %37, align 8, !tbaa !11
  %39 = load i32, ptr %9, align 4, !tbaa !9
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds double, ptr %38, i64 %40
  %42 = load double, ptr %41, align 8, !tbaa !15
  %43 = getelementptr inbounds [3 x double], ptr %11, i64 0, i64 0
  store double %42, ptr %43, align 16, !tbaa !15
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct._node, ptr %44, i32 0, i32 26
  %46 = load ptr, ptr %45, align 8, !tbaa !16
  %47 = load i32, ptr %9, align 4, !tbaa !9
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds double, ptr %46, i64 %48
  %50 = load double, ptr %49, align 8, !tbaa !15
  %51 = getelementptr inbounds [3 x double], ptr %11, i64 0, i64 1
  store double %50, ptr %51, align 8, !tbaa !15
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct._node, ptr %52, i32 0, i32 27
  %54 = load ptr, ptr %53, align 8, !tbaa !17
  %55 = load i32, ptr %9, align 4, !tbaa !9
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds double, ptr %54, i64 %56
  %58 = load double, ptr %57, align 8, !tbaa !15
  %59 = getelementptr inbounds [3 x double], ptr %11, i64 0, i64 2
  store double %58, ptr %59, align 16, !tbaa !15
  %60 = load ptr, ptr %7, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct._node, ptr %60, i32 0, i32 1
  %62 = load double, ptr %61, align 8, !tbaa !18
  %63 = load ptr, ptr %6, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct._node, ptr %63, i32 0, i32 1
  %65 = load double, ptr %64, align 8, !tbaa !18
  %66 = fsub double %62, %65
  %67 = getelementptr inbounds [3 x double], ptr %12, i64 0, i64 0
  store double %66, ptr %67, align 16, !tbaa !15
  %68 = load ptr, ptr %7, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct._node, ptr %68, i32 0, i32 2
  %70 = load double, ptr %69, align 8, !tbaa !19
  %71 = load ptr, ptr %6, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct._node, ptr %71, i32 0, i32 2
  %73 = load double, ptr %72, align 8, !tbaa !19
  %74 = fsub double %70, %73
  %75 = getelementptr inbounds [3 x double], ptr %12, i64 0, i64 1
  store double %74, ptr %75, align 8, !tbaa !15
  %76 = load ptr, ptr %7, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct._node, ptr %76, i32 0, i32 3
  %78 = load double, ptr %77, align 8, !tbaa !20
  %79 = load ptr, ptr %6, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct._node, ptr %79, i32 0, i32 3
  %81 = load double, ptr %80, align 8, !tbaa !20
  %82 = fsub double %78, %81
  %83 = getelementptr inbounds [3 x double], ptr %12, i64 0, i64 2
  store double %82, ptr %83, align 16, !tbaa !15
  %84 = load ptr, ptr %5, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct._home, ptr %84, i32 0, i32 4
  %86 = load ptr, ptr %85, align 8, !tbaa !21
  %87 = getelementptr inbounds [3 x double], ptr %12, i64 0, i64 0
  %88 = getelementptr inbounds [3 x double], ptr %12, i64 0, i64 1
  %89 = getelementptr inbounds [3 x double], ptr %12, i64 0, i64 2
  call void @ZImage(ptr noundef %86, ptr noundef %87, ptr noundef %88, ptr noundef %89)
  %90 = getelementptr inbounds [3 x double], ptr %12, i64 0, i64 0
  call void @NormalizeVec(ptr noundef %90)
  %91 = load ptr, ptr %5, align 8, !tbaa !5
  %92 = getelementptr inbounds [3 x double], ptr %11, i64 0, i64 0
  %93 = getelementptr inbounds [3 x double], ptr %12, i64 0, i64 0
  %94 = getelementptr inbounds [3 x double], ptr %13, i64 0, i64 0
  call void @FindPreciseGlidePlane(ptr noundef %91, ptr noundef %92, ptr noundef %93, ptr noundef %94)
  %95 = getelementptr inbounds [3 x double], ptr %13, i64 0, i64 0
  %96 = load double, ptr %95, align 16, !tbaa !15
  %97 = getelementptr inbounds [3 x double], ptr %13, i64 0, i64 0
  %98 = load double, ptr %97, align 16, !tbaa !15
  %99 = getelementptr inbounds [3 x double], ptr %13, i64 0, i64 1
  %100 = load double, ptr %99, align 8, !tbaa !15
  %101 = getelementptr inbounds [3 x double], ptr %13, i64 0, i64 1
  %102 = load double, ptr %101, align 8, !tbaa !15
  %103 = fmul double %100, %102
  %104 = call double @llvm.fmuladd.f64(double %96, double %98, double %103)
  %105 = getelementptr inbounds [3 x double], ptr %13, i64 0, i64 2
  %106 = load double, ptr %105, align 16, !tbaa !15
  %107 = getelementptr inbounds [3 x double], ptr %13, i64 0, i64 2
  %108 = load double, ptr %107, align 16, !tbaa !15
  %109 = call double @llvm.fmuladd.f64(double %106, double %108, double %104)
  %110 = fcmp olt double %109, 1.000000e-03
  br i1 %110, label %111, label %119

111:                                              ; preds = %31
  %112 = load i32, ptr %8, align 4, !tbaa !9
  %113 = icmp ne i32 %112, 0
  br i1 %113, label %114, label %115

114:                                              ; preds = %111
  store i32 1, ptr %14, align 4
  br label %171

115:                                              ; preds = %111
  %116 = load ptr, ptr %5, align 8, !tbaa !5
  %117 = getelementptr inbounds [3 x double], ptr %11, i64 0, i64 0
  %118 = getelementptr inbounds [3 x double], ptr %13, i64 0, i64 0
  call void @PickScrewGlidePlane(ptr noundef %116, ptr noundef %117, ptr noundef %118)
  br label %119

119:                                              ; preds = %115, %31
  %120 = getelementptr inbounds [3 x double], ptr %13, i64 0, i64 0
  %121 = getelementptr inbounds [3 x double], ptr %13, i64 0, i64 1
  %122 = getelementptr inbounds [3 x double], ptr %13, i64 0, i64 2
  call void @Normalize(ptr noundef %120, ptr noundef %121, ptr noundef %122)
  %123 = getelementptr inbounds [3 x double], ptr %13, i64 0, i64 0
  %124 = load double, ptr %123, align 16, !tbaa !15
  %125 = load ptr, ptr %6, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct._node, ptr %125, i32 0, i32 28
  %127 = load ptr, ptr %126, align 8, !tbaa !26
  %128 = load i32, ptr %9, align 4, !tbaa !9
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds double, ptr %127, i64 %129
  store double %124, ptr %130, align 8, !tbaa !15
  %131 = getelementptr inbounds [3 x double], ptr %13, i64 0, i64 1
  %132 = load double, ptr %131, align 8, !tbaa !15
  %133 = load ptr, ptr %6, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct._node, ptr %133, i32 0, i32 29
  %135 = load ptr, ptr %134, align 8, !tbaa !27
  %136 = load i32, ptr %9, align 4, !tbaa !9
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds double, ptr %135, i64 %137
  store double %132, ptr %138, align 8, !tbaa !15
  %139 = getelementptr inbounds [3 x double], ptr %13, i64 0, i64 2
  %140 = load double, ptr %139, align 16, !tbaa !15
  %141 = load ptr, ptr %6, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct._node, ptr %141, i32 0, i32 30
  %143 = load ptr, ptr %142, align 8, !tbaa !28
  %144 = load i32, ptr %9, align 4, !tbaa !9
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds double, ptr %143, i64 %145
  store double %140, ptr %146, align 8, !tbaa !15
  %147 = getelementptr inbounds [3 x double], ptr %13, i64 0, i64 0
  %148 = load double, ptr %147, align 16, !tbaa !15
  %149 = load ptr, ptr %7, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct._node, ptr %149, i32 0, i32 28
  %151 = load ptr, ptr %150, align 8, !tbaa !26
  %152 = load i32, ptr %10, align 4, !tbaa !9
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds double, ptr %151, i64 %153
  store double %148, ptr %154, align 8, !tbaa !15
  %155 = getelementptr inbounds [3 x double], ptr %13, i64 0, i64 1
  %156 = load double, ptr %155, align 8, !tbaa !15
  %157 = load ptr, ptr %7, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct._node, ptr %157, i32 0, i32 29
  %159 = load ptr, ptr %158, align 8, !tbaa !27
  %160 = load i32, ptr %10, align 4, !tbaa !9
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds double, ptr %159, i64 %161
  store double %156, ptr %162, align 8, !tbaa !15
  %163 = getelementptr inbounds [3 x double], ptr %13, i64 0, i64 2
  %164 = load double, ptr %163, align 16, !tbaa !15
  %165 = load ptr, ptr %7, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct._node, ptr %165, i32 0, i32 30
  %167 = load ptr, ptr %166, align 8, !tbaa !28
  %168 = load i32, ptr %10, align 4, !tbaa !9
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds double, ptr %167, i64 %169
  store double %164, ptr %170, align 8, !tbaa !15
  store i32 1, ptr %14, align 4
  br label %171

171:                                              ; preds = %119, %114, %30, %24
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  ret void
}

declare void @FindPreciseGlidePlane(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

declare void @PickScrewGlidePlane(ptr noundef, ptr noundef, ptr noundef) #3

attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 200}
!12 = !{!"_node", !10, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !13, i64 56, !13, i64 64, !13, i64 72, !13, i64 80, !13, i64 88, !13, i64 96, !13, i64 104, !13, i64 112, !13, i64 120, !13, i64 128, !13, i64 136, !13, i64 144, !14, i64 152, !10, 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, !10, i64 272, !10, i64 276, !10, i64 280, !10, i64 284, !10, i64 288, !6, i64 296, !6, i64 304, !10, i64 312}
!13 = !{!"double", !7, i64 0}
!14 = !{!"_tag", !10, i64 0, !10, i64 4}
!15 = !{!13, !13, i64 0}
!16 = !{!12, !6, i64 208}
!17 = !{!12, !6, i64 216}
!18 = !{!12, !13, i64 8}
!19 = !{!12, !13, i64 16}
!20 = !{!12, !13, i64 24}
!21 = !{!22, !6, i64 16}
!22 = !{!"_home", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !10, i64 96, !10, i64 100, !6, i64 104, !10, i64 112, !10, i64 116, !6, i64 120, !10, i64 128, !10, i64 132, !10, i64 136, !6, i64 144, !10, i64 152, !10, i64 156, !6, i64 160, !6, i64 168, !6, i64 176, !13, i64 184, !13, i64 192, !13, i64 200, !13, i64 208, !13, i64 216, !13, i64 224, !10, i64 232, !10, i64 236, !10, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !10, i64 272, !6, i64 280, !10, i64 288, !6, i64 296, !6, i64 304, !6, i64 312, !10, i64 320, !10, i64 324, !6, i64 328, !10, i64 336, !6, i64 344, !6, i64 352, !6, i64 360, !10, i64 368, !10, i64 372, !10, i64 376, !6, i64 384, !6, i64 392, !10, i64 400, !10, i64 404, !6, i64 408, !6, i64 416, !6, i64 424, !10, i64 432, !10, i64 436, !10, i64 440, !7, i64 448, !7, i64 520, !23, i64 592, !10, i64 632, !10, i64 636, !10, i64 640, !10, i64 644, !10, i64 648, !10, i64 652, !10, i64 656, !24, i64 664}
!23 = !{!"", !10, i64 0, !10, i64 4, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!24 = !{!"timeval", !25, i64 0, !25, i64 8}
!25 = !{!"long", !7, i64 0}
!26 = !{!12, !6, i64 224}
!27 = !{!12, !6, i64 232}
!28 = !{!12, !6, i64 240}


; 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"

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #0

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @RecalcSegGlidePlane(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) local_unnamed_addr #1 {
  %5 = alloca i32, align 4
  %6 = alloca [3 x double], align 16
  %7 = alloca [3 x double], align 16
  %8 = alloca [3 x double], align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #4
  %9 = icmp eq ptr %1, null
  %10 = icmp eq ptr %2, null
  %or.cond = or i1 %9, %10
  %11 = icmp eq ptr %1, %2
  %or.cond33 = or i1 %11, %or.cond
  br i1 %or.cond33, label %85, label %12

12:                                               ; preds = %4
  %13 = call i32 @Connected(ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull %5)
  %.not = icmp eq i32 %13, 0
  br i1 %.not, label %85, label %14

14:                                               ; preds = %12
  %15 = call i32 @GetArmID(ptr noundef %0, ptr noundef nonnull %2, ptr noundef nonnull %1)
  %16 = getelementptr inbounds i8, ptr %1, i64 200
  %17 = load ptr, ptr %16, align 8, !tbaa !5
  %18 = load i32, ptr %5, align 4, !tbaa !13
  %19 = sext i32 %18 to i64
  %20 = getelementptr inbounds double, ptr %17, i64 %19
  %21 = load double, ptr %20, align 8, !tbaa !14
  store double %21, ptr %6, align 16, !tbaa !14
  %22 = getelementptr inbounds i8, ptr %1, i64 208
  %23 = load ptr, ptr %22, align 8, !tbaa !15
  %24 = getelementptr inbounds double, ptr %23, i64 %19
  %25 = load double, ptr %24, align 8, !tbaa !14
  %26 = getelementptr inbounds i8, ptr %6, i64 8
  store double %25, ptr %26, align 8, !tbaa !14
  %27 = getelementptr inbounds i8, ptr %1, i64 216
  %28 = load ptr, ptr %27, align 8, !tbaa !16
  %29 = getelementptr inbounds double, ptr %28, i64 %19
  %30 = load double, ptr %29, align 8, !tbaa !14
  %31 = getelementptr inbounds i8, ptr %6, i64 16
  store double %30, ptr %31, align 16, !tbaa !14
  %32 = getelementptr inbounds i8, ptr %2, i64 8
  %33 = getelementptr inbounds i8, ptr %1, i64 8
  %34 = getelementptr inbounds i8, ptr %7, i64 8
  %35 = load <2 x double>, ptr %32, align 8, !tbaa !14
  %36 = load <2 x double>, ptr %33, align 8, !tbaa !14
  %37 = fsub <2 x double> %35, %36
  store <2 x double> %37, ptr %7, align 16, !tbaa !14
  %38 = getelementptr inbounds i8, ptr %2, i64 24
  %39 = load double, ptr %38, align 8, !tbaa !17
  %40 = getelementptr inbounds i8, ptr %1, i64 24
  %41 = load double, ptr %40, align 8, !tbaa !17
  %42 = fsub double %39, %41
  %43 = getelementptr inbounds i8, ptr %7, i64 16
  store double %42, ptr %43, align 16, !tbaa !14
  %44 = getelementptr inbounds i8, ptr %0, i64 16
  %45 = load ptr, ptr %44, align 8, !tbaa !18
  call void @ZImage(ptr noundef %45, ptr noundef nonnull %7, ptr noundef nonnull %34, ptr noundef nonnull %43)
  call void @NormalizeVec(ptr noundef nonnull %7)
  call void @FindPreciseGlidePlane(ptr noundef %0, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %8) #4
  %46 = load double, ptr %8, align 16, !tbaa !14
  %47 = getelementptr inbounds i8, ptr %8, i64 8
  %48 = load double, ptr %47, align 8, !tbaa !14
  %49 = fmul double %48, %48
  %50 = call double @llvm.fmuladd.f64(double %46, double %46, double %49)
  %51 = getelementptr inbounds i8, ptr %8, i64 16
  %52 = load double, ptr %51, align 16, !tbaa !14
  %53 = call double @llvm.fmuladd.f64(double %52, double %52, double %50)
  %54 = fcmp olt double %53, 1.000000e-03
  br i1 %54, label %55, label %57

55:                                               ; preds = %14
  %.not32 = icmp eq i32 %3, 0
  br i1 %.not32, label %56, label %85

56:                                               ; preds = %55
  call void @PickScrewGlidePlane(ptr noundef nonnull %0, ptr noundef nonnull %6, ptr noundef nonnull %8) #4
  br label %57

57:                                               ; preds = %56, %14
  call void @Normalize(ptr noundef nonnull %8, ptr noundef nonnull %47, ptr noundef nonnull %51)
  %58 = load double, ptr %8, align 16, !tbaa !14
  %59 = getelementptr inbounds i8, ptr %1, i64 224
  %60 = load ptr, ptr %59, align 8, !tbaa !23
  %61 = load i32, ptr %5, align 4, !tbaa !13
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds double, ptr %60, i64 %62
  store double %58, ptr %63, align 8, !tbaa !14
  %64 = load double, ptr %47, align 8, !tbaa !14
  %65 = getelementptr inbounds i8, ptr %1, i64 232
  %66 = load ptr, ptr %65, align 8, !tbaa !24
  %67 = getelementptr inbounds double, ptr %66, i64 %62
  store double %64, ptr %67, align 8, !tbaa !14
  %68 = load double, ptr %51, align 16, !tbaa !14
  %69 = getelementptr inbounds i8, ptr %1, i64 240
  %70 = load ptr, ptr %69, align 8, !tbaa !25
  %71 = getelementptr inbounds double, ptr %70, i64 %62
  store double %68, ptr %71, align 8, !tbaa !14
  %72 = load double, ptr %8, align 16, !tbaa !14
  %73 = getelementptr inbounds i8, ptr %2, i64 224
  %74 = load ptr, ptr %73, align 8, !tbaa !23
  %75 = sext i32 %15 to i64
  %76 = getelementptr inbounds double, ptr %74, i64 %75
  store double %72, ptr %76, align 8, !tbaa !14
  %77 = load double, ptr %47, align 8, !tbaa !14
  %78 = getelementptr inbounds i8, ptr %2, i64 232
  %79 = load ptr, ptr %78, align 8, !tbaa !24
  %80 = getelementptr inbounds double, ptr %79, i64 %75
  store double %77, ptr %80, align 8, !tbaa !14
  %81 = load double, ptr %51, align 16, !tbaa !14
  %82 = getelementptr inbounds i8, ptr %2, i64 240
  %83 = load ptr, ptr %82, align 8, !tbaa !25
  %84 = getelementptr inbounds double, ptr %83, i64 %75
  store double %81, ptr %84, align 8, !tbaa !14
  br label %85

85:                                               ; preds = %55, %12, %4, %57
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #4
  ret void
}

declare void @FindPreciseGlidePlane(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @PickScrewGlidePlane(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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, !12, i64 200}
!6 = !{!"_node", !7, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !11, i64 152, !7, 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, !12, i64 232, !12, i64 240, !12, i64 248, !12, i64 256, !12, i64 264, !7, i64 272, !7, i64 276, !7, i64 280, !7, i64 284, !7, i64 288, !12, i64 296, !12, i64 304, !7, i64 312}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!"_tag", !7, i64 0, !7, i64 4}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!10, !10, i64 0}
!15 = !{!6, !12, i64 208}
!16 = !{!6, !12, i64 216}
!17 = !{!6, !10, i64 24}
!18 = !{!19, !12, i64 16}
!19 = !{!"_home", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !7, i64 96, !7, i64 100, !12, i64 104, !7, i64 112, !7, i64 116, !12, i64 120, !7, i64 128, !7, i64 132, !7, i64 136, !12, i64 144, !7, i64 152, !7, i64 156, !12, i64 160, !12, i64 168, !12, i64 176, !10, i64 184, !10, i64 192, !10, i64 200, !10, i64 208, !10, i64 216, !10, i64 224, !7, i64 232, !7, i64 236, !7, i64 240, !12, i64 248, !12, i64 256, !12, i64 264, !7, i64 272, !12, i64 280, !7, i64 288, !12, i64 296, !12, i64 304, !12, i64 312, !7, i64 320, !7, i64 324, !12, i64 328, !7, i64 336, !12, i64 344, !12, i64 352, !12, i64 360, !7, i64 368, !7, i64 372, !7, i64 376, !12, i64 384, !12, i64 392, !7, i64 400, !7, i64 404, !12, i64 408, !12, i64 416, !12, i64 424, !7, i64 432, !7, i64 436, !7, i64 440, !8, i64 448, !8, i64 520, !20, i64 592, !7, i64 632, !7, i64 636, !7, i64 640, !7, i64 644, !7, i64 648, !7, i64 652, !7, i64 656, !21, i64 664}
!20 = !{!"", !7, i64 0, !7, i64 4, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32}
!21 = !{!"timeval", !22, i64 0, !22, i64 8}
!22 = !{!"long", !8, i64 0}
!23 = !{!6, !12, i64 224}
!24 = !{!6, !12, i64 232}
!25 = !{!6, !12, i64 240}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass