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

; 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] }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) #0

; Function Attrs: nounwind
declare void @free(ptr noundef) #1

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK7RNArrayIP7MPImageE4TailEv(ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK7RNArrayIP9MPSegmentE4TailEv(ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK7RNArrayIP8MPObjectE4TailEv(ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK7RNArrayIP8MPVertexE4TailEv(ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK7RNArrayIP10MPPanoramaE4TailEv(ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK7RNArrayIP9MPSurfaceE4TailEv(ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK7RNArrayIP8MPPortalE4TailEv(ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK7RNArrayIP8MPRegionE4TailEv(ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN7MPHouseD2Ev(ptr noundef nonnull align 8 dereferenceable(376) %0) unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %3 = load ptr, ptr %2, align 8
  br label %4

4:                                                ; preds = %16, %1
  %5 = getelementptr inbounds %struct.MPHouse, ptr %3, i32 0, i32 0
  %6 = invoke noundef i32 @_ZNK8RNVArray7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %7 unwind label %193

7:                                                ; preds = %4
  %8 = icmp ne i32 %6, 0
  %9 = xor i1 %8, true
  br i1 %9, label %10, label %17

10:                                               ; preds = %7
  %11 = getelementptr inbounds %struct.MPHouse, ptr %3, i32 0, i32 0
  %12 = invoke noundef ptr @_ZNK7RNArrayIP7MPImageE4TailEv(ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %13 unwind label %193

13:                                               ; preds = %10
  %14 = icmp eq ptr %12, null
  br i1 %14, label %16, label %15

15:                                               ; preds = %13
  call void @_ZN7MPImageD1Ev(ptr noundef nonnull align 8 dereferenceable(768) %12) #6
  call void @_ZdlPvm(ptr noundef %12, i64 noundef 768) #7
  br label %16

16:                                               ; preds = %15, %13
  br label %4, !llvm.loop !9

17:                                               ; preds = %7
  br label %18

18:                                               ; preds = %30, %17
  %19 = getelementptr inbounds %struct.MPHouse, ptr %3, i32 0, i32 1
  %20 = invoke noundef i32 @_ZNK8RNVArray7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(16) %19)
          to label %21 unwind label %193

21:                                               ; preds = %18
  %22 = icmp ne i32 %20, 0
  %23 = xor i1 %22, true
  br i1 %23, label %24, label %31

24:                                               ; preds = %21
  %25 = getelementptr inbounds %struct.MPHouse, ptr %3, i32 0, i32 1
  %26 = invoke noundef ptr @_ZNK7RNArrayIP10MPPanoramaE4TailEv(ptr noundef nonnull align 8 dereferenceable(16) %25)
          to label %27 unwind label %193

27:                                               ; preds = %24
  %28 = icmp eq ptr %26, null
  br i1 %28, label %30, label %29

29:                                               ; preds = %27
  call void @_ZN10MPPanoramaD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %26) #6
  call void @_ZdlPvm(ptr noundef %26, i64 noundef 80) #7
  br label %30

30:                                               ; preds = %29, %27
  br label %18, !llvm.loop !11

31:                                               ; preds = %21
  br label %32

32:                                               ; preds = %44, %31
  %33 = getelementptr inbounds %struct.MPHouse, ptr %3, i32 0, i32 4
  %34 = invoke noundef i32 @_ZNK8RNVArray7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(16) %33)
          to label %35 unwind label %193

35:                                               ; preds = %32
  %36 = icmp ne i32 %34, 0
  %37 = xor i1 %36, true
  br i1 %37, label %38, label %45

38:                                               ; preds = %35
  %39 = getelementptr inbounds %struct.MPHouse, ptr %3, i32 0, i32 4
  %40 = invoke noundef ptr @_ZNK7RNArrayIP8MPObjectE4TailEv(ptr noundef nonnull align 8 dereferenceable(16) %39)
          to label %41 unwind label %193

41:                                               ; preds = %38
  %42 = icmp eq ptr %40, null
  br i1 %42, label %44, label %43

43:                                               ; preds = %41
  call void @_ZN8MPObjectD1Ev(ptr noundef nonnull align 8 dereferenceable(216) %40) #6
  call void @_ZdlPvm(ptr noundef %40, i64 noundef 216) #7
  br label %44

44:                                               ; preds = %43, %41
  br label %32, !llvm.loop !12

45:                                               ; preds = %35
  br label %46

46:                                               ; preds = %58, %45
  %47 = getelementptr inbounds %struct.MPHouse, ptr %3, i32 0, i32 3
  %48 = invoke noundef i32 @_ZNK8RNVArray7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(16) %47)
          to label %49 unwind label %193

49:                                               ; preds = %46
  %50 = icmp ne i32 %48, 0
  %51 = xor i1 %50, true
  br i1 %51, label %52, label %59

52:                                               ; preds = %49
  %53 = getelementptr inbounds %struct.MPHouse, ptr %3, i32 0, i32 3
  %54 = invoke noundef ptr @_ZNK7RNArrayIP9MPSegmentE4TailEv(ptr noundef nonnull align 8 dereferenceable(16) %53)
          to label %55 unwind label %193

55:                                               ; preds = %52
  %56 = icmp eq ptr %54, null
  br i1 %56, label %58, label %57

57:                                               ; preds = %55
  call void @_ZN9MPSegmentD1Ev(ptr noundef nonnull align 8 dereferenceable(148) %54) #6
  call void @_ZdlPvm(ptr noundef %54, i64 noundef 152) #7
  br label %58

58:                                               ; preds = %57, %55
  br label %46, !llvm.loop !13

59:                                               ; preds = %49
  br label %60

60:                                               ; preds = %72, %59
  %61 = getelementptr inbounds %struct.MPHouse, ptr %3, i32 0, i32 2
  %62 = invoke noundef i32 @_ZNK8RNVArray7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(16) %61)
          to label %63 unwind label %193

63:                                               ; preds = %60
  %64 = icmp ne i32 %62, 0
  %65 = xor i1 %64, true
  br i1 %65, label %66, label %73

66:                                               ; preds = %63
  %67 = getelementptr inbounds %struct.MPHouse, ptr %3, i32 0, i32 2
  %68 = invoke noundef ptr @_ZNK7RNArrayIP10MPCategoryE4TailEv(ptr noundef nonnull align 8 dereferenceable(16) %67)
          to label %69 unwind label %193

69:                                               ; preds = %66
  %70 = icmp eq ptr %68, null
  br i1 %70, label %72, label %71

71:                                               ; preds = %69
  call void @_ZN10MPCategoryD1Ev(ptr noundef nonnull align 8 dereferenceable(64) %68) #6
  call void @_ZdlPvm(ptr noundef %68, i64 noundef 64) #7
  br label %72

72:                                               ; preds = %71, %69
  br label %60, !llvm.loop !14

73:                                               ; preds = %63
  br label %74

74:                                               ; preds = %86, %73
  %75 = getelementptr inbounds %struct.MPHouse, ptr %3, i32 0, i32 5
  %76 = invoke noundef i32 @_ZNK8RNVArray7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(16) %75)
          to label %77 unwind label %193

77:                                               ; preds = %74
  %78 = icmp ne i32 %76, 0
  %79 = xor i1 %78, true
  br i1 %79, label %80, label %87

80:                                               ; preds = %77
  %81 = getelementptr inbounds %struct.MPHouse, ptr %3, i32 0, i32 5
  %82 = invoke noundef ptr @_ZNK7RNArrayIP8MPVertexE4TailEv(ptr noundef nonnull align 8 dereferenceable(16) %81)
          to label %83 unwind label %193

83:                                               ; preds = %80
  %84 = icmp eq ptr %82, null
  br i1 %84, label %86, label %85

85:                                               ; preds = %83
  call void @_ZN8MPVertexD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %82) #6
  call void @_ZdlPvm(ptr noundef %82, i64 noundef 88) #7
  br label %86

86:                                               ; preds = %85, %83
  br label %74, !llvm.loop !15

87:                                               ; preds = %77
  br label %88

88:                                               ; preds = %100, %87
  %89 = getelementptr inbounds %struct.MPHouse, ptr %3, i32 0, i32 6
  %90 = invoke noundef i32 @_ZNK8RNVArray7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(16) %89)
          to label %91 unwind label %193

91:                                               ; preds = %88
  %92 = icmp ne i32 %90, 0
  %93 = xor i1 %92, true
  br i1 %93, label %94, label %101

94:                                               ; preds = %91
  %95 = getelementptr inbounds %struct.MPHouse, ptr %3, i32 0, i32 6
  %96 = invoke noundef ptr @_ZNK7RNArrayIP9MPSurfaceE4TailEv(ptr noundef nonnull align 8 dereferenceable(16) %95)
          to label %97 unwind label %193

97:                                               ; preds = %94
  %98 = icmp eq ptr %96, null
  br i1 %98, label %100, label %99

99:                                               ; preds = %97
  call void @_ZN9MPSurfaceD1Ev(ptr noundef nonnull align 8 dereferenceable(160) %96) #6
  call void @_ZdlPvm(ptr noundef %96, i64 noundef 160) #7
  br label %100

100:                                              ; preds = %99, %97
  br label %88, !llvm.loop !16

101:                                              ; preds = %91
  br label %102

102:                                              ; preds = %114, %101
  %103 = getelementptr inbounds %struct.MPHouse, ptr %3, i32 0, i32 7
  %104 = invoke noundef i32 @_ZNK8RNVArray7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(16) %103)
          to label %105 unwind label %193

105:                                              ; preds = %102
  %106 = icmp ne i32 %104, 0
  %107 = xor i1 %106, true
  br i1 %107, label %108, label %115

108:                                              ; preds = %105
  %109 = getelementptr inbounds %struct.MPHouse, ptr %3, i32 0, i32 7
  %110 = invoke noundef ptr @_ZNK7RNArrayIP8MPRegionE4TailEv(ptr noundef nonnull align 8 dereferenceable(16) %109)
          to label %111 unwind label %193

111:                                              ; preds = %108
  %112 = icmp eq ptr %110, null
  br i1 %112, label %114, label %113

113:                                              ; preds = %111
  call void @_ZN8MPRegionD1Ev(ptr noundef nonnull align 8 dereferenceable(192) %110) #6
  call void @_ZdlPvm(ptr noundef %110, i64 noundef 192) #7
  br label %114

114:                                              ; preds = %113, %111
  br label %102, !llvm.loop !17

115:                                              ; preds = %105
  br label %116

116:                                              ; preds = %128, %115
  %117 = getelementptr inbounds %struct.MPHouse, ptr %3, i32 0, i32 8
  %118 = invoke noundef i32 @_ZNK8RNVArray7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(16) %117)
          to label %119 unwind label %193

119:                                              ; preds = %116
  %120 = icmp ne i32 %118, 0
  %121 = xor i1 %120, true
  br i1 %121, label %122, label %129

122:                                              ; preds = %119
  %123 = getelementptr inbounds %struct.MPHouse, ptr %3, i32 0, i32 8
  %124 = invoke noundef ptr @_ZNK7RNArrayIP8MPPortalE4TailEv(ptr noundef nonnull align 8 dereferenceable(16) %123)
          to label %125 unwind label %193

125:                                              ; preds = %122
  %126 = icmp eq ptr %124, null
  br i1 %126, label %128, label %127

127:                                              ; preds = %125
  call void @_ZN8MPPortalD1Ev(ptr noundef nonnull align 8 dereferenceable(128) %124) #6
  call void @_ZdlPvm(ptr noundef %124, i64 noundef 128) #7
  br label %128

128:                                              ; preds = %127, %125
  br label %116, !llvm.loop !18

129:                                              ; preds = %119
  br label %130

130:                                              ; preds = %142, %129
  %131 = getelementptr inbounds %struct.MPHouse, ptr %3, i32 0, i32 9
  %132 = invoke noundef i32 @_ZNK8RNVArray7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(16) %131)
          to label %133 unwind label %193

133:                                              ; preds = %130
  %134 = icmp ne i32 %132, 0
  %135 = xor i1 %134, true
  br i1 %135, label %136, label %143

136:                                              ; preds = %133
  %137 = getelementptr inbounds %struct.MPHouse, ptr %3, i32 0, i32 9
  %138 = invoke noundef ptr @_ZNK7RNArrayIP7MPLevelE4TailEv(ptr noundef nonnull align 8 dereferenceable(16) %137)
          to label %139 unwind label %193

139:                                              ; preds = %136
  %140 = icmp eq ptr %138, null
  br i1 %140, label %142, label %141

141:                                              ; preds = %139
  call void @_ZN7MPLevelD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %138) #6
  call void @_ZdlPvm(ptr noundef %138, i64 noundef 120) #7
  br label %142

142:                                              ; preds = %141, %139
  br label %130, !llvm.loop !19

143:                                              ; preds = %133
  %144 = getelementptr inbounds %struct.MPHouse, ptr %3, i32 0, i32 11
  %145 = load ptr, ptr %144, align 8, !tbaa !20
  %146 = icmp ne ptr %145, null
  br i1 %146, label %147, label %153

147:                                              ; preds = %143
  %148 = getelementptr inbounds %struct.MPHouse, ptr %3, i32 0, i32 11
  %149 = load ptr, ptr %148, align 8, !tbaa !20
  %150 = icmp eq ptr %149, null
  br i1 %150, label %152, label %151

151:                                              ; preds = %147
  call void @_ZN7R3SceneD1Ev(ptr noundef nonnull align 8 dereferenceable(352) %149) #6
  call void @_ZdlPvm(ptr noundef %149, i64 noundef 352) #7
  br label %152

152:                                              ; preds = %151, %147
  br label %153

153:                                              ; preds = %152, %143
  %154 = getelementptr inbounds %struct.MPHouse, ptr %3, i32 0, i32 12
  %155 = load ptr, ptr %154, align 8, !tbaa !41
  %156 = icmp ne ptr %155, null
  br i1 %156, label %157, label %166

157:                                              ; preds = %153
  %158 = getelementptr inbounds %struct.MPHouse, ptr %3, i32 0, i32 12
  %159 = load ptr, ptr %158, align 8, !tbaa !41
  %160 = icmp eq ptr %159, null
  br i1 %160, label %165, label %161

161:                                              ; preds = %157
  %162 = load ptr, ptr %159, align 8, !tbaa !42
  %163 = getelementptr inbounds ptr, ptr %162, i64 1
  %164 = load ptr, ptr %163, align 8
  call void %164(ptr noundef nonnull align 8 dereferenceable(272) %159) #6
  br label %165

165:                                              ; preds = %161, %157
  br label %166

166:                                              ; preds = %165, %153
  %167 = getelementptr inbounds %struct.MPHouse, ptr %3, i32 0, i32 14
  %168 = load ptr, ptr %167, align 8, !tbaa !44
  %169 = icmp ne ptr %168, null
  br i1 %169, label %170, label %173

170:                                              ; preds = %166
  %171 = getelementptr inbounds %struct.MPHouse, ptr %3, i32 0, i32 14
  %172 = load ptr, ptr %171, align 8, !tbaa !44
  call void @free(ptr noundef %172) #6
  br label %173

173:                                              ; preds = %170, %166
  %174 = getelementptr inbounds %struct.MPHouse, ptr %3, i32 0, i32 15
  %175 = load ptr, ptr %174, align 8, !tbaa !45
  %176 = icmp ne ptr %175, null
  br i1 %176, label %177, label %180

177:                                              ; preds = %173
  %178 = getelementptr inbounds %struct.MPHouse, ptr %3, i32 0, i32 15
  %179 = load ptr, ptr %178, align 8, !tbaa !45
  call void @free(ptr noundef %179) #6
  br label %180

180:                                              ; preds = %177, %173
  %181 = getelementptr inbounds %struct.MPHouse, ptr %3, i32 0, i32 13
  call void @_ZN7R3SolidD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %181) #6
  %182 = getelementptr inbounds %struct.MPHouse, ptr %3, i32 0, i32 10
  call void @_ZN17RGBDConfigurationD1Ev(ptr noundef nonnull align 8 dereferenceable(128) %182) #6
  %183 = getelementptr inbounds %struct.MPHouse, ptr %3, i32 0, i32 9
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %183) #6
  %184 = getelementptr inbounds %struct.MPHouse, ptr %3, i32 0, i32 8
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %184) #6
  %185 = getelementptr inbounds %struct.MPHouse, ptr %3, i32 0, i32 7
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %185) #6
  %186 = getelementptr inbounds %struct.MPHouse, ptr %3, i32 0, i32 6
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %186) #6
  %187 = getelementptr inbounds %struct.MPHouse, ptr %3, i32 0, i32 5
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %187) #6
  %188 = getelementptr inbounds %struct.MPHouse, ptr %3, i32 0, i32 4
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %188) #6
  %189 = getelementptr inbounds %struct.MPHouse, ptr %3, i32 0, i32 3
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %189) #6
  %190 = getelementptr inbounds %struct.MPHouse, ptr %3, i32 0, i32 2
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %190) #6
  %191 = getelementptr inbounds %struct.MPHouse, ptr %3, i32 0, i32 1
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %191) #6
  %192 = getelementptr inbounds %struct.MPHouse, ptr %3, i32 0, i32 0
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %192) #6
  ret void

193:                                              ; preds = %136, %130, %122, %116, %108, %102, %94, %88, %80, %74, %66, %60, %52, %46, %38, %32, %24, %18, %10, %4
  %194 = landingpad { ptr, i32 }
          catch ptr null
  %195 = extractvalue { ptr, i32 } %194, 0
  call void @__clang_call_terminate(ptr %195) #8
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK7RNArrayIP10MPCategoryE4TailEv(ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK7RNArrayIP7MPLevelE4TailEv(ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

; Function Attrs: nounwind
declare void @_ZN7R3SceneD1Ev(ptr noundef nonnull align 8 dereferenceable(352)) unnamed_addr #1

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

declare void @_ZN7MPImageD1Ev(ptr)

declare void @_ZN10MPPanoramaD1Ev(ptr)

declare void @_ZN9MPSegmentD1Ev(ptr)

declare void @_ZN8MPObjectD1Ev(ptr)

declare void @_ZN10MPCategoryD1Ev(ptr)

declare void @_ZN8MPVertexD1Ev(ptr)

declare void @_ZN9MPSurfaceD1Ev(ptr)

declare void @_ZN8MPRegionD1Ev(ptr)

declare void @_ZN8MPPortalD1Ev(ptr)

declare void @_ZN7MPLevelD1Ev(ptr)

attributes #0 = { noinline noreturn nounwind uwtable "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 "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 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 = { 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 = { nobuiltin 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 #5 = { 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 #6 = { nounwind }
attributes #7 = { builtin nounwind }
attributes #8 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = !{!21, !6, i64 288}
!21 = !{!"_ZTS7MPHouse", !22, i64 0, !25, i64 16, !26, i64 32, !27, i64 48, !28, i64 64, !29, i64 80, !30, i64 96, !31, i64 112, !32, i64 128, !33, i64 144, !34, i64 160, !6, i64 288, !6, i64 296, !37, i64 304, !6, i64 360, !6, i64 368}
!22 = !{!"_ZTS7RNArrayIP7MPImageE", !23, i64 0}
!23 = !{!"_ZTS8RNVArray", !6, i64 0, !24, i64 8, !24, i64 12}
!24 = !{!"int", !7, i64 0}
!25 = !{!"_ZTS7RNArrayIP10MPPanoramaE", !23, i64 0}
!26 = !{!"_ZTS7RNArrayIP10MPCategoryE", !23, i64 0}
!27 = !{!"_ZTS7RNArrayIP9MPSegmentE", !23, i64 0}
!28 = !{!"_ZTS7RNArrayIP8MPObjectE", !23, i64 0}
!29 = !{!"_ZTS7RNArrayIP8MPVertexE", !23, i64 0}
!30 = !{!"_ZTS7RNArrayIP9MPSurfaceE", !23, i64 0}
!31 = !{!"_ZTS7RNArrayIP8MPRegionE", !23, i64 0}
!32 = !{!"_ZTS7RNArrayIP8MPPortalE", !23, i64 0}
!33 = !{!"_ZTS7RNArrayIP7MPLevelE", !23, i64 0}
!34 = !{!"_ZTS17RGBDConfiguration", !35, i64 8, !36, i64 24, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !37, i64 72}
!35 = !{!"_ZTS7RNArrayIP9RGBDImageE", !23, i64 0}
!36 = !{!"_ZTS7RNArrayIP11RGBDSurfaceE", !23, i64 0}
!37 = !{!"_ZTS5R3Box", !38, i64 0, !40, i64 8, !40, i64 32}
!38 = !{!"_ZTS7R3Solid", !39, i64 0}
!39 = !{!"_ZTS7R3Shape"}
!40 = !{!"_ZTS7R3Point", !7, i64 0}
!41 = !{!21, !6, i64 296}
!42 = !{!43, !43, i64 0}
!43 = !{!"vtable pointer", !8, i64 0}
!44 = !{!21, !6, i64 360}
!45 = !{!21, !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"

declare i32 @__gxx_personality_v0(...)

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK7RNArrayIP7MPImageE4TailEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK7RNArrayIP9MPSegmentE4TailEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK7RNArrayIP8MPObjectE4TailEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK7RNArrayIP8MPVertexE4TailEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK7RNArrayIP10MPPanoramaE4TailEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK7RNArrayIP9MPSurfaceE4TailEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK7RNArrayIP8MPPortalE4TailEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK7RNArrayIP8MPRegionE4TailEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN7MPHouseD2Ev(ptr noundef nonnull align 8 dereferenceable(376) %0) unnamed_addr #6 align 2 personality ptr @__gxx_personality_v0 {
  %2 = tail call noundef i32 @_ZNK8RNVArray7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %.not72 = icmp eq i32 %2, 0
  br i1 %.not72, label %.lr.ph, label %.preheader52

.preheader52:                                     ; preds = %9, %1
  %3 = getelementptr inbounds i8, ptr %0, i64 16
  %4 = tail call noundef i32 @_ZNK8RNVArray7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
  %.not1473 = icmp eq i32 %4, 0
  br i1 %.not1473, label %.lr.ph74, label %.preheader48

.lr.ph:                                           ; preds = %1, %9
  %5 = invoke noundef ptr @_ZNK7RNArrayIP7MPImageE4TailEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
          to label %6 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

6:                                                ; preds = %.lr.ph
  %7 = icmp eq ptr %5, null
  br i1 %7, label %9, label %8

8:                                                ; preds = %6
  tail call void @_ZN7MPImageD1Ev(ptr noundef nonnull align 8 dereferenceable(768) %5) #7
  tail call void @_ZdlPvm(ptr noundef nonnull %5, i64 noundef 768) #8
  br label %9

9:                                                ; preds = %8, %6
  %10 = tail call noundef i32 @_ZNK8RNVArray7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %.not = icmp eq i32 %10, 0
  br i1 %.not, label %.lr.ph, label %.preheader52, !llvm.loop !5

.preheader48:                                     ; preds = %17, %.preheader52
  %11 = getelementptr inbounds i8, ptr %0, i64 64
  %12 = tail call noundef i32 @_ZNK8RNVArray7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(16) %11)
  %.not1575 = icmp eq i32 %12, 0
  br i1 %.not1575, label %.lr.ph76, label %.preheader45

.lr.ph74:                                         ; preds = %.preheader52, %17
  %13 = invoke noundef ptr @_ZNK7RNArrayIP10MPPanoramaE4TailEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
          to label %14 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

14:                                               ; preds = %.lr.ph74
  %15 = icmp eq ptr %13, null
  br i1 %15, label %17, label %16

16:                                               ; preds = %14
  tail call void @_ZN10MPPanoramaD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %13) #7
  tail call void @_ZdlPvm(ptr noundef nonnull %13, i64 noundef 80) #8
  br label %17

17:                                               ; preds = %16, %14
  %18 = tail call noundef i32 @_ZNK8RNVArray7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
  %.not14 = icmp eq i32 %18, 0
  br i1 %.not14, label %.lr.ph74, label %.preheader48, !llvm.loop !7

.preheader45:                                     ; preds = %25, %.preheader48
  %19 = getelementptr inbounds i8, ptr %0, i64 48
  %20 = tail call noundef i32 @_ZNK8RNVArray7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(16) %19)
  %.not1678 = icmp eq i32 %20, 0
  br i1 %.not1678, label %.lr.ph79, label %.preheader41

.lr.ph76:                                         ; preds = %.preheader48, %25
  %21 = invoke noundef ptr @_ZNK7RNArrayIP8MPObjectE4TailEv(ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %22 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

22:                                               ; preds = %.lr.ph76
  %23 = icmp eq ptr %21, null
  br i1 %23, label %25, label %24

24:                                               ; preds = %22
  tail call void @_ZN8MPObjectD1Ev(ptr noundef nonnull align 8 dereferenceable(216) %21) #7
  tail call void @_ZdlPvm(ptr noundef nonnull %21, i64 noundef 216) #8
  br label %25

25:                                               ; preds = %24, %22
  %26 = tail call noundef i32 @_ZNK8RNVArray7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(16) %11)
  %.not15 = icmp eq i32 %26, 0
  br i1 %.not15, label %.lr.ph76, label %.preheader45, !llvm.loop !8

.preheader41:                                     ; preds = %33, %.preheader45
  %27 = getelementptr inbounds i8, ptr %0, i64 32
  %28 = tail call noundef i32 @_ZNK8RNVArray7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(16) %27)
  %.not1781 = icmp eq i32 %28, 0
  br i1 %.not1781, label %.lr.ph82, label %.preheader38

.lr.ph79:                                         ; preds = %.preheader45, %33
  %29 = invoke noundef ptr @_ZNK7RNArrayIP9MPSegmentE4TailEv(ptr noundef nonnull align 8 dereferenceable(16) %19)
          to label %30 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

30:                                               ; preds = %.lr.ph79
  %31 = icmp eq ptr %29, null
  br i1 %31, label %33, label %32

32:                                               ; preds = %30
  tail call void @_ZN9MPSegmentD1Ev(ptr noundef nonnull align 8 dereferenceable(148) %29) #7
  tail call void @_ZdlPvm(ptr noundef nonnull %29, i64 noundef 152) #8
  br label %33

33:                                               ; preds = %32, %30
  %34 = tail call noundef i32 @_ZNK8RNVArray7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(16) %19)
  %.not16 = icmp eq i32 %34, 0
  br i1 %.not16, label %.lr.ph79, label %.preheader41, !llvm.loop !9

.preheader38:                                     ; preds = %41, %.preheader41
  %35 = getelementptr inbounds i8, ptr %0, i64 80
  %36 = tail call noundef i32 @_ZNK8RNVArray7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(16) %35)
  %.not1884 = icmp eq i32 %36, 0
  br i1 %.not1884, label %.lr.ph85, label %.preheader34

.lr.ph82:                                         ; preds = %.preheader41, %41
  %37 = invoke noundef ptr @_ZNK7RNArrayIP10MPCategoryE4TailEv(ptr noundef nonnull align 8 dereferenceable(16) %27)
          to label %38 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

38:                                               ; preds = %.lr.ph82
  %39 = icmp eq ptr %37, null
  br i1 %39, label %41, label %40

40:                                               ; preds = %38
  tail call void @_ZN10MPCategoryD1Ev(ptr noundef nonnull align 8 dereferenceable(64) %37) #7
  tail call void @_ZdlPvm(ptr noundef nonnull %37, i64 noundef 64) #8
  br label %41

41:                                               ; preds = %40, %38
  %42 = tail call noundef i32 @_ZNK8RNVArray7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(16) %27)
  %.not17 = icmp eq i32 %42, 0
  br i1 %.not17, label %.lr.ph82, label %.preheader38, !llvm.loop !10

.preheader34:                                     ; preds = %49, %.preheader38
  %43 = getelementptr inbounds i8, ptr %0, i64 96
  %44 = tail call noundef i32 @_ZNK8RNVArray7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(16) %43)
  %.not1987 = icmp eq i32 %44, 0
  br i1 %.not1987, label %.lr.ph88, label %.preheader31

.lr.ph85:                                         ; preds = %.preheader38, %49
  %45 = invoke noundef ptr @_ZNK7RNArrayIP8MPVertexE4TailEv(ptr noundef nonnull align 8 dereferenceable(16) %35)
          to label %46 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

46:                                               ; preds = %.lr.ph85
  %47 = icmp eq ptr %45, null
  br i1 %47, label %49, label %48

48:                                               ; preds = %46
  tail call void @_ZN8MPVertexD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %45) #7
  tail call void @_ZdlPvm(ptr noundef nonnull %45, i64 noundef 88) #8
  br label %49

49:                                               ; preds = %48, %46
  %50 = tail call noundef i32 @_ZNK8RNVArray7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(16) %35)
  %.not18 = icmp eq i32 %50, 0
  br i1 %.not18, label %.lr.ph85, label %.preheader34, !llvm.loop !11

.preheader31:                                     ; preds = %57, %.preheader34
  %51 = getelementptr inbounds i8, ptr %0, i64 112
  %52 = tail call noundef i32 @_ZNK8RNVArray7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(16) %51)
  %.not2090 = icmp eq i32 %52, 0
  br i1 %.not2090, label %.lr.ph91, label %.preheader27

.lr.ph88:                                         ; preds = %.preheader34, %57
  %53 = invoke noundef ptr @_ZNK7RNArrayIP9MPSurfaceE4TailEv(ptr noundef nonnull align 8 dereferenceable(16) %43)
          to label %54 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

54:                                               ; preds = %.lr.ph88
  %55 = icmp eq ptr %53, null
  br i1 %55, label %57, label %56

56:                                               ; preds = %54
  tail call void @_ZN9MPSurfaceD1Ev(ptr noundef nonnull align 8 dereferenceable(160) %53) #7
  tail call void @_ZdlPvm(ptr noundef nonnull %53, i64 noundef 160) #8
  br label %57

57:                                               ; preds = %56, %54
  %58 = tail call noundef i32 @_ZNK8RNVArray7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(16) %43)
  %.not19 = icmp eq i32 %58, 0
  br i1 %.not19, label %.lr.ph88, label %.preheader31, !llvm.loop !12

.preheader27:                                     ; preds = %65, %.preheader31
  %59 = getelementptr inbounds i8, ptr %0, i64 128
  %60 = tail call noundef i32 @_ZNK8RNVArray7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(16) %59)
  %.not2193 = icmp eq i32 %60, 0
  br i1 %.not2193, label %.lr.ph94, label %.preheader

.lr.ph91:                                         ; preds = %.preheader31, %65
  %61 = invoke noundef ptr @_ZNK7RNArrayIP8MPRegionE4TailEv(ptr noundef nonnull align 8 dereferenceable(16) %51)
          to label %62 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

62:                                               ; preds = %.lr.ph91
  %63 = icmp eq ptr %61, null
  br i1 %63, label %65, label %64

64:                                               ; preds = %62
  tail call void @_ZN8MPRegionD1Ev(ptr noundef nonnull align 8 dereferenceable(192) %61) #7
  tail call void @_ZdlPvm(ptr noundef nonnull %61, i64 noundef 192) #8
  br label %65

65:                                               ; preds = %64, %62
  %66 = tail call noundef i32 @_ZNK8RNVArray7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(16) %51)
  %.not20 = icmp eq i32 %66, 0
  br i1 %.not20, label %.lr.ph91, label %.preheader27, !llvm.loop !13

.preheader:                                       ; preds = %73, %.preheader27
  %67 = getelementptr inbounds i8, ptr %0, i64 144
  %68 = tail call noundef i32 @_ZNK8RNVArray7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(16) %67)
  %.not2296 = icmp eq i32 %68, 0
  br i1 %.not2296, label %.lr.ph97, label %._crit_edge

.lr.ph94:                                         ; preds = %.preheader27, %73
  %69 = invoke noundef ptr @_ZNK7RNArrayIP8MPPortalE4TailEv(ptr noundef nonnull align 8 dereferenceable(16) %59)
          to label %70 unwind label %.loopexit.split-lp.loopexit

70:                                               ; preds = %.lr.ph94
  %71 = icmp eq ptr %69, null
  br i1 %71, label %73, label %72

72:                                               ; preds = %70
  tail call void @_ZN8MPPortalD1Ev(ptr noundef nonnull align 8 dereferenceable(128) %69) #7
  tail call void @_ZdlPvm(ptr noundef nonnull %69, i64 noundef 128) #8
  br label %73

73:                                               ; preds = %72, %70
  %74 = tail call noundef i32 @_ZNK8RNVArray7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(16) %59)
  %.not21 = icmp eq i32 %74, 0
  br i1 %.not21, label %.lr.ph94, label %.preheader, !llvm.loop !14

.lr.ph97:                                         ; preds = %.preheader, %79
  %75 = invoke noundef ptr @_ZNK7RNArrayIP7MPLevelE4TailEv(ptr noundef nonnull align 8 dereferenceable(16) %67)
          to label %76 unwind label %.loopexit

76:                                               ; preds = %.lr.ph97
  %77 = icmp eq ptr %75, null
  br i1 %77, label %79, label %78

78:                                               ; preds = %76
  tail call void @_ZN7MPLevelD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %75) #7
  tail call void @_ZdlPvm(ptr noundef nonnull %75, i64 noundef 120) #8
  br label %79

79:                                               ; preds = %78, %76
  %80 = tail call noundef i32 @_ZNK8RNVArray7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(16) %67)
  %.not22 = icmp eq i32 %80, 0
  br i1 %.not22, label %.lr.ph97, label %._crit_edge, !llvm.loop !15

._crit_edge:                                      ; preds = %79, %.preheader
  %81 = getelementptr inbounds i8, ptr %0, i64 288
  %82 = load ptr, ptr %81, align 8, !tbaa !16
  %.not23 = icmp eq ptr %82, null
  br i1 %.not23, label %84, label %83

83:                                               ; preds = %._crit_edge
  tail call void @_ZN7R3SceneD1Ev(ptr noundef nonnull align 8 dereferenceable(352) %82) #7
  tail call void @_ZdlPvm(ptr noundef nonnull %82, i64 noundef 352) #8
  br label %84

84:                                               ; preds = %83, %._crit_edge
  %85 = getelementptr inbounds i8, ptr %0, i64 296
  %86 = load ptr, ptr %85, align 8, !tbaa !40
  %.not24 = icmp eq ptr %86, null
  br i1 %.not24, label %91, label %87

87:                                               ; preds = %84
  %88 = load ptr, ptr %86, align 8, !tbaa !41
  %89 = getelementptr inbounds i8, ptr %88, i64 8
  %90 = load ptr, ptr %89, align 8
  tail call void %90(ptr noundef nonnull align 8 dereferenceable(272) %86) #7
  br label %91

91:                                               ; preds = %87, %84
  %92 = getelementptr inbounds i8, ptr %0, i64 360
  %93 = load ptr, ptr %92, align 8, !tbaa !43
  %.not25 = icmp eq ptr %93, null
  br i1 %.not25, label %95, label %94

94:                                               ; preds = %91
  tail call void @free(ptr noundef nonnull %93) #7
  br label %95

95:                                               ; preds = %94, %91
  %96 = getelementptr inbounds i8, ptr %0, i64 368
  %97 = load ptr, ptr %96, align 8, !tbaa !44
  %.not26 = icmp eq ptr %97, null
  br i1 %.not26, label %99, label %98

98:                                               ; preds = %95
  tail call void @free(ptr noundef nonnull %97) #7
  br label %99

99:                                               ; preds = %98, %95
  %100 = getelementptr inbounds i8, ptr %0, i64 304
  tail call void @_ZN7R3SolidD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %100) #7
  %101 = getelementptr inbounds i8, ptr %0, i64 160
  tail call void @_ZN17RGBDConfigurationD1Ev(ptr noundef nonnull align 8 dereferenceable(128) %101) #7
  tail call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %67) #7
  tail call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %59) #7
  tail call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %51) #7
  tail call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %43) #7
  tail call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %35) #7
  tail call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #7
  tail call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #7
  tail call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %27) #7
  tail call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #7
  tail call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #7
  ret void

.loopexit:                                        ; preds = %.lr.ph97
  %lpad.loopexit = landingpad { ptr, i32 }
          catch ptr null
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit:                      ; preds = %.lr.ph94
  %lpad.loopexit28 = landingpad { ptr, i32 }
          catch ptr null
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit:    ; preds = %.lr.ph91
  %lpad.loopexit32 = landingpad { ptr, i32 }
          catch ptr null
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit: ; preds = %.lr.ph88
  %lpad.loopexit35 = landingpad { ptr, i32 }
          catch ptr null
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit: ; preds = %.lr.ph85
  %lpad.loopexit39 = landingpad { ptr, i32 }
          catch ptr null
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit: ; preds = %.lr.ph82
  %lpad.loopexit42 = landingpad { ptr, i32 }
          catch ptr null
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit: ; preds = %.lr.ph79
  %lpad.loopexit46 = landingpad { ptr, i32 }
          catch ptr null
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit: ; preds = %.lr.ph76
  %lpad.loopexit49 = landingpad { ptr, i32 }
          catch ptr null
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit: ; preds = %.lr.ph74
  %lpad.loopexit53 = landingpad { ptr, i32 }
          catch ptr null
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp: ; preds = %.lr.ph
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          catch ptr null
  br label %.loopexit.split-lp

.loopexit.split-lp:                               ; preds = %.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit.split-lp.loopexit, %.loopexit
  %lpad.phi = phi { ptr, i32 } [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit28, %.loopexit.split-lp.loopexit ], [ %lpad.loopexit32, %.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit35, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit39, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit42, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit46, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit49, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit53, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp ]
  %102 = extractvalue { ptr, i32 } %lpad.phi, 0
  tail call void @__clang_call_terminate(ptr %102) #9
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK7RNArrayIP10MPCategoryE4TailEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK7RNArrayIP7MPLevelE4TailEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

; Function Attrs: nounwind
declare void @_ZN7R3SceneD1Ev(ptr noundef nonnull align 8 dereferenceable(352)) unnamed_addr #4

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

declare void @_ZN7MPImageD1Ev(ptr) local_unnamed_addr

declare void @_ZN10MPPanoramaD1Ev(ptr) local_unnamed_addr

declare void @_ZN9MPSegmentD1Ev(ptr) local_unnamed_addr

declare void @_ZN8MPObjectD1Ev(ptr) local_unnamed_addr

declare void @_ZN10MPCategoryD1Ev(ptr) local_unnamed_addr

declare void @_ZN8MPVertexD1Ev(ptr) local_unnamed_addr

declare void @_ZN9MPSurfaceD1Ev(ptr) local_unnamed_addr

declare void @_ZN8MPRegionD1Ev(ptr) local_unnamed_addr

declare void @_ZN8MPPortalD1Ev(ptr) local_unnamed_addr

declare void @_ZN7MPLevelD1Ev(ptr) local_unnamed_addr

attributes #0 = { noinline noreturn nounwind uwtable "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 = { mustprogress nounwind willreturn allockind("free") 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 #2 = { 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 #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 "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 #5 = { nobuiltin 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 #6 = { 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 #7 = { nounwind }
attributes #8 = { builtin nounwind }
attributes #9 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}
!8 = distinct !{!8, !6}
!9 = distinct !{!9, !6}
!10 = distinct !{!10, !6}
!11 = distinct !{!11, !6}
!12 = distinct !{!12, !6}
!13 = distinct !{!13, !6}
!14 = distinct !{!14, !6}
!15 = distinct !{!15, !6}
!16 = !{!17, !20, i64 288}
!17 = !{!"_ZTS7MPHouse", !18, i64 0, !24, i64 16, !25, i64 32, !26, i64 48, !27, i64 64, !28, i64 80, !29, i64 96, !30, i64 112, !31, i64 128, !32, i64 144, !33, i64 160, !20, i64 288, !20, i64 296, !36, i64 304, !20, i64 360, !20, i64 368}
!18 = !{!"_ZTS7RNArrayIP7MPImageE", !19, i64 0}
!19 = !{!"_ZTS8RNVArray", !20, i64 0, !23, i64 8, !23, i64 12}
!20 = !{!"any pointer", !21, i64 0}
!21 = !{!"omnipotent char", !22, i64 0}
!22 = !{!"Simple C++ TBAA"}
!23 = !{!"int", !21, i64 0}
!24 = !{!"_ZTS7RNArrayIP10MPPanoramaE", !19, i64 0}
!25 = !{!"_ZTS7RNArrayIP10MPCategoryE", !19, i64 0}
!26 = !{!"_ZTS7RNArrayIP9MPSegmentE", !19, i64 0}
!27 = !{!"_ZTS7RNArrayIP8MPObjectE", !19, i64 0}
!28 = !{!"_ZTS7RNArrayIP8MPVertexE", !19, i64 0}
!29 = !{!"_ZTS7RNArrayIP9MPSurfaceE", !19, i64 0}
!30 = !{!"_ZTS7RNArrayIP8MPRegionE", !19, i64 0}
!31 = !{!"_ZTS7RNArrayIP8MPPortalE", !19, i64 0}
!32 = !{!"_ZTS7RNArrayIP7MPLevelE", !19, i64 0}
!33 = !{!"_ZTS17RGBDConfiguration", !34, i64 8, !35, i64 24, !20, i64 40, !20, i64 48, !20, i64 56, !20, i64 64, !36, i64 72}
!34 = !{!"_ZTS7RNArrayIP9RGBDImageE", !19, i64 0}
!35 = !{!"_ZTS7RNArrayIP11RGBDSurfaceE", !19, i64 0}
!36 = !{!"_ZTS5R3Box", !37, i64 0, !39, i64 8, !39, i64 32}
!37 = !{!"_ZTS7R3Solid", !38, i64 0}
!38 = !{!"_ZTS7R3Shape"}
!39 = !{!"_ZTS7R3Point", !21, i64 0}
!40 = !{!17, !20, i64 296}
!41 = !{!42, !42, i64 0}
!42 = !{!"vtable pointer", !22, i64 0}
!43 = !{!17, !20, i64 360}
!44 = !{!17, !20, i64 368}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass