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

; 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 speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #1

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #2

; 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) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIdSaIdEE9push_backERKd(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8Building6getPFAEv(ptr noundef nonnull align 8 dereferenceable(352) %0) #4 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %8 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  %9 = getelementptr inbounds %class.Building, ptr %8, i32 0, i32 5
  %10 = load i32, ptr %9, align 4, !tbaa !9
  %11 = sext i32 %10 to i64
  %12 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %11, i64 8)
  %13 = extractvalue { i64, i1 } %12, 1
  %14 = extractvalue { i64, i1 } %12, 0
  %15 = select i1 %13, i64 -1, i64 %14
  %16 = call noalias noundef nonnull ptr @_Znam(i64 noundef %15) #6
  store ptr %16, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 0, ptr %4, align 4, !tbaa !27
  br label %17

17:                                               ; preds = %28, %1
  %18 = load i32, ptr %4, align 4, !tbaa !27
  %19 = getelementptr inbounds %class.Building, ptr %8, i32 0, i32 5
  %20 = load i32, ptr %19, align 4, !tbaa !9
  %21 = icmp slt i32 %18, %20
  br i1 %21, label %23, label %22

22:                                               ; preds = %17
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %31

23:                                               ; preds = %17
  %24 = load ptr, ptr %3, align 8, !tbaa !5
  %25 = load i32, ptr %4, align 4, !tbaa !27
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds double, ptr %24, i64 %26
  store double 0.000000e+00, ptr %27, align 8, !tbaa !28
  br label %28

28:                                               ; preds = %23
  %29 = load i32, ptr %4, align 4, !tbaa !27
  %30 = add nsw i32 %29, 1
  store i32 %30, ptr %4, align 4, !tbaa !27
  br label %17, !llvm.loop !29

31:                                               ; preds = %22
  %32 = getelementptr inbounds %class.Building, ptr %8, i32 0, i32 24
  %33 = load double, ptr %32, align 8, !tbaa !31
  %34 = getelementptr inbounds %class.Building, ptr %8, i32 0, i32 25
  %35 = load double, ptr %34, align 8, !tbaa !32
  %36 = fcmp olt double %33, %35
  br i1 %36, label %37, label %41

37:                                               ; preds = %31
  %38 = getelementptr inbounds %class.Building, ptr %8, i32 0, i32 21
  %39 = getelementptr inbounds %"struct.Building::EDP", ptr %38, i32 0, i32 1
  %40 = getelementptr inbounds %class.Building, ptr %8, i32 0, i32 25
  call void @_ZNSt6vectorIdSaIdEE9push_backERKd(ptr noundef nonnull align 8 dereferenceable(24) %39, ptr noundef nonnull align 8 dereferenceable(8) %40)
  br label %45

41:                                               ; preds = %31
  %42 = getelementptr inbounds %class.Building, ptr %8, i32 0, i32 21
  %43 = getelementptr inbounds %"struct.Building::EDP", ptr %42, i32 0, i32 1
  %44 = getelementptr inbounds %class.Building, ptr %8, i32 0, i32 24
  call void @_ZNSt6vectorIdSaIdEE9push_backERKd(ptr noundef nonnull align 8 dereferenceable(24) %43, ptr noundef nonnull align 8 dereferenceable(8) %44)
  br label %45

45:                                               ; preds = %41, %37
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 0, ptr %5, align 4, !tbaa !27
  br label %46

46:                                               ; preds = %138, %45
  %47 = load i32, ptr %5, align 4, !tbaa !27
  %48 = getelementptr inbounds %class.Building, ptr %8, i32 0, i32 5
  %49 = load i32, ptr %48, align 4, !tbaa !9
  %50 = icmp slt i32 %47, %49
  br i1 %50, label %52, label %51

51:                                               ; preds = %46
  store i32 5, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %141

52:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !27
  br label %53

53:                                               ; preds = %128, %52
  %54 = load i32, ptr %7, align 4, !tbaa !27
  %55 = getelementptr inbounds %class.Building, ptr %8, i32 0, i32 22
  %56 = load i32, ptr %55, align 8, !tbaa !33
  %57 = icmp slt i32 %54, %56
  br i1 %57, label %59, label %58

58:                                               ; preds = %53
  store i32 8, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %131

59:                                               ; preds = %53
  %60 = load ptr, ptr %3, align 8, !tbaa !5
  %61 = load i32, ptr %5, align 4, !tbaa !27
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds double, ptr %60, i64 %62
  %64 = load double, ptr %63, align 8, !tbaa !28
  %65 = getelementptr inbounds %class.Building, ptr %8, i32 0, i32 16
  %66 = load ptr, ptr %65, align 8, !tbaa !34
  %67 = load i32, ptr %5, align 4, !tbaa !27
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds ptr, ptr %66, i64 %68
  %70 = load ptr, ptr %69, align 8, !tbaa !5
  %71 = load i32, ptr %7, align 4, !tbaa !27
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds double, ptr %70, i64 %72
  %74 = load double, ptr %73, align 8, !tbaa !28
  %75 = call noundef double @_ZSt3absd(double noundef %74)
  %76 = fcmp olt double %64, %75
  br i1 %76, label %77, label %93

77:                                               ; preds = %59
  %78 = getelementptr inbounds %class.Building, ptr %8, i32 0, i32 16
  %79 = load ptr, ptr %78, align 8, !tbaa !34
  %80 = load i32, ptr %5, align 4, !tbaa !27
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds ptr, ptr %79, i64 %81
  %83 = load ptr, ptr %82, align 8, !tbaa !5
  %84 = load i32, ptr %7, align 4, !tbaa !27
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds double, ptr %83, i64 %85
  %87 = load double, ptr %86, align 8, !tbaa !28
  %88 = call noundef double @_ZSt3absd(double noundef %87)
  %89 = load ptr, ptr %3, align 8, !tbaa !5
  %90 = load i32, ptr %5, align 4, !tbaa !27
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds double, ptr %89, i64 %91
  store double %88, ptr %92, align 8, !tbaa !28
  br label %93

93:                                               ; preds = %77, %59
  %94 = load ptr, ptr %3, align 8, !tbaa !5
  %95 = load i32, ptr %5, align 4, !tbaa !27
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds double, ptr %94, i64 %96
  %98 = load double, ptr %97, align 8, !tbaa !28
  %99 = getelementptr inbounds %class.Building, ptr %8, i32 0, i32 18
  %100 = load ptr, ptr %99, align 8, !tbaa !35
  %101 = load i32, ptr %5, align 4, !tbaa !27
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds ptr, ptr %100, i64 %102
  %104 = load ptr, ptr %103, align 8, !tbaa !5
  %105 = load i32, ptr %7, align 4, !tbaa !27
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds double, ptr %104, i64 %106
  %108 = load double, ptr %107, align 8, !tbaa !28
  %109 = call noundef double @_ZSt3absd(double noundef %108)
  %110 = fcmp olt double %98, %109
  br i1 %110, label %111, label %127

111:                                              ; preds = %93
  %112 = getelementptr inbounds %class.Building, ptr %8, i32 0, i32 18
  %113 = load ptr, ptr %112, align 8, !tbaa !35
  %114 = load i32, ptr %5, align 4, !tbaa !27
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds ptr, ptr %113, i64 %115
  %117 = load ptr, ptr %116, align 8, !tbaa !5
  %118 = load i32, ptr %7, align 4, !tbaa !27
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds double, ptr %117, i64 %119
  %121 = load double, ptr %120, align 8, !tbaa !28
  %122 = call noundef double @_ZSt3absd(double noundef %121)
  %123 = load ptr, ptr %3, align 8, !tbaa !5
  %124 = load i32, ptr %5, align 4, !tbaa !27
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds double, ptr %123, i64 %125
  store double %122, ptr %126, align 8, !tbaa !28
  br label %127

127:                                              ; preds = %111, %93
  br label %128

128:                                              ; preds = %127
  %129 = load i32, ptr %7, align 4, !tbaa !27
  %130 = add nsw i32 %129, 1
  store i32 %130, ptr %7, align 4, !tbaa !27
  br label %53, !llvm.loop !36

131:                                              ; preds = %58
  %132 = getelementptr inbounds %class.Building, ptr %8, i32 0, i32 21
  %133 = getelementptr inbounds %"struct.Building::EDP", ptr %132, i32 0, i32 1
  %134 = load ptr, ptr %3, align 8, !tbaa !5
  %135 = load i32, ptr %5, align 4, !tbaa !27
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds double, ptr %134, i64 %136
  call void @_ZNSt6vectorIdSaIdEE9push_backERKd(ptr noundef nonnull align 8 dereferenceable(24) %133, ptr noundef nonnull align 8 dereferenceable(8) %137)
  br label %138

138:                                              ; preds = %131
  %139 = load i32, ptr %5, align 4, !tbaa !27
  %140 = add nsw i32 %139, 1
  store i32 %140, ptr %5, align 4, !tbaa !27
  br label %46, !llvm.loop !37

141:                                              ; preds = %51
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nobuiltin allocsize(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 = { 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 #4 = { 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 #5 = { nounwind }
attributes #6 = { builtin allocsize(0) }

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


; 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: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIdSaIdEE9push_backERKd(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8Building6getPFAEv(ptr noundef nonnull align 8 dereferenceable(352) %0) local_unnamed_addr #2 align 2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 52
  %3 = load i32, ptr %2, align 4, !tbaa !5
  %4 = sext i32 %3 to i64
  %5 = icmp slt i32 %3, 0
  %6 = shl nsw i64 %4, 3
  %7 = select i1 %5, i64 -1, i64 %6
  %8 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %7) #4
  %9 = icmp sgt i32 %3, 0
  br i1 %9, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %1
  %10 = zext nneg i32 %3 to i64
  %11 = shl nuw nsw i64 %10, 3
  tail call void @llvm.memset.p0.i64(ptr nonnull align 8 %8, i8 0, i64 %11, i1 false), !tbaa !26
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph.preheader, %1
  %12 = getelementptr inbounds i8, ptr %0, i64 288
  %13 = load double, ptr %12, align 8, !tbaa !27
  %14 = getelementptr inbounds i8, ptr %0, i64 296
  %15 = load double, ptr %14, align 8, !tbaa !28
  %16 = fcmp olt double %13, %15
  %17 = getelementptr inbounds i8, ptr %0, i64 240
  %. = select i1 %16, ptr %14, ptr %12
  tail call void @_ZNSt6vectorIdSaIdEE9push_backERKd(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 8 dereferenceable(8) %.)
  %18 = load i32, ptr %2, align 4, !tbaa !5
  %19 = icmp sgt i32 %18, 0
  br i1 %19, label %.preheader.lr.ph, label %._crit_edge33

.preheader.lr.ph:                                 ; preds = %._crit_edge
  %20 = getelementptr inbounds i8, ptr %0, i64 272
  %21 = getelementptr inbounds i8, ptr %0, i64 160
  %22 = getelementptr inbounds i8, ptr %0, i64 176
  %23 = getelementptr inbounds i8, ptr %0, i64 240
  br label %.preheader

.preheader:                                       ; preds = %.preheader.lr.ph, %._crit_edge31
  %indvars.iv36 = phi i64 [ 0, %.preheader.lr.ph ], [ %indvars.iv.next37, %._crit_edge31 ]
  %24 = load i32, ptr %20, align 8, !tbaa !29
  %25 = icmp sgt i32 %24, 0
  br i1 %25, label %.lr.ph30, label %._crit_edge31

.lr.ph30:                                         ; preds = %.preheader
  %26 = getelementptr inbounds double, ptr %8, i64 %indvars.iv36
  br label %31

._crit_edge33:                                    ; preds = %._crit_edge31, %._crit_edge
  ret void

._crit_edge31:                                    ; preds = %63, %.preheader
  %27 = getelementptr inbounds double, ptr %8, i64 %indvars.iv36
  tail call void @_ZNSt6vectorIdSaIdEE9push_backERKd(ptr noundef nonnull align 8 dereferenceable(24) %23, ptr noundef nonnull align 8 dereferenceable(8) %27)
  %indvars.iv.next37 = add nuw nsw i64 %indvars.iv36, 1
  %28 = load i32, ptr %2, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  %30 = icmp slt i64 %indvars.iv.next37, %29
  br i1 %30, label %.preheader, label %._crit_edge33, !llvm.loop !30

31:                                               ; preds = %.lr.ph30, %63
  %indvars.iv = phi i64 [ 0, %.lr.ph30 ], [ %indvars.iv.next, %63 ]
  %32 = load double, ptr %26, align 8, !tbaa !26
  %33 = load ptr, ptr %21, align 8, !tbaa !32
  %34 = getelementptr inbounds ptr, ptr %33, i64 %indvars.iv36
  %35 = load ptr, ptr %34, align 8, !tbaa !33
  %36 = getelementptr inbounds double, ptr %35, i64 %indvars.iv
  %37 = load double, ptr %36, align 8, !tbaa !26
  %38 = tail call noundef double @_ZSt3absd(double noundef %37)
  %39 = fcmp olt double %32, %38
  br i1 %39, label %40, label %._crit_edge39

._crit_edge39:                                    ; preds = %31
  %.pre = load double, ptr %26, align 8, !tbaa !26
  br label %47

40:                                               ; preds = %31
  %41 = load ptr, ptr %21, align 8, !tbaa !32
  %42 = getelementptr inbounds ptr, ptr %41, i64 %indvars.iv36
  %43 = load ptr, ptr %42, align 8, !tbaa !33
  %44 = getelementptr inbounds double, ptr %43, i64 %indvars.iv
  %45 = load double, ptr %44, align 8, !tbaa !26
  %46 = tail call noundef double @_ZSt3absd(double noundef %45)
  store double %46, ptr %26, align 8, !tbaa !26
  br label %47

47:                                               ; preds = %._crit_edge39, %40
  %48 = phi double [ %.pre, %._crit_edge39 ], [ %46, %40 ]
  %49 = load ptr, ptr %22, align 8, !tbaa !34
  %50 = getelementptr inbounds ptr, ptr %49, i64 %indvars.iv36
  %51 = load ptr, ptr %50, align 8, !tbaa !33
  %52 = getelementptr inbounds double, ptr %51, i64 %indvars.iv
  %53 = load double, ptr %52, align 8, !tbaa !26
  %54 = tail call noundef double @_ZSt3absd(double noundef %53)
  %55 = fcmp olt double %48, %54
  br i1 %55, label %56, label %63

56:                                               ; preds = %47
  %57 = load ptr, ptr %22, align 8, !tbaa !34
  %58 = getelementptr inbounds ptr, ptr %57, i64 %indvars.iv36
  %59 = load ptr, ptr %58, align 8, !tbaa !33
  %60 = getelementptr inbounds double, ptr %59, i64 %indvars.iv
  %61 = load double, ptr %60, align 8, !tbaa !26
  %62 = tail call noundef double @_ZSt3absd(double noundef %61)
  store double %62, ptr %26, align 8, !tbaa !26
  br label %63

63:                                               ; preds = %47, %56
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %64 = load i32, ptr %20, align 8, !tbaa !29
  %65 = sext i32 %64 to i64
  %66 = icmp slt i64 %indvars.iv.next, %65
  br i1 %66, label %31, label %._crit_edge31, !llvm.loop !35
}

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

attributes #0 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { inlinehint mustprogress 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { builtin allocsize(0) }

!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 = !{!16, !16, i64 0}
!27 = !{!6, !16, i64 288}
!28 = !{!6, !16, i64 296}
!29 = !{!6, !7, i64 272}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = !{!6, !12, i64 160}
!33 = !{!12, !12, i64 0}
!34 = !{!6, !12, i64 176}
!35 = distinct !{!35, !31}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopIdiomRecognizePass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass