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

; 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, [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.FloorParam = type { i32, double }
%class.InterstoryParam = type { i32, double, double, double, double, double, double, double, double, double, double }

@.str.30 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [12 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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8Building8writeSAMEPKc(ptr noundef nonnull align 8 dereferenceable(260) %0, ptr noundef %1) #1 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %21 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %22 = call ptr @json_object()
  store ptr %22, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %23 = call ptr @json_object()
  store ptr %23, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %24 = call ptr @json_object()
  store ptr %24, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %25 = call ptr @json_array()
  store ptr %25, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %26 = call ptr @json_array()
  store ptr %26, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %27 = call ptr @json_array()
  store ptr %27, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %28 = call ptr @json_array()
  store ptr %28, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %29 = call ptr @json_object()
  store ptr %29, ptr %12, align 8, !tbaa !5
  %30 = load ptr, ptr %12, align 8, !tbaa !5
  %31 = call ptr @json_integer(i64 noundef 1)
  %32 = call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %30, ptr noundef @.str.30, ptr noundef %31)
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %33 = call ptr @json_array()
  store ptr %33, ptr %13, align 8, !tbaa !5
  %34 = load ptr, ptr %13, align 8, !tbaa !5
  %35 = call ptr @json_real(double noundef 0.000000e+00)
  %36 = call noundef i32 @_ZL17json_array_appendP6json_tS0_(ptr noundef %34, ptr noundef %35)
  %37 = load ptr, ptr %13, align 8, !tbaa !5
  %38 = call ptr @json_real(double noundef 0.000000e+00)
  %39 = call noundef i32 @_ZL17json_array_appendP6json_tS0_(ptr noundef %37, ptr noundef %38)
  %40 = load ptr, ptr %12, align 8, !tbaa !5
  %41 = load ptr, ptr %13, align 8, !tbaa !5
  %42 = call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %40, ptr noundef @.str.34, ptr noundef %41)
  %43 = load ptr, ptr %12, align 8, !tbaa !5
  %44 = getelementptr inbounds %class.Building, ptr %21, i32 0, i32 23
  %45 = load i32, ptr %44, align 8, !tbaa !9
  %46 = sext i32 %45 to i64
  %47 = call ptr @json_integer(i64 noundef %46)
  %48 = call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %43, ptr noundef @.str.35, ptr noundef %47)
  %49 = load ptr, ptr %9, align 8, !tbaa !5
  %50 = load ptr, ptr %12, align 8, !tbaa !5
  %51 = call noundef i32 @_ZL17json_array_appendP6json_tS0_(ptr noundef %49, ptr noundef %50)
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %52 = call ptr @json_object()
  store ptr %52, ptr %14, align 8, !tbaa !5
  %53 = load ptr, ptr %14, align 8, !tbaa !5
  %54 = call ptr @json_integer(i64 noundef 1)
  %55 = call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %53, ptr noundef @.str.36, ptr noundef %54)
  %56 = load ptr, ptr %14, align 8, !tbaa !5
  %57 = call ptr @json_integer(i64 noundef 1)
  %58 = call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %56, ptr noundef @.str.37, ptr noundef %57)
  %59 = load ptr, ptr %14, align 8, !tbaa !5
  %60 = call ptr @json_integer(i64 noundef 1)
  %61 = call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %59, ptr noundef @.str.38, ptr noundef %60)
  %62 = load ptr, ptr %11, align 8, !tbaa !5
  %63 = load ptr, ptr %14, align 8, !tbaa !5
  %64 = call noundef i32 @_ZL17json_array_appendP6json_tS0_(ptr noundef %62, ptr noundef %63)
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 0, ptr %15, align 4, !tbaa !26
  br label %65

65:                                               ; preds = %287, %2
  %66 = load i32, ptr %15, align 4, !tbaa !26
  %67 = getelementptr inbounds %class.Building, ptr %21, i32 0, i32 8
  %68 = load i32, ptr %67, align 8, !tbaa !27
  %69 = icmp slt i32 %66, %68
  br i1 %69, label %71, label %70

70:                                               ; preds = %65
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %290

71:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %72 = call ptr @json_object()
  store ptr %72, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %73 = call ptr @json_object()
  store ptr %73, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %74 = call ptr @json_object()
  store ptr %74, ptr %18, align 8, !tbaa !5
  %75 = load ptr, ptr %16, align 8, !tbaa !5
  %76 = load i32, ptr %15, align 4, !tbaa !26
  %77 = add nsw i32 %76, 2
  %78 = sext i32 %77 to i64
  %79 = call ptr @json_integer(i64 noundef %78)
  %80 = call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %75, ptr noundef @.str.30, ptr noundef %79)
  %81 = load ptr, ptr %16, align 8, !tbaa !5
  %82 = getelementptr inbounds %class.Building, ptr %21, i32 0, i32 16
  %83 = load i32, ptr %15, align 4, !tbaa !26
  %84 = sext i32 %83 to i64
  %85 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI10FloorParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %82, i64 noundef %84) #5
  %86 = getelementptr inbounds %class.FloorParam, ptr %85, i32 0, i32 1
  %87 = load double, ptr %86, align 8, !tbaa !28
  %88 = call ptr @json_real(double noundef %87)
  %89 = call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %81, ptr noundef @.str.39, ptr noundef %88)
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %90 = call ptr @json_array()
  store ptr %90, ptr %19, align 8, !tbaa !5
  %91 = load ptr, ptr %19, align 8, !tbaa !5
  %92 = getelementptr inbounds %class.Building, ptr %21, i32 0, i32 16
  %93 = load i32, ptr %15, align 4, !tbaa !26
  %94 = sext i32 %93 to i64
  %95 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI10FloorParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %92, i64 noundef %94) #5
  %96 = getelementptr inbounds %class.FloorParam, ptr %95, i32 0, i32 0
  %97 = load i32, ptr %96, align 8, !tbaa !30
  %98 = sitofp i32 %97 to double
  %99 = getelementptr inbounds %class.Building, ptr %21, i32 0, i32 10
  %100 = load double, ptr %99, align 8, !tbaa !31
  %101 = fmul double %98, %100
  %102 = call ptr @json_real(double noundef %101)
  %103 = call noundef i32 @_ZL17json_array_appendP6json_tS0_(ptr noundef %91, ptr noundef %102)
  %104 = load ptr, ptr %19, align 8, !tbaa !5
  %105 = call ptr @json_real(double noundef 0.000000e+00)
  %106 = call noundef i32 @_ZL17json_array_appendP6json_tS0_(ptr noundef %104, ptr noundef %105)
  %107 = load ptr, ptr %16, align 8, !tbaa !5
  %108 = load ptr, ptr %19, align 8, !tbaa !5
  %109 = call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %107, ptr noundef @.str.34, ptr noundef %108)
  %110 = load ptr, ptr %16, align 8, !tbaa !5
  %111 = getelementptr inbounds %class.Building, ptr %21, i32 0, i32 23
  %112 = load i32, ptr %111, align 8, !tbaa !9
  %113 = sext i32 %112 to i64
  %114 = call ptr @json_integer(i64 noundef %113)
  %115 = call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %110, ptr noundef @.str.35, ptr noundef %114)
  %116 = call ptr @json_object()
  store ptr %116, ptr %14, align 8, !tbaa !5
  %117 = load ptr, ptr %14, align 8, !tbaa !5
  %118 = call ptr @json_integer(i64 noundef 1)
  %119 = call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %117, ptr noundef @.str.36, ptr noundef %118)
  %120 = load ptr, ptr %14, align 8, !tbaa !5
  %121 = load i32, ptr %15, align 4, !tbaa !26
  %122 = add nsw i32 %121, 2
  %123 = sext i32 %122 to i64
  %124 = call ptr @json_integer(i64 noundef %123)
  %125 = call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %120, ptr noundef @.str.37, ptr noundef %124)
  %126 = load ptr, ptr %14, align 8, !tbaa !5
  %127 = load i32, ptr %15, align 4, !tbaa !26
  %128 = add nsw i32 %127, 2
  %129 = sext i32 %128 to i64
  %130 = call ptr @json_integer(i64 noundef %129)
  %131 = call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %126, ptr noundef @.str.38, ptr noundef %130)
  %132 = load ptr, ptr %11, align 8, !tbaa !5
  %133 = load ptr, ptr %14, align 8, !tbaa !5
  %134 = call noundef i32 @_ZL17json_array_appendP6json_tS0_(ptr noundef %132, ptr noundef %133)
  %135 = load ptr, ptr %17, align 8, !tbaa !5
  %136 = getelementptr inbounds %class.Building, ptr %21, i32 0, i32 15
  %137 = load i32, ptr %15, align 4, !tbaa !26
  %138 = sext i32 %137 to i64
  %139 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt6vectorI15InterstoryParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %136, i64 noundef %138) #5
  %140 = getelementptr inbounds %class.InterstoryParam, ptr %139, i32 0, i32 0
  %141 = load i32, ptr %140, align 8, !tbaa !32
  %142 = sext i32 %141 to i64
  %143 = call ptr @json_integer(i64 noundef %142)
  %144 = call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %135, ptr noundef @.str.30, ptr noundef %143)
  %145 = getelementptr inbounds %class.Building, ptr %21, i32 0, i32 23
  %146 = load i32, ptr %145, align 8, !tbaa !9
  %147 = icmp eq i32 %146, 1
  br i1 %147, label %148, label %152

148:                                              ; preds = %71
  %149 = load ptr, ptr %17, align 8, !tbaa !5
  %150 = call ptr @json_string(ptr noundef @.str.41)
  %151 = call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %149, ptr noundef @.str.40, ptr noundef %150)
  br label %156

152:                                              ; preds = %71
  %153 = load ptr, ptr %17, align 8, !tbaa !5
  %154 = call ptr @json_string(ptr noundef @.str.42)
  %155 = call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %153, ptr noundef @.str.40, ptr noundef %154)
  br label %156

156:                                              ; preds = %152, %148
  %157 = load ptr, ptr %17, align 8, !tbaa !5
  %158 = load i32, ptr %15, align 4, !tbaa !26
  %159 = add nsw i32 %158, 1
  %160 = sext i32 %159 to i64
  %161 = call ptr @json_integer(i64 noundef %160)
  %162 = call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %157, ptr noundef @.str.43, ptr noundef %161)
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %163 = call ptr @json_array()
  store ptr %163, ptr %20, align 8, !tbaa !5
  %164 = load ptr, ptr %20, align 8, !tbaa !5
  %165 = load i32, ptr %15, align 4, !tbaa !26
  %166 = add nsw i32 %165, 1
  %167 = sext i32 %166 to i64
  %168 = call ptr @json_integer(i64 noundef %167)
  %169 = call noundef i32 @_ZL17json_array_appendP6json_tS0_(ptr noundef %164, ptr noundef %168)
  %170 = load ptr, ptr %20, align 8, !tbaa !5
  %171 = load i32, ptr %15, align 4, !tbaa !26
  %172 = add nsw i32 %171, 2
  %173 = sext i32 %172 to i64
  %174 = call ptr @json_integer(i64 noundef %173)
  %175 = call noundef i32 @_ZL17json_array_appendP6json_tS0_(ptr noundef %170, ptr noundef %174)
  %176 = load ptr, ptr %17, align 8, !tbaa !5
  %177 = load ptr, ptr %20, align 8, !tbaa !5
  %178 = call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %176, ptr noundef @.str.44, ptr noundef %177)
  %179 = load ptr, ptr %18, align 8, !tbaa !5
  %180 = load i32, ptr %15, align 4, !tbaa !26
  %181 = add nsw i32 %180, 1
  %182 = sext i32 %181 to i64
  %183 = call ptr @json_integer(i64 noundef %182)
  %184 = call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %179, ptr noundef @.str.30, ptr noundef %183)
  %185 = load ptr, ptr %18, align 8, !tbaa !5
  %186 = call ptr @json_string(ptr noundef @.str.45)
  %187 = call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %185, ptr noundef @.str.40, ptr noundef %186)
  %188 = load ptr, ptr %18, align 8, !tbaa !5
  %189 = getelementptr inbounds %class.Building, ptr %21, i32 0, i32 15
  %190 = load i32, ptr %15, align 4, !tbaa !26
  %191 = sext i32 %190 to i64
  %192 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt6vectorI15InterstoryParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %189, i64 noundef %191) #5
  %193 = getelementptr inbounds %class.InterstoryParam, ptr %192, i32 0, i32 1
  %194 = load double, ptr %193, align 8, !tbaa !34
  %195 = call ptr @json_real(double noundef %194)
  %196 = call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %188, ptr noundef @.str.46, ptr noundef %195)
  %197 = load ptr, ptr %18, align 8, !tbaa !5
  %198 = getelementptr inbounds %class.Building, ptr %21, i32 0, i32 15
  %199 = load i32, ptr %15, align 4, !tbaa !26
  %200 = sext i32 %199 to i64
  %201 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt6vectorI15InterstoryParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %198, i64 noundef %200) #5
  %202 = getelementptr inbounds %class.InterstoryParam, ptr %201, i32 0, i32 2
  %203 = load double, ptr %202, align 8, !tbaa !35
  %204 = call ptr @json_real(double noundef %203)
  %205 = call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %197, ptr noundef @.str.47, ptr noundef %204)
  %206 = load ptr, ptr %18, align 8, !tbaa !5
  %207 = getelementptr inbounds %class.Building, ptr %21, i32 0, i32 15
  %208 = load i32, ptr %15, align 4, !tbaa !26
  %209 = sext i32 %208 to i64
  %210 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt6vectorI15InterstoryParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %207, i64 noundef %209) #5
  %211 = getelementptr inbounds %class.InterstoryParam, ptr %210, i32 0, i32 3
  %212 = load double, ptr %211, align 8, !tbaa !36
  %213 = call ptr @json_real(double noundef %212)
  %214 = call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %206, ptr noundef @.str.48, ptr noundef %213)
  %215 = load ptr, ptr %18, align 8, !tbaa !5
  %216 = getelementptr inbounds %class.Building, ptr %21, i32 0, i32 15
  %217 = load i32, ptr %15, align 4, !tbaa !26
  %218 = sext i32 %217 to i64
  %219 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt6vectorI15InterstoryParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %216, i64 noundef %218) #5
  %220 = getelementptr inbounds %class.InterstoryParam, ptr %219, i32 0, i32 4
  %221 = load double, ptr %220, align 8, !tbaa !37
  %222 = call ptr @json_real(double noundef %221)
  %223 = call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %215, ptr noundef @.str.49, ptr noundef %222)
  %224 = load ptr, ptr %18, align 8, !tbaa !5
  %225 = getelementptr inbounds %class.Building, ptr %21, i32 0, i32 15
  %226 = load i32, ptr %15, align 4, !tbaa !26
  %227 = sext i32 %226 to i64
  %228 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt6vectorI15InterstoryParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %225, i64 noundef %227) #5
  %229 = getelementptr inbounds %class.InterstoryParam, ptr %228, i32 0, i32 5
  %230 = load double, ptr %229, align 8, !tbaa !38
  %231 = call ptr @json_real(double noundef %230)
  %232 = call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %224, ptr noundef @.str.50, ptr noundef %231)
  %233 = load ptr, ptr %18, align 8, !tbaa !5
  %234 = getelementptr inbounds %class.Building, ptr %21, i32 0, i32 15
  %235 = load i32, ptr %15, align 4, !tbaa !26
  %236 = sext i32 %235 to i64
  %237 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt6vectorI15InterstoryParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %234, i64 noundef %236) #5
  %238 = getelementptr inbounds %class.InterstoryParam, ptr %237, i32 0, i32 7
  %239 = load double, ptr %238, align 8, !tbaa !39
  %240 = call ptr @json_real(double noundef %239)
  %241 = call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %233, ptr noundef @.str.51, ptr noundef %240)
  %242 = load ptr, ptr %18, align 8, !tbaa !5
  %243 = getelementptr inbounds %class.Building, ptr %21, i32 0, i32 15
  %244 = load i32, ptr %15, align 4, !tbaa !26
  %245 = sext i32 %244 to i64
  %246 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt6vectorI15InterstoryParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %243, i64 noundef %245) #5
  %247 = getelementptr inbounds %class.InterstoryParam, ptr %246, i32 0, i32 8
  %248 = load double, ptr %247, align 8, !tbaa !40
  %249 = call ptr @json_real(double noundef %248)
  %250 = call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %242, ptr noundef @.str.52, ptr noundef %249)
  %251 = load ptr, ptr %18, align 8, !tbaa !5
  %252 = getelementptr inbounds %class.Building, ptr %21, i32 0, i32 15
  %253 = load i32, ptr %15, align 4, !tbaa !26
  %254 = sext i32 %253 to i64
  %255 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt6vectorI15InterstoryParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %252, i64 noundef %254) #5
  %256 = getelementptr inbounds %class.InterstoryParam, ptr %255, i32 0, i32 10
  %257 = load double, ptr %256, align 8, !tbaa !41
  %258 = call ptr @json_real(double noundef %257)
  %259 = call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %251, ptr noundef @.str.53, ptr noundef %258)
  %260 = load ptr, ptr %18, align 8, !tbaa !5
  %261 = getelementptr inbounds %class.Building, ptr %21, i32 0, i32 15
  %262 = load i32, ptr %15, align 4, !tbaa !26
  %263 = sext i32 %262 to i64
  %264 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt6vectorI15InterstoryParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %261, i64 noundef %263) #5
  %265 = getelementptr inbounds %class.InterstoryParam, ptr %264, i32 0, i32 6
  %266 = load double, ptr %265, align 8, !tbaa !42
  %267 = call ptr @json_real(double noundef %266)
  %268 = call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %260, ptr noundef @.str.54, ptr noundef %267)
  %269 = load ptr, ptr %18, align 8, !tbaa !5
  %270 = getelementptr inbounds %class.Building, ptr %21, i32 0, i32 15
  %271 = load i32, ptr %15, align 4, !tbaa !26
  %272 = sext i32 %271 to i64
  %273 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt6vectorI15InterstoryParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %270, i64 noundef %272) #5
  %274 = getelementptr inbounds %class.InterstoryParam, ptr %273, i32 0, i32 9
  %275 = load double, ptr %274, align 8, !tbaa !43
  %276 = call ptr @json_real(double noundef %275)
  %277 = call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %269, ptr noundef @.str.55, ptr noundef %276)
  %278 = load ptr, ptr %9, align 8, !tbaa !5
  %279 = load ptr, ptr %16, align 8, !tbaa !5
  %280 = call noundef i32 @_ZL17json_array_appendP6json_tS0_(ptr noundef %278, ptr noundef %279)
  %281 = load ptr, ptr %8, align 8, !tbaa !5
  %282 = load ptr, ptr %18, align 8, !tbaa !5
  %283 = call noundef i32 @_ZL17json_array_appendP6json_tS0_(ptr noundef %281, ptr noundef %282)
  %284 = load ptr, ptr %10, align 8, !tbaa !5
  %285 = load ptr, ptr %17, align 8, !tbaa !5
  %286 = call noundef i32 @_ZL17json_array_appendP6json_tS0_(ptr noundef %284, ptr noundef %285)
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %287

287:                                              ; preds = %156
  %288 = load i32, ptr %15, align 4, !tbaa !26
  %289 = add nsw i32 %288, 1
  store i32 %289, ptr %15, align 4, !tbaa !26
  br label %65, !llvm.loop !44

290:                                              ; preds = %70
  %291 = load ptr, ptr %6, align 8, !tbaa !5
  %292 = getelementptr inbounds %class.Building, ptr %21, i32 0, i32 18
  %293 = load double, ptr %292, align 8, !tbaa !46
  %294 = call ptr @json_real(double noundef %293)
  %295 = call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %291, ptr noundef @.str.56, ptr noundef %294)
  %296 = load ptr, ptr %6, align 8, !tbaa !5
  %297 = load ptr, ptr %8, align 8, !tbaa !5
  %298 = call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %296, ptr noundef @.str.57, ptr noundef %297)
  %299 = load ptr, ptr %5, align 8, !tbaa !5
  %300 = load ptr, ptr %6, align 8, !tbaa !5
  %301 = call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %299, ptr noundef @.str.58, ptr noundef %300)
  %302 = load ptr, ptr %7, align 8, !tbaa !5
  %303 = load ptr, ptr %9, align 8, !tbaa !5
  %304 = call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %302, ptr noundef @.str.44, ptr noundef %303)
  %305 = load ptr, ptr %7, align 8, !tbaa !5
  %306 = load ptr, ptr %10, align 8, !tbaa !5
  %307 = call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %305, ptr noundef @.str.59, ptr noundef %306)
  %308 = load ptr, ptr %5, align 8, !tbaa !5
  %309 = load ptr, ptr %7, align 8, !tbaa !5
  %310 = call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %308, ptr noundef @.str.60, ptr noundef %309)
  %311 = load ptr, ptr %5, align 8, !tbaa !5
  %312 = load ptr, ptr %11, align 8, !tbaa !5
  %313 = call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %311, ptr noundef @.str.61, ptr noundef %312)
  %314 = load ptr, ptr %5, align 8, !tbaa !5
  %315 = load ptr, ptr %4, align 8, !tbaa !5
  %316 = call i32 @json_dump_file(ptr noundef %314, ptr noundef %315, i64 noundef 0)
  %317 = load ptr, ptr %5, align 8, !tbaa !5
  %318 = call i32 @json_object_clear(ptr noundef %317)
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  ret void
}

declare ptr @json_object() #2

declare ptr @json_array() #2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef, ptr noundef, ptr noundef) #3

declare ptr @json_integer(i64 noundef) #2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef i32 @_ZL17json_array_appendP6json_tS0_(ptr noundef, ptr noundef) #3

declare ptr @json_real(double noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI10FloorParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #4 align 2

; 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) #4 align 2

declare ptr @json_string(ptr noundef) #2

declare i32 @json_dump_file(ptr noundef, ptr noundef, i64 noundef) #2

declare i32 @json_object_clear(ptr noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "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 = { 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 #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 256}
!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 = !{!11, !11, i64 0}
!27 = !{!10, !11, i64 88}
!28 = !{!29, !17, i64 8}
!29 = !{!"_ZTS10FloorParam", !11, i64 0, !17, i64 8}
!30 = !{!29, !11, i64 0}
!31 = !{!10, !17, i64 96}
!32 = !{!33, !11, i64 0}
!33 = !{!"_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}
!34 = !{!33, !17, i64 8}
!35 = !{!33, !17, i64 16}
!36 = !{!33, !17, i64 24}
!37 = !{!33, !17, i64 32}
!38 = !{!33, !17, i64 40}
!39 = !{!33, !17, i64 56}
!40 = !{!33, !17, i64 64}
!41 = !{!33, !17, i64 80}
!42 = !{!33, !17, i64 48}
!43 = !{!33, !17, i64 72}
!44 = distinct !{!44, !45}
!45 = !{!"llvm.loop.mustprogress"}
!46 = !{!10, !17, i64 216}


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

@.str.30 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [12 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8Building8writeSAMEPKc(ptr noundef nonnull align 8 dereferenceable(260) %0, ptr noundef %1) local_unnamed_addr #0 align 2 {
  %3 = tail call ptr @json_object()
  %4 = tail call ptr @json_object()
  %5 = tail call ptr @json_object()
  %6 = tail call ptr @json_array()
  %7 = tail call ptr @json_array()
  %8 = tail call ptr @json_array()
  %9 = tail call ptr @json_array()
  %10 = tail call ptr @json_object()
  %11 = tail call ptr @json_integer(i64 noundef 1)
  %12 = tail call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %10, ptr noundef nonnull @.str.30, ptr noundef %11)
  %13 = tail call ptr @json_array()
  %14 = tail call ptr @json_real(double noundef 0.000000e+00)
  %15 = tail call noundef i32 @_ZL17json_array_appendP6json_tS0_(ptr noundef %13, ptr noundef %14)
  %16 = tail call ptr @json_real(double noundef 0.000000e+00)
  %17 = tail call noundef i32 @_ZL17json_array_appendP6json_tS0_(ptr noundef %13, ptr noundef %16)
  %18 = tail call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %10, ptr noundef nonnull @.str.34, ptr noundef %13)
  %19 = getelementptr inbounds i8, ptr %0, i64 256
  %20 = load i32, ptr %19, align 8, !tbaa !5
  %21 = sext i32 %20 to i64
  %22 = tail call ptr @json_integer(i64 noundef %21)
  %23 = tail call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %10, ptr noundef nonnull @.str.35, ptr noundef %22)
  %24 = tail call noundef i32 @_ZL17json_array_appendP6json_tS0_(ptr noundef %7, ptr noundef %10)
  %25 = tail call ptr @json_object()
  %26 = tail call ptr @json_integer(i64 noundef 1)
  %27 = tail call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %25, ptr noundef nonnull @.str.36, ptr noundef %26)
  %28 = tail call ptr @json_integer(i64 noundef 1)
  %29 = tail call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %25, ptr noundef nonnull @.str.37, ptr noundef %28)
  %30 = tail call ptr @json_integer(i64 noundef 1)
  %31 = tail call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %25, ptr noundef nonnull @.str.38, ptr noundef %30)
  %32 = tail call noundef i32 @_ZL17json_array_appendP6json_tS0_(ptr noundef %9, ptr noundef %25)
  %33 = getelementptr inbounds i8, ptr %0, i64 88
  %34 = load i32, ptr %33, align 8, !tbaa !25
  %35 = icmp sgt i32 %34, 0
  br i1 %35, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %2
  %36 = getelementptr inbounds i8, ptr %0, i64 160
  %37 = getelementptr inbounds i8, ptr %0, i64 96
  %38 = getelementptr inbounds i8, ptr %0, i64 136
  br label %51

._crit_edge:                                      ; preds = %51, %2
  %39 = getelementptr inbounds i8, ptr %0, i64 216
  %40 = load double, ptr %39, align 8, !tbaa !26
  %41 = tail call ptr @json_real(double noundef %40)
  %42 = tail call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %4, ptr noundef nonnull @.str.56, ptr noundef %41)
  %43 = tail call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %4, ptr noundef nonnull @.str.57, ptr noundef %6)
  %44 = tail call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %3, ptr noundef nonnull @.str.58, ptr noundef %4)
  %45 = tail call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %5, ptr noundef nonnull @.str.44, ptr noundef %7)
  %46 = tail call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %5, ptr noundef nonnull @.str.59, ptr noundef %8)
  %47 = tail call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %3, ptr noundef nonnull @.str.60, ptr noundef %5)
  %48 = tail call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %3, ptr noundef nonnull @.str.61, ptr noundef %9)
  %49 = tail call i32 @json_dump_file(ptr noundef %3, ptr noundef %1, i64 noundef 0)
  %50 = tail call i32 @json_object_clear(ptr noundef %3)
  ret void

51:                                               ; preds = %.lr.ph, %51
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %51 ]
  %52 = tail call ptr @json_object()
  %53 = tail call ptr @json_object()
  %54 = tail call ptr @json_object()
  %55 = add nuw nsw i64 %indvars.iv, 2
  %56 = tail call ptr @json_integer(i64 noundef %55)
  %57 = tail call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %52, ptr noundef nonnull @.str.30, ptr noundef %56)
  %58 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI10FloorParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %36, i64 noundef %indvars.iv) #4
  %59 = getelementptr inbounds i8, ptr %58, i64 8
  %60 = load double, ptr %59, align 8, !tbaa !27
  %61 = tail call ptr @json_real(double noundef %60)
  %62 = tail call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %52, ptr noundef nonnull @.str.39, ptr noundef %61)
  %63 = tail call ptr @json_array()
  %64 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI10FloorParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %36, i64 noundef %indvars.iv) #4
  %65 = load i32, ptr %64, align 8, !tbaa !29
  %66 = sitofp i32 %65 to double
  %67 = load double, ptr %37, align 8, !tbaa !30
  %68 = fmul double %67, %66
  %69 = tail call ptr @json_real(double noundef %68)
  %70 = tail call noundef i32 @_ZL17json_array_appendP6json_tS0_(ptr noundef %63, ptr noundef %69)
  %71 = tail call ptr @json_real(double noundef 0.000000e+00)
  %72 = tail call noundef i32 @_ZL17json_array_appendP6json_tS0_(ptr noundef %63, ptr noundef %71)
  %73 = tail call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %52, ptr noundef nonnull @.str.34, ptr noundef %63)
  %74 = load i32, ptr %19, align 8, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = tail call ptr @json_integer(i64 noundef %75)
  %77 = tail call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %52, ptr noundef nonnull @.str.35, ptr noundef %76)
  %78 = tail call ptr @json_object()
  %79 = tail call ptr @json_integer(i64 noundef 1)
  %80 = tail call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %78, ptr noundef nonnull @.str.36, ptr noundef %79)
  %81 = tail call ptr @json_integer(i64 noundef %55)
  %82 = tail call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %78, ptr noundef nonnull @.str.37, ptr noundef %81)
  %83 = tail call ptr @json_integer(i64 noundef %55)
  %84 = tail call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %78, ptr noundef nonnull @.str.38, ptr noundef %83)
  %85 = tail call noundef i32 @_ZL17json_array_appendP6json_tS0_(ptr noundef %9, ptr noundef %78)
  %86 = tail call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt6vectorI15InterstoryParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %38, i64 noundef %indvars.iv) #4
  %87 = load i32, ptr %86, align 8, !tbaa !31
  %88 = sext i32 %87 to i64
  %89 = tail call ptr @json_integer(i64 noundef %88)
  %90 = tail call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %53, ptr noundef nonnull @.str.30, ptr noundef %89)
  %91 = load i32, ptr %19, align 8, !tbaa !5
  %92 = icmp eq i32 %91, 1
  %.str.41..str.42 = select i1 %92, ptr @.str.41, ptr @.str.42
  %93 = tail call ptr @json_string(ptr noundef nonnull %.str.41..str.42)
  %94 = tail call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %53, ptr noundef nonnull @.str.40, ptr noundef %93)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %95 = tail call ptr @json_integer(i64 noundef %indvars.iv.next)
  %96 = tail call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %53, ptr noundef nonnull @.str.43, ptr noundef %95)
  %97 = tail call ptr @json_array()
  %98 = tail call ptr @json_integer(i64 noundef %indvars.iv.next)
  %99 = tail call noundef i32 @_ZL17json_array_appendP6json_tS0_(ptr noundef %97, ptr noundef %98)
  %100 = tail call ptr @json_integer(i64 noundef %55)
  %101 = tail call noundef i32 @_ZL17json_array_appendP6json_tS0_(ptr noundef %97, ptr noundef %100)
  %102 = tail call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %53, ptr noundef nonnull @.str.44, ptr noundef %97)
  %103 = tail call ptr @json_integer(i64 noundef %indvars.iv.next)
  %104 = tail call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %54, ptr noundef nonnull @.str.30, ptr noundef %103)
  %105 = tail call ptr @json_string(ptr noundef nonnull @.str.45)
  %106 = tail call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %54, ptr noundef nonnull @.str.40, ptr noundef %105)
  %107 = tail call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt6vectorI15InterstoryParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %38, i64 noundef %indvars.iv) #4
  %108 = getelementptr inbounds i8, ptr %107, i64 8
  %109 = load double, ptr %108, align 8, !tbaa !33
  %110 = tail call ptr @json_real(double noundef %109)
  %111 = tail call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %54, ptr noundef nonnull @.str.46, ptr noundef %110)
  %112 = tail call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt6vectorI15InterstoryParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %38, i64 noundef %indvars.iv) #4
  %113 = getelementptr inbounds i8, ptr %112, i64 16
  %114 = load double, ptr %113, align 8, !tbaa !34
  %115 = tail call ptr @json_real(double noundef %114)
  %116 = tail call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %54, ptr noundef nonnull @.str.47, ptr noundef %115)
  %117 = tail call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt6vectorI15InterstoryParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %38, i64 noundef %indvars.iv) #4
  %118 = getelementptr inbounds i8, ptr %117, i64 24
  %119 = load double, ptr %118, align 8, !tbaa !35
  %120 = tail call ptr @json_real(double noundef %119)
  %121 = tail call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %54, ptr noundef nonnull @.str.48, ptr noundef %120)
  %122 = tail call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt6vectorI15InterstoryParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %38, i64 noundef %indvars.iv) #4
  %123 = getelementptr inbounds i8, ptr %122, i64 32
  %124 = load double, ptr %123, align 8, !tbaa !36
  %125 = tail call ptr @json_real(double noundef %124)
  %126 = tail call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %54, ptr noundef nonnull @.str.49, ptr noundef %125)
  %127 = tail call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt6vectorI15InterstoryParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %38, i64 noundef %indvars.iv) #4
  %128 = getelementptr inbounds i8, ptr %127, i64 40
  %129 = load double, ptr %128, align 8, !tbaa !37
  %130 = tail call ptr @json_real(double noundef %129)
  %131 = tail call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %54, ptr noundef nonnull @.str.50, ptr noundef %130)
  %132 = tail call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt6vectorI15InterstoryParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %38, i64 noundef %indvars.iv) #4
  %133 = getelementptr inbounds i8, ptr %132, i64 56
  %134 = load double, ptr %133, align 8, !tbaa !38
  %135 = tail call ptr @json_real(double noundef %134)
  %136 = tail call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %54, ptr noundef nonnull @.str.51, ptr noundef %135)
  %137 = tail call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt6vectorI15InterstoryParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %38, i64 noundef %indvars.iv) #4
  %138 = getelementptr inbounds i8, ptr %137, i64 64
  %139 = load double, ptr %138, align 8, !tbaa !39
  %140 = tail call ptr @json_real(double noundef %139)
  %141 = tail call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %54, ptr noundef nonnull @.str.52, ptr noundef %140)
  %142 = tail call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt6vectorI15InterstoryParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %38, i64 noundef %indvars.iv) #4
  %143 = getelementptr inbounds i8, ptr %142, i64 80
  %144 = load double, ptr %143, align 8, !tbaa !40
  %145 = tail call ptr @json_real(double noundef %144)
  %146 = tail call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %54, ptr noundef nonnull @.str.53, ptr noundef %145)
  %147 = tail call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt6vectorI15InterstoryParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %38, i64 noundef %indvars.iv) #4
  %148 = getelementptr inbounds i8, ptr %147, i64 48
  %149 = load double, ptr %148, align 8, !tbaa !41
  %150 = tail call ptr @json_real(double noundef %149)
  %151 = tail call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %54, ptr noundef nonnull @.str.54, ptr noundef %150)
  %152 = tail call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt6vectorI15InterstoryParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %38, i64 noundef %indvars.iv) #4
  %153 = getelementptr inbounds i8, ptr %152, i64 72
  %154 = load double, ptr %153, align 8, !tbaa !42
  %155 = tail call ptr @json_real(double noundef %154)
  %156 = tail call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %54, ptr noundef nonnull @.str.55, ptr noundef %155)
  %157 = tail call noundef i32 @_ZL17json_array_appendP6json_tS0_(ptr noundef %7, ptr noundef %52)
  %158 = tail call noundef i32 @_ZL17json_array_appendP6json_tS0_(ptr noundef %6, ptr noundef %54)
  %159 = tail call noundef i32 @_ZL17json_array_appendP6json_tS0_(ptr noundef %8, ptr noundef %53)
  %160 = load i32, ptr %33, align 8, !tbaa !25
  %161 = sext i32 %160 to i64
  %162 = icmp slt i64 %indvars.iv.next, %161
  br i1 %162, label %51, label %._crit_edge, !llvm.loop !43
}

declare ptr @json_object() local_unnamed_addr #1

declare ptr @json_array() local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare ptr @json_integer(i64 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef i32 @_ZL17json_array_appendP6json_tS0_(ptr noundef, ptr noundef) local_unnamed_addr #2

declare ptr @json_real(double noundef) local_unnamed_addr #1

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

; 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 #3 align 2

declare ptr @json_string(ptr noundef) local_unnamed_addr #1

declare i32 @json_dump_file(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #1

declare i32 @json_object_clear(ptr noundef) local_unnamed_addr #1

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { 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 = { 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 256}
!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, !7, i64 88}
!26 = !{!6, !16, i64 216}
!27 = !{!28, !16, i64 8}
!28 = !{!"_ZTS10FloorParam", !7, i64 0, !16, i64 8}
!29 = !{!28, !7, i64 0}
!30 = !{!6, !16, i64 96}
!31 = !{!32, !7, i64 0}
!32 = !{!"_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}
!33 = !{!32, !16, i64 8}
!34 = !{!32, !16, i64 16}
!35 = !{!32, !16, i64 24}
!36 = !{!32, !16, i64 32}
!37 = !{!32, !16, i64 40}
!38 = !{!32, !16, i64 56}
!39 = !{!32, !16, i64 64}
!40 = !{!32, !16, i64 80}
!41 = !{!32, !16, i64 48}
!42 = !{!32, !16, i64 72}
!43 = distinct !{!43, !44}
!44 = !{!"llvm.loop.mustprogress"}


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