; 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.boost::numeric::ublas::vector.96" = type { %"class.boost::numeric::ublas::unbounded_array" }
%"class.boost::numeric::ublas::unbounded_array" = type { [8 x i8], i64, ptr }
%"class.std::complex" = type { { 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] }
%"class.elabtsaot::Generator" = type { i32, i8, %"class.std::__cxx11::basic_string", i32, double, double, %"class.std::complex", i32, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double }
%"class.elabtsaot::Load" = type { i32, i32, double, double, %"class.std::complex", double, double, double, double }

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5boost7numeric5ublas6vectorISt7complexIdENS1_15unbounded_arrayIS4_SaIS4_EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZSt3absIdET_RKSt7complexIS0_E(ptr noundef nonnull align 8 dereferenceable(16)) #4

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9elabtsaot7ssutils17updatePowersystemERNS_11PowersystemERKN5boost7numeric5ublas6matrixISt7complexIdENS5_18basic_column_majorImlEENS5_15unbounded_arrayIS8_SaIS8_EEEEERKNS5_6vectorIS8_SD_EE(ptr noundef nonnull align 8 dereferenceable(480) %0, ptr noundef nonnull align 8 dereferenceable(40) %1, ptr noundef nonnull align 8 dereferenceable(24) %2) #2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca %"class.boost::numeric::ublas::vector.96", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca %"class.std::complex", align 8
  %18 = alloca i64, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca %"class.std::complex", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN9elabtsaot11Powersystem10set_statusEi(ptr noundef nonnull align 8 dereferenceable(480) %23, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = call noundef i64 @_ZNK9elabtsaot11Powersystem11getBusCountEv(ptr noundef nonnull align 8 dereferenceable(480) %24)
  store i64 %25, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #6
  call void @_ZN5boost7numeric5ublas6vectorISt7complexIdENS1_15unbounded_arrayIS4_SaIS4_EEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8)
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZN9elabtsaot7ssutils14calculatePowerERKN5boost7numeric5ublas6matrixISt7complexIdENS3_18basic_column_majorImlEENS3_15unbounded_arrayIS6_SaIS6_EEEEERKNS3_6vectorIS6_SB_EERSG_(ptr noundef nonnull align 8 dereferenceable(40) %26, ptr noundef nonnull align 8 dereferenceable(24) %27, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %28 unwind label %34

28:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  store i64 0, ptr %11, align 8, !tbaa !9
  br label %29

29:                                               ; preds = %73, %28
  %30 = load i64, ptr %11, align 8, !tbaa !9
  %31 = load i64, ptr %7, align 8, !tbaa !9
  %32 = icmp ne i64 %30, %31
  br i1 %32, label %38, label %33

33:                                               ; preds = %29
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %80

34:                                               ; preds = %232, %3
  %35 = landingpad { ptr, i32 }
          cleanup
  %36 = extractvalue { ptr, i32 } %35, 0
  store ptr %36, ptr %9, align 8
  %37 = extractvalue { ptr, i32 } %35, 1
  store i32 %37, ptr %10, align 4
  br label %235

38:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = load i64, ptr %11, align 8, !tbaa !9
  %41 = invoke noundef ptr @_ZN9elabtsaot11Powersystem6getBusEm(ptr noundef nonnull align 8 dereferenceable(480) %39, i64 noundef %40)
          to label %42 unwind label %76

42:                                               ; preds = %38
  store ptr %41, ptr %12, align 8, !tbaa !5
  %43 = load i64, ptr %11, align 8, !tbaa !9
  %44 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5boost7numeric5ublas6vectorISt7complexIdENS1_15unbounded_arrayIS4_SaIS4_EEEEclEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %43)
          to label %45 unwind label %76

45:                                               ; preds = %42
  %46 = invoke noundef double @_ZSt4realIdET_RKSt7complexIS0_E(ptr noundef nonnull align 8 dereferenceable(16) %44)
          to label %47 unwind label %76

47:                                               ; preds = %45
  %48 = load ptr, ptr %12, align 8, !tbaa !5
  %49 = getelementptr inbounds %"class.elabtsaot::Bus", ptr %48, i32 0, i32 6
  store double %46, ptr %49, align 8, !tbaa !11
  %50 = load i64, ptr %11, align 8, !tbaa !9
  %51 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5boost7numeric5ublas6vectorISt7complexIdENS1_15unbounded_arrayIS4_SaIS4_EEEEclEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %50)
          to label %52 unwind label %76

52:                                               ; preds = %47
  %53 = invoke noundef double @_ZSt4imagIdET_RKSt7complexIS0_E(ptr noundef nonnull align 8 dereferenceable(16) %51)
          to label %54 unwind label %76

54:                                               ; preds = %52
  %55 = load ptr, ptr %12, align 8, !tbaa !5
  %56 = getelementptr inbounds %"class.elabtsaot::Bus", ptr %55, i32 0, i32 7
  store double %53, ptr %56, align 8, !tbaa !17
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = load i64, ptr %11, align 8, !tbaa !9
  %59 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK5boost7numeric5ublas6vectorISt7complexIdENS1_15unbounded_arrayIS4_SaIS4_EEEEclEm(ptr noundef nonnull align 8 dereferenceable(24) %57, i64 noundef %58)
          to label %60 unwind label %76

60:                                               ; preds = %54
  %61 = invoke noundef double @_ZSt3absIdET_RKSt7complexIS0_E(ptr noundef nonnull align 8 dereferenceable(16) %59)
          to label %62 unwind label %76

62:                                               ; preds = %60
  %63 = load ptr, ptr %12, align 8, !tbaa !5
  %64 = getelementptr inbounds %"class.elabtsaot::Bus", ptr %63, i32 0, i32 8
  store double %61, ptr %64, align 8, !tbaa !18
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  %66 = load i64, ptr %11, align 8, !tbaa !9
  %67 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK5boost7numeric5ublas6vectorISt7complexIdENS1_15unbounded_arrayIS4_SaIS4_EEEEclEm(ptr noundef nonnull align 8 dereferenceable(24) %65, i64 noundef %66)
          to label %68 unwind label %76

68:                                               ; preds = %62
  %69 = invoke noundef double @_ZSt3argIdET_RKSt7complexIS0_E(ptr noundef nonnull align 8 dereferenceable(16) %67)
          to label %70 unwind label %76

70:                                               ; preds = %68
  %71 = load ptr, ptr %12, align 8, !tbaa !5
  %72 = getelementptr inbounds %"class.elabtsaot::Bus", ptr %71, i32 0, i32 9
  store double %69, ptr %72, align 8, !tbaa !19
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %73

73:                                               ; preds = %70
  %74 = load i64, ptr %11, align 8, !tbaa !9
  %75 = add i64 %74, 1
  store i64 %75, ptr %11, align 8, !tbaa !9
  br label %29, !llvm.loop !20

76:                                               ; preds = %68, %62, %60, %54, %52, %47, %45, %42, %38
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %9, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %235

80:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  store i64 0, ptr %13, align 8, !tbaa !9
  br label %81

81:                                               ; preds = %133, %80
  %82 = load i64, ptr %13, align 8, !tbaa !9
  %83 = load ptr, ptr %4, align 8, !tbaa !5
  %84 = invoke noundef i64 @_ZNK9elabtsaot11Powersystem11getGenCountEv(ptr noundef nonnull align 8 dereferenceable(480) %83)
          to label %85 unwind label %88

85:                                               ; preds = %81
  %86 = icmp ne i64 %82, %84
  br i1 %86, label %92, label %87

87:                                               ; preds = %85
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %156

88:                                               ; preds = %81
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %9, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %10, align 4
  br label %155

92:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %93 = load ptr, ptr %4, align 8, !tbaa !5
  %94 = load i64, ptr %13, align 8, !tbaa !9
  %95 = invoke noundef ptr @_ZN9elabtsaot11Powersystem12getGeneratorEm(ptr noundef nonnull align 8 dereferenceable(480) %93, i64 noundef %94)
          to label %96 unwind label %136

96:                                               ; preds = %92
  store ptr %95, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %97 = load ptr, ptr %4, align 8, !tbaa !5
  %98 = load ptr, ptr %14, align 8, !tbaa !5
  %99 = getelementptr inbounds %"class.elabtsaot::Generator", ptr %98, i32 0, i32 3
  %100 = load i32, ptr %99, align 8, !tbaa !22
  %101 = invoke noundef i32 @_ZNK9elabtsaot11Powersystem12getBus_intIdEj(ptr noundef nonnull align 8 dereferenceable(480) %97, i32 noundef %100)
          to label %102 unwind label %140

102:                                              ; preds = %96
  store i32 %101, ptr %15, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %103 = load ptr, ptr %4, align 8, !tbaa !5
  %104 = load i32, ptr %15, align 4, !tbaa !26
  %105 = sext i32 %104 to i64
  %106 = invoke noundef ptr @_ZN9elabtsaot11Powersystem6getBusEm(ptr noundef nonnull align 8 dereferenceable(480) %103, i64 noundef %105)
          to label %107 unwind label %144

107:                                              ; preds = %102
  store ptr %106, ptr %16, align 8, !tbaa !5
  %108 = load ptr, ptr %16, align 8, !tbaa !5
  %109 = getelementptr inbounds %"class.elabtsaot::Bus", ptr %108, i32 0, i32 6
  %110 = load double, ptr %109, align 8, !tbaa !11
  %111 = load ptr, ptr %14, align 8, !tbaa !5
  %112 = getelementptr inbounds %"class.elabtsaot::Generator", ptr %111, i32 0, i32 4
  store double %110, ptr %112, align 8, !tbaa !27
  %113 = load ptr, ptr %16, align 8, !tbaa !5
  %114 = getelementptr inbounds %"class.elabtsaot::Bus", ptr %113, i32 0, i32 7
  %115 = load double, ptr %114, align 8, !tbaa !17
  %116 = load ptr, ptr %14, align 8, !tbaa !5
  %117 = getelementptr inbounds %"class.elabtsaot::Generator", ptr %116, i32 0, i32 5
  store double %115, ptr %117, align 8, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #6
  %118 = load ptr, ptr %16, align 8, !tbaa !5
  %119 = getelementptr inbounds %"class.elabtsaot::Bus", ptr %118, i32 0, i32 8
  %120 = load ptr, ptr %16, align 8, !tbaa !5
  %121 = getelementptr inbounds %"class.elabtsaot::Bus", ptr %120, i32 0, i32 9
  %122 = invoke { double, double } @_ZSt5polarIdESt7complexIT_ERKS1_S4_(ptr noundef nonnull align 8 dereferenceable(8) %119, ptr noundef nonnull align 8 dereferenceable(8) %121)
          to label %123 unwind label %148

123:                                              ; preds = %107
  %124 = getelementptr inbounds %"class.std::complex", ptr %17, i32 0, i32 0
  %125 = getelementptr inbounds { double, double }, ptr %124, i32 0, i32 0
  %126 = extractvalue { double, double } %122, 0
  store double %126, ptr %125, align 8
  %127 = getelementptr inbounds { double, double }, ptr %124, i32 0, i32 1
  %128 = extractvalue { double, double } %122, 1
  store double %128, ptr %127, align 8
  %129 = load ptr, ptr %14, align 8, !tbaa !5
  %130 = getelementptr inbounds %"class.elabtsaot::Generator", ptr %129, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %130, ptr align 8 %17, i64 16, i1 false), !tbaa.struct !29
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #6
  %131 = load ptr, ptr %14, align 8, !tbaa !5
  invoke void @_ZN9elabtsaot9Generator15updateVariablesEv(ptr noundef nonnull align 8 dereferenceable(216) %131)
          to label %132 unwind label %144

132:                                              ; preds = %123
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %133

133:                                              ; preds = %132
  %134 = load i64, ptr %13, align 8, !tbaa !9
  %135 = add i64 %134, 1
  store i64 %135, ptr %13, align 8, !tbaa !9
  br label %81, !llvm.loop !31

136:                                              ; preds = %92
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %9, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %10, align 4
  br label %154

140:                                              ; preds = %96
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %9, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %10, align 4
  br label %153

144:                                              ; preds = %123, %102
  %145 = landingpad { ptr, i32 }
          cleanup
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %9, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %10, align 4
  br label %152

148:                                              ; preds = %107
  %149 = landingpad { ptr, i32 }
          cleanup
  %150 = extractvalue { ptr, i32 } %149, 0
  store ptr %150, ptr %9, align 8
  %151 = extractvalue { ptr, i32 } %149, 1
  store i32 %151, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #6
  br label %152

152:                                              ; preds = %148, %144
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %153

153:                                              ; preds = %152, %140
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %154

154:                                              ; preds = %153, %136
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %155

155:                                              ; preds = %154, %88
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %235

156:                                              ; preds = %87
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  store i64 0, ptr %18, align 8, !tbaa !9
  br label %157

157:                                              ; preds = %209, %156
  %158 = load i64, ptr %18, align 8, !tbaa !9
  %159 = load ptr, ptr %4, align 8, !tbaa !5
  %160 = invoke noundef i64 @_ZNK9elabtsaot11Powersystem12getLoadCountEv(ptr noundef nonnull align 8 dereferenceable(480) %159)
          to label %161 unwind label %164

161:                                              ; preds = %157
  %162 = icmp ne i64 %158, %160
  br i1 %162, label %168, label %163

163:                                              ; preds = %161
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %232

164:                                              ; preds = %157
  %165 = landingpad { ptr, i32 }
          cleanup
  %166 = extractvalue { ptr, i32 } %165, 0
  store ptr %166, ptr %9, align 8
  %167 = extractvalue { ptr, i32 } %165, 1
  store i32 %167, ptr %10, align 4
  br label %231

168:                                              ; preds = %161
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %169 = load ptr, ptr %4, align 8, !tbaa !5
  %170 = load i64, ptr %18, align 8, !tbaa !9
  %171 = invoke noundef ptr @_ZN9elabtsaot11Powersystem7getLoadEm(ptr noundef nonnull align 8 dereferenceable(480) %169, i64 noundef %170)
          to label %172 unwind label %212

172:                                              ; preds = %168
  store ptr %171, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %173 = load ptr, ptr %4, align 8, !tbaa !5
  %174 = load ptr, ptr %19, align 8, !tbaa !5
  %175 = getelementptr inbounds %"class.elabtsaot::Load", ptr %174, i32 0, i32 1
  %176 = load i32, ptr %175, align 4, !tbaa !32
  %177 = invoke noundef i32 @_ZNK9elabtsaot11Powersystem12getBus_intIdEj(ptr noundef nonnull align 8 dereferenceable(480) %173, i32 noundef %176)
          to label %178 unwind label %216

178:                                              ; preds = %172
  store i32 %177, ptr %20, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %179 = load ptr, ptr %4, align 8, !tbaa !5
  %180 = load i32, ptr %20, align 4, !tbaa !26
  %181 = sext i32 %180 to i64
  %182 = invoke noundef ptr @_ZN9elabtsaot11Powersystem6getBusEm(ptr noundef nonnull align 8 dereferenceable(480) %179, i64 noundef %181)
          to label %183 unwind label %220

183:                                              ; preds = %178
  store ptr %182, ptr %21, align 8, !tbaa !5
  %184 = load ptr, ptr %21, align 8, !tbaa !5
  %185 = getelementptr inbounds %"class.elabtsaot::Bus", ptr %184, i32 0, i32 6
  %186 = load double, ptr %185, align 8, !tbaa !11
  %187 = fneg double %186
  %188 = load ptr, ptr %19, align 8, !tbaa !5
  %189 = getelementptr inbounds %"class.elabtsaot::Load", ptr %188, i32 0, i32 2
  store double %187, ptr %189, align 8, !tbaa !34
  %190 = load ptr, ptr %21, align 8, !tbaa !5
  %191 = getelementptr inbounds %"class.elabtsaot::Bus", ptr %190, i32 0, i32 7
  %192 = load double, ptr %191, align 8, !tbaa !17
  %193 = fneg double %192
  %194 = load ptr, ptr %19, align 8, !tbaa !5
  %195 = getelementptr inbounds %"class.elabtsaot::Load", ptr %194, i32 0, i32 3
  store double %193, ptr %195, align 8, !tbaa !35
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #6
  %196 = load ptr, ptr %21, align 8, !tbaa !5
  %197 = getelementptr inbounds %"class.elabtsaot::Bus", ptr %196, i32 0, i32 8
  %198 = load ptr, ptr %21, align 8, !tbaa !5
  %199 = getelementptr inbounds %"class.elabtsaot::Bus", ptr %198, i32 0, i32 9
  %200 = invoke { double, double } @_ZSt5polarIdESt7complexIT_ERKS1_S4_(ptr noundef nonnull align 8 dereferenceable(8) %197, ptr noundef nonnull align 8 dereferenceable(8) %199)
          to label %201 unwind label %224

201:                                              ; preds = %183
  %202 = getelementptr inbounds %"class.std::complex", ptr %22, i32 0, i32 0
  %203 = getelementptr inbounds { double, double }, ptr %202, i32 0, i32 0
  %204 = extractvalue { double, double } %200, 0
  store double %204, ptr %203, align 8
  %205 = getelementptr inbounds { double, double }, ptr %202, i32 0, i32 1
  %206 = extractvalue { double, double } %200, 1
  store double %206, ptr %205, align 8
  %207 = load ptr, ptr %19, align 8, !tbaa !5
  %208 = getelementptr inbounds %"class.elabtsaot::Load", ptr %207, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %208, ptr align 8 %22, i64 16, i1 false), !tbaa.struct !29
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %209

209:                                              ; preds = %201
  %210 = load i64, ptr %18, align 8, !tbaa !9
  %211 = add i64 %210, 1
  store i64 %211, ptr %18, align 8, !tbaa !9
  br label %157, !llvm.loop !36

212:                                              ; preds = %168
  %213 = landingpad { ptr, i32 }
          cleanup
  %214 = extractvalue { ptr, i32 } %213, 0
  store ptr %214, ptr %9, align 8
  %215 = extractvalue { ptr, i32 } %213, 1
  store i32 %215, ptr %10, align 4
  br label %230

216:                                              ; preds = %172
  %217 = landingpad { ptr, i32 }
          cleanup
  %218 = extractvalue { ptr, i32 } %217, 0
  store ptr %218, ptr %9, align 8
  %219 = extractvalue { ptr, i32 } %217, 1
  store i32 %219, ptr %10, align 4
  br label %229

220:                                              ; preds = %178
  %221 = landingpad { ptr, i32 }
          cleanup
  %222 = extractvalue { ptr, i32 } %221, 0
  store ptr %222, ptr %9, align 8
  %223 = extractvalue { ptr, i32 } %221, 1
  store i32 %223, ptr %10, align 4
  br label %228

224:                                              ; preds = %183
  %225 = landingpad { ptr, i32 }
          cleanup
  %226 = extractvalue { ptr, i32 } %225, 0
  store ptr %226, ptr %9, align 8
  %227 = extractvalue { ptr, i32 } %225, 1
  store i32 %227, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #6
  br label %228

228:                                              ; preds = %224, %220
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %229

229:                                              ; preds = %228, %216
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %230

230:                                              ; preds = %229, %212
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %231

231:                                              ; preds = %230, %164
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %235

232:                                              ; preds = %163
  %233 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN9elabtsaot11Powersystem10set_statusEi(ptr noundef nonnull align 8 dereferenceable(480) %233, i32 noundef 2)
          to label %234 unwind label %34

234:                                              ; preds = %232
  call void @_ZN5boost7numeric5ublas6vectorISt7complexIdENS1_15unbounded_arrayIS4_SaIS4_EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  ret void

235:                                              ; preds = %231, %155, %76, %34
  call void @_ZN5boost7numeric5ublas6vectorISt7complexIdENS1_15unbounded_arrayIS4_SaIS4_EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %236

236:                                              ; preds = %235
  %237 = load ptr, ptr %9, align 8
  %238 = load i32, ptr %10, align 4
  %239 = insertvalue { ptr, i32 } poison, ptr %237, 0
  %240 = insertvalue { ptr, i32 } %239, i32 %238, 1
  resume { ptr, i32 } %240
}

declare void @_ZN9elabtsaot11Powersystem10set_statusEi(ptr noundef nonnull align 8 dereferenceable(480), i32 noundef) #1

declare noundef ptr @_ZN9elabtsaot11Powersystem6getBusEm(ptr noundef nonnull align 8 dereferenceable(480), i64 noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZSt4realIdET_RKSt7complexIS0_E(ptr noundef nonnull align 8 dereferenceable(16)) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZSt4imagIdET_RKSt7complexIS0_E(ptr noundef nonnull align 8 dereferenceable(16)) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZSt3argIdET_RKSt7complexIS0_E(ptr noundef nonnull align 8 dereferenceable(16)) #4

declare noundef i64 @_ZNK9elabtsaot11Powersystem11getGenCountEv(ptr noundef nonnull align 8 dereferenceable(480)) #1

declare noundef ptr @_ZN9elabtsaot11Powersystem12getGeneratorEm(ptr noundef nonnull align 8 dereferenceable(480), i64 noundef) #1

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

declare void @_ZN9elabtsaot9Generator15updateVariablesEv(ptr noundef nonnull align 8 dereferenceable(216)) #1

declare noundef i64 @_ZNK9elabtsaot11Powersystem12getLoadCountEv(ptr noundef nonnull align 8 dereferenceable(480)) #1

declare noundef ptr @_ZN9elabtsaot11Powersystem7getLoadEm(ptr noundef nonnull align 8 dereferenceable(480), i64 noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress 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 = { 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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, !16, i64 72}
!12 = !{!"_ZTSN9elabtsaot3BusE", !13, i64 0, !14, i64 8, !13, i64 40, !16, i64 48, !16, i64 56, !16, i64 64, !16, i64 72, !16, i64 80, !16, i64 88, !16, i64 96}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !15, i64 0, !10, i64 8, !7, i64 16}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!16 = !{!"double", !7, i64 0}
!17 = !{!12, !16, i64 80}
!18 = !{!12, !16, i64 88}
!19 = !{!12, !16, i64 96}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!23, !13, i64 40}
!23 = !{!"_ZTSN9elabtsaot9GeneratorE", !13, i64 0, !24, i64 4, !14, i64 8, !13, i64 40, !16, i64 48, !16, i64 56, !25, i64 64, !13, i64 80, !16, i64 88, !16, i64 96, !16, i64 104, !16, i64 112, !16, i64 120, !16, i64 128, !16, i64 136, !16, i64 144, !16, i64 152, !16, i64 160, !16, i64 168, !16, i64 176, !16, i64 184, !16, i64 192, !16, i64 200, !16, i64 208}
!24 = !{!"bool", !7, i64 0}
!25 = !{!"_ZTSSt7complexIdE", !7, i64 0}
!26 = !{!13, !13, i64 0}
!27 = !{!23, !16, i64 48}
!28 = !{!23, !16, i64 56}
!29 = !{i64 0, i64 16, !30}
!30 = !{!7, !7, i64 0}
!31 = distinct !{!31, !21}
!32 = !{!33, !13, i64 4}
!33 = !{!"_ZTSN9elabtsaot4LoadE", !13, i64 0, !13, i64 4, !16, i64 8, !16, i64 16, !25, i64 24, !16, i64 40, !16, i64 48, !16, i64 56, !16, i64 64}
!34 = !{!33, !16, i64 8}
!35 = !{!33, !16, i64 16}
!36 = distinct !{!36, !21}


; 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.boost::numeric::ublas::vector.96" = type { %"class.boost::numeric::ublas::unbounded_array" }
%"class.boost::numeric::ublas::unbounded_array" = type { [8 x i8], i64, ptr }

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5boost7numeric5ublas6vectorISt7complexIdENS1_15unbounded_arrayIS4_SaIS4_EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZSt3absIdET_RKSt7complexIS0_E(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9elabtsaot7ssutils17updatePowersystemERNS_11PowersystemERKN5boost7numeric5ublas6matrixISt7complexIdENS5_18basic_column_majorImlEENS5_15unbounded_arrayIS8_SaIS8_EEEEERKNS5_6vectorIS8_SD_EE(ptr noundef nonnull align 8 dereferenceable(480) %0, ptr noundef nonnull align 8 dereferenceable(40) %1, ptr noundef nonnull align 8 dereferenceable(24) %2) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.boost::numeric::ublas::vector.96", align 8
  tail call void @_ZN9elabtsaot11Powersystem10set_statusEi(ptr noundef nonnull align 8 dereferenceable(480) %0, i32 noundef 1)
  %5 = tail call noundef i64 @_ZNK9elabtsaot11Powersystem11getBusCountEv(ptr noundef nonnull align 8 dereferenceable(480) %0)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #5
  call void @_ZN5boost7numeric5ublas6vectorISt7complexIdENS1_15unbounded_arrayIS4_SaIS4_EEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4)
  invoke void @_ZN9elabtsaot7ssutils14calculatePowerERKN5boost7numeric5ublas6matrixISt7complexIdENS3_18basic_column_majorImlEENS3_15unbounded_arrayIS6_SaIS6_EEEEERKNS3_6vectorIS6_SB_EERSG_(ptr noundef nonnull align 8 dereferenceable(40) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %4)
          to label %.preheader82 unwind label %6

.preheader82:                                     ; preds = %3
  %.not83 = icmp eq i64 %5, 0
  br i1 %.not83, label %.preheader81.preheader, label %.lr.ph

.preheader81.preheader:                           ; preds = %28, %.preheader82
  br label %.preheader81

6:                                                ; preds = %69, %3
  %7 = landingpad { ptr, i32 }
          cleanup
  br label %103

.lr.ph:                                           ; preds = %.preheader82, %28
  %.06584 = phi i64 [ %30, %28 ], [ 0, %.preheader82 ]
  %8 = invoke noundef ptr @_ZN9elabtsaot11Powersystem6getBusEm(ptr noundef nonnull align 8 dereferenceable(480) %0, i64 noundef %.06584)
          to label %9 unwind label %31

9:                                                ; preds = %.lr.ph
  %10 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5boost7numeric5ublas6vectorISt7complexIdENS1_15unbounded_arrayIS4_SaIS4_EEEEclEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.06584)
          to label %11 unwind label %31

11:                                               ; preds = %9
  %12 = invoke noundef double @_ZSt4realIdET_RKSt7complexIS0_E(ptr noundef nonnull align 8 dereferenceable(16) %10)
          to label %13 unwind label %31

13:                                               ; preds = %11
  %14 = getelementptr inbounds i8, ptr %8, i64 72
  store double %12, ptr %14, align 8, !tbaa !5
  %15 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5boost7numeric5ublas6vectorISt7complexIdENS1_15unbounded_arrayIS4_SaIS4_EEEEclEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.06584)
          to label %16 unwind label %31

16:                                               ; preds = %13
  %17 = invoke noundef double @_ZSt4imagIdET_RKSt7complexIS0_E(ptr noundef nonnull align 8 dereferenceable(16) %15)
          to label %18 unwind label %31

18:                                               ; preds = %16
  %19 = getelementptr inbounds i8, ptr %8, i64 80
  store double %17, ptr %19, align 8, !tbaa !15
  %20 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK5boost7numeric5ublas6vectorISt7complexIdENS1_15unbounded_arrayIS4_SaIS4_EEEEclEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.06584)
          to label %21 unwind label %31

21:                                               ; preds = %18
  %22 = invoke noundef double @_ZSt3absIdET_RKSt7complexIS0_E(ptr noundef nonnull align 8 dereferenceable(16) %20)
          to label %23 unwind label %31

23:                                               ; preds = %21
  %24 = getelementptr inbounds i8, ptr %8, i64 88
  store double %22, ptr %24, align 8, !tbaa !16
  %25 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK5boost7numeric5ublas6vectorISt7complexIdENS1_15unbounded_arrayIS4_SaIS4_EEEEclEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.06584)
          to label %26 unwind label %31

26:                                               ; preds = %23
  %27 = invoke noundef double @_ZSt3argIdET_RKSt7complexIS0_E(ptr noundef nonnull align 8 dereferenceable(16) %25)
          to label %28 unwind label %31

28:                                               ; preds = %26
  %29 = getelementptr inbounds i8, ptr %8, i64 96
  store double %27, ptr %29, align 8, !tbaa !17
  %30 = add nuw i64 %.06584, 1
  %.not = icmp eq i64 %30, %5
  br i1 %.not, label %.preheader81.preheader, label %.lr.ph, !llvm.loop !18

31:                                               ; preds = %26, %23, %21, %18, %16, %13, %11, %9, %.lr.ph
  %32 = landingpad { ptr, i32 }
          cleanup
  br label %103

.preheader81:                                     ; preds = %.preheader81.preheader, %57
  %.066 = phi i64 [ %58, %57 ], [ 0, %.preheader81.preheader ]
  %33 = invoke noundef i64 @_ZNK9elabtsaot11Powersystem11getGenCountEv(ptr noundef nonnull align 8 dereferenceable(480) %0)
          to label %34 unwind label %35

34:                                               ; preds = %.preheader81
  %.not68 = icmp eq i64 %.066, %33
  br i1 %.not68, label %.preheader, label %37

35:                                               ; preds = %.preheader81
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %103

37:                                               ; preds = %34
  %38 = invoke noundef ptr @_ZN9elabtsaot11Powersystem12getGeneratorEm(ptr noundef nonnull align 8 dereferenceable(480) %0, i64 noundef %.066)
          to label %39 unwind label %59

39:                                               ; preds = %37
  %40 = getelementptr inbounds i8, ptr %38, i64 40
  %41 = load i32, ptr %40, align 8, !tbaa !20
  %42 = invoke noundef i32 @_ZNK9elabtsaot11Powersystem12getBus_intIdEj(ptr noundef nonnull align 8 dereferenceable(480) %0, i32 noundef %41)
          to label %43 unwind label %61

43:                                               ; preds = %39
  %44 = sext i32 %42 to i64
  %45 = invoke noundef ptr @_ZN9elabtsaot11Powersystem6getBusEm(ptr noundef nonnull align 8 dereferenceable(480) %0, i64 noundef %44)
          to label %46 unwind label %63

46:                                               ; preds = %43
  %47 = getelementptr inbounds i8, ptr %45, i64 72
  %48 = getelementptr inbounds i8, ptr %38, i64 48
  %49 = load <2 x double>, ptr %47, align 8, !tbaa !24
  store <2 x double> %49, ptr %48, align 8, !tbaa !24
  %50 = getelementptr inbounds i8, ptr %45, i64 88
  %51 = getelementptr inbounds i8, ptr %45, i64 96
  %52 = invoke { double, double } @_ZSt5polarIdESt7complexIT_ERKS1_S4_(ptr noundef nonnull align 8 dereferenceable(8) %50, ptr noundef nonnull align 8 dereferenceable(8) %51)
          to label %53 unwind label %65

53:                                               ; preds = %46
  %54 = extractvalue { double, double } %52, 0
  %55 = extractvalue { double, double } %52, 1
  %56 = getelementptr inbounds i8, ptr %38, i64 64
  store double %54, ptr %56, align 8
  %.sroa.512.0..sroa_idx = getelementptr inbounds i8, ptr %38, i64 72
  store double %55, ptr %.sroa.512.0..sroa_idx, align 8, !tbaa !25
  invoke void @_ZN9elabtsaot9Generator15updateVariablesEv(ptr noundef nonnull align 8 dereferenceable(216) %38)
          to label %57 unwind label %63

57:                                               ; preds = %53
  %58 = add i64 %.066, 1
  br label %.preheader81, !llvm.loop !26

59:                                               ; preds = %37
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %103

61:                                               ; preds = %39
  %62 = landingpad { ptr, i32 }
          cleanup
  br label %103

63:                                               ; preds = %53, %43
  %64 = landingpad { ptr, i32 }
          cleanup
  br label %103

65:                                               ; preds = %46
  %66 = landingpad { ptr, i32 }
          cleanup
  br label %103

.preheader:                                       ; preds = %34, %89
  %.067 = phi i64 [ %93, %89 ], [ 0, %34 ]
  %67 = invoke noundef i64 @_ZNK9elabtsaot11Powersystem12getLoadCountEv(ptr noundef nonnull align 8 dereferenceable(480) %0)
          to label %68 unwind label %70

68:                                               ; preds = %.preheader
  %.not69 = icmp eq i64 %.067, %67
  br i1 %.not69, label %69, label %72

69:                                               ; preds = %68
  invoke void @_ZN9elabtsaot11Powersystem10set_statusEi(ptr noundef nonnull align 8 dereferenceable(480) %0, i32 noundef 2)
          to label %102 unwind label %6

70:                                               ; preds = %.preheader
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %103

72:                                               ; preds = %68
  %73 = invoke noundef ptr @_ZN9elabtsaot11Powersystem7getLoadEm(ptr noundef nonnull align 8 dereferenceable(480) %0, i64 noundef %.067)
          to label %74 unwind label %94

74:                                               ; preds = %72
  %75 = getelementptr inbounds i8, ptr %73, i64 4
  %76 = load i32, ptr %75, align 4, !tbaa !27
  %77 = invoke noundef i32 @_ZNK9elabtsaot11Powersystem12getBus_intIdEj(ptr noundef nonnull align 8 dereferenceable(480) %0, i32 noundef %76)
          to label %78 unwind label %96

78:                                               ; preds = %74
  %79 = sext i32 %77 to i64
  %80 = invoke noundef ptr @_ZN9elabtsaot11Powersystem6getBusEm(ptr noundef nonnull align 8 dereferenceable(480) %0, i64 noundef %79)
          to label %81 unwind label %98

81:                                               ; preds = %78
  %82 = getelementptr inbounds i8, ptr %80, i64 72
  %83 = getelementptr inbounds i8, ptr %73, i64 8
  %84 = load <2 x double>, ptr %82, align 8, !tbaa !24
  %85 = fneg <2 x double> %84
  store <2 x double> %85, ptr %83, align 8, !tbaa !24
  %86 = getelementptr inbounds i8, ptr %80, i64 88
  %87 = getelementptr inbounds i8, ptr %80, i64 96
  %88 = invoke { double, double } @_ZSt5polarIdESt7complexIT_ERKS1_S4_(ptr noundef nonnull align 8 dereferenceable(8) %86, ptr noundef nonnull align 8 dereferenceable(8) %87)
          to label %89 unwind label %100

89:                                               ; preds = %81
  %90 = extractvalue { double, double } %88, 0
  %91 = extractvalue { double, double } %88, 1
  %92 = getelementptr inbounds i8, ptr %73, i64 24
  store double %90, ptr %92, align 8
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %73, i64 32
  store double %91, ptr %.sroa.5.0..sroa_idx, align 8, !tbaa !25
  %93 = add i64 %.067, 1
  br label %.preheader, !llvm.loop !29

94:                                               ; preds = %72
  %95 = landingpad { ptr, i32 }
          cleanup
  br label %103

96:                                               ; preds = %74
  %97 = landingpad { ptr, i32 }
          cleanup
  br label %103

98:                                               ; preds = %78
  %99 = landingpad { ptr, i32 }
          cleanup
  br label %103

100:                                              ; preds = %81
  %101 = landingpad { ptr, i32 }
          cleanup
  br label %103

102:                                              ; preds = %69
  call void @_ZN5boost7numeric5ublas6vectorISt7complexIdENS1_15unbounded_arrayIS4_SaIS4_EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #5
  ret void

103:                                              ; preds = %70, %96, %100, %98, %94, %35, %61, %65, %63, %59, %31, %6
  %.pn79 = phi { ptr, i32 } [ %32, %31 ], [ %7, %6 ], [ %36, %35 ], [ %60, %59 ], [ %62, %61 ], [ %64, %63 ], [ %66, %65 ], [ %71, %70 ], [ %95, %94 ], [ %97, %96 ], [ %101, %100 ], [ %99, %98 ]
  call void @_ZN5boost7numeric5ublas6vectorISt7complexIdENS1_15unbounded_arrayIS4_SaIS4_EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #5
  resume { ptr, i32 } %.pn79
}

declare void @_ZN9elabtsaot11Powersystem10set_statusEi(ptr noundef nonnull align 8 dereferenceable(480), i32 noundef) local_unnamed_addr #1

declare noundef ptr @_ZN9elabtsaot11Powersystem6getBusEm(ptr noundef nonnull align 8 dereferenceable(480), i64 noundef) local_unnamed_addr #1

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZSt3argIdET_RKSt7complexIS0_E(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4

declare noundef i64 @_ZNK9elabtsaot11Powersystem11getGenCountEv(ptr noundef nonnull align 8 dereferenceable(480)) local_unnamed_addr #1

declare noundef ptr @_ZN9elabtsaot11Powersystem12getGeneratorEm(ptr noundef nonnull align 8 dereferenceable(480), i64 noundef) local_unnamed_addr #1

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

declare void @_ZN9elabtsaot9Generator15updateVariablesEv(ptr noundef nonnull align 8 dereferenceable(216)) local_unnamed_addr #1

declare noundef i64 @_ZNK9elabtsaot11Powersystem12getLoadCountEv(ptr noundef nonnull align 8 dereferenceable(480)) local_unnamed_addr #1

declare noundef ptr @_ZN9elabtsaot11Powersystem7getLoadEm(ptr noundef nonnull align 8 dereferenceable(480), i64 noundef) local_unnamed_addr #1

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress 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 = { 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 #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, !14, i64 72}
!6 = !{!"_ZTSN9elabtsaot3BusE", !7, i64 0, !10, i64 8, !7, i64 40, !14, i64 48, !14, i64 56, !14, i64 64, !14, i64 72, !14, i64 80, !14, i64 88, !14, i64 96}
!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 = !{!"double", !8, i64 0}
!15 = !{!6, !14, i64 80}
!16 = !{!6, !14, i64 88}
!17 = !{!6, !14, i64 96}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!21, !7, i64 40}
!21 = !{!"_ZTSN9elabtsaot9GeneratorE", !7, i64 0, !22, i64 4, !10, i64 8, !7, i64 40, !14, i64 48, !14, i64 56, !23, i64 64, !7, i64 80, !14, i64 88, !14, i64 96, !14, i64 104, !14, i64 112, !14, i64 120, !14, i64 128, !14, i64 136, !14, i64 144, !14, i64 152, !14, i64 160, !14, i64 168, !14, i64 176, !14, i64 184, !14, i64 192, !14, i64 200, !14, i64 208}
!22 = !{!"bool", !8, i64 0}
!23 = !{!"_ZTSSt7complexIdE", !8, i64 0}
!24 = !{!14, !14, i64 0}
!25 = !{!8, !8, i64 0}
!26 = distinct !{!26, !19}
!27 = !{!28, !7, i64 4}
!28 = !{!"_ZTSN9elabtsaot4LoadE", !7, i64 0, !7, i64 4, !14, i64 8, !14, i64 16, !23, i64 24, !14, i64 40, !14, i64 48, !14, i64 56, !14, i64 64}
!29 = distinct !{!29, !19}


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