; LLVM IR from research-group-of-Xinzheng-Lu/SCI-effects-simulation :: SRC/PostprocessSpeed_MDOF-master/PostprocessSpeed_MDOF (building)

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

%class.Building = type { i32, %"class.std::__cxx11::basic_string", i32, i32, i32, i32, double, double, double, double, double, double, [4 x double], double, double, ptr, ptr, ptr, ptr, %"class.std::vector", i32, %"struct.Building::EDP", i32, double, double, double, %"class.std::vector.3", %"class.std::vector.3" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.Building::EDP" = type { %"class.std::vector.3", %"class.std::vector.3", double }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }

; 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 double @_ZSt3absd(double noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8Building11getResidualEv(ptr noundef nonnull align 8 dereferenceable(352) %0) #2 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca double, align 8
  %4 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %5 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #3
  store double 0.000000e+00, ptr %3, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  store i32 0, ptr %4, align 4, !tbaa !11
  br label %6

6:                                                ; preds = %223, %1
  %7 = load i32, ptr %4, align 4, !tbaa !11
  %8 = getelementptr inbounds %class.Building, ptr %5, i32 0, i32 5
  %9 = load i32, ptr %8, align 4, !tbaa !13
  %10 = icmp slt i32 %7, %9
  br i1 %10, label %12, label %11

11:                                               ; preds = %6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  br label %226

12:                                               ; preds = %6
  %13 = load i32, ptr %4, align 4, !tbaa !11
  %14 = icmp eq i32 %13, 0
  br i1 %14, label %15, label %52

15:                                               ; preds = %12
  %16 = load double, ptr %3, align 8, !tbaa !9
  %17 = getelementptr inbounds %class.Building, ptr %5, i32 0, i32 15
  %18 = load ptr, ptr %17, align 8, !tbaa !29
  %19 = load i32, ptr %4, align 4, !tbaa !11
  %20 = sext i32 %19 to i64
  %21 = getelementptr inbounds ptr, ptr %18, i64 %20
  %22 = load ptr, ptr %21, align 8, !tbaa !5
  %23 = getelementptr inbounds %class.Building, ptr %5, i32 0, i32 22
  %24 = load i32, ptr %23, align 8, !tbaa !30
  %25 = sub nsw i32 %24, 1
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds double, ptr %22, i64 %26
  %28 = load double, ptr %27, align 8, !tbaa !9
  %29 = call noundef double @_ZSt3absd(double noundef %28)
  %30 = getelementptr inbounds %class.Building, ptr %5, i32 0, i32 6
  %31 = load double, ptr %30, align 8, !tbaa !31
  %32 = fdiv double %29, %31
  %33 = fcmp olt double %16, %32
  br i1 %33, label %34, label %51

34:                                               ; preds = %15
  %35 = getelementptr inbounds %class.Building, ptr %5, i32 0, i32 15
  %36 = load ptr, ptr %35, align 8, !tbaa !29
  %37 = load i32, ptr %4, align 4, !tbaa !11
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds ptr, ptr %36, i64 %38
  %40 = load ptr, ptr %39, align 8, !tbaa !5
  %41 = getelementptr inbounds %class.Building, ptr %5, i32 0, i32 22
  %42 = load i32, ptr %41, align 8, !tbaa !30
  %43 = sub nsw i32 %42, 1
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds double, ptr %40, i64 %44
  %46 = load double, ptr %45, align 8, !tbaa !9
  %47 = call noundef double @_ZSt3absd(double noundef %46)
  %48 = getelementptr inbounds %class.Building, ptr %5, i32 0, i32 6
  %49 = load double, ptr %48, align 8, !tbaa !31
  %50 = fdiv double %47, %49
  store double %50, ptr %3, align 8, !tbaa !9
  br label %51

51:                                               ; preds = %34, %15
  br label %117

52:                                               ; preds = %12
  %53 = load double, ptr %3, align 8, !tbaa !9
  %54 = getelementptr inbounds %class.Building, ptr %5, i32 0, i32 15
  %55 = load ptr, ptr %54, align 8, !tbaa !29
  %56 = load i32, ptr %4, align 4, !tbaa !11
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds ptr, ptr %55, i64 %57
  %59 = load ptr, ptr %58, align 8, !tbaa !5
  %60 = getelementptr inbounds %class.Building, ptr %5, i32 0, i32 22
  %61 = load i32, ptr %60, align 8, !tbaa !30
  %62 = sub nsw i32 %61, 1
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds double, ptr %59, i64 %63
  %65 = load double, ptr %64, align 8, !tbaa !9
  %66 = getelementptr inbounds %class.Building, ptr %5, i32 0, i32 15
  %67 = load ptr, ptr %66, align 8, !tbaa !29
  %68 = load i32, ptr %4, align 4, !tbaa !11
  %69 = sub nsw i32 %68, 1
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds ptr, ptr %67, i64 %70
  %72 = load ptr, ptr %71, align 8, !tbaa !5
  %73 = getelementptr inbounds %class.Building, ptr %5, i32 0, i32 22
  %74 = load i32, ptr %73, align 8, !tbaa !30
  %75 = sub nsw i32 %74, 1
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds double, ptr %72, i64 %76
  %78 = load double, ptr %77, align 8, !tbaa !9
  %79 = fsub double %65, %78
  %80 = call noundef double @_ZSt3absd(double noundef %79)
  %81 = getelementptr inbounds %class.Building, ptr %5, i32 0, i32 6
  %82 = load double, ptr %81, align 8, !tbaa !31
  %83 = fdiv double %80, %82
  %84 = fcmp olt double %53, %83
  br i1 %84, label %85, label %116

85:                                               ; preds = %52
  %86 = getelementptr inbounds %class.Building, ptr %5, i32 0, i32 15
  %87 = load ptr, ptr %86, align 8, !tbaa !29
  %88 = load i32, ptr %4, align 4, !tbaa !11
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds ptr, ptr %87, i64 %89
  %91 = load ptr, ptr %90, align 8, !tbaa !5
  %92 = getelementptr inbounds %class.Building, ptr %5, i32 0, i32 22
  %93 = load i32, ptr %92, align 8, !tbaa !30
  %94 = sub nsw i32 %93, 1
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds double, ptr %91, i64 %95
  %97 = load double, ptr %96, align 8, !tbaa !9
  %98 = getelementptr inbounds %class.Building, ptr %5, i32 0, i32 15
  %99 = load ptr, ptr %98, align 8, !tbaa !29
  %100 = load i32, ptr %4, align 4, !tbaa !11
  %101 = sub nsw i32 %100, 1
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds ptr, ptr %99, i64 %102
  %104 = load ptr, ptr %103, align 8, !tbaa !5
  %105 = getelementptr inbounds %class.Building, ptr %5, i32 0, i32 22
  %106 = load i32, ptr %105, align 8, !tbaa !30
  %107 = sub nsw i32 %106, 1
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds double, ptr %104, i64 %108
  %110 = load double, ptr %109, align 8, !tbaa !9
  %111 = fsub double %97, %110
  %112 = call noundef double @_ZSt3absd(double noundef %111)
  %113 = getelementptr inbounds %class.Building, ptr %5, i32 0, i32 6
  %114 = load double, ptr %113, align 8, !tbaa !31
  %115 = fdiv double %112, %114
  store double %115, ptr %3, align 8, !tbaa !9
  br label %116

116:                                              ; preds = %85, %52
  br label %117

117:                                              ; preds = %116, %51
  %118 = load i32, ptr %4, align 4, !tbaa !11
  %119 = icmp eq i32 %118, 0
  br i1 %119, label %120, label %157

120:                                              ; preds = %117
  %121 = load double, ptr %3, align 8, !tbaa !9
  %122 = getelementptr inbounds %class.Building, ptr %5, i32 0, i32 17
  %123 = load ptr, ptr %122, align 8, !tbaa !32
  %124 = load i32, ptr %4, align 4, !tbaa !11
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds ptr, ptr %123, i64 %125
  %127 = load ptr, ptr %126, align 8, !tbaa !5
  %128 = getelementptr inbounds %class.Building, ptr %5, i32 0, i32 22
  %129 = load i32, ptr %128, align 8, !tbaa !30
  %130 = sub nsw i32 %129, 1
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds double, ptr %127, i64 %131
  %133 = load double, ptr %132, align 8, !tbaa !9
  %134 = call noundef double @_ZSt3absd(double noundef %133)
  %135 = getelementptr inbounds %class.Building, ptr %5, i32 0, i32 6
  %136 = load double, ptr %135, align 8, !tbaa !31
  %137 = fdiv double %134, %136
  %138 = fcmp olt double %121, %137
  br i1 %138, label %139, label %156

139:                                              ; preds = %120
  %140 = getelementptr inbounds %class.Building, ptr %5, i32 0, i32 17
  %141 = load ptr, ptr %140, align 8, !tbaa !32
  %142 = load i32, ptr %4, align 4, !tbaa !11
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds ptr, ptr %141, i64 %143
  %145 = load ptr, ptr %144, align 8, !tbaa !5
  %146 = getelementptr inbounds %class.Building, ptr %5, i32 0, i32 22
  %147 = load i32, ptr %146, align 8, !tbaa !30
  %148 = sub nsw i32 %147, 1
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds double, ptr %145, i64 %149
  %151 = load double, ptr %150, align 8, !tbaa !9
  %152 = call noundef double @_ZSt3absd(double noundef %151)
  %153 = getelementptr inbounds %class.Building, ptr %5, i32 0, i32 6
  %154 = load double, ptr %153, align 8, !tbaa !31
  %155 = fdiv double %152, %154
  store double %155, ptr %3, align 8, !tbaa !9
  br label %156

156:                                              ; preds = %139, %120
  br label %222

157:                                              ; preds = %117
  %158 = load double, ptr %3, align 8, !tbaa !9
  %159 = getelementptr inbounds %class.Building, ptr %5, i32 0, i32 17
  %160 = load ptr, ptr %159, align 8, !tbaa !32
  %161 = load i32, ptr %4, align 4, !tbaa !11
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds ptr, ptr %160, i64 %162
  %164 = load ptr, ptr %163, align 8, !tbaa !5
  %165 = getelementptr inbounds %class.Building, ptr %5, i32 0, i32 22
  %166 = load i32, ptr %165, align 8, !tbaa !30
  %167 = sub nsw i32 %166, 1
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds double, ptr %164, i64 %168
  %170 = load double, ptr %169, align 8, !tbaa !9
  %171 = getelementptr inbounds %class.Building, ptr %5, i32 0, i32 17
  %172 = load ptr, ptr %171, align 8, !tbaa !32
  %173 = load i32, ptr %4, align 4, !tbaa !11
  %174 = sub nsw i32 %173, 1
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds ptr, ptr %172, i64 %175
  %177 = load ptr, ptr %176, align 8, !tbaa !5
  %178 = getelementptr inbounds %class.Building, ptr %5, i32 0, i32 22
  %179 = load i32, ptr %178, align 8, !tbaa !30
  %180 = sub nsw i32 %179, 1
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds double, ptr %177, i64 %181
  %183 = load double, ptr %182, align 8, !tbaa !9
  %184 = fsub double %170, %183
  %185 = call noundef double @_ZSt3absd(double noundef %184)
  %186 = getelementptr inbounds %class.Building, ptr %5, i32 0, i32 6
  %187 = load double, ptr %186, align 8, !tbaa !31
  %188 = fdiv double %185, %187
  %189 = fcmp olt double %158, %188
  br i1 %189, label %190, label %221

190:                                              ; preds = %157
  %191 = getelementptr inbounds %class.Building, ptr %5, i32 0, i32 17
  %192 = load ptr, ptr %191, align 8, !tbaa !32
  %193 = load i32, ptr %4, align 4, !tbaa !11
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds ptr, ptr %192, i64 %194
  %196 = load ptr, ptr %195, align 8, !tbaa !5
  %197 = getelementptr inbounds %class.Building, ptr %5, i32 0, i32 22
  %198 = load i32, ptr %197, align 8, !tbaa !30
  %199 = sub nsw i32 %198, 1
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds double, ptr %196, i64 %200
  %202 = load double, ptr %201, align 8, !tbaa !9
  %203 = getelementptr inbounds %class.Building, ptr %5, i32 0, i32 17
  %204 = load ptr, ptr %203, align 8, !tbaa !32
  %205 = load i32, ptr %4, align 4, !tbaa !11
  %206 = sub nsw i32 %205, 1
  %207 = sext i32 %206 to i64
  %208 = getelementptr inbounds ptr, ptr %204, i64 %207
  %209 = load ptr, ptr %208, align 8, !tbaa !5
  %210 = getelementptr inbounds %class.Building, ptr %5, i32 0, i32 22
  %211 = load i32, ptr %210, align 8, !tbaa !30
  %212 = sub nsw i32 %211, 1
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds double, ptr %209, i64 %213
  %215 = load double, ptr %214, align 8, !tbaa !9
  %216 = fsub double %202, %215
  %217 = call noundef double @_ZSt3absd(double noundef %216)
  %218 = getelementptr inbounds %class.Building, ptr %5, i32 0, i32 6
  %219 = load double, ptr %218, align 8, !tbaa !31
  %220 = fdiv double %217, %219
  store double %220, ptr %3, align 8, !tbaa !9
  br label %221

221:                                              ; preds = %190, %157
  br label %222

222:                                              ; preds = %221, %156
  br label %223

223:                                              ; preds = %222
  %224 = load i32, ptr %4, align 4, !tbaa !11
  %225 = add nsw i32 %224, 1
  store i32 %225, ptr %4, align 4, !tbaa !11
  br label %6, !llvm.loop !33

226:                                              ; preds = %11
  %227 = load double, ptr %3, align 8, !tbaa !9
  %228 = getelementptr inbounds %class.Building, ptr %5, i32 0, i32 21
  %229 = getelementptr inbounds %"struct.Building::EDP", ptr %228, i32 0, i32 2
  store double %227, ptr %229, align 8, !tbaa !35
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
  ret void
}

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 = { 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 = { 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}
!13 = !{!14, !12, i64 52}
!14 = !{!"_ZTS8Building", !12, i64 0, !15, i64 8, !18, i64 40, !12, i64 44, !19, i64 48, !12, i64 52, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !7, i64 104, !10, i64 136, !10, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !20, i64 184, !12, i64 208, !24, i64 216, !12, i64 272, !10, i64 280, !10, i64 288, !10, i64 296, !25, i64 304, !25, i64 328}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !16, i64 0, !17, i64 8, !7, i64 16}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!17 = !{!"long", !7, i64 0}
!18 = !{!"_ZTSN8Building8StruTypeE", !7, i64 0}
!19 = !{!"_ZTSN8Building13BldgOccupancyE", !7, i64 0}
!20 = !{!"_ZTSSt6vectorIiSaIiEE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!24 = !{!"_ZTSN8Building3EDPE", !25, i64 0, !25, i64 24, !10, i64 48}
!25 = !{!"_ZTSSt6vectorIdSaIdEE", !26, i64 0}
!26 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!29 = !{!14, !6, i64 152}
!30 = !{!14, !12, i64 272}
!31 = !{!14, !10, i64 56}
!32 = !{!14, !6, i64 168}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}
!35 = !{!14, !10, i64 264}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3absd(double noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN8Building11getResidualEv(ptr nocapture noundef nonnull align 8 dereferenceable(352) %0) local_unnamed_addr #1 align 2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 52
  %3 = load i32, ptr %2, align 4, !tbaa !5
  %4 = icmp sgt i32 %3, 0
  br i1 %4, label %5, label %._crit_edge

5:                                                ; preds = %1
  %6 = getelementptr inbounds i8, ptr %0, i64 152
  %7 = getelementptr inbounds i8, ptr %0, i64 272
  %8 = getelementptr inbounds i8, ptr %0, i64 56
  %9 = getelementptr inbounds i8, ptr %0, i64 168
  %10 = load ptr, ptr %6, align 8, !tbaa !26
  %11 = load ptr, ptr %10, align 8, !tbaa !27
  %12 = load i32, ptr %7, align 8, !tbaa !28
  %13 = sext i32 %12 to i64
  %14 = getelementptr double, ptr %11, i64 %13
  %15 = getelementptr i8, ptr %14, i64 -8
  %16 = load double, ptr %15, align 8, !tbaa !29
  %17 = tail call noundef double @_ZSt3absd(double noundef %16)
  %18 = load double, ptr %8, align 8, !tbaa !30
  %19 = fdiv double %17, %18
  %20 = fcmp ogt double %19, 0.000000e+00
  br i1 %20, label %21, label %32

21:                                               ; preds = %5
  %22 = load ptr, ptr %6, align 8, !tbaa !26
  %23 = load ptr, ptr %22, align 8, !tbaa !27
  %24 = load i32, ptr %7, align 8, !tbaa !28
  %25 = sext i32 %24 to i64
  %26 = getelementptr double, ptr %23, i64 %25
  %27 = getelementptr i8, ptr %26, i64 -8
  %28 = load double, ptr %27, align 8, !tbaa !29
  %29 = tail call noundef double @_ZSt3absd(double noundef %28)
  %30 = load double, ptr %8, align 8, !tbaa !30
  %31 = fdiv double %29, %30
  br label %32

32:                                               ; preds = %21, %5
  %.1.ph.peel = phi double [ 0.000000e+00, %5 ], [ %31, %21 ]
  %33 = load ptr, ptr %9, align 8, !tbaa !31
  %34 = load ptr, ptr %33, align 8, !tbaa !27
  %35 = load i32, ptr %7, align 8, !tbaa !28
  %36 = sext i32 %35 to i64
  %37 = getelementptr double, ptr %34, i64 %36
  %38 = getelementptr i8, ptr %37, i64 -8
  %39 = load double, ptr %38, align 8, !tbaa !29
  %40 = tail call noundef double @_ZSt3absd(double noundef %39)
  %41 = load double, ptr %8, align 8, !tbaa !30
  %42 = fdiv double %40, %41
  %43 = fcmp olt double %.1.ph.peel, %42
  br i1 %43, label %44, label %55

44:                                               ; preds = %32
  %45 = load ptr, ptr %9, align 8, !tbaa !31
  %46 = load ptr, ptr %45, align 8, !tbaa !27
  %47 = load i32, ptr %7, align 8, !tbaa !28
  %48 = sext i32 %47 to i64
  %49 = getelementptr double, ptr %46, i64 %48
  %50 = getelementptr i8, ptr %49, i64 -8
  %51 = load double, ptr %50, align 8, !tbaa !29
  %52 = tail call noundef double @_ZSt3absd(double noundef %51)
  %53 = load double, ptr %8, align 8, !tbaa !30
  %54 = fdiv double %52, %53
  br label %55

55:                                               ; preds = %44, %32
  %.2.peel = phi double [ %54, %44 ], [ %.1.ph.peel, %32 ]
  %56 = load i32, ptr %2, align 4, !tbaa !5
  %57 = icmp sgt i32 %56, 1
  br i1 %57, label %.peel.next, label %._crit_edge

._crit_edge:                                      ; preds = %129, %55, %1
  %.021.lcssa = phi double [ 0.000000e+00, %1 ], [ %.2.peel, %55 ], [ %.2, %129 ]
  %58 = getelementptr inbounds i8, ptr %0, i64 264
  store double %.021.lcssa, ptr %58, align 8, !tbaa !32
  ret void

.peel.next:                                       ; preds = %55, %129
  %indvars.iv = phi i64 [ %indvars.iv.next, %129 ], [ 1, %55 ]
  %.02124 = phi double [ %.2, %129 ], [ %.2.peel, %55 ]
  %59 = load ptr, ptr %6, align 8, !tbaa !26
  %60 = getelementptr inbounds ptr, ptr %59, i64 %indvars.iv
  %61 = load ptr, ptr %60, align 8, !tbaa !27
  %62 = load i32, ptr %7, align 8, !tbaa !28
  %63 = add nsw i32 %62, -1
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds double, ptr %61, i64 %64
  %66 = load double, ptr %65, align 8, !tbaa !29
  %67 = add nsw i64 %indvars.iv, -1
  %68 = getelementptr inbounds ptr, ptr %59, i64 %67
  %69 = load ptr, ptr %68, align 8, !tbaa !27
  %70 = getelementptr inbounds double, ptr %69, i64 %64
  %71 = load double, ptr %70, align 8, !tbaa !29
  %72 = fsub double %66, %71
  %73 = tail call noundef double @_ZSt3absd(double noundef %72)
  %74 = load double, ptr %8, align 8, !tbaa !30
  %75 = fdiv double %73, %74
  %76 = fcmp olt double %.02124, %75
  br i1 %76, label %77, label %94

77:                                               ; preds = %.peel.next
  %78 = load ptr, ptr %6, align 8, !tbaa !26
  %79 = getelementptr inbounds ptr, ptr %78, i64 %indvars.iv
  %80 = load ptr, ptr %79, align 8, !tbaa !27
  %81 = load i32, ptr %7, align 8, !tbaa !28
  %82 = add nsw i32 %81, -1
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds double, ptr %80, i64 %83
  %85 = load double, ptr %84, align 8, !tbaa !29
  %86 = getelementptr inbounds ptr, ptr %78, i64 %67
  %87 = load ptr, ptr %86, align 8, !tbaa !27
  %88 = getelementptr inbounds double, ptr %87, i64 %83
  %89 = load double, ptr %88, align 8, !tbaa !29
  %90 = fsub double %85, %89
  %91 = tail call noundef double @_ZSt3absd(double noundef %90)
  %92 = load double, ptr %8, align 8, !tbaa !30
  %93 = fdiv double %91, %92
  br label %94

94:                                               ; preds = %77, %.peel.next
  %.1 = phi double [ %93, %77 ], [ %.02124, %.peel.next ]
  %95 = load ptr, ptr %9, align 8, !tbaa !31
  %96 = getelementptr inbounds ptr, ptr %95, i64 %indvars.iv
  %97 = load ptr, ptr %96, align 8, !tbaa !27
  %98 = load i32, ptr %7, align 8, !tbaa !28
  %99 = add nsw i32 %98, -1
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds double, ptr %97, i64 %100
  %102 = load double, ptr %101, align 8, !tbaa !29
  %103 = getelementptr inbounds ptr, ptr %95, i64 %67
  %104 = load ptr, ptr %103, align 8, !tbaa !27
  %105 = getelementptr inbounds double, ptr %104, i64 %100
  %106 = load double, ptr %105, align 8, !tbaa !29
  %107 = fsub double %102, %106
  %108 = tail call noundef double @_ZSt3absd(double noundef %107)
  %109 = load double, ptr %8, align 8, !tbaa !30
  %110 = fdiv double %108, %109
  %111 = fcmp olt double %.1, %110
  br i1 %111, label %112, label %129

112:                                              ; preds = %94
  %113 = load ptr, ptr %9, align 8, !tbaa !31
  %114 = getelementptr inbounds ptr, ptr %113, i64 %indvars.iv
  %115 = load ptr, ptr %114, align 8, !tbaa !27
  %116 = load i32, ptr %7, align 8, !tbaa !28
  %117 = add nsw i32 %116, -1
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds double, ptr %115, i64 %118
  %120 = load double, ptr %119, align 8, !tbaa !29
  %121 = getelementptr inbounds ptr, ptr %113, i64 %67
  %122 = load ptr, ptr %121, align 8, !tbaa !27
  %123 = getelementptr inbounds double, ptr %122, i64 %118
  %124 = load double, ptr %123, align 8, !tbaa !29
  %125 = fsub double %120, %124
  %126 = tail call noundef double @_ZSt3absd(double noundef %125)
  %127 = load double, ptr %8, align 8, !tbaa !30
  %128 = fdiv double %126, %127
  br label %129

129:                                              ; preds = %112, %94
  %.2 = phi double [ %128, %112 ], [ %.1, %94 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %130 = load i32, ptr %2, align 4, !tbaa !5
  %131 = sext i32 %130 to i64
  %132 = icmp slt i64 %indvars.iv.next, %131
  br i1 %132, label %.peel.next, label %._crit_edge, !llvm.loop !33
}

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 52}
!6 = !{!"_ZTS8Building", !7, i64 0, !10, i64 8, !14, i64 40, !7, i64 44, !15, i64 48, !7, i64 52, !16, i64 56, !16, i64 64, !16, i64 72, !16, i64 80, !16, i64 88, !16, i64 96, !8, i64 104, !16, i64 136, !16, i64 144, !12, i64 152, !12, i64 160, !12, i64 168, !12, i64 176, !17, i64 184, !7, i64 208, !21, i64 216, !7, i64 272, !16, i64 280, !16, i64 288, !16, i64 296, !22, i64 304, !22, i64 328}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !11, i64 0, !13, i64 8, !8, i64 16}
!11 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !12, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!"long", !8, i64 0}
!14 = !{!"_ZTSN8Building8StruTypeE", !8, i64 0}
!15 = !{!"_ZTSN8Building13BldgOccupancyE", !8, i64 0}
!16 = !{!"double", !8, i64 0}
!17 = !{!"_ZTSSt6vectorIiSaIiEE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!21 = !{!"_ZTSN8Building3EDPE", !22, i64 0, !22, i64 24, !16, i64 48}
!22 = !{!"_ZTSSt6vectorIdSaIdEE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!26 = !{!6, !12, i64 152}
!27 = !{!12, !12, i64 0}
!28 = !{!6, !7, i64 272}
!29 = !{!16, !16, i64 0}
!30 = !{!6, !16, i64 56}
!31 = !{!6, !12, i64 168}
!32 = !{!6, !16, i64 264}
!33 = distinct !{!33, !34, !35}
!34 = !{!"llvm.loop.mustprogress"}
!35 = !{!"llvm.loop.peeled.count", i32 1}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopFullUnrollPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass