; LLVM IR from niessner/Matterport :: code/gaps/apps/mpview/mp.ll (ZN7MPHouseC2EPKcS1_)

; 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.MPHouse = type { %class.RNArray.0, %class.RNArray.1, %class.RNArray.2, %class.RNArray.3, %class.RNArray.4, %class.RNArray.5, %class.RNArray.6, %class.RNArray.7, %class.RNArray.8, %class.RNArray.9, %class.RGBDConfiguration, ptr, ptr, %class.R3Box, ptr, ptr }
%class.RNArray.0 = type { %class.RNVArray }
%class.RNVArray = type { ptr, i32, i32 }
%class.RNArray.1 = type { %class.RNVArray }
%class.RNArray.2 = type { %class.RNVArray }
%class.RNArray.3 = type { %class.RNVArray }
%class.RNArray.4 = type { %class.RNVArray }
%class.RNArray.5 = type { %class.RNVArray }
%class.RNArray.6 = type { %class.RNVArray }
%class.RNArray.7 = type { %class.RNVArray }
%class.RNArray.8 = type { %class.RNVArray }
%class.RNArray.9 = type { %class.RNVArray }
%class.RGBDConfiguration = type { ptr, %class.RNArray.10, %class.RNArray.11, ptr, ptr, ptr, ptr, %class.R3Box }
%class.RNArray.10 = type { %class.RNVArray }
%class.RNArray.11 = type { %class.RNVArray }
%class.R3Box = type { %class.R3Solid, %class.R3Point, %class.R3Point }
%class.R3Solid = type { %class.R3Shape }
%class.R3Shape = type { ptr }
%class.R3Point = type { [3 x double] }

@.str.1 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [25 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7RNArrayIP7MPImageEC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0 align 2

declare void @_ZN5R3BoxC1Edddddd(ptr noundef nonnull align 8 dereferenceable(56), double noundef, double noundef, double noundef, double noundef, double noundef, double noundef) unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7RNArrayIP9MPSegmentEC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0 align 2

; Function Attrs: nounwind
declare void @_ZN7R3SolidD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7RNArrayIP8MPObjectEC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7RNArrayIP8MPVertexEC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7RNArrayIP10MPPanoramaEC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7RNArrayIP9MPSurfaceEC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7RNArrayIP8MPPortalEC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7RNArrayIP8MPRegionEC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7MPHouseC2EPKcS1_(ptr noundef nonnull align 8 dereferenceable(376) %0, ptr noundef %1, ptr noundef %2) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  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
  %9 = load ptr, ptr %4, align 8
  %10 = getelementptr inbounds %struct.MPHouse, ptr %9, i32 0, i32 0
  call void @_ZN7RNArrayIP7MPImageEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10)
  %11 = getelementptr inbounds %struct.MPHouse, ptr %9, i32 0, i32 1
  invoke void @_ZN7RNArrayIP10MPPanoramaEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %12 unwind label %59

12:                                               ; preds = %3
  %13 = getelementptr inbounds %struct.MPHouse, ptr %9, i32 0, i32 2
  invoke void @_ZN7RNArrayIP10MPCategoryEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %14 unwind label %63

14:                                               ; preds = %12
  %15 = getelementptr inbounds %struct.MPHouse, ptr %9, i32 0, i32 3
  invoke void @_ZN7RNArrayIP9MPSegmentEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15)
          to label %16 unwind label %67

16:                                               ; preds = %14
  %17 = getelementptr inbounds %struct.MPHouse, ptr %9, i32 0, i32 4
  invoke void @_ZN7RNArrayIP8MPObjectEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17)
          to label %18 unwind label %71

18:                                               ; preds = %16
  %19 = getelementptr inbounds %struct.MPHouse, ptr %9, i32 0, i32 5
  invoke void @_ZN7RNArrayIP8MPVertexEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19)
          to label %20 unwind label %75

20:                                               ; preds = %18
  %21 = getelementptr inbounds %struct.MPHouse, ptr %9, i32 0, i32 6
  invoke void @_ZN7RNArrayIP9MPSurfaceEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21)
          to label %22 unwind label %79

22:                                               ; preds = %20
  %23 = getelementptr inbounds %struct.MPHouse, ptr %9, i32 0, i32 7
  invoke void @_ZN7RNArrayIP8MPRegionEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23)
          to label %24 unwind label %83

24:                                               ; preds = %22
  %25 = getelementptr inbounds %struct.MPHouse, ptr %9, i32 0, i32 8
  invoke void @_ZN7RNArrayIP8MPPortalEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %25)
          to label %26 unwind label %87

26:                                               ; preds = %24
  %27 = getelementptr inbounds %struct.MPHouse, ptr %9, i32 0, i32 9
  invoke void @_ZN7RNArrayIP7MPLevelEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %27)
          to label %28 unwind label %91

28:                                               ; preds = %26
  %29 = getelementptr inbounds %struct.MPHouse, ptr %9, i32 0, i32 10
  invoke void @_ZN17RGBDConfigurationC1Ev(ptr noundef nonnull align 8 dereferenceable(128) %29)
          to label %30 unwind label %95

30:                                               ; preds = %28
  %31 = getelementptr inbounds %struct.MPHouse, ptr %9, i32 0, i32 11
  store ptr null, ptr %31, align 8, !tbaa !9
  %32 = getelementptr inbounds %struct.MPHouse, ptr %9, i32 0, i32 12
  store ptr null, ptr %32, align 8, !tbaa !30
  %33 = getelementptr inbounds %struct.MPHouse, ptr %9, i32 0, i32 13
  invoke void @_ZN5R3BoxC1Edddddd(ptr noundef nonnull align 8 dereferenceable(56) %33, double noundef 0x47EFFFFFE0000000, double noundef 0x47EFFFFFE0000000, double noundef 0x47EFFFFFE0000000, double noundef 0xC7EFFFFFE0000000, double noundef 0xC7EFFFFFE0000000, double noundef 0xC7EFFFFFE0000000)
          to label %34 unwind label %99

34:                                               ; preds = %30
  %35 = getelementptr inbounds %struct.MPHouse, ptr %9, i32 0, i32 14
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = icmp ne ptr %36, null
  br i1 %37, label %38, label %41

38:                                               ; preds = %34
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = call noalias ptr @strdup(ptr noundef %39) #3
  br label %42

41:                                               ; preds = %34
  br label %42

42:                                               ; preds = %41, %38
  %43 = phi ptr [ %40, %38 ], [ null, %41 ]
  store ptr %43, ptr %35, align 8, !tbaa !31
  %44 = getelementptr inbounds %struct.MPHouse, ptr %9, i32 0, i32 15
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = icmp ne ptr %45, null
  br i1 %46, label %47, label %50

47:                                               ; preds = %42
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = call noalias ptr @strdup(ptr noundef %48) #3
  br label %51

50:                                               ; preds = %42
  br label %51

51:                                               ; preds = %50, %47
  %52 = phi ptr [ %49, %47 ], [ null, %50 ]
  store ptr %52, ptr %44, align 8, !tbaa !32
  %53 = getelementptr inbounds %struct.MPHouse, ptr %9, i32 0, i32 10
  invoke void @_ZN17RGBDConfiguration16SetDatasetFormatEPKc(ptr noundef nonnull align 8 dereferenceable(128) %53, ptr noundef @.str.1)
          to label %54 unwind label %103

54:                                               ; preds = %51
  %55 = getelementptr inbounds %struct.MPHouse, ptr %9, i32 0, i32 10
  invoke void @_ZN17RGBDConfiguration17SetDepthDirectoryEPKc(ptr noundef nonnull align 8 dereferenceable(128) %55, ptr noundef @.str.2)
          to label %56 unwind label %103

56:                                               ; preds = %54
  %57 = getelementptr inbounds %struct.MPHouse, ptr %9, i32 0, i32 10
  invoke void @_ZN17RGBDConfiguration17SetColorDirectoryEPKc(ptr noundef nonnull align 8 dereferenceable(128) %57, ptr noundef @.str.3)
          to label %58 unwind label %103

58:                                               ; preds = %56
  ret void

59:                                               ; preds = %3
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %7, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %8, align 4
  br label %117

63:                                               ; preds = %12
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %7, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %8, align 4
  br label %116

67:                                               ; preds = %14
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %7, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %8, align 4
  br label %115

71:                                               ; preds = %16
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %7, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %8, align 4
  br label %114

75:                                               ; preds = %18
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %7, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %8, align 4
  br label %113

79:                                               ; preds = %20
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %7, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %8, align 4
  br label %112

83:                                               ; preds = %22
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %7, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %8, align 4
  br label %111

87:                                               ; preds = %24
  %88 = landingpad { ptr, i32 }
          cleanup
  %89 = extractvalue { ptr, i32 } %88, 0
  store ptr %89, ptr %7, align 8
  %90 = extractvalue { ptr, i32 } %88, 1
  store i32 %90, ptr %8, align 4
  br label %110

91:                                               ; preds = %26
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %7, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %8, align 4
  br label %109

95:                                               ; preds = %28
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %7, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %8, align 4
  br label %108

99:                                               ; preds = %30
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %7, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %8, align 4
  br label %107

103:                                              ; preds = %56, %54, %51
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %7, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %8, align 4
  call void @_ZN7R3SolidD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %33) #3
  br label %107

107:                                              ; preds = %103, %99
  call void @_ZN17RGBDConfigurationD1Ev(ptr noundef nonnull align 8 dereferenceable(128) %29) #3
  br label %108

108:                                              ; preds = %107, %95
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %27) #3
  br label %109

109:                                              ; preds = %108, %91
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %25) #3
  br label %110

110:                                              ; preds = %109, %87
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #3
  br label %111

111:                                              ; preds = %110, %83
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #3
  br label %112

112:                                              ; preds = %111, %79
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #3
  br label %113

113:                                              ; preds = %112, %75
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #3
  br label %114

114:                                              ; preds = %113, %71
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #3
  br label %115

115:                                              ; preds = %114, %67
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #3
  br label %116

116:                                              ; preds = %115, %63
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #3
  br label %117

117:                                              ; preds = %116, %59
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #3
  br label %118

118:                                              ; preds = %117
  %119 = load ptr, ptr %7, align 8
  %120 = load i32, ptr %8, align 4
  %121 = insertvalue { ptr, i32 } poison, ptr %119, 0
  %122 = insertvalue { ptr, i32 } %121, i32 %120, 1
  resume { ptr, i32 } %122
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7RNArrayIP10MPCategoryEC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7RNArrayIP7MPLevelEC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0 align 2

declare void @_ZN17RGBDConfigurationC1Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #1

; Function Attrs: nounwind
declare noalias ptr @strdup(ptr noundef) #2

declare void @_ZN17RGBDConfiguration16SetDatasetFormatEPKc(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef) #1

declare void @_ZN17RGBDConfiguration17SetDepthDirectoryEPKc(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef) #1

declare void @_ZN17RGBDConfiguration17SetColorDirectoryEPKc(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef) #1

; Function Attrs: nounwind
declare void @_ZN17RGBDConfigurationD1Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #2

; Function Attrs: nounwind
declare void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2

attributes #0 = { 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 #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 "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++ TBAA"}
!9 = !{!10, !6, i64 288}
!10 = !{!"_ZTS7MPHouse", !11, i64 0, !14, i64 16, !15, i64 32, !16, i64 48, !17, i64 64, !18, i64 80, !19, i64 96, !20, i64 112, !21, i64 128, !22, i64 144, !23, i64 160, !6, i64 288, !6, i64 296, !26, i64 304, !6, i64 360, !6, i64 368}
!11 = !{!"_ZTS7RNArrayIP7MPImageE", !12, i64 0}
!12 = !{!"_ZTS8RNVArray", !6, i64 0, !13, i64 8, !13, i64 12}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_ZTS7RNArrayIP10MPPanoramaE", !12, i64 0}
!15 = !{!"_ZTS7RNArrayIP10MPCategoryE", !12, i64 0}
!16 = !{!"_ZTS7RNArrayIP9MPSegmentE", !12, i64 0}
!17 = !{!"_ZTS7RNArrayIP8MPObjectE", !12, i64 0}
!18 = !{!"_ZTS7RNArrayIP8MPVertexE", !12, i64 0}
!19 = !{!"_ZTS7RNArrayIP9MPSurfaceE", !12, i64 0}
!20 = !{!"_ZTS7RNArrayIP8MPRegionE", !12, i64 0}
!21 = !{!"_ZTS7RNArrayIP8MPPortalE", !12, i64 0}
!22 = !{!"_ZTS7RNArrayIP7MPLevelE", !12, i64 0}
!23 = !{!"_ZTS17RGBDConfiguration", !24, i64 8, !25, i64 24, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !26, i64 72}
!24 = !{!"_ZTS7RNArrayIP9RGBDImageE", !12, i64 0}
!25 = !{!"_ZTS7RNArrayIP11RGBDSurfaceE", !12, i64 0}
!26 = !{!"_ZTS5R3Box", !27, i64 0, !29, i64 8, !29, i64 32}
!27 = !{!"_ZTS7R3Solid", !28, i64 0}
!28 = !{!"_ZTS7R3Shape"}
!29 = !{!"_ZTS7R3Point", !7, i64 0}
!30 = !{!10, !6, i64 296}
!31 = !{!10, !6, i64 360}
!32 = !{!10, !6, i64 368}


; 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.1 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [25 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7RNArrayIP7MPImageEC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0 align 2

declare void @_ZN5R3BoxC1Edddddd(ptr noundef nonnull align 8 dereferenceable(56), double noundef, double noundef, double noundef, double noundef, double noundef, double noundef) unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7RNArrayIP9MPSegmentEC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0 align 2

; Function Attrs: nounwind
declare void @_ZN7R3SolidD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7RNArrayIP8MPObjectEC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7RNArrayIP8MPVertexEC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7RNArrayIP10MPPanoramaEC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7RNArrayIP9MPSurfaceEC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7RNArrayIP8MPPortalEC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7RNArrayIP8MPRegionEC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7MPHouseC2EPKcS1_(ptr noundef nonnull align 8 dereferenceable(376) %0, ptr noundef readonly %1, ptr noundef readonly %2) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  tail call void @_ZN7RNArrayIP7MPImageEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %4 = getelementptr inbounds i8, ptr %0, i64 16
  invoke void @_ZN7RNArrayIP10MPPanoramaEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4)
          to label %5 unwind label %40

5:                                                ; preds = %3
  %6 = getelementptr inbounds i8, ptr %0, i64 32
  invoke void @_ZN7RNArrayIP10MPCategoryEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6)
          to label %7 unwind label %42

7:                                                ; preds = %5
  %8 = getelementptr inbounds i8, ptr %0, i64 48
  invoke void @_ZN7RNArrayIP9MPSegmentEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8)
          to label %9 unwind label %44

9:                                                ; preds = %7
  %10 = getelementptr inbounds i8, ptr %0, i64 64
  invoke void @_ZN7RNArrayIP8MPObjectEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10)
          to label %11 unwind label %46

11:                                               ; preds = %9
  %12 = getelementptr inbounds i8, ptr %0, i64 80
  invoke void @_ZN7RNArrayIP8MPVertexEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %13 unwind label %48

13:                                               ; preds = %11
  %14 = getelementptr inbounds i8, ptr %0, i64 96
  invoke void @_ZN7RNArrayIP9MPSurfaceEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14)
          to label %15 unwind label %50

15:                                               ; preds = %13
  %16 = getelementptr inbounds i8, ptr %0, i64 112
  invoke void @_ZN7RNArrayIP8MPRegionEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16)
          to label %17 unwind label %52

17:                                               ; preds = %15
  %18 = getelementptr inbounds i8, ptr %0, i64 128
  invoke void @_ZN7RNArrayIP8MPPortalEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18)
          to label %19 unwind label %54

19:                                               ; preds = %17
  %20 = getelementptr inbounds i8, ptr %0, i64 144
  invoke void @_ZN7RNArrayIP7MPLevelEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20)
          to label %21 unwind label %56

21:                                               ; preds = %19
  %22 = getelementptr inbounds i8, ptr %0, i64 160
  invoke void @_ZN17RGBDConfigurationC1Ev(ptr noundef nonnull align 8 dereferenceable(128) %22)
          to label %23 unwind label %58

23:                                               ; preds = %21
  %24 = getelementptr inbounds i8, ptr %0, i64 288
  %25 = getelementptr inbounds i8, ptr %0, i64 304
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %24, i8 0, i64 16, i1 false)
  invoke void @_ZN5R3BoxC1Edddddd(ptr noundef nonnull align 8 dereferenceable(56) %25, double noundef 0x47EFFFFFE0000000, double noundef 0x47EFFFFFE0000000, double noundef 0x47EFFFFFE0000000, double noundef 0xC7EFFFFFE0000000, double noundef 0xC7EFFFFFE0000000, double noundef 0xC7EFFFFFE0000000)
          to label %26 unwind label %60

26:                                               ; preds = %23
  %27 = getelementptr inbounds i8, ptr %0, i64 360
  %.not = icmp eq ptr %2, null
  br i1 %.not, label %30, label %28

28:                                               ; preds = %26
  %29 = tail call noalias ptr @strdup(ptr noundef nonnull %2) #5
  br label %30

30:                                               ; preds = %26, %28
  %31 = phi ptr [ %29, %28 ], [ null, %26 ]
  store ptr %31, ptr %27, align 8, !tbaa !5
  %32 = getelementptr inbounds i8, ptr %0, i64 368
  %.not19 = icmp eq ptr %1, null
  br i1 %.not19, label %35, label %33

33:                                               ; preds = %30
  %34 = tail call noalias ptr @strdup(ptr noundef nonnull %1) #5
  br label %35

35:                                               ; preds = %30, %33
  %36 = phi ptr [ %34, %33 ], [ null, %30 ]
  store ptr %36, ptr %32, align 8, !tbaa !29
  invoke void @_ZN17RGBDConfiguration16SetDatasetFormatEPKc(ptr noundef nonnull align 8 dereferenceable(128) %22, ptr noundef nonnull @.str.1)
          to label %37 unwind label %62

37:                                               ; preds = %35
  invoke void @_ZN17RGBDConfiguration17SetDepthDirectoryEPKc(ptr noundef nonnull align 8 dereferenceable(128) %22, ptr noundef nonnull @.str.2)
          to label %38 unwind label %62

38:                                               ; preds = %37
  invoke void @_ZN17RGBDConfiguration17SetColorDirectoryEPKc(ptr noundef nonnull align 8 dereferenceable(128) %22, ptr noundef nonnull @.str.3)
          to label %39 unwind label %62

39:                                               ; preds = %38
  ret void

40:                                               ; preds = %3
  %41 = landingpad { ptr, i32 }
          cleanup
  br label %74

42:                                               ; preds = %5
  %43 = landingpad { ptr, i32 }
          cleanup
  br label %73

44:                                               ; preds = %7
  %45 = landingpad { ptr, i32 }
          cleanup
  br label %72

46:                                               ; preds = %9
  %47 = landingpad { ptr, i32 }
          cleanup
  br label %71

48:                                               ; preds = %11
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %70

50:                                               ; preds = %13
  %51 = landingpad { ptr, i32 }
          cleanup
  br label %69

52:                                               ; preds = %15
  %53 = landingpad { ptr, i32 }
          cleanup
  br label %68

54:                                               ; preds = %17
  %55 = landingpad { ptr, i32 }
          cleanup
  br label %67

56:                                               ; preds = %19
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %66

58:                                               ; preds = %21
  %59 = landingpad { ptr, i32 }
          cleanup
  br label %65

60:                                               ; preds = %23
  %61 = landingpad { ptr, i32 }
          cleanup
  br label %64

62:                                               ; preds = %38, %37, %35
  %63 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZN7R3SolidD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %25) #5
  br label %64

64:                                               ; preds = %62, %60
  %.pn = phi { ptr, i32 } [ %63, %62 ], [ %61, %60 ]
  tail call void @_ZN17RGBDConfigurationD1Ev(ptr noundef nonnull align 8 dereferenceable(128) %22) #5
  br label %65

65:                                               ; preds = %64, %58
  %.pn.pn = phi { ptr, i32 } [ %.pn, %64 ], [ %59, %58 ]
  tail call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #5
  br label %66

66:                                               ; preds = %65, %56
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %65 ], [ %57, %56 ]
  tail call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #5
  br label %67

67:                                               ; preds = %66, %54
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %66 ], [ %55, %54 ]
  tail call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #5
  br label %68

68:                                               ; preds = %67, %52
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %67 ], [ %53, %52 ]
  tail call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #5
  br label %69

69:                                               ; preds = %68, %50
  %.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn, %68 ], [ %51, %50 ]
  tail call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #5
  br label %70

70:                                               ; preds = %69, %48
  %.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn, %69 ], [ %49, %48 ]
  tail call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #5
  br label %71

71:                                               ; preds = %70, %46
  %.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn, %70 ], [ %47, %46 ]
  tail call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #5
  br label %72

72:                                               ; preds = %71, %44
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn, %71 ], [ %45, %44 ]
  tail call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #5
  br label %73

73:                                               ; preds = %72, %42
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn.pn, %72 ], [ %43, %42 ]
  tail call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #5
  br label %74

74:                                               ; preds = %73, %40
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %73 ], [ %41, %40 ]
  tail call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #5
  resume { ptr, i32 } %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7RNArrayIP10MPCategoryEC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7RNArrayIP7MPLevelEC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0 align 2

declare void @_ZN17RGBDConfigurationC1Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #1

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias ptr @strdup(ptr nocapture noundef readonly) local_unnamed_addr #3

declare void @_ZN17RGBDConfiguration16SetDatasetFormatEPKc(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef) local_unnamed_addr #1

declare void @_ZN17RGBDConfiguration17SetDepthDirectoryEPKc(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef) local_unnamed_addr #1

declare void @_ZN17RGBDConfiguration17SetColorDirectoryEPKc(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind
declare void @_ZN17RGBDConfigurationD1Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #2

; Function Attrs: nounwind
declare void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

attributes #0 = { 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 #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 "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 nofree nounwind willreturn memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { 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, !9, i64 360}
!6 = !{!"_ZTS7MPHouse", !7, i64 0, !13, i64 16, !14, i64 32, !15, i64 48, !16, i64 64, !17, i64 80, !18, i64 96, !19, i64 112, !20, i64 128, !21, i64 144, !22, i64 160, !9, i64 288, !9, i64 296, !25, i64 304, !9, i64 360, !9, i64 368}
!7 = !{!"_ZTS7RNArrayIP7MPImageE", !8, i64 0}
!8 = !{!"_ZTS8RNVArray", !9, i64 0, !12, i64 8, !12, i64 12}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"int", !10, i64 0}
!13 = !{!"_ZTS7RNArrayIP10MPPanoramaE", !8, i64 0}
!14 = !{!"_ZTS7RNArrayIP10MPCategoryE", !8, i64 0}
!15 = !{!"_ZTS7RNArrayIP9MPSegmentE", !8, i64 0}
!16 = !{!"_ZTS7RNArrayIP8MPObjectE", !8, i64 0}
!17 = !{!"_ZTS7RNArrayIP8MPVertexE", !8, i64 0}
!18 = !{!"_ZTS7RNArrayIP9MPSurfaceE", !8, i64 0}
!19 = !{!"_ZTS7RNArrayIP8MPRegionE", !8, i64 0}
!20 = !{!"_ZTS7RNArrayIP8MPPortalE", !8, i64 0}
!21 = !{!"_ZTS7RNArrayIP7MPLevelE", !8, i64 0}
!22 = !{!"_ZTS17RGBDConfiguration", !23, i64 8, !24, i64 24, !9, i64 40, !9, i64 48, !9, i64 56, !9, i64 64, !25, i64 72}
!23 = !{!"_ZTS7RNArrayIP9RGBDImageE", !8, i64 0}
!24 = !{!"_ZTS7RNArrayIP11RGBDSurfaceE", !8, i64 0}
!25 = !{!"_ZTS5R3Box", !26, i64 0, !28, i64 8, !28, i64 32}
!26 = !{!"_ZTS7R3Solid", !27, i64 0}
!27 = !{!"_ZTS7R3Shape"}
!28 = !{!"_ZTS7R3Point", !10, i64 0}
!29 = !{!6, !9, i64 368}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass