; LLVM IR from thekyria/elabtsaot2 :: ss_analysis (ssutils)

; 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::complex" = type { { double, double } }
%"class.elabtsaot::Branch" = type { i32, i8, i32, i32, double, double, double, double, double, double, double, double }
%"class.elabtsaot::Bus" = type { i32, %"class.std::__cxx11::basic_string", i32, double, double, double, double, double, double, double }
%"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] }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9elabtsaot7ssutils6buildYERKNS_11PowersystemERN5boost7numeric5ublas6matrixISt7complexIdENS6_18basic_column_majorImlEENS6_15unbounded_arrayIS9_SaIS9_EEEEE(ptr noundef nonnull align 8 dereferenceable(480) %0, ptr noundef nonnull align 8 dereferenceable(40) %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca %"class.std::complex", align 8
  %12 = alloca double, align 8
  %13 = alloca %"class.std::complex", align 8
  %14 = alloca %"class.std::complex", align 8
  %15 = alloca %"class.std::complex", align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca %"class.std::complex", align 8
  %19 = alloca %"class.std::complex", align 8
  %20 = alloca %"class.std::complex", align 8
  %21 = alloca %"class.std::complex", align 8
  %22 = alloca %"class.std::complex", align 8
  %23 = alloca %"class.std::complex", align 8
  %24 = alloca %"class.std::complex", align 8
  %25 = alloca %"class.std::complex", align 8
  %26 = alloca %"class.std::complex", align 8
  %27 = alloca %"class.std::complex", align 8
  %28 = alloca %"class.std::complex", align 8
  %29 = alloca %"class.std::complex", align 8
  %30 = alloca %"class.std::complex", align 8
  %31 = alloca %"class.std::complex", align 8
  %32 = alloca %"class.std::complex", align 8
  %33 = alloca %"class.std::complex", align 8
  %34 = alloca i64, align 8
  %35 = alloca %"class.std::complex", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %36 = load ptr, ptr %3, align 8, !tbaa !5
  %37 = call noundef i64 @_ZNK9elabtsaot11Powersystem11getBusCountEv(ptr noundef nonnull align 8 dereferenceable(480) %36)
  store i64 %37, ptr %5, align 8, !tbaa !9
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = load i64, ptr %5, align 8, !tbaa !9
  %40 = load i64, ptr %5, align 8, !tbaa !9
  call void @_ZN5boost7numeric5ublas6matrixISt7complexIdENS1_18basic_column_majorImlEENS1_15unbounded_arrayIS4_SaIS4_EEEE6resizeEmmb(ptr noundef nonnull align 8 dereferenceable(40) %38, i64 noundef %39, i64 noundef %40, i1 noundef zeroext true)
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN5boost7numeric5ublas6matrixISt7complexIdENS1_18basic_column_majorImlEENS1_15unbounded_arrayIS4_SaIS4_EEEE5clearEv(ptr noundef nonnull align 8 dereferenceable(40) %41)
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  store i64 0, ptr %6, align 8, !tbaa !9
  br label %42

42:                                               ; preds = %201, %2
  %43 = load i64, ptr %6, align 8, !tbaa !9
  %44 = load ptr, ptr %3, align 8, !tbaa !5
  %45 = call noundef i64 @_ZNK9elabtsaot11Powersystem14getBranchCountEv(ptr noundef nonnull align 8 dereferenceable(480) %44)
  %46 = icmp ne i64 %43, %45
  br i1 %46, label %48, label %47

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

48:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %49 = load ptr, ptr %3, align 8, !tbaa !5
  %50 = load i64, ptr %6, align 8, !tbaa !9
  %51 = call noundef ptr @_ZNK9elabtsaot11Powersystem9getBranchEm(ptr noundef nonnull align 8 dereferenceable(480) %49, i64 noundef %50)
  store ptr %51, ptr %8, align 8, !tbaa !5
  %52 = load ptr, ptr %8, align 8, !tbaa !5
  %53 = getelementptr inbounds %"class.elabtsaot::Branch", ptr %52, i32 0, i32 1
  %54 = load i8, ptr %53, align 4, !tbaa !11, !range !16, !noundef !17
  %55 = trunc i8 %54 to i1
  br i1 %55, label %57, label %56

56:                                               ; preds = %48
  store i32 4, ptr %7, align 4
  br label %198

57:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %58 = load ptr, ptr %3, align 8, !tbaa !5
  %59 = load ptr, ptr %8, align 8, !tbaa !5
  %60 = getelementptr inbounds %"class.elabtsaot::Branch", ptr %59, i32 0, i32 2
  %61 = load i32, ptr %60, align 8, !tbaa !18
  %62 = call noundef i32 @_ZNK9elabtsaot11Powersystem12getBus_intIdEj(ptr noundef nonnull align 8 dereferenceable(480) %58, i32 noundef %61)
  %63 = sext i32 %62 to i64
  store i64 %63, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %64 = load ptr, ptr %3, align 8, !tbaa !5
  %65 = load ptr, ptr %8, align 8, !tbaa !5
  %66 = getelementptr inbounds %"class.elabtsaot::Branch", ptr %65, i32 0, i32 3
  %67 = load i32, ptr %66, align 4, !tbaa !19
  %68 = call noundef i32 @_ZNK9elabtsaot11Powersystem12getBus_intIdEj(ptr noundef nonnull align 8 dereferenceable(480) %64, i32 noundef %67)
  %69 = sext i32 %68 to i64
  store i64 %69, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  store double 1.000000e+00, ptr %12, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #5
  %70 = load ptr, ptr %8, align 8, !tbaa !5
  %71 = getelementptr inbounds %"class.elabtsaot::Branch", ptr %70, i32 0, i32 4
  %72 = load double, ptr %71, align 8, !tbaa !21
  %73 = load ptr, ptr %8, align 8, !tbaa !5
  %74 = getelementptr inbounds %"class.elabtsaot::Branch", ptr %73, i32 0, i32 5
  %75 = load double, ptr %74, align 8, !tbaa !22
  call void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %13, double noundef %72, double noundef %75)
  %76 = call { double, double } @_ZStdvIdESt7complexIT_ERKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(16) %13)
  %77 = getelementptr inbounds %"class.std::complex", ptr %11, i32 0, i32 0
  %78 = getelementptr inbounds { double, double }, ptr %77, i32 0, i32 0
  %79 = extractvalue { double, double } %76, 0
  store double %79, ptr %78, align 8
  %80 = getelementptr inbounds { double, double }, ptr %77, i32 0, i32 1
  %81 = extractvalue { double, double } %76, 1
  store double %81, ptr %80, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #5
  %82 = load ptr, ptr %8, align 8, !tbaa !5
  %83 = getelementptr inbounds %"class.elabtsaot::Branch", ptr %82, i32 0, i32 8
  %84 = load double, ptr %83, align 8, !tbaa !23
  %85 = load ptr, ptr %8, align 8, !tbaa !5
  %86 = getelementptr inbounds %"class.elabtsaot::Branch", ptr %85, i32 0, i32 6
  %87 = load double, ptr %86, align 8, !tbaa !24
  call void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %14, double noundef %84, double noundef %87)
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #5
  %88 = load ptr, ptr %8, align 8, !tbaa !5
  %89 = getelementptr inbounds %"class.elabtsaot::Branch", ptr %88, i32 0, i32 9
  %90 = load double, ptr %89, align 8, !tbaa !25
  %91 = load ptr, ptr %8, align 8, !tbaa !5
  %92 = getelementptr inbounds %"class.elabtsaot::Branch", ptr %91, i32 0, i32 7
  %93 = load double, ptr %92, align 8, !tbaa !26
  call void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %15, double noundef %90, double noundef %93)
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %94 = load ptr, ptr %8, align 8, !tbaa !5
  %95 = getelementptr inbounds %"class.elabtsaot::Branch", ptr %94, i32 0, i32 10
  %96 = load double, ptr %95, align 8, !tbaa !27
  store double %96, ptr %16, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %97 = load ptr, ptr %8, align 8, !tbaa !5
  %98 = getelementptr inbounds %"class.elabtsaot::Branch", ptr %97, i32 0, i32 11
  %99 = load double, ptr %98, align 8, !tbaa !28
  store double %99, ptr %17, align 8, !tbaa !20
  %100 = load double, ptr %16, align 8, !tbaa !20
  %101 = fcmp oeq double %100, 0.000000e+00
  br i1 %101, label %102, label %103

102:                                              ; preds = %57
  store double 1.000000e+00, ptr %16, align 8, !tbaa !20
  store double 0.000000e+00, ptr %17, align 8, !tbaa !20
  br label %103

103:                                              ; preds = %102, %57
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #5
  %104 = call { double, double } @_ZStplIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %14)
  %105 = getelementptr inbounds %"class.std::complex", ptr %19, i32 0, i32 0
  %106 = getelementptr inbounds { double, double }, ptr %105, i32 0, i32 0
  %107 = extractvalue { double, double } %104, 0
  store double %107, ptr %106, align 8
  %108 = getelementptr inbounds { double, double }, ptr %105, i32 0, i32 1
  %109 = extractvalue { double, double } %104, 1
  store double %109, ptr %108, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #5
  %110 = load double, ptr %16, align 8, !tbaa !20
  %111 = load double, ptr %16, align 8, !tbaa !20
  %112 = fmul double %110, %111
  call void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %20, double noundef %112, double noundef 0.000000e+00)
  %113 = call { double, double } @_ZStdvIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(16) %20)
  %114 = getelementptr inbounds %"class.std::complex", ptr %18, i32 0, i32 0
  %115 = getelementptr inbounds { double, double }, ptr %114, i32 0, i32 0
  %116 = extractvalue { double, double } %113, 0
  store double %116, ptr %115, align 8
  %117 = getelementptr inbounds { double, double }, ptr %114, i32 0, i32 1
  %118 = extractvalue { double, double } %113, 1
  store double %118, ptr %117, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #5
  %119 = call { double, double } @_ZStngIdESt7complexIT_ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %11)
  %120 = getelementptr inbounds %"class.std::complex", ptr %22, i32 0, i32 0
  %121 = getelementptr inbounds { double, double }, ptr %120, i32 0, i32 0
  %122 = extractvalue { double, double } %119, 0
  store double %122, ptr %121, align 8
  %123 = getelementptr inbounds { double, double }, ptr %120, i32 0, i32 1
  %124 = extractvalue { double, double } %119, 1
  store double %124, ptr %123, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #5
  %125 = load double, ptr %16, align 8, !tbaa !20
  call void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %24, double noundef %125, double noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #5
  %126 = load double, ptr %17, align 8, !tbaa !20
  %127 = fneg double %126
  call void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %26, double noundef 0.000000e+00, double noundef %127)
  %128 = call { double, double } @_ZSt3expIdESt7complexIT_ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %26)
  %129 = getelementptr inbounds %"class.std::complex", ptr %25, i32 0, i32 0
  %130 = getelementptr inbounds { double, double }, ptr %129, i32 0, i32 0
  %131 = extractvalue { double, double } %128, 0
  store double %131, ptr %130, align 8
  %132 = getelementptr inbounds { double, double }, ptr %129, i32 0, i32 1
  %133 = extractvalue { double, double } %128, 1
  store double %133, ptr %132, align 8
  %134 = call { double, double } @_ZStmlIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 8 dereferenceable(16) %25)
  %135 = getelementptr inbounds %"class.std::complex", ptr %23, i32 0, i32 0
  %136 = getelementptr inbounds { double, double }, ptr %135, i32 0, i32 0
  %137 = extractvalue { double, double } %134, 0
  store double %137, ptr %136, align 8
  %138 = getelementptr inbounds { double, double }, ptr %135, i32 0, i32 1
  %139 = extractvalue { double, double } %134, 1
  store double %139, ptr %138, align 8
  %140 = call { double, double } @_ZStdvIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(16) %23)
  %141 = getelementptr inbounds %"class.std::complex", ptr %21, i32 0, i32 0
  %142 = getelementptr inbounds { double, double }, ptr %141, i32 0, i32 0
  %143 = extractvalue { double, double } %140, 0
  store double %143, ptr %142, align 8
  %144 = getelementptr inbounds { double, double }, ptr %141, i32 0, i32 1
  %145 = extractvalue { double, double } %140, 1
  store double %145, ptr %144, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #5
  %146 = call { double, double } @_ZStngIdESt7complexIT_ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %11)
  %147 = getelementptr inbounds %"class.std::complex", ptr %28, i32 0, i32 0
  %148 = getelementptr inbounds { double, double }, ptr %147, i32 0, i32 0
  %149 = extractvalue { double, double } %146, 0
  store double %149, ptr %148, align 8
  %150 = getelementptr inbounds { double, double }, ptr %147, i32 0, i32 1
  %151 = extractvalue { double, double } %146, 1
  store double %151, ptr %150, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #5
  %152 = load double, ptr %16, align 8, !tbaa !20
  call void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %30, double noundef %152, double noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #5
  %153 = load double, ptr %17, align 8, !tbaa !20
  call void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %32, double noundef 0.000000e+00, double noundef %153)
  %154 = call { double, double } @_ZSt3expIdESt7complexIT_ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %32)
  %155 = getelementptr inbounds %"class.std::complex", ptr %31, i32 0, i32 0
  %156 = getelementptr inbounds { double, double }, ptr %155, i32 0, i32 0
  %157 = extractvalue { double, double } %154, 0
  store double %157, ptr %156, align 8
  %158 = getelementptr inbounds { double, double }, ptr %155, i32 0, i32 1
  %159 = extractvalue { double, double } %154, 1
  store double %159, ptr %158, align 8
  %160 = call { double, double } @_ZStmlIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef nonnull align 8 dereferenceable(16) %31)
  %161 = getelementptr inbounds %"class.std::complex", ptr %29, i32 0, i32 0
  %162 = getelementptr inbounds { double, double }, ptr %161, i32 0, i32 0
  %163 = extractvalue { double, double } %160, 0
  store double %163, ptr %162, align 8
  %164 = getelementptr inbounds { double, double }, ptr %161, i32 0, i32 1
  %165 = extractvalue { double, double } %160, 1
  store double %165, ptr %164, align 8
  %166 = call { double, double } @_ZStdvIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %28, ptr noundef nonnull align 8 dereferenceable(16) %29)
  %167 = getelementptr inbounds %"class.std::complex", ptr %27, i32 0, i32 0
  %168 = getelementptr inbounds { double, double }, ptr %167, i32 0, i32 0
  %169 = extractvalue { double, double } %166, 0
  store double %169, ptr %168, align 8
  %170 = getelementptr inbounds { double, double }, ptr %167, i32 0, i32 1
  %171 = extractvalue { double, double } %166, 1
  store double %171, ptr %170, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #5
  %172 = call { double, double } @_ZStplIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %15)
  %173 = getelementptr inbounds %"class.std::complex", ptr %33, i32 0, i32 0
  %174 = getelementptr inbounds { double, double }, ptr %173, i32 0, i32 0
  %175 = extractvalue { double, double } %172, 0
  store double %175, ptr %174, align 8
  %176 = getelementptr inbounds { double, double }, ptr %173, i32 0, i32 1
  %177 = extractvalue { double, double } %172, 1
  store double %177, ptr %176, align 8
  %178 = load ptr, ptr %4, align 8, !tbaa !5
  %179 = load i64, ptr %9, align 8, !tbaa !9
  %180 = load i64, ptr %9, align 8, !tbaa !9
  %181 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN5boost7numeric5ublas6matrixISt7complexIdENS1_18basic_column_majorImlEENS1_15unbounded_arrayIS4_SaIS4_EEEEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %178, i64 noundef %179, i64 noundef %180)
  %182 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEpLIdEERS0_RKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %181, ptr noundef nonnull align 8 dereferenceable(16) %18)
  %183 = load ptr, ptr %4, align 8, !tbaa !5
  %184 = load i64, ptr %9, align 8, !tbaa !9
  %185 = load i64, ptr %10, align 8, !tbaa !9
  %186 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN5boost7numeric5ublas6matrixISt7complexIdENS1_18basic_column_majorImlEENS1_15unbounded_arrayIS4_SaIS4_EEEEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %183, i64 noundef %184, i64 noundef %185)
  %187 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEpLIdEERS0_RKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %186, ptr noundef nonnull align 8 dereferenceable(16) %21)
  %188 = load ptr, ptr %4, align 8, !tbaa !5
  %189 = load i64, ptr %10, align 8, !tbaa !9
  %190 = load i64, ptr %9, align 8, !tbaa !9
  %191 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN5boost7numeric5ublas6matrixISt7complexIdENS1_18basic_column_majorImlEENS1_15unbounded_arrayIS4_SaIS4_EEEEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %188, i64 noundef %189, i64 noundef %190)
  %192 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEpLIdEERS0_RKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %191, ptr noundef nonnull align 8 dereferenceable(16) %27)
  %193 = load ptr, ptr %4, align 8, !tbaa !5
  %194 = load i64, ptr %10, align 8, !tbaa !9
  %195 = load i64, ptr %10, align 8, !tbaa !9
  %196 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN5boost7numeric5ublas6matrixISt7complexIdENS1_18basic_column_majorImlEENS1_15unbounded_arrayIS4_SaIS4_EEEEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %193, i64 noundef %194, i64 noundef %195)
  %197 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEpLIdEERS0_RKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %196, ptr noundef nonnull align 8 dereferenceable(16) %33)
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 16, 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
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 16, 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
  store i32 0, ptr %7, align 4
  br label %198

198:                                              ; preds = %103, %56
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  %199 = load i32, ptr %7, align 4
  switch i32 %199, label %230 [
    i32 0, label %200
    i32 4, label %201
  ]

200:                                              ; preds = %198
  br label %201

201:                                              ; preds = %200, %198
  %202 = load i64, ptr %6, align 8, !tbaa !9
  %203 = add i64 %202, 1
  store i64 %203, ptr %6, align 8, !tbaa !9
  br label %42, !llvm.loop !29

204:                                              ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #5
  store i64 0, ptr %34, align 8, !tbaa !9
  br label %205

205:                                              ; preds = %226, %204
  %206 = load i64, ptr %34, align 8, !tbaa !9
  %207 = load i64, ptr %5, align 8, !tbaa !9
  %208 = icmp ne i64 %206, %207
  br i1 %208, label %210, label %209

209:                                              ; preds = %205
  store i32 5, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #5
  br label %229

210:                                              ; preds = %205
  call void @llvm.lifetime.start.p0(i64 16, ptr %35) #5
  %211 = load ptr, ptr %3, align 8, !tbaa !5
  %212 = load i64, ptr %34, align 8, !tbaa !9
  %213 = call noundef ptr @_ZNK9elabtsaot11Powersystem6getBusEm(ptr noundef nonnull align 8 dereferenceable(480) %211, i64 noundef %212)
  %214 = getelementptr inbounds %"class.elabtsaot::Bus", ptr %213, i32 0, i32 3
  %215 = load double, ptr %214, align 8, !tbaa !31
  %216 = load ptr, ptr %3, align 8, !tbaa !5
  %217 = load i64, ptr %34, align 8, !tbaa !9
  %218 = call noundef ptr @_ZNK9elabtsaot11Powersystem6getBusEm(ptr noundef nonnull align 8 dereferenceable(480) %216, i64 noundef %217)
  %219 = getelementptr inbounds %"class.elabtsaot::Bus", ptr %218, i32 0, i32 4
  %220 = load double, ptr %219, align 8, !tbaa !35
  call void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %35, double noundef %215, double noundef %220)
  %221 = load ptr, ptr %4, align 8, !tbaa !5
  %222 = load i64, ptr %34, align 8, !tbaa !9
  %223 = load i64, ptr %34, align 8, !tbaa !9
  %224 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN5boost7numeric5ublas6matrixISt7complexIdENS1_18basic_column_majorImlEENS1_15unbounded_arrayIS4_SaIS4_EEEEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %221, i64 noundef %222, i64 noundef %223)
  %225 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEpLIdEERS0_RKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %224, ptr noundef nonnull align 8 dereferenceable(16) %35)
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #5
  br label %226

226:                                              ; preds = %210
  %227 = load i64, ptr %34, align 8, !tbaa !9
  %228 = add i64 %227, 1
  store i64 %228, ptr %34, align 8, !tbaa !9
  br label %205, !llvm.loop !36

229:                                              ; preds = %209
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  ret void

230:                                              ; preds = %198
  unreachable
}

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

declare noundef i64 @_ZNK9elabtsaot11Powersystem11getBusCountEv(ptr noundef nonnull align 8 dereferenceable(480)) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5boost7numeric5ublas6matrixISt7complexIdENS1_18basic_column_majorImlEENS1_15unbounded_arrayIS4_SaIS4_EEEE6resizeEmmb(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef, i64 noundef, i1 noundef zeroext) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5boost7numeric5ublas6matrixISt7complexIdENS1_18basic_column_majorImlEENS1_15unbounded_arrayIS4_SaIS4_EEEE5clearEv(ptr noundef nonnull align 8 dereferenceable(40)) #0 align 2

declare noundef i64 @_ZNK9elabtsaot11Powersystem14getBranchCountEv(ptr noundef nonnull align 8 dereferenceable(480)) #2

declare noundef ptr @_ZNK9elabtsaot11Powersystem9getBranchEm(ptr noundef nonnull align 8 dereferenceable(480), i64 noundef) #2

declare noundef i32 @_ZNK9elabtsaot11Powersystem12getBus_intIdEj(ptr noundef nonnull align 8 dereferenceable(480), i32 noundef) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { double, double } @_ZStdvIdESt7complexIT_ERKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(16)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16), double noundef, double noundef) unnamed_addr #4 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { double, double } @_ZStdvIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { double, double } @_ZStplIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { double, double } @_ZStngIdESt7complexIT_ERKS2_(ptr noundef nonnull align 8 dereferenceable(16)) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { double, double } @_ZStmlIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { double, double } @_ZSt3expIdESt7complexIT_ERKS2_(ptr noundef nonnull align 8 dereferenceable(16)) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN5boost7numeric5ublas6matrixISt7complexIdENS1_18basic_column_majorImlEENS1_15unbounded_arrayIS4_SaIS4_EEEEclEmm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef, i64 noundef) #0 align 2

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

declare noundef ptr @_ZNK9elabtsaot11Powersystem6getBusEm(ptr noundef nonnull align 8 dereferenceable(480), i64 noundef) #2

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = !{!"long", !7, i64 0}
!11 = !{!12, !14, i64 4}
!12 = !{!"_ZTSN9elabtsaot6BranchE", !13, i64 0, !14, i64 4, !13, i64 8, !13, i64 12, !15, i64 16, !15, i64 24, !15, i64 32, !15, i64 40, !15, i64 48, !15, i64 56, !15, i64 64, !15, i64 72}
!13 = !{!"int", !7, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"double", !7, i64 0}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = !{!12, !13, i64 8}
!19 = !{!12, !13, i64 12}
!20 = !{!15, !15, i64 0}
!21 = !{!12, !15, i64 16}
!22 = !{!12, !15, i64 24}
!23 = !{!12, !15, i64 48}
!24 = !{!12, !15, i64 32}
!25 = !{!12, !15, i64 56}
!26 = !{!12, !15, i64 40}
!27 = !{!12, !15, i64 64}
!28 = !{!12, !15, i64 72}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = !{!32, !15, i64 48}
!32 = !{!"_ZTSN9elabtsaot3BusE", !13, i64 0, !33, i64 8, !13, i64 40, !15, i64 48, !15, i64 56, !15, i64 64, !15, i64 72, !15, i64 80, !15, i64 88, !15, i64 96}
!33 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !34, i64 0, !10, i64 8, !7, i64 16}
!34 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!35 = !{!32, !15, i64 56}
!36 = distinct !{!36, !30}


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

%"class.std::complex" = type { { double, double } }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9elabtsaot7ssutils6buildYERKNS_11PowersystemERN5boost7numeric5ublas6matrixISt7complexIdENS6_18basic_column_majorImlEENS6_15unbounded_arrayIS9_SaIS9_EEEEE(ptr noundef nonnull align 8 dereferenceable(480) %0, ptr noundef nonnull align 8 dereferenceable(40) %1) local_unnamed_addr #0 {
  %3 = alloca %"class.std::complex", align 8
  %4 = alloca double, align 8
  %5 = alloca %"class.std::complex", align 8
  %6 = alloca %"class.std::complex", align 8
  %7 = alloca %"class.std::complex", align 8
  %8 = alloca %"class.std::complex", align 8
  %9 = alloca %"class.std::complex", align 8
  %10 = alloca %"class.std::complex", align 8
  %11 = alloca %"class.std::complex", align 8
  %12 = alloca %"class.std::complex", align 8
  %13 = alloca %"class.std::complex", align 8
  %14 = alloca %"class.std::complex", align 8
  %15 = alloca %"class.std::complex", align 8
  %16 = alloca %"class.std::complex", align 8
  %17 = alloca %"class.std::complex", align 8
  %18 = alloca %"class.std::complex", align 8
  %19 = alloca %"class.std::complex", align 8
  %20 = alloca %"class.std::complex", align 8
  %21 = alloca %"class.std::complex", align 8
  %22 = alloca %"class.std::complex", align 8
  %23 = alloca %"class.std::complex", align 8
  %24 = alloca %"class.std::complex", align 8
  %25 = tail call noundef i64 @_ZNK9elabtsaot11Powersystem11getBusCountEv(ptr noundef nonnull align 8 dereferenceable(480) %0)
  tail call void @_ZN5boost7numeric5ublas6matrixISt7complexIdENS1_18basic_column_majorImlEENS1_15unbounded_arrayIS4_SaIS4_EEEE6resizeEmmb(ptr noundef nonnull align 8 dereferenceable(40) %1, i64 noundef %25, i64 noundef %25, i1 noundef zeroext true)
  tail call void @_ZN5boost7numeric5ublas6matrixISt7complexIdENS1_18basic_column_majorImlEENS1_15unbounded_arrayIS4_SaIS4_EEEE5clearEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
  %26 = tail call noundef i64 @_ZNK9elabtsaot11Powersystem14getBranchCountEv(ptr noundef nonnull align 8 dereferenceable(480) %0)
  %.not56 = icmp eq i64 %26, 0
  br i1 %.not56, label %.preheader, label %.lr.ph

.lr.ph:                                           ; preds = %2
  %27 = getelementptr inbounds i8, ptr %3, i64 8
  %28 = getelementptr inbounds i8, ptr %9, i64 8
  %29 = getelementptr inbounds i8, ptr %8, i64 8
  %30 = getelementptr inbounds i8, ptr %12, i64 8
  %31 = getelementptr inbounds i8, ptr %15, i64 8
  %32 = getelementptr inbounds i8, ptr %13, i64 8
  %33 = getelementptr inbounds i8, ptr %11, i64 8
  %34 = getelementptr inbounds i8, ptr %18, i64 8
  %35 = getelementptr inbounds i8, ptr %21, i64 8
  %36 = getelementptr inbounds i8, ptr %19, i64 8
  %37 = getelementptr inbounds i8, ptr %17, i64 8
  %38 = getelementptr inbounds i8, ptr %23, i64 8
  br label %39

.preheader:                                       ; preds = %116, %2
  %.not5558 = icmp eq i64 %25, 0
  br i1 %.not5558, label %._crit_edge, label %.lr.ph60

39:                                               ; preds = %.lr.ph, %116
  %.05357 = phi i64 [ 0, %.lr.ph ], [ %117, %116 ]
  %40 = call noundef ptr @_ZNK9elabtsaot11Powersystem9getBranchEm(ptr noundef nonnull align 8 dereferenceable(480) %0, i64 noundef %.05357)
  %41 = getelementptr inbounds i8, ptr %40, i64 4
  %42 = load i8, ptr %41, align 4, !tbaa !5, !range !12, !noundef !13
  %43 = trunc nuw i8 %42 to i1
  br i1 %43, label %44, label %116

44:                                               ; preds = %39
  %45 = getelementptr inbounds i8, ptr %40, i64 8
  %46 = load i32, ptr %45, align 8, !tbaa !14
  %47 = call noundef i32 @_ZNK9elabtsaot11Powersystem12getBus_intIdEj(ptr noundef nonnull align 8 dereferenceable(480) %0, i32 noundef %46)
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds i8, ptr %40, i64 12
  %50 = load i32, ptr %49, align 4, !tbaa !15
  %51 = call noundef i32 @_ZNK9elabtsaot11Powersystem12getBus_intIdEj(ptr noundef nonnull align 8 dereferenceable(480) %0, i32 noundef %50)
  %52 = sext i32 %51 to i64
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  store double 1.000000e+00, ptr %4, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #5
  %53 = getelementptr inbounds i8, ptr %40, i64 16
  %54 = load double, ptr %53, align 8, !tbaa !17
  %55 = getelementptr inbounds i8, ptr %40, i64 24
  %56 = load double, ptr %55, align 8, !tbaa !18
  call void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %5, double noundef %54, double noundef %56)
  %57 = call { double, double } @_ZStdvIdESt7complexIT_ERKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(16) %5)
  %58 = extractvalue { double, double } %57, 0
  store double %58, ptr %3, align 8
  %59 = extractvalue { double, double } %57, 1
  store double %59, ptr %27, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #5
  %60 = getelementptr inbounds i8, ptr %40, i64 48
  %61 = load double, ptr %60, align 8, !tbaa !19
  %62 = getelementptr inbounds i8, ptr %40, i64 32
  %63 = load double, ptr %62, align 8, !tbaa !20
  call void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %6, double noundef %61, double noundef %63)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #5
  %64 = getelementptr inbounds i8, ptr %40, i64 56
  %65 = load double, ptr %64, align 8, !tbaa !21
  %66 = getelementptr inbounds i8, ptr %40, i64 40
  %67 = load double, ptr %66, align 8, !tbaa !22
  call void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %7, double noundef %65, double noundef %67)
  %68 = getelementptr inbounds i8, ptr %40, i64 64
  %69 = load double, ptr %68, align 8, !tbaa !23
  %70 = getelementptr inbounds i8, ptr %40, i64 72
  %71 = load double, ptr %70, align 8, !tbaa !24
  %72 = fcmp oeq double %69, 0.000000e+00
  %.052 = select i1 %72, double 1.000000e+00, double %69
  %.051 = select i1 %72, double 0.000000e+00, double %71
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #5
  %73 = call { double, double } @_ZStplIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(16) %6)
  %74 = extractvalue { double, double } %73, 0
  store double %74, ptr %9, align 8
  %75 = extractvalue { double, double } %73, 1
  store double %75, ptr %28, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #5
  %76 = fmul double %.052, %.052
  call void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %10, double noundef %76, double noundef 0.000000e+00)
  %77 = call { double, double } @_ZStdvIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %10)
  %78 = extractvalue { double, double } %77, 0
  store double %78, ptr %8, align 8
  %79 = extractvalue { double, double } %77, 1
  store double %79, ptr %29, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #5
  %80 = call { double, double } @_ZStngIdESt7complexIT_ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %3)
  %81 = extractvalue { double, double } %80, 0
  store double %81, ptr %12, align 8
  %82 = extractvalue { double, double } %80, 1
  store double %82, ptr %30, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #5
  call void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %14, double noundef %.052, double noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #5
  %83 = fneg double %.051
  call void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %16, double noundef 0.000000e+00, double noundef %83)
  %84 = call { double, double } @_ZSt3expIdESt7complexIT_ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %16)
  %85 = extractvalue { double, double } %84, 0
  store double %85, ptr %15, align 8
  %86 = extractvalue { double, double } %84, 1
  store double %86, ptr %31, align 8
  %87 = call { double, double } @_ZStmlIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 8 dereferenceable(16) %15)
  %88 = extractvalue { double, double } %87, 0
  store double %88, ptr %13, align 8
  %89 = extractvalue { double, double } %87, 1
  store double %89, ptr %32, align 8
  %90 = call { double, double } @_ZStdvIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %13)
  %91 = extractvalue { double, double } %90, 0
  store double %91, ptr %11, align 8
  %92 = extractvalue { double, double } %90, 1
  store double %92, ptr %33, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #5
  %93 = call { double, double } @_ZStngIdESt7complexIT_ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %3)
  %94 = extractvalue { double, double } %93, 0
  store double %94, ptr %18, align 8
  %95 = extractvalue { double, double } %93, 1
  store double %95, ptr %34, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %20) #5
  call void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %20, double noundef %.052, double noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %22) #5
  call void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %22, double noundef 0.000000e+00, double noundef %.051)
  %96 = call { double, double } @_ZSt3expIdESt7complexIT_ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %22)
  %97 = extractvalue { double, double } %96, 0
  store double %97, ptr %21, align 8
  %98 = extractvalue { double, double } %96, 1
  store double %98, ptr %35, align 8
  %99 = call { double, double } @_ZStmlIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(16) %21)
  %100 = extractvalue { double, double } %99, 0
  store double %100, ptr %19, align 8
  %101 = extractvalue { double, double } %99, 1
  store double %101, ptr %36, align 8
  %102 = call { double, double } @_ZStdvIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(16) %19)
  %103 = extractvalue { double, double } %102, 0
  store double %103, ptr %17, align 8
  %104 = extractvalue { double, double } %102, 1
  store double %104, ptr %37, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %23) #5
  %105 = call { double, double } @_ZStplIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(16) %7)
  %106 = extractvalue { double, double } %105, 0
  store double %106, ptr %23, align 8
  %107 = extractvalue { double, double } %105, 1
  store double %107, ptr %38, align 8
  %108 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN5boost7numeric5ublas6matrixISt7complexIdENS1_18basic_column_majorImlEENS1_15unbounded_arrayIS4_SaIS4_EEEEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %1, i64 noundef %48, i64 noundef %48)
  %109 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEpLIdEERS0_RKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %108, ptr noundef nonnull align 8 dereferenceable(16) %8)
  %110 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN5boost7numeric5ublas6matrixISt7complexIdENS1_18basic_column_majorImlEENS1_15unbounded_arrayIS4_SaIS4_EEEEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %1, i64 noundef %48, i64 noundef %52)
  %111 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEpLIdEERS0_RKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %110, ptr noundef nonnull align 8 dereferenceable(16) %11)
  %112 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN5boost7numeric5ublas6matrixISt7complexIdENS1_18basic_column_majorImlEENS1_15unbounded_arrayIS4_SaIS4_EEEEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %1, i64 noundef %52, i64 noundef %48)
  %113 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEpLIdEERS0_RKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %112, ptr noundef nonnull align 8 dereferenceable(16) %17)
  %114 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN5boost7numeric5ublas6matrixISt7complexIdENS1_18basic_column_majorImlEENS1_15unbounded_arrayIS4_SaIS4_EEEEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %1, i64 noundef %52, i64 noundef %52)
  %115 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEpLIdEERS0_RKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %114, ptr noundef nonnull align 8 dereferenceable(16) %23)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #5
  br label %116

116:                                              ; preds = %39, %44
  %117 = add i64 %.05357, 1
  %118 = call noundef i64 @_ZNK9elabtsaot11Powersystem14getBranchCountEv(ptr noundef nonnull align 8 dereferenceable(480) %0)
  %.not = icmp eq i64 %117, %118
  br i1 %.not, label %.preheader, label %39, !llvm.loop !25

._crit_edge:                                      ; preds = %.lr.ph60, %.preheader
  ret void

.lr.ph60:                                         ; preds = %.preheader, %.lr.ph60
  %.059 = phi i64 [ %127, %.lr.ph60 ], [ 0, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %24) #5
  %119 = call noundef ptr @_ZNK9elabtsaot11Powersystem6getBusEm(ptr noundef nonnull align 8 dereferenceable(480) %0, i64 noundef %.059)
  %120 = getelementptr inbounds i8, ptr %119, i64 48
  %121 = load double, ptr %120, align 8, !tbaa !27
  %122 = call noundef ptr @_ZNK9elabtsaot11Powersystem6getBusEm(ptr noundef nonnull align 8 dereferenceable(480) %0, i64 noundef %.059)
  %123 = getelementptr inbounds i8, ptr %122, i64 56
  %124 = load double, ptr %123, align 8, !tbaa !33
  call void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %24, double noundef %121, double noundef %124)
  %125 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN5boost7numeric5ublas6matrixISt7complexIdENS1_18basic_column_majorImlEENS1_15unbounded_arrayIS4_SaIS4_EEEEclEmm(ptr noundef nonnull align 8 dereferenceable(40) %1, i64 noundef %.059, i64 noundef %.059)
  %126 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEpLIdEERS0_RKS_IT_E(ptr noundef nonnull align 8 dereferenceable(16) %125, ptr noundef nonnull align 8 dereferenceable(16) %24)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #5
  %127 = add nuw i64 %.059, 1
  %.not55 = icmp eq i64 %127, %25
  br i1 %.not55, label %._crit_edge, label %.lr.ph60, !llvm.loop !34
}

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

declare noundef i64 @_ZNK9elabtsaot11Powersystem11getBusCountEv(ptr noundef nonnull align 8 dereferenceable(480)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5boost7numeric5ublas6matrixISt7complexIdENS1_18basic_column_majorImlEENS1_15unbounded_arrayIS4_SaIS4_EEEE6resizeEmmb(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef, i64 noundef, i1 noundef zeroext) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5boost7numeric5ublas6matrixISt7complexIdENS1_18basic_column_majorImlEENS1_15unbounded_arrayIS4_SaIS4_EEEE5clearEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #0 align 2

declare noundef i64 @_ZNK9elabtsaot11Powersystem14getBranchCountEv(ptr noundef nonnull align 8 dereferenceable(480)) local_unnamed_addr #2

declare noundef ptr @_ZNK9elabtsaot11Powersystem9getBranchEm(ptr noundef nonnull align 8 dereferenceable(480), i64 noundef) local_unnamed_addr #2

declare noundef i32 @_ZNK9elabtsaot11Powersystem12getBus_intIdEj(ptr noundef nonnull align 8 dereferenceable(480), i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { double, double } @_ZStdvIdESt7complexIT_ERKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16), double noundef, double noundef) unnamed_addr #4 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { double, double } @_ZStdvIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { double, double } @_ZStplIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { double, double } @_ZStngIdESt7complexIT_ERKS2_(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { double, double } @_ZStmlIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { double, double } @_ZSt3expIdESt7complexIT_ERKS2_(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN5boost7numeric5ublas6matrixISt7complexIdENS1_18basic_column_majorImlEENS1_15unbounded_arrayIS4_SaIS4_EEEEclEmm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef, i64 noundef) local_unnamed_addr #0 align 2

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

declare noundef ptr @_ZNK9elabtsaot11Powersystem6getBusEm(ptr noundef nonnull align 8 dereferenceable(480), i64 noundef) local_unnamed_addr #2

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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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, !10, i64 4}
!6 = !{!"_ZTSN9elabtsaot6BranchE", !7, i64 0, !10, i64 4, !7, i64 8, !7, i64 12, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"double", !8, i64 0}
!12 = !{i8 0, i8 2}
!13 = !{}
!14 = !{!6, !7, i64 8}
!15 = !{!6, !7, i64 12}
!16 = !{!11, !11, i64 0}
!17 = !{!6, !11, i64 16}
!18 = !{!6, !11, i64 24}
!19 = !{!6, !11, i64 48}
!20 = !{!6, !11, i64 32}
!21 = !{!6, !11, i64 56}
!22 = !{!6, !11, i64 40}
!23 = !{!6, !11, i64 64}
!24 = !{!6, !11, i64 72}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!28, !11, i64 48}
!28 = !{!"_ZTSN9elabtsaot3BusE", !7, i64 0, !29, i64 8, !7, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !11, i64 96}
!29 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !30, i64 0, !32, i64 8, !8, i64 16}
!30 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !31, i64 0}
!31 = !{!"any pointer", !8, i64 0}
!32 = !{!"long", !8, i64 0}
!33 = !{!28, !11, i64 56}
!34 = distinct !{!34, !26}


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