; LLVM IR from niessner/Matterport :: code/gaps/pkgs/RGBD (RGBDImage)

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

@RN_EPSILON = external global double, align 8

; 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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(72) ptr @_ZNK9RGBDImage10IntrinsicsEv(ptr noundef nonnull align 8 dereferenceable(488)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZNK8R3MatrixixEi(ptr noundef nonnull align 8 dereferenceable(72), i32 noundef) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNK9RGBDImage7NPixelsEi(ptr noundef nonnull align 8 dereferenceable(488), i32 noundef) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z8RNIsZerodd(double noundef, double noundef) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZNK9RGBDImage10PixelDepthEii(ptr noundef nonnull align 8 dereferenceable(488), i32 noundef, i32 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZNK9RGBDImage22TransformCameraToImageERK7R3PointR7R2Point(ptr noundef nonnull align 8 dereferenceable(488) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(16) %2) unnamed_addr #3 align 2 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca double, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca double, align 8
  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
  %14 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %15 = load ptr, ptr %6, align 8, !tbaa !5
  %16 = call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %15, i32 noundef 2)
  %17 = fneg double %16
  store double %17, ptr %8, align 8, !tbaa !9
  %18 = load double, ptr %8, align 8, !tbaa !9
  %19 = load double, ptr @RN_EPSILON, align 8, !tbaa !9
  %20 = call noundef i32 @_Z8RNIsZerodd(double noundef %18, double noundef %19)
  %21 = icmp ne i32 %20, 0
  br i1 %21, label %25, label %22

22:                                               ; preds = %3
  %23 = load double, ptr %8, align 8, !tbaa !9
  %24 = fcmp oeq double %23, -3.210000e+02
  br i1 %24, label %25, label %26

25:                                               ; preds = %22, %3
  store i32 0, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %154

26:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %27 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNK9RGBDImage10IntrinsicsEv(ptr noundef nonnull align 8 dereferenceable(488) %14)
  store ptr %27, ptr %10, align 8, !tbaa !5
  %28 = load ptr, ptr %10, align 8, !tbaa !5
  %29 = call noundef ptr @_ZNK8R3MatrixixEi(ptr noundef nonnull align 8 dereferenceable(72) %28, i32 noundef 0)
  %30 = getelementptr inbounds double, ptr %29, i64 0
  %31 = load double, ptr %30, align 8, !tbaa !9
  %32 = load double, ptr @RN_EPSILON, align 8, !tbaa !9
  %33 = call noundef i32 @_Z8RNIsZerodd(double noundef %31, double noundef %32)
  %34 = icmp ne i32 %33, 0
  br i1 %34, label %35, label %36

35:                                               ; preds = %26
  store i32 0, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %153

36:                                               ; preds = %26
  %37 = load ptr, ptr %10, align 8, !tbaa !5
  %38 = call noundef ptr @_ZNK8R3MatrixixEi(ptr noundef nonnull align 8 dereferenceable(72) %37, i32 noundef 1)
  %39 = getelementptr inbounds double, ptr %38, i64 1
  %40 = load double, ptr %39, align 8, !tbaa !9
  %41 = load double, ptr @RN_EPSILON, align 8, !tbaa !9
  %42 = call noundef i32 @_Z8RNIsZerodd(double noundef %40, double noundef %41)
  %43 = icmp ne i32 %42, 0
  br i1 %43, label %44, label %45

44:                                               ; preds = %36
  store i32 0, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %153

45:                                               ; preds = %36
  %46 = load ptr, ptr %10, align 8, !tbaa !5
  %47 = call noundef ptr @_ZNK8R3MatrixixEi(ptr noundef nonnull align 8 dereferenceable(72) %46, i32 noundef 0)
  %48 = getelementptr inbounds double, ptr %47, i64 2
  %49 = load double, ptr %48, align 8, !tbaa !9
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %50, i32 noundef 0)
  %52 = load ptr, ptr %10, align 8, !tbaa !5
  %53 = call noundef ptr @_ZNK8R3MatrixixEi(ptr noundef nonnull align 8 dereferenceable(72) %52, i32 noundef 0)
  %54 = getelementptr inbounds double, ptr %53, i64 0
  %55 = load double, ptr %54, align 8, !tbaa !9
  %56 = fmul double %51, %55
  %57 = load double, ptr %8, align 8, !tbaa !9
  %58 = fdiv double %56, %57
  %59 = fadd double %49, %58
  %60 = load ptr, ptr %7, align 8, !tbaa !5
  %61 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R2PointixEi(ptr noundef nonnull align 8 dereferenceable(16) %60, i32 noundef 0)
  store double %59, ptr %61, align 8, !tbaa !9
  %62 = load ptr, ptr %10, align 8, !tbaa !5
  %63 = call noundef ptr @_ZNK8R3MatrixixEi(ptr noundef nonnull align 8 dereferenceable(72) %62, i32 noundef 1)
  %64 = getelementptr inbounds double, ptr %63, i64 2
  %65 = load double, ptr %64, align 8, !tbaa !9
  %66 = load ptr, ptr %6, align 8, !tbaa !5
  %67 = call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %66, i32 noundef 1)
  %68 = load ptr, ptr %10, align 8, !tbaa !5
  %69 = call noundef ptr @_ZNK8R3MatrixixEi(ptr noundef nonnull align 8 dereferenceable(72) %68, i32 noundef 1)
  %70 = getelementptr inbounds double, ptr %69, i64 1
  %71 = load double, ptr %70, align 8, !tbaa !9
  %72 = fmul double %67, %71
  %73 = load double, ptr %8, align 8, !tbaa !9
  %74 = fdiv double %72, %73
  %75 = fadd double %65, %74
  %76 = load ptr, ptr %7, align 8, !tbaa !5
  %77 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R2PointixEi(ptr noundef nonnull align 8 dereferenceable(16) %76, i32 noundef 1)
  store double %75, ptr %77, align 8, !tbaa !9
  %78 = load ptr, ptr %7, align 8, !tbaa !5
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R2PointixEi(ptr noundef nonnull align 8 dereferenceable(16) %78, i32 noundef 0)
  %80 = load double, ptr %79, align 8, !tbaa !9
  %81 = fcmp olt double %80, 0.000000e+00
  br i1 %81, label %89, label %82

82:                                               ; preds = %45
  %83 = load ptr, ptr %7, align 8, !tbaa !5
  %84 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R2PointixEi(ptr noundef nonnull align 8 dereferenceable(16) %83, i32 noundef 0)
  %85 = load double, ptr %84, align 8, !tbaa !9
  %86 = call noundef i32 @_ZNK9RGBDImage7NPixelsEi(ptr noundef nonnull align 8 dereferenceable(488) %14, i32 noundef 0)
  %87 = sitofp i32 %86 to double
  %88 = fcmp oge double %85, %87
  br i1 %88, label %89, label %90

89:                                               ; preds = %82, %45
  store i32 0, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %153

90:                                               ; preds = %82
  %91 = load ptr, ptr %7, align 8, !tbaa !5
  %92 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R2PointixEi(ptr noundef nonnull align 8 dereferenceable(16) %91, i32 noundef 1)
  %93 = load double, ptr %92, align 8, !tbaa !9
  %94 = fcmp olt double %93, 0.000000e+00
  br i1 %94, label %102, label %95

95:                                               ; preds = %90
  %96 = load ptr, ptr %7, align 8, !tbaa !5
  %97 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R2PointixEi(ptr noundef nonnull align 8 dereferenceable(16) %96, i32 noundef 1)
  %98 = load double, ptr %97, align 8, !tbaa !9
  %99 = call noundef i32 @_ZNK9RGBDImage7NPixelsEi(ptr noundef nonnull align 8 dereferenceable(488) %14, i32 noundef 1)
  %100 = sitofp i32 %99 to double
  %101 = fcmp oge double %98, %100
  br i1 %101, label %102, label %103

102:                                              ; preds = %95, %90
  store i32 0, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %153

103:                                              ; preds = %95
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %104 = load ptr, ptr %7, align 8, !tbaa !5
  %105 = call noundef double @_ZNK7R2Point1XEv(ptr noundef nonnull align 8 dereferenceable(16) %104)
  %106 = fadd double %105, 5.000000e-01
  %107 = fptosi double %106 to i32
  store i32 %107, ptr %11, align 4, !tbaa !11
  %108 = load i32, ptr %11, align 4, !tbaa !11
  %109 = icmp slt i32 %108, 0
  br i1 %109, label %114, label %110

110:                                              ; preds = %103
  %111 = load i32, ptr %11, align 4, !tbaa !11
  %112 = call noundef i32 @_ZNK9RGBDImage7NPixelsEi(ptr noundef nonnull align 8 dereferenceable(488) %14, i32 noundef 0)
  %113 = icmp sge i32 %111, %112
  br i1 %113, label %114, label %115

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

115:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %116 = load ptr, ptr %7, align 8, !tbaa !5
  %117 = call noundef double @_ZNK7R2Point1YEv(ptr noundef nonnull align 8 dereferenceable(16) %116)
  %118 = fadd double %117, 5.000000e-01
  %119 = fptosi double %118 to i32
  store i32 %119, ptr %12, align 4, !tbaa !11
  %120 = load i32, ptr %12, align 4, !tbaa !11
  %121 = icmp slt i32 %120, 0
  br i1 %121, label %126, label %122

122:                                              ; preds = %115
  %123 = load i32, ptr %12, align 4, !tbaa !11
  %124 = call noundef i32 @_ZNK9RGBDImage7NPixelsEi(ptr noundef nonnull align 8 dereferenceable(488) %14, i32 noundef 1)
  %125 = icmp sge i32 %123, %124
  br i1 %125, label %126, label %127

126:                                              ; preds = %122, %115
  store i32 0, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %151

127:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %128 = load i32, ptr %11, align 4, !tbaa !11
  %129 = load i32, ptr %12, align 4, !tbaa !11
  %130 = call noundef double @_ZNK9RGBDImage10PixelDepthEii(ptr noundef nonnull align 8 dereferenceable(488) %14, i32 noundef %128, i32 noundef %129)
  store double %130, ptr %13, align 8, !tbaa !9
  %131 = load double, ptr %13, align 8, !tbaa !9
  %132 = fcmp oeq double %131, -3.210000e+02
  br i1 %132, label %136, label %133

133:                                              ; preds = %127
  %134 = load double, ptr %13, align 8, !tbaa !9
  %135 = fcmp oeq double %134, 0.000000e+00
  br i1 %135, label %136, label %137

136:                                              ; preds = %133, %127
  store i32 0, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %150

137:                                              ; preds = %133
  %138 = load double, ptr %13, align 8, !tbaa !9
  %139 = load double, ptr %8, align 8, !tbaa !9
  %140 = fmul double 9.000000e-01, %139
  %141 = fcmp olt double %138, %140
  br i1 %141, label %142, label %143

142:                                              ; preds = %137
  store i32 0, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %150

143:                                              ; preds = %137
  %144 = load double, ptr %13, align 8, !tbaa !9
  %145 = load double, ptr %8, align 8, !tbaa !9
  %146 = fmul double 1.100000e+00, %145
  %147 = fcmp ogt double %144, %146
  br i1 %147, label %148, label %149

148:                                              ; preds = %143
  store i32 0, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %150

149:                                              ; preds = %143
  store i32 1, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %150

150:                                              ; preds = %149, %148, %142, %136
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  br label %151

151:                                              ; preds = %150, %126
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %152

152:                                              ; preds = %151, %114
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %153

153:                                              ; preds = %152, %102, %89, %44, %35
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  br label %154

154:                                              ; preds = %153, %25
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  %155 = load i32, ptr %4, align 4
  ret i32 %155
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R2PointixEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK7R2Point1XEv(ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK7R2Point1YEv(ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress 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 = { inlinehint mustprogress 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 = { mustprogress 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 #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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, 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"

@RN_EPSILON = external local_unnamed_addr global double, align 8

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(72) ptr @_ZNK9RGBDImage10IntrinsicsEv(ptr noundef nonnull align 8 dereferenceable(488)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZNK8R3MatrixixEi(ptr noundef nonnull align 8 dereferenceable(72), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNK9RGBDImage7NPixelsEi(ptr noundef nonnull align 8 dereferenceable(488), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z8RNIsZerodd(double noundef, double noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZNK9RGBDImage10PixelDepthEii(ptr noundef nonnull align 8 dereferenceable(488), i32 noundef, i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 0, 2) i32 @_ZNK9RGBDImage22TransformCameraToImageERK7R3PointR7R2Point(ptr noundef nonnull align 8 dereferenceable(488) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(16) %2) unnamed_addr #2 align 2 {
  %4 = tail call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 2)
  %5 = fneg double %4
  %6 = load double, ptr @RN_EPSILON, align 8, !tbaa !5
  %7 = tail call noundef i32 @_Z8RNIsZerodd(double noundef %5, double noundef %6)
  %8 = icmp ne i32 %7, 0
  %9 = fcmp oeq double %4, 3.210000e+02
  %or.cond = or i1 %9, %8
  br i1 %or.cond, label %86, label %10

10:                                               ; preds = %3
  %11 = tail call noundef nonnull align 8 dereferenceable(72) ptr @_ZNK9RGBDImage10IntrinsicsEv(ptr noundef nonnull align 8 dereferenceable(488) %0)
  %12 = tail call noundef ptr @_ZNK8R3MatrixixEi(ptr noundef nonnull align 8 dereferenceable(72) %11, i32 noundef 0)
  %13 = load double, ptr %12, align 8, !tbaa !5
  %14 = load double, ptr @RN_EPSILON, align 8, !tbaa !5
  %15 = tail call noundef i32 @_Z8RNIsZerodd(double noundef %13, double noundef %14)
  %.not = icmp eq i32 %15, 0
  br i1 %.not, label %16, label %86

16:                                               ; preds = %10
  %17 = tail call noundef ptr @_ZNK8R3MatrixixEi(ptr noundef nonnull align 8 dereferenceable(72) %11, i32 noundef 1)
  %18 = getelementptr inbounds i8, ptr %17, i64 8
  %19 = load double, ptr %18, align 8, !tbaa !5
  %20 = load double, ptr @RN_EPSILON, align 8, !tbaa !5
  %21 = tail call noundef i32 @_Z8RNIsZerodd(double noundef %19, double noundef %20)
  %.not41 = icmp eq i32 %21, 0
  br i1 %.not41, label %22, label %86

22:                                               ; preds = %16
  %23 = tail call noundef ptr @_ZNK8R3MatrixixEi(ptr noundef nonnull align 8 dereferenceable(72) %11, i32 noundef 0)
  %24 = getelementptr inbounds i8, ptr %23, i64 16
  %25 = load double, ptr %24, align 8, !tbaa !5
  %26 = tail call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 0)
  %27 = tail call noundef ptr @_ZNK8R3MatrixixEi(ptr noundef nonnull align 8 dereferenceable(72) %11, i32 noundef 0)
  %28 = load double, ptr %27, align 8, !tbaa !5
  %29 = fmul double %26, %28
  %30 = fdiv double %29, %4
  %31 = fsub double %25, %30
  %32 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R2PointixEi(ptr noundef nonnull align 8 dereferenceable(16) %2, i32 noundef 0)
  store double %31, ptr %32, align 8, !tbaa !5
  %33 = tail call noundef ptr @_ZNK8R3MatrixixEi(ptr noundef nonnull align 8 dereferenceable(72) %11, i32 noundef 1)
  %34 = getelementptr inbounds i8, ptr %33, i64 16
  %35 = load double, ptr %34, align 8, !tbaa !5
  %36 = tail call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 1)
  %37 = tail call noundef ptr @_ZNK8R3MatrixixEi(ptr noundef nonnull align 8 dereferenceable(72) %11, i32 noundef 1)
  %38 = getelementptr inbounds i8, ptr %37, i64 8
  %39 = load double, ptr %38, align 8, !tbaa !5
  %40 = fmul double %36, %39
  %41 = fdiv double %40, %4
  %42 = fsub double %35, %41
  %43 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R2PointixEi(ptr noundef nonnull align 8 dereferenceable(16) %2, i32 noundef 1)
  store double %42, ptr %43, align 8, !tbaa !5
  %44 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R2PointixEi(ptr noundef nonnull align 8 dereferenceable(16) %2, i32 noundef 0)
  %45 = load double, ptr %44, align 8, !tbaa !5
  %46 = fcmp olt double %45, 0.000000e+00
  br i1 %46, label %86, label %47

47:                                               ; preds = %22
  %48 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R2PointixEi(ptr noundef nonnull align 8 dereferenceable(16) %2, i32 noundef 0)
  %49 = load double, ptr %48, align 8, !tbaa !5
  %50 = tail call noundef i32 @_ZNK9RGBDImage7NPixelsEi(ptr noundef nonnull align 8 dereferenceable(488) %0, i32 noundef 0)
  %51 = sitofp i32 %50 to double
  %52 = fcmp ult double %49, %51
  br i1 %52, label %53, label %86

53:                                               ; preds = %47
  %54 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R2PointixEi(ptr noundef nonnull align 8 dereferenceable(16) %2, i32 noundef 1)
  %55 = load double, ptr %54, align 8, !tbaa !5
  %56 = fcmp olt double %55, 0.000000e+00
  br i1 %56, label %86, label %57

57:                                               ; preds = %53
  %58 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R2PointixEi(ptr noundef nonnull align 8 dereferenceable(16) %2, i32 noundef 1)
  %59 = load double, ptr %58, align 8, !tbaa !5
  %60 = tail call noundef i32 @_ZNK9RGBDImage7NPixelsEi(ptr noundef nonnull align 8 dereferenceable(488) %0, i32 noundef 1)
  %61 = sitofp i32 %60 to double
  %62 = fcmp ult double %59, %61
  br i1 %62, label %63, label %86

63:                                               ; preds = %57
  %64 = tail call noundef double @_ZNK7R2Point1XEv(ptr noundef nonnull align 8 dereferenceable(16) %2)
  %65 = fadd double %64, 5.000000e-01
  %66 = fptosi double %65 to i32
  %67 = icmp slt i32 %66, 0
  br i1 %67, label %86, label %68

68:                                               ; preds = %63
  %69 = tail call noundef i32 @_ZNK9RGBDImage7NPixelsEi(ptr noundef nonnull align 8 dereferenceable(488) %0, i32 noundef 0)
  %.not42 = icmp sgt i32 %69, %66
  br i1 %.not42, label %70, label %86

70:                                               ; preds = %68
  %71 = tail call noundef double @_ZNK7R2Point1YEv(ptr noundef nonnull align 8 dereferenceable(16) %2)
  %72 = fadd double %71, 5.000000e-01
  %73 = fptosi double %72 to i32
  %74 = icmp slt i32 %73, 0
  br i1 %74, label %86, label %75

75:                                               ; preds = %70
  %76 = tail call noundef i32 @_ZNK9RGBDImage7NPixelsEi(ptr noundef nonnull align 8 dereferenceable(488) %0, i32 noundef 1)
  %.not43 = icmp sgt i32 %76, %73
  br i1 %.not43, label %77, label %86

77:                                               ; preds = %75
  %78 = tail call noundef double @_ZNK9RGBDImage10PixelDepthEii(ptr noundef nonnull align 8 dereferenceable(488) %0, i32 noundef %66, i32 noundef %73)
  %79 = fcmp oeq double %78, -3.210000e+02
  %80 = fcmp oeq double %78, 0.000000e+00
  %or.cond3 = or i1 %79, %80
  %81 = fmul double %4, -9.000000e-01
  %82 = fcmp olt double %78, %81
  %or.cond45 = or i1 %82, %or.cond3
  br i1 %or.cond45, label %86, label %83

83:                                               ; preds = %77
  %84 = fmul double %4, -1.100000e+00
  %85 = fcmp ule double %78, %84
  %. = zext i1 %85 to i32
  br label %86

86:                                               ; preds = %10, %16, %47, %22, %57, %53, %75, %70, %83, %77, %63, %68, %3
  %.4 = phi i32 [ 0, %3 ], [ 0, %10 ], [ 0, %16 ], [ 0, %47 ], [ 0, %22 ], [ 0, %57 ], [ 0, %53 ], [ 0, %68 ], [ 0, %63 ], [ 0, %75 ], [ 0, %70 ], [ 0, %77 ], [ %., %83 ]
  ret i32 %.4
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R2PointixEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK7R2Point1XEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK7R2Point1YEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

attributes #0 = { inlinehint mustprogress 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 = { inlinehint mustprogress 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 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" }

!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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass