; LLVM IR from research-group-of-Xinzheng-Lu/SCI-effects-simulation :: SRC/createSAMSCI-master/Building.ll (ZN8Building11writeSAMSCIEPKc)

; 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.std::basic_ofstream" = type { %"class.std::basic_ostream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon.8 }
%union.anon.8 = type { i32 }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%class.Building = type <{ i32, [4 x i8], %"class.std::__cxx11::basic_string", i32, [4 x i8], %"class.std::__cxx11::basic_string", i32, i32, i32, [4 x i8], double, double, double, double, double, %"class.std::vector", %"class.std::vector.3", [4 x double], double, double, double, double, double, i32, [4 x i8] }>
%"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<InterstoryParam, std::allocator<InterstoryParam>>::_Vector_impl" }
%"struct.std::_Vector_base<InterstoryParam, std::allocator<InterstoryParam>>::_Vector_impl" = type { %"struct.std::_Vector_base<InterstoryParam, std::allocator<InterstoryParam>>::_Vector_impl_data" }
%"struct.std::_Vector_base<InterstoryParam, std::allocator<InterstoryParam>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<FloorParam, std::allocator<FloorParam>>::_Vector_impl" }
%"struct.std::_Vector_base<FloorParam, std::allocator<FloorParam>>::_Vector_impl" = type { %"struct.std::_Vector_base<FloorParam, std::allocator<FloorParam>>::_Vector_impl_data" }
%"struct.std::_Vector_base<FloorParam, std::allocator<FloorParam>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.InterstoryParam = type { i32, double, double, double, double, double, double, double, double, double, double }

@.str.70 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt6vectorI15InterstoryParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8Building11writeSAMSCIEPKc(ptr noundef nonnull align 8 dereferenceable(260) %0, ptr noundef %1) #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.std::basic_ofstream", align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %9 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 512, ptr %5) #5
  %10 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %5, ptr noundef %10, i32 noundef 1)
  %11 = getelementptr inbounds %class.Building, ptr %9, i32 0, i32 2
  %12 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %13 unwind label %56

13:                                               ; preds = %2
  %14 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef @.str.70)
          to label %15 unwind label %56

15:                                               ; preds = %13
  %16 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %14, i32 noundef 0)
          to label %17 unwind label %56

17:                                               ; preds = %15
  %18 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef @.str.70)
          to label %19 unwind label %56

19:                                               ; preds = %17
  %20 = getelementptr inbounds %class.Building, ptr %9, i32 0, i32 8
  %21 = load i32, ptr %20, align 8, !tbaa !9
  %22 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %18, i32 noundef %21)
          to label %23 unwind label %56

23:                                               ; preds = %19
  %24 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef @.str.70)
          to label %25 unwind label %56

25:                                               ; preds = %23
  %26 = getelementptr inbounds %class.Building, ptr %9, i32 0, i32 10
  %27 = load double, ptr %26, align 8, !tbaa !26
  %28 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %24, double noundef %27)
          to label %29 unwind label %56

29:                                               ; preds = %25
  %30 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef @.str.70)
          to label %31 unwind label %56

31:                                               ; preds = %29
  %32 = getelementptr inbounds %class.Building, ptr %9, i32 0, i32 11
  %33 = load double, ptr %32, align 8, !tbaa !27
  %34 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %30, double noundef %33)
          to label %35 unwind label %56

35:                                               ; preds = %31
  %36 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef @.str.70)
          to label %37 unwind label %56

37:                                               ; preds = %35
  %38 = getelementptr inbounds %class.Building, ptr %9, i32 0, i32 21
  %39 = load double, ptr %38, align 8, !tbaa !28
  %40 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %36, double noundef %39)
          to label %41 unwind label %56

41:                                               ; preds = %37
  %42 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %40, ptr noundef @.str.70)
          to label %43 unwind label %56

43:                                               ; preds = %41
  %44 = getelementptr inbounds %class.Building, ptr %9, i32 0, i32 22
  %45 = load double, ptr %44, align 8, !tbaa !29
  %46 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %42, double noundef %45)
          to label %47 unwind label %56

47:                                               ; preds = %43
  %48 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %46, ptr noundef @.str.71)
          to label %49 unwind label %56

49:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !30
  br label %50

50:                                               ; preds = %141, %49
  %51 = load i32, ptr %8, align 4, !tbaa !30
  %52 = getelementptr inbounds %class.Building, ptr %9, i32 0, i32 8
  %53 = load i32, ptr %52, align 8, !tbaa !9
  %54 = icmp slt i32 %51, %53
  br i1 %54, label %60, label %55

55:                                               ; preds = %50
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %148

56:                                               ; preds = %47, %43, %41, %37, %35, %31, %29, %25, %23, %19, %17, %15, %13, %2
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %6, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %7, align 4
  br label %149

60:                                               ; preds = %50
  %61 = getelementptr inbounds %class.Building, ptr %9, i32 0, i32 15
  %62 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt6vectorI15InterstoryParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %61, i64 noundef 0) #5
  %63 = getelementptr inbounds %class.InterstoryParam, ptr %62, i32 0, i32 1
  %64 = load double, ptr %63, align 8, !tbaa !31
  %65 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %5, double noundef %64)
          to label %66 unwind label %144

66:                                               ; preds = %60
  %67 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %65, ptr noundef @.str.70)
          to label %68 unwind label %144

68:                                               ; preds = %66
  %69 = getelementptr inbounds %class.Building, ptr %9, i32 0, i32 15
  %70 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt6vectorI15InterstoryParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %69, i64 noundef 0) #5
  %71 = getelementptr inbounds %class.InterstoryParam, ptr %70, i32 0, i32 2
  %72 = load double, ptr %71, align 8, !tbaa !33
  %73 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %67, double noundef %72)
          to label %74 unwind label %144

74:                                               ; preds = %68
  %75 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %73, ptr noundef @.str.70)
          to label %76 unwind label %144

76:                                               ; preds = %74
  %77 = getelementptr inbounds %class.Building, ptr %9, i32 0, i32 15
  %78 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt6vectorI15InterstoryParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %77, i64 noundef 0) #5
  %79 = getelementptr inbounds %class.InterstoryParam, ptr %78, i32 0, i32 3
  %80 = load double, ptr %79, align 8, !tbaa !34
  %81 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %75, double noundef %80)
          to label %82 unwind label %144

82:                                               ; preds = %76
  %83 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %81, ptr noundef @.str.70)
          to label %84 unwind label %144

84:                                               ; preds = %82
  %85 = getelementptr inbounds %class.Building, ptr %9, i32 0, i32 15
  %86 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt6vectorI15InterstoryParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %85, i64 noundef 0) #5
  %87 = getelementptr inbounds %class.InterstoryParam, ptr %86, i32 0, i32 4
  %88 = load double, ptr %87, align 8, !tbaa !35
  %89 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %83, double noundef %88)
          to label %90 unwind label %144

90:                                               ; preds = %84
  %91 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %89, ptr noundef @.str.70)
          to label %92 unwind label %144

92:                                               ; preds = %90
  %93 = getelementptr inbounds %class.Building, ptr %9, i32 0, i32 15
  %94 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt6vectorI15InterstoryParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %93, i64 noundef 0) #5
  %95 = getelementptr inbounds %class.InterstoryParam, ptr %94, i32 0, i32 5
  %96 = load double, ptr %95, align 8, !tbaa !36
  %97 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %91, double noundef %96)
          to label %98 unwind label %144

98:                                               ; preds = %92
  %99 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %97, ptr noundef @.str.70)
          to label %100 unwind label %144

100:                                              ; preds = %98
  %101 = getelementptr inbounds %class.Building, ptr %9, i32 0, i32 15
  %102 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt6vectorI15InterstoryParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %101, i64 noundef 0) #5
  %103 = getelementptr inbounds %class.InterstoryParam, ptr %102, i32 0, i32 7
  %104 = load double, ptr %103, align 8, !tbaa !37
  %105 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %99, double noundef %104)
          to label %106 unwind label %144

106:                                              ; preds = %100
  %107 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %105, ptr noundef @.str.70)
          to label %108 unwind label %144

108:                                              ; preds = %106
  %109 = getelementptr inbounds %class.Building, ptr %9, i32 0, i32 15
  %110 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt6vectorI15InterstoryParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %109, i64 noundef 0) #5
  %111 = getelementptr inbounds %class.InterstoryParam, ptr %110, i32 0, i32 8
  %112 = load double, ptr %111, align 8, !tbaa !38
  %113 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %107, double noundef %112)
          to label %114 unwind label %144

114:                                              ; preds = %108
  %115 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %113, ptr noundef @.str.70)
          to label %116 unwind label %144

116:                                              ; preds = %114
  %117 = getelementptr inbounds %class.Building, ptr %9, i32 0, i32 15
  %118 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt6vectorI15InterstoryParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %117, i64 noundef 0) #5
  %119 = getelementptr inbounds %class.InterstoryParam, ptr %118, i32 0, i32 10
  %120 = load double, ptr %119, align 8, !tbaa !39
  %121 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %115, double noundef %120)
          to label %122 unwind label %144

122:                                              ; preds = %116
  %123 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %121, ptr noundef @.str.70)
          to label %124 unwind label %144

124:                                              ; preds = %122
  %125 = getelementptr inbounds %class.Building, ptr %9, i32 0, i32 15
  %126 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt6vectorI15InterstoryParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %125, i64 noundef 0) #5
  %127 = getelementptr inbounds %class.InterstoryParam, ptr %126, i32 0, i32 6
  %128 = load double, ptr %127, align 8, !tbaa !40
  %129 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %123, double noundef %128)
          to label %130 unwind label %144

130:                                              ; preds = %124
  %131 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %129, ptr noundef @.str.70)
          to label %132 unwind label %144

132:                                              ; preds = %130
  %133 = getelementptr inbounds %class.Building, ptr %9, i32 0, i32 15
  %134 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt6vectorI15InterstoryParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %133, i64 noundef 0) #5
  %135 = getelementptr inbounds %class.InterstoryParam, ptr %134, i32 0, i32 9
  %136 = load double, ptr %135, align 8, !tbaa !41
  %137 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %131, double noundef %136)
          to label %138 unwind label %144

138:                                              ; preds = %132
  %139 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %137, ptr noundef @.str.71)
          to label %140 unwind label %144

140:                                              ; preds = %138
  br label %141

141:                                              ; preds = %140
  %142 = load i32, ptr %8, align 4, !tbaa !30
  %143 = add nsw i32 %142, 1
  store i32 %143, ptr %8, align 4, !tbaa !30
  br label %50, !llvm.loop !42

144:                                              ; preds = %138, %132, %130, %124, %122, %116, %114, %108, %106, %100, %98, %92, %90, %84, %82, %76, %74, %68, %66, %60
  %145 = landingpad { ptr, i32 }
          cleanup
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %6, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %149

148:                                              ; preds = %55
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %5) #5
  call void @llvm.lifetime.end.p0(i64 512, ptr %5) #5
  ret void

149:                                              ; preds = %144, %56
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %5) #5
  call void @llvm.lifetime.end.p0(i64 512, ptr %5) #5
  br label %150

150:                                              ; preds = %149
  %151 = load ptr, ptr %6, align 8
  %152 = load i32, ptr %7, align 4
  %153 = insertvalue { ptr, i32 } poison, ptr %151, 0
  %154 = insertvalue { ptr, i32 } %153, i32 %152, 1
  resume { ptr, i32 } %154
}

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248), ptr noundef, i32 noundef) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) #3

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #4

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248)) unnamed_addr #1 align 2

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

!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 88}
!10 = !{!"_ZTS8Building", !11, i64 0, !12, i64 8, !15, i64 40, !12, i64 48, !11, i64 80, !16, i64 84, !11, i64 88, !17, i64 96, !17, i64 104, !17, i64 112, !17, i64 120, !17, i64 128, !18, i64 136, !22, i64 160, !7, i64 184, !17, i64 216, !17, i64 224, !17, i64 232, !17, i64 240, !17, i64 248, !11, i64 256}
!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 = !{!"_ZTSSt6vectorI15InterstoryParamSaIS0_EE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseI15InterstoryParamSaIS0_EE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseI15InterstoryParamSaIS0_EE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseI15InterstoryParamSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!22 = !{!"_ZTSSt6vectorI10FloorParamSaIS0_EE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseI10FloorParamSaIS0_EE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseI10FloorParamSaIS0_EE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseI10FloorParamSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!26 = !{!10, !17, i64 96}
!27 = !{!10, !17, i64 104}
!28 = !{!10, !17, i64 240}
!29 = !{!10, !17, i64 248}
!30 = !{!11, !11, i64 0}
!31 = !{!32, !17, i64 8}
!32 = !{!"_ZTS15InterstoryParam", !11, i64 0, !17, i64 8, !17, i64 16, !17, i64 24, !17, i64 32, !17, i64 40, !17, i64 48, !17, i64 56, !17, i64 64, !17, i64 72, !17, i64 80}
!33 = !{!32, !17, i64 16}
!34 = !{!32, !17, i64 24}
!35 = !{!32, !17, i64 32}
!36 = !{!32, !17, i64 40}
!37 = !{!32, !17, i64 56}
!38 = !{!32, !17, i64 64}
!39 = !{!32, !17, i64 80}
!40 = !{!32, !17, i64 48}
!41 = !{!32, !17, i64 72}
!42 = distinct !{!42, !43}
!43 = !{!"llvm.loop.mustprogress"}


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

%"class.std::basic_ofstream" = type { %"class.std::basic_ostream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon.8 }
%union.anon.8 = type { i32 }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }

@.str.70 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt6vectorI15InterstoryParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8Building11writeSAMSCIEPKc(ptr noundef nonnull align 8 dereferenceable(260) %0, ptr noundef %1) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::basic_ofstream", align 8
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %3) #5
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %3, ptr noundef %1, i32 noundef 1)
  %4 = getelementptr inbounds i8, ptr %0, i64 8
  %5 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %6 unwind label %45

6:                                                ; preds = %2
  %7 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull @.str.70)
          to label %8 unwind label %45

8:                                                ; preds = %6
  %9 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %7, i32 noundef 0)
          to label %10 unwind label %45

10:                                               ; preds = %8
  %11 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull @.str.70)
          to label %12 unwind label %45

12:                                               ; preds = %10
  %13 = getelementptr inbounds i8, ptr %0, i64 88
  %14 = load i32, ptr %13, align 8, !tbaa !5
  %15 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %11, i32 noundef %14)
          to label %16 unwind label %45

16:                                               ; preds = %12
  %17 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull @.str.70)
          to label %18 unwind label %45

18:                                               ; preds = %16
  %19 = getelementptr inbounds i8, ptr %0, i64 96
  %20 = load double, ptr %19, align 8, !tbaa !25
  %21 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %17, double noundef %20)
          to label %22 unwind label %45

22:                                               ; preds = %18
  %23 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull @.str.70)
          to label %24 unwind label %45

24:                                               ; preds = %22
  %25 = getelementptr inbounds i8, ptr %0, i64 104
  %26 = load double, ptr %25, align 8, !tbaa !26
  %27 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %23, double noundef %26)
          to label %28 unwind label %45

28:                                               ; preds = %24
  %29 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull @.str.70)
          to label %30 unwind label %45

30:                                               ; preds = %28
  %31 = getelementptr inbounds i8, ptr %0, i64 240
  %32 = load double, ptr %31, align 8, !tbaa !27
  %33 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %29, double noundef %32)
          to label %34 unwind label %45

34:                                               ; preds = %30
  %35 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef nonnull @.str.70)
          to label %36 unwind label %45

36:                                               ; preds = %34
  %37 = getelementptr inbounds i8, ptr %0, i64 248
  %38 = load double, ptr %37, align 8, !tbaa !28
  %39 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %35, double noundef %38)
          to label %40 unwind label %45

40:                                               ; preds = %36
  %41 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef nonnull @.str.71)
          to label %.preheader unwind label %45

.preheader:                                       ; preds = %40
  %42 = load i32, ptr %13, align 8, !tbaa !5
  %43 = icmp sgt i32 %42, 0
  br i1 %43, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader
  %44 = getelementptr inbounds i8, ptr %0, i64 136
  br label %47

._crit_edge:                                      ; preds = %117, %.preheader
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %3) #5
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %3) #5
  ret void

45:                                               ; preds = %40, %36, %34, %30, %28, %24, %22, %18, %16, %12, %10, %8, %6, %2
  %46 = landingpad { ptr, i32 }
          cleanup
  br label %123

47:                                               ; preds = %.lr.ph, %117
  %.08 = phi i32 [ 0, %.lr.ph ], [ %118, %117 ]
  %48 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt6vectorI15InterstoryParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %44, i64 noundef 0) #5
  %49 = getelementptr inbounds i8, ptr %48, i64 8
  %50 = load double, ptr %49, align 8, !tbaa !29
  %51 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %3, double noundef %50)
          to label %52 unwind label %121

52:                                               ; preds = %47
  %53 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %51, ptr noundef nonnull @.str.70)
          to label %54 unwind label %121

54:                                               ; preds = %52
  %55 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt6vectorI15InterstoryParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %44, i64 noundef 0) #5
  %56 = getelementptr inbounds i8, ptr %55, i64 16
  %57 = load double, ptr %56, align 8, !tbaa !31
  %58 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %53, double noundef %57)
          to label %59 unwind label %121

59:                                               ; preds = %54
  %60 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %58, ptr noundef nonnull @.str.70)
          to label %61 unwind label %121

61:                                               ; preds = %59
  %62 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt6vectorI15InterstoryParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %44, i64 noundef 0) #5
  %63 = getelementptr inbounds i8, ptr %62, i64 24
  %64 = load double, ptr %63, align 8, !tbaa !32
  %65 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %60, double noundef %64)
          to label %66 unwind label %121

66:                                               ; preds = %61
  %67 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %65, ptr noundef nonnull @.str.70)
          to label %68 unwind label %121

68:                                               ; preds = %66
  %69 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt6vectorI15InterstoryParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %44, i64 noundef 0) #5
  %70 = getelementptr inbounds i8, ptr %69, i64 32
  %71 = load double, ptr %70, align 8, !tbaa !33
  %72 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %67, double noundef %71)
          to label %73 unwind label %121

73:                                               ; preds = %68
  %74 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %72, ptr noundef nonnull @.str.70)
          to label %75 unwind label %121

75:                                               ; preds = %73
  %76 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt6vectorI15InterstoryParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %44, i64 noundef 0) #5
  %77 = getelementptr inbounds i8, ptr %76, i64 40
  %78 = load double, ptr %77, align 8, !tbaa !34
  %79 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %74, double noundef %78)
          to label %80 unwind label %121

80:                                               ; preds = %75
  %81 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %79, ptr noundef nonnull @.str.70)
          to label %82 unwind label %121

82:                                               ; preds = %80
  %83 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt6vectorI15InterstoryParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %44, i64 noundef 0) #5
  %84 = getelementptr inbounds i8, ptr %83, i64 56
  %85 = load double, ptr %84, align 8, !tbaa !35
  %86 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %81, double noundef %85)
          to label %87 unwind label %121

87:                                               ; preds = %82
  %88 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %86, ptr noundef nonnull @.str.70)
          to label %89 unwind label %121

89:                                               ; preds = %87
  %90 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt6vectorI15InterstoryParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %44, i64 noundef 0) #5
  %91 = getelementptr inbounds i8, ptr %90, i64 64
  %92 = load double, ptr %91, align 8, !tbaa !36
  %93 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %88, double noundef %92)
          to label %94 unwind label %121

94:                                               ; preds = %89
  %95 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %93, ptr noundef nonnull @.str.70)
          to label %96 unwind label %121

96:                                               ; preds = %94
  %97 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt6vectorI15InterstoryParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %44, i64 noundef 0) #5
  %98 = getelementptr inbounds i8, ptr %97, i64 80
  %99 = load double, ptr %98, align 8, !tbaa !37
  %100 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %95, double noundef %99)
          to label %101 unwind label %121

101:                                              ; preds = %96
  %102 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %100, ptr noundef nonnull @.str.70)
          to label %103 unwind label %121

103:                                              ; preds = %101
  %104 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt6vectorI15InterstoryParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %44, i64 noundef 0) #5
  %105 = getelementptr inbounds i8, ptr %104, i64 48
  %106 = load double, ptr %105, align 8, !tbaa !38
  %107 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %102, double noundef %106)
          to label %108 unwind label %121

108:                                              ; preds = %103
  %109 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %107, ptr noundef nonnull @.str.70)
          to label %110 unwind label %121

110:                                              ; preds = %108
  %111 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt6vectorI15InterstoryParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %44, i64 noundef 0) #5
  %112 = getelementptr inbounds i8, ptr %111, i64 72
  %113 = load double, ptr %112, align 8, !tbaa !39
  %114 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %109, double noundef %113)
          to label %115 unwind label %121

115:                                              ; preds = %110
  %116 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %114, ptr noundef nonnull @.str.71)
          to label %117 unwind label %121

117:                                              ; preds = %115
  %118 = add nuw nsw i32 %.08, 1
  %119 = load i32, ptr %13, align 8, !tbaa !5
  %120 = icmp slt i32 %118, %119
  br i1 %120, label %47, label %._crit_edge, !llvm.loop !40

121:                                              ; preds = %115, %110, %108, %103, %101, %96, %94, %89, %87, %82, %80, %75, %73, %68, %66, %61, %59, %54, %52, %47
  %122 = landingpad { ptr, i32 }
          cleanup
  br label %123

123:                                              ; preds = %121, %45
  %.pn = phi { ptr, i32 } [ %122, %121 ], [ %46, %45 ]
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %3) #5
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %3) #5
  resume { ptr, i32 } %.pn
}

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248), ptr noundef, i32 noundef) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248)) unnamed_addr #1 align 2

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

!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 88}
!6 = !{!"_ZTS8Building", !7, i64 0, !10, i64 8, !14, i64 40, !10, i64 48, !7, i64 80, !15, i64 84, !7, i64 88, !16, i64 96, !16, i64 104, !16, i64 112, !16, i64 120, !16, i64 128, !17, i64 136, !21, i64 160, !8, i64 184, !16, i64 216, !16, i64 224, !16, i64 232, !16, i64 240, !16, i64 248, !7, i64 256}
!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 = !{!"_ZTSSt6vectorI15InterstoryParamSaIS0_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseI15InterstoryParamSaIS0_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseI15InterstoryParamSaIS0_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseI15InterstoryParamSaIS0_EE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!21 = !{!"_ZTSSt6vectorI10FloorParamSaIS0_EE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseI10FloorParamSaIS0_EE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseI10FloorParamSaIS0_EE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseI10FloorParamSaIS0_EE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!25 = !{!6, !16, i64 96}
!26 = !{!6, !16, i64 104}
!27 = !{!6, !16, i64 240}
!28 = !{!6, !16, i64 248}
!29 = !{!30, !16, i64 8}
!30 = !{!"_ZTS15InterstoryParam", !7, i64 0, !16, i64 8, !16, i64 16, !16, i64 24, !16, i64 32, !16, i64 40, !16, i64 48, !16, i64 56, !16, i64 64, !16, i64 72, !16, i64 80}
!31 = !{!30, !16, i64 16}
!32 = !{!30, !16, i64 24}
!33 = !{!30, !16, i64 32}
!34 = !{!30, !16, i64 40}
!35 = !{!30, !16, i64 56}
!36 = !{!30, !16, i64 64}
!37 = !{!30, !16, i64 80}
!38 = !{!30, !16, i64 48}
!39 = !{!30, !16, i64 72}
!40 = distinct !{!40, !41}
!41 = !{!"llvm.loop.mustprogress"}


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