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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

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

@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [28 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 @_ZN8Building9CreateEDPEPKc(ptr noundef nonnull align 8 dereferenceable(352) %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 i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %14 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %15 = call ptr @json_object()
  store ptr %15, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %16 = call ptr @json_array()
  store ptr %16, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %17 = call ptr @json_object()
  store ptr %17, ptr %7, align 8, !tbaa !5
  %18 = load ptr, ptr %7, align 8, !tbaa !5
  %19 = call ptr @json_string(ptr noundef @.str)
  %20 = call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %18, ptr noundef @.str, ptr noundef %19)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %21 = call ptr @json_array()
  store ptr %21, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %22

22:                                               ; preds = %60, %2
  %23 = load i32, ptr %9, align 4, !tbaa !9
  %24 = getelementptr inbounds %class.Building, ptr %14, i32 0, i32 5
  %25 = load i32, ptr %24, align 4, !tbaa !11
  %26 = icmp slt i32 %23, %25
  br i1 %26, label %28, label %27

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

28:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %29 = call ptr @json_object()
  store ptr %29, ptr %10, align 8, !tbaa !5
  %30 = load ptr, ptr %10, align 8, !tbaa !5
  %31 = call ptr @json_string(ptr noundef @.str.2)
  %32 = call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %30, ptr noundef @.str.1, ptr noundef %31)
  %33 = load ptr, ptr %10, align 8, !tbaa !5
  %34 = call ptr @json_integer(i64 noundef 1)
  %35 = call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %33, ptr noundef @.str.3, ptr noundef %34)
  %36 = load ptr, ptr %10, align 8, !tbaa !5
  %37 = load i32, ptr %9, align 4, !tbaa !9
  %38 = add nsw i32 %37, 1
  %39 = sext i32 %38 to i64
  %40 = call ptr @json_integer(i64 noundef %39)
  %41 = call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %36, ptr noundef @.str.4, ptr noundef %40)
  %42 = load ptr, ptr %10, align 8, !tbaa !5
  %43 = load i32, ptr %9, align 4, !tbaa !9
  %44 = add nsw i32 %43, 2
  %45 = sext i32 %44 to i64
  %46 = call ptr @json_integer(i64 noundef %45)
  %47 = call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %42, ptr noundef @.str.5, ptr noundef %46)
  %48 = load ptr, ptr %10, align 8, !tbaa !5
  %49 = getelementptr inbounds %class.Building, ptr %14, i32 0, i32 21
  %50 = getelementptr inbounds %"struct.Building::EDP", ptr %49, i32 0, i32 0
  %51 = load i32, ptr %9, align 4, !tbaa !9
  %52 = sext i32 %51 to i64
  %53 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %50, i64 noundef %52) #5
  %54 = load double, ptr %53, align 8, !tbaa !28
  %55 = call ptr @json_real(double noundef %54)
  %56 = call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %48, ptr noundef @.str.6, ptr noundef %55)
  %57 = load ptr, ptr %8, align 8, !tbaa !5
  %58 = load ptr, ptr %10, align 8, !tbaa !5
  %59 = call noundef i32 @_ZL17json_array_appendP6json_tS0_(ptr noundef %57, ptr noundef %58)
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %60

60:                                               ; preds = %28
  %61 = load i32, ptr %9, align 4, !tbaa !9
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr %9, align 4, !tbaa !9
  br label %22, !llvm.loop !29

63:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %64

64:                                               ; preds = %97, %63
  %65 = load i32, ptr %11, align 4, !tbaa !9
  %66 = getelementptr inbounds %class.Building, ptr %14, i32 0, i32 5
  %67 = load i32, ptr %66, align 4, !tbaa !11
  %68 = add nsw i32 %67, 1
  %69 = icmp slt i32 %65, %68
  br i1 %69, label %71, label %70

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

71:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %72 = call ptr @json_object()
  store ptr %72, ptr %12, align 8, !tbaa !5
  %73 = load ptr, ptr %12, align 8, !tbaa !5
  %74 = call ptr @json_string(ptr noundef @.str.7)
  %75 = call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %73, ptr noundef @.str.1, ptr noundef %74)
  %76 = load ptr, ptr %12, align 8, !tbaa !5
  %77 = call ptr @json_integer(i64 noundef 1)
  %78 = call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %76, ptr noundef @.str.3, ptr noundef %77)
  %79 = load ptr, ptr %12, align 8, !tbaa !5
  %80 = load i32, ptr %11, align 4, !tbaa !9
  %81 = add nsw i32 %80, 1
  %82 = sext i32 %81 to i64
  %83 = call ptr @json_integer(i64 noundef %82)
  %84 = call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %79, ptr noundef @.str.8, ptr noundef %83)
  %85 = load ptr, ptr %12, align 8, !tbaa !5
  %86 = getelementptr inbounds %class.Building, ptr %14, i32 0, i32 21
  %87 = getelementptr inbounds %"struct.Building::EDP", ptr %86, i32 0, i32 1
  %88 = load i32, ptr %11, align 4, !tbaa !9
  %89 = sext i32 %88 to i64
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %87, i64 noundef %89) #5
  %91 = load double, ptr %90, align 8, !tbaa !28
  %92 = call ptr @json_real(double noundef %91)
  %93 = call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %85, ptr noundef @.str.6, ptr noundef %92)
  %94 = load ptr, ptr %8, align 8, !tbaa !5
  %95 = load ptr, ptr %12, align 8, !tbaa !5
  %96 = call noundef i32 @_ZL17json_array_appendP6json_tS0_(ptr noundef %94, ptr noundef %95)
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %97

97:                                               ; preds = %71
  %98 = load i32, ptr %11, align 4, !tbaa !9
  %99 = add nsw i32 %98, 1
  store i32 %99, ptr %11, align 4, !tbaa !9
  br label %64, !llvm.loop !31

100:                                              ; preds = %70
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %101 = call ptr @json_object()
  store ptr %101, ptr %13, align 8, !tbaa !5
  %102 = load ptr, ptr %13, align 8, !tbaa !5
  %103 = call ptr @json_string(ptr noundef @.str.9)
  %104 = call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %102, ptr noundef @.str.1, ptr noundef %103)
  %105 = load ptr, ptr %13, align 8, !tbaa !5
  %106 = call ptr @json_integer(i64 noundef 1)
  %107 = call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %105, ptr noundef @.str.3, ptr noundef %106)
  %108 = load ptr, ptr %13, align 8, !tbaa !5
  %109 = getelementptr inbounds %class.Building, ptr %14, i32 0, i32 5
  %110 = load i32, ptr %109, align 4, !tbaa !11
  %111 = add nsw i32 %110, 1
  %112 = sext i32 %111 to i64
  %113 = call ptr @json_integer(i64 noundef %112)
  %114 = call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %108, ptr noundef @.str.8, ptr noundef %113)
  %115 = load ptr, ptr %13, align 8, !tbaa !5
  %116 = getelementptr inbounds %class.Building, ptr %14, i32 0, i32 21
  %117 = getelementptr inbounds %"struct.Building::EDP", ptr %116, i32 0, i32 2
  %118 = load double, ptr %117, align 8, !tbaa !32
  %119 = call ptr @json_real(double noundef %118)
  %120 = call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %115, ptr noundef @.str.6, ptr noundef %119)
  %121 = load ptr, ptr %7, align 8, !tbaa !5
  %122 = load ptr, ptr %8, align 8, !tbaa !5
  %123 = call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %121, ptr noundef @.str.10, ptr noundef %122)
  %124 = load ptr, ptr %8, align 8, !tbaa !5
  %125 = load ptr, ptr %13, align 8, !tbaa !5
  %126 = call noundef i32 @_ZL17json_array_appendP6json_tS0_(ptr noundef %124, ptr noundef %125)
  %127 = load ptr, ptr %6, align 8, !tbaa !5
  %128 = load ptr, ptr %7, align 8, !tbaa !5
  %129 = call noundef i32 @_ZL17json_array_appendP6json_tS0_(ptr noundef %127, ptr noundef %128)
  %130 = load ptr, ptr %5, align 8, !tbaa !5
  %131 = load ptr, ptr %6, align 8, !tbaa !5
  %132 = call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %130, ptr noundef @.str.11, ptr noundef %131)
  %133 = load ptr, ptr %5, align 8, !tbaa !5
  %134 = load ptr, ptr %4, align 8, !tbaa !5
  %135 = call i32 @json_dump_file(ptr noundef %133, ptr noundef %134, i64 noundef 0)
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #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_string(ptr noundef) #2

declare ptr @json_integer(i64 noundef) #2

declare ptr @json_real(double noundef) #2

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

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

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


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

@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [28 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8Building9CreateEDPEPKc(ptr noundef nonnull align 8 dereferenceable(352) %0, ptr noundef %1) local_unnamed_addr #0 align 2 {
  %3 = tail call ptr @json_object()
  %4 = tail call ptr @json_array()
  %5 = tail call ptr @json_object()
  %6 = tail call ptr @json_string(ptr noundef nonnull @.str)
  %7 = tail call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %5, ptr noundef nonnull @.str, ptr noundef %6)
  %8 = tail call ptr @json_array()
  %9 = getelementptr inbounds i8, ptr %0, i64 52
  %10 = load i32, ptr %9, align 4, !tbaa !5
  %11 = icmp sgt i32 %10, 0
  br i1 %11, label %.lr.ph, label %.preheader

.lr.ph:                                           ; preds = %2
  %12 = getelementptr inbounds i8, ptr %0, i64 216
  br label %15

.preheader:                                       ; preds = %15, %2
  %13 = phi i32 [ %10, %2 ], [ %31, %15 ]
  %.not39 = icmp slt i32 %13, 0
  br i1 %.not39, label %._crit_edge, label %.lr.ph41

.lr.ph41:                                         ; preds = %.preheader
  %14 = getelementptr inbounds i8, ptr %0, i64 240
  br label %53

15:                                               ; preds = %.lr.ph, %15
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %15 ]
  %16 = tail call ptr @json_object()
  %17 = tail call ptr @json_string(ptr noundef nonnull @.str.2)
  %18 = tail call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %16, ptr noundef nonnull @.str.1, ptr noundef %17)
  %19 = tail call ptr @json_integer(i64 noundef 1)
  %20 = tail call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %16, ptr noundef nonnull @.str.3, ptr noundef %19)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %21 = tail call ptr @json_integer(i64 noundef %indvars.iv.next)
  %22 = tail call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %16, ptr noundef nonnull @.str.4, ptr noundef %21)
  %23 = add nuw nsw i64 %indvars.iv, 2
  %24 = tail call ptr @json_integer(i64 noundef %23)
  %25 = tail call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %16, ptr noundef nonnull @.str.5, ptr noundef %24)
  %26 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %indvars.iv) #4
  %27 = load double, ptr %26, align 8, !tbaa !26
  %28 = tail call ptr @json_real(double noundef %27)
  %29 = tail call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %16, ptr noundef nonnull @.str.6, ptr noundef %28)
  %30 = tail call noundef i32 @_ZL17json_array_appendP6json_tS0_(ptr noundef %8, ptr noundef %16)
  %31 = load i32, ptr %9, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = icmp slt i64 %indvars.iv.next, %32
  br i1 %33, label %15, label %.preheader, !llvm.loop !27

._crit_edge:                                      ; preds = %53, %.preheader
  %34 = tail call ptr @json_object()
  %35 = tail call ptr @json_string(ptr noundef nonnull @.str.9)
  %36 = tail call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %34, ptr noundef nonnull @.str.1, ptr noundef %35)
  %37 = tail call ptr @json_integer(i64 noundef 1)
  %38 = tail call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %34, ptr noundef nonnull @.str.3, ptr noundef %37)
  %39 = load i32, ptr %9, align 4, !tbaa !5
  %40 = add nsw i32 %39, 1
  %41 = sext i32 %40 to i64
  %42 = tail call ptr @json_integer(i64 noundef %41)
  %43 = tail call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %34, ptr noundef nonnull @.str.8, ptr noundef %42)
  %44 = getelementptr inbounds i8, ptr %0, i64 264
  %45 = load double, ptr %44, align 8, !tbaa !29
  %46 = tail call ptr @json_real(double noundef %45)
  %47 = tail call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %34, ptr noundef nonnull @.str.6, ptr noundef %46)
  %48 = tail call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %5, ptr noundef nonnull @.str.10, ptr noundef %8)
  %49 = tail call noundef i32 @_ZL17json_array_appendP6json_tS0_(ptr noundef %8, ptr noundef %34)
  %50 = tail call noundef i32 @_ZL17json_array_appendP6json_tS0_(ptr noundef %4, ptr noundef %5)
  %51 = tail call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %3, ptr noundef nonnull @.str.11, ptr noundef %4)
  %52 = tail call i32 @json_dump_file(ptr noundef %3, ptr noundef %1, i64 noundef 0)
  ret void

53:                                               ; preds = %.lr.ph41, %53
  %indvars.iv43 = phi i64 [ 0, %.lr.ph41 ], [ %indvars.iv.next44, %53 ]
  %54 = tail call ptr @json_object()
  %55 = tail call ptr @json_string(ptr noundef nonnull @.str.7)
  %56 = tail call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %54, ptr noundef nonnull @.str.1, ptr noundef %55)
  %57 = tail call ptr @json_integer(i64 noundef 1)
  %58 = tail call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %54, ptr noundef nonnull @.str.3, ptr noundef %57)
  %indvars.iv.next44 = add nuw nsw i64 %indvars.iv43, 1
  %59 = tail call ptr @json_integer(i64 noundef %indvars.iv.next44)
  %60 = tail call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %54, ptr noundef nonnull @.str.8, ptr noundef %59)
  %61 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %indvars.iv43) #4
  %62 = load double, ptr %61, align 8, !tbaa !26
  %63 = tail call ptr @json_real(double noundef %62)
  %64 = tail call noundef i32 @_ZL15json_object_setP6json_tPKcS0_(ptr noundef %54, ptr noundef nonnull @.str.6, ptr noundef %63)
  %65 = tail call noundef i32 @_ZL17json_array_appendP6json_tS0_(ptr noundef %8, ptr noundef %54)
  %66 = load i32, ptr %9, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %.not.not = icmp slt i64 %indvars.iv43, %67
  br i1 %.not.not, label %53, label %._crit_edge, !llvm.loop !30
}

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_string(ptr noundef) local_unnamed_addr #1

declare ptr @json_integer(i64 noundef) local_unnamed_addr #1

declare ptr @json_real(double noundef) local_unnamed_addr #1

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

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

declare i32 @json_dump_file(ptr noundef, ptr noundef, i64 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 52}
!6 = !{!"_ZTS8Building", !7, i64 0, !10, i64 8, !14, i64 40, !7, i64 44, !15, i64 48, !7, i64 52, !16, i64 56, !16, i64 64, !16, i64 72, !16, i64 80, !16, i64 88, !16, i64 96, !8, i64 104, !16, i64 136, !16, i64 144, !12, i64 152, !12, i64 160, !12, i64 168, !12, i64 176, !17, i64 184, !7, i64 208, !21, i64 216, !7, i64 272, !16, i64 280, !16, i64 288, !16, i64 296, !22, i64 304, !22, i64 328}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !11, i64 0, !13, i64 8, !8, i64 16}
!11 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !12, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!"long", !8, i64 0}
!14 = !{!"_ZTSN8Building8StruTypeE", !8, i64 0}
!15 = !{!"_ZTSN8Building13BldgOccupancyE", !8, i64 0}
!16 = !{!"double", !8, i64 0}
!17 = !{!"_ZTSSt6vectorIiSaIiEE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!21 = !{!"_ZTSN8Building3EDPE", !22, i64 0, !22, i64 24, !16, i64 48}
!22 = !{!"_ZTSSt6vectorIdSaIdEE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!26 = !{!16, !16, i64 0}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = !{!6, !16, i64 264}
!30 = distinct !{!30, !28}


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