; LLVM IR from gem5/gem5 :: ext/mcpat/cacti (io)

; 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.TechnologyParameter = type { double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, i64, %"class.TechnologyParameter::DeviceType", %"class.TechnologyParameter::DeviceType", %"class.TechnologyParameter::DeviceType", %"class.TechnologyParameter::DeviceType", %"class.TechnologyParameter::DeviceType", %"class.TechnologyParameter::InterconnectType", %"class.TechnologyParameter::InterconnectType", %"class.TechnologyParameter::InterconnectType", %"class.TechnologyParameter::ScalingFactor", %"class.TechnologyParameter::MemoryType", %"class.TechnologyParameter::MemoryType", %"class.TechnologyParameter::MemoryType" }
%"class.TechnologyParameter::DeviceType" = type { double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double }
%"class.TechnologyParameter::InterconnectType" = type { double, double, double, double, double, double, double, double }
%"class.TechnologyParameter::ScalingFactor" = type { double, double, double }
%"class.TechnologyParameter::MemoryType" = type { double, double, double, double, double, double }
%class.uca_org_t = type { ptr, ptr, double, double, double, double, %class.powerDef, double, double, double, [100 x i8], double, i8, %struct.results_mem_array, %struct.results_mem_array }
%class.powerDef = type { %class.powerComponents, %class.powerComponents, %class.powerComponents }
%class.powerComponents = type { double, double, double, double, double }
%struct.results_mem_array = type { i32, i32, double, i32, i32, i32, i32, i32, i32, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, 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.std::allocator" = type { i8 }
%class.Wire = type { %class.Component, i32, double, double, i32, double, double, double, double, double, i32, double, double, double, %"class.std::__cxx11::list", %class.Component, %class.Component, %class.Component, double, ptr }
%"class.std::__cxx11::list" = type { %"class.std::__cxx11::_List_base" }
%"class.std::__cxx11::_List_base" = type { %"struct.std::__cxx11::_List_base<Component, std::allocator<Component>>::_List_impl" }
%"struct.std::__cxx11::_List_base<Component, std::allocator<Component>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"struct.std::__detail::_List_node_header" = type { %"struct.std::__detail::_List_node_base", i64 }
%"struct.std::__detail::_List_node_base" = type { ptr, ptr }
%class.Component = type { %class.Area, %class.powerDef, %class.powerDef, double, double }
%class.Area = type { double, double, double }
%class.InputParameter = type { i32, i32, i32, i32, i32, i8, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i8, i8, i8, i8, i8, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, i32, i32, i32, i32, i32, i32, i32, i8, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, i32, i32, i32, i8, i8, i32, i32, i8, double, double, i8, i32, i32, i8 }

@g_ip = external global ptr, align 8
@g_tp = external global %class.TechnologyParameter, align 8
@.str.167 = external hidden unnamed_addr constant [6 x i8], align 1

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #1

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

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

declare void @_ZN9uca_org_tC1Ev(ptr noundef nonnull align 8 dereferenceable(8200)) unnamed_addr #3

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #4

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN14InputParameter14error_checkingENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(368), ptr noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #6 align 2

declare void @_Z16init_tech_paramsdb(double noundef, i1 noundef zeroext) #3

declare void @_ZN4WireC1Edd14Wire_placementdPN19TechnologyParameter10DeviceTypeE(ptr noundef nonnull align 8 dereferenceable(1264), double noundef, double noundef, i32 noundef, double noundef, ptr noundef) unnamed_addr #3

declare void @_Z5solveP9uca_org_t(ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z10output_UCAP9uca_org_t(ptr noundef) #2

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #7

; Function Attrs: nounwind
declare void @_ZN4WireD1Ev(ptr noundef nonnull align 8 dereferenceable(1264)) unnamed_addr #8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9uca_org_tD2Ev(ptr noundef nonnull align 8 dereferenceable(8200)) unnamed_addr #6 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z15cacti_interfaceiiiiiiiiidiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii(ptr dead_on_unwind noalias writable sret(%class.uca_org_t) align 8 %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %8, i32 noundef %9, double noundef %10, i32 noundef %11, i32 noundef %12, i32 noundef %13, i32 noundef %14, i32 noundef %15, i32 noundef %16, i32 noundef %17, i32 noundef %18, i32 noundef %19, i32 noundef %20, i32 noundef %21, i32 noundef %22, i32 noundef %23, i32 noundef %24, i32 noundef %25, i32 noundef %26, i32 noundef %27, i32 noundef %28, i32 noundef %29, i32 noundef %30, i32 noundef %31, i32 noundef %32, i32 noundef %33, i32 noundef %34, i32 noundef %35, i32 noundef %36, i32 noundef %37, i32 noundef %38, i32 noundef %39, i32 noundef %40, i32 noundef %41, i32 noundef %42, i32 noundef %43, i32 noundef %44, i32 noundef %45, i32 noundef %46, i32 noundef %47, i32 noundef %48, i32 noundef %49, i32 noundef %50, i32 noundef %51, i32 noundef %52) #2 personality ptr @__gxx_personality_v0 {
  %54 = alloca ptr, align 8
  %55 = alloca i32, align 4
  %56 = alloca i32, align 4
  %57 = alloca i32, align 4
  %58 = alloca i32, align 4
  %59 = alloca i32, align 4
  %60 = alloca i32, align 4
  %61 = alloca i32, align 4
  %62 = alloca i32, align 4
  %63 = alloca i32, align 4
  %64 = alloca double, align 8
  %65 = alloca i32, align 4
  %66 = alloca i32, align 4
  %67 = alloca i32, align 4
  %68 = alloca i32, align 4
  %69 = alloca i32, align 4
  %70 = alloca i32, align 4
  %71 = alloca i32, align 4
  %72 = alloca i32, align 4
  %73 = alloca i32, align 4
  %74 = alloca i32, align 4
  %75 = alloca i32, align 4
  %76 = alloca i32, align 4
  %77 = alloca i32, align 4
  %78 = alloca i32, align 4
  %79 = alloca i32, align 4
  %80 = alloca i32, align 4
  %81 = alloca i32, align 4
  %82 = alloca i32, align 4
  %83 = alloca i32, align 4
  %84 = alloca i32, align 4
  %85 = alloca i32, align 4
  %86 = alloca i32, align 4
  %87 = alloca i32, align 4
  %88 = alloca i32, align 4
  %89 = alloca i32, align 4
  %90 = alloca i32, align 4
  %91 = alloca i32, align 4
  %92 = alloca i32, align 4
  %93 = alloca i32, align 4
  %94 = alloca i32, align 4
  %95 = alloca i32, align 4
  %96 = alloca i32, align 4
  %97 = alloca i32, align 4
  %98 = alloca i32, align 4
  %99 = alloca i32, align 4
  %100 = alloca i32, align 4
  %101 = alloca i32, align 4
  %102 = alloca i32, align 4
  %103 = alloca i32, align 4
  %104 = alloca i32, align 4
  %105 = alloca i32, align 4
  %106 = alloca i32, align 4
  %107 = alloca i1, align 1
  %108 = alloca %"class.std::__cxx11::basic_string", align 8
  %109 = alloca %"class.std::allocator", align 1
  %110 = alloca ptr, align 8
  %111 = alloca i32, align 4
  %112 = alloca %class.Wire, align 8
  store ptr %0, ptr %54, align 8
  store i32 %1, ptr %55, align 4, !tbaa !5
  store i32 %2, ptr %56, align 4, !tbaa !5
  store i32 %3, ptr %57, align 4, !tbaa !5
  store i32 %4, ptr %58, align 4, !tbaa !5
  store i32 %5, ptr %59, align 4, !tbaa !5
  store i32 %6, ptr %60, align 4, !tbaa !5
  store i32 %7, ptr %61, align 4, !tbaa !5
  store i32 %8, ptr %62, align 4, !tbaa !5
  store i32 %9, ptr %63, align 4, !tbaa !5
  store double %10, ptr %64, align 8, !tbaa !9
  store i32 %11, ptr %65, align 4, !tbaa !5
  store i32 %12, ptr %66, align 4, !tbaa !5
  store i32 %13, ptr %67, align 4, !tbaa !5
  store i32 %14, ptr %68, align 4, !tbaa !5
  store i32 %15, ptr %69, align 4, !tbaa !5
  store i32 %16, ptr %70, align 4, !tbaa !5
  store i32 %17, ptr %71, align 4, !tbaa !5
  store i32 %18, ptr %72, align 4, !tbaa !5
  store i32 %19, ptr %73, align 4, !tbaa !5
  store i32 %20, ptr %74, align 4, !tbaa !5
  store i32 %21, ptr %75, align 4, !tbaa !5
  store i32 %22, ptr %76, align 4, !tbaa !5
  store i32 %23, ptr %77, align 4, !tbaa !5
  store i32 %24, ptr %78, align 4, !tbaa !5
  store i32 %25, ptr %79, align 4, !tbaa !5
  store i32 %26, ptr %80, align 4, !tbaa !5
  store i32 %27, ptr %81, align 4, !tbaa !5
  store i32 %28, ptr %82, align 4, !tbaa !5
  store i32 %29, ptr %83, align 4, !tbaa !5
  store i32 %30, ptr %84, align 4, !tbaa !5
  store i32 %31, ptr %85, align 4, !tbaa !5
  store i32 %32, ptr %86, align 4, !tbaa !5
  store i32 %33, ptr %87, align 4, !tbaa !5
  store i32 %34, ptr %88, align 4, !tbaa !5
  store i32 %35, ptr %89, align 4, !tbaa !5
  store i32 %36, ptr %90, align 4, !tbaa !5
  store i32 %37, ptr %91, align 4, !tbaa !5
  store i32 %38, ptr %92, align 4, !tbaa !5
  store i32 %39, ptr %93, align 4, !tbaa !5
  store i32 %40, ptr %94, align 4, !tbaa !5
  store i32 %41, ptr %95, align 4, !tbaa !5
  store i32 %42, ptr %96, align 4, !tbaa !5
  store i32 %43, ptr %97, align 4, !tbaa !5
  store i32 %44, ptr %98, align 4, !tbaa !5
  store i32 %45, ptr %99, align 4, !tbaa !5
  store i32 %46, ptr %100, align 4, !tbaa !5
  store i32 %47, ptr %101, align 4, !tbaa !5
  store i32 %48, ptr %102, align 4, !tbaa !5
  store i32 %49, ptr %103, align 4, !tbaa !5
  store i32 %50, ptr %104, align 4, !tbaa !5
  store i32 %51, ptr %105, align 4, !tbaa !5
  store i32 %52, ptr %106, align 4, !tbaa !5
  %113 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 368) #9
  call void @llvm.memset.p0.i64(ptr align 16 %113, i8 0, i64 368, i1 false)
  store ptr %113, ptr @g_ip, align 8, !tbaa !11
  store i1 false, ptr %107, align 1
  call void @_ZN9uca_org_tC1Ev(ptr noundef nonnull align 8 dereferenceable(8200) %0)
  %114 = getelementptr inbounds %class.uca_org_t, ptr %0, i32 0, i32 12
  store i8 0, ptr %114, align 8, !tbaa !13
  %115 = load i32, ptr %84, align 4, !tbaa !5
  %116 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %117 = getelementptr inbounds %class.InputParameter, ptr %116, i32 0, i32 29
  store i32 %115, ptr %117, align 8, !tbaa !19
  %118 = load i32, ptr %85, align 4, !tbaa !5
  %119 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %120 = getelementptr inbounds %class.InputParameter, ptr %119, i32 0, i32 30
  store i32 %118, ptr %120, align 4, !tbaa !22
  %121 = load i32, ptr %86, align 4, !tbaa !5
  %122 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %123 = getelementptr inbounds %class.InputParameter, ptr %122, i32 0, i32 31
  store i32 %121, ptr %123, align 8, !tbaa !23
  %124 = load i32, ptr %87, align 4, !tbaa !5
  %125 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %126 = getelementptr inbounds %class.InputParameter, ptr %125, i32 0, i32 32
  store i32 %124, ptr %126, align 4, !tbaa !24
  %127 = load i32, ptr %88, align 4, !tbaa !5
  %128 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %129 = getelementptr inbounds %class.InputParameter, ptr %128, i32 0, i32 36
  store i32 %127, ptr %129, align 4, !tbaa !25
  %130 = load i32, ptr %89, align 4, !tbaa !5
  %131 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %132 = getelementptr inbounds %class.InputParameter, ptr %131, i32 0, i32 37
  store i32 %130, ptr %132, align 8, !tbaa !26
  %133 = load i32, ptr %90, align 4, !tbaa !5
  %134 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %135 = getelementptr inbounds %class.InputParameter, ptr %134, i32 0, i32 38
  store i32 %133, ptr %135, align 4, !tbaa !27
  %136 = load i32, ptr %95, align 4, !tbaa !5
  %137 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %138 = getelementptr inbounds %class.InputParameter, ptr %137, i32 0, i32 33
  store i32 %136, ptr %138, align 8, !tbaa !28
  %139 = load i32, ptr %96, align 4, !tbaa !5
  %140 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %141 = getelementptr inbounds %class.InputParameter, ptr %140, i32 0, i32 34
  store i32 %139, ptr %141, align 4, !tbaa !29
  %142 = load i32, ptr %94, align 4, !tbaa !5
  %143 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %144 = getelementptr inbounds %class.InputParameter, ptr %143, i32 0, i32 35
  store i32 %142, ptr %144, align 8, !tbaa !30
  %145 = load i32, ptr %55, align 4, !tbaa !5
  %146 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %147 = getelementptr inbounds %class.InputParameter, ptr %146, i32 0, i32 0
  store i32 %145, ptr %147, align 8, !tbaa !31
  %148 = load i32, ptr %56, align 4, !tbaa !5
  %149 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %150 = getelementptr inbounds %class.InputParameter, ptr %149, i32 0, i32 1
  store i32 %148, ptr %150, align 4, !tbaa !32
  %151 = load i32, ptr %57, align 4, !tbaa !5
  %152 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %153 = getelementptr inbounds %class.InputParameter, ptr %152, i32 0, i32 2
  store i32 %151, ptr %153, align 8, !tbaa !33
  %154 = load i32, ptr %63, align 4, !tbaa !5
  %155 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %156 = getelementptr inbounds %class.InputParameter, ptr %155, i32 0, i32 3
  store i32 %154, ptr %156, align 4, !tbaa !34
  %157 = load i32, ptr %65, align 4, !tbaa !5
  %158 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %159 = getelementptr inbounds %class.InputParameter, ptr %158, i32 0, i32 4
  store i32 %157, ptr %159, align 8, !tbaa !35
  %160 = load i32, ptr %66, align 4, !tbaa !5
  %161 = icmp ne i32 %160, 0
  %162 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %163 = getelementptr inbounds %class.InputParameter, ptr %162, i32 0, i32 5
  %164 = zext i1 %161 to i8
  store i8 %164, ptr %163, align 4, !tbaa !36
  %165 = load i32, ptr %66, align 4, !tbaa !5
  %166 = icmp eq i32 %165, 0
  br i1 %166, label %167, label %170

167:                                              ; preds = %53
  %168 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %169 = getelementptr inbounds %class.InputParameter, ptr %168, i32 0, i32 6
  store i32 42, ptr %169, align 8, !tbaa !37
  br label %174

170:                                              ; preds = %53
  %171 = load i32, ptr %67, align 4, !tbaa !5
  %172 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %173 = getelementptr inbounds %class.InputParameter, ptr %172, i32 0, i32 6
  store i32 %171, ptr %173, align 8, !tbaa !37
  br label %174

174:                                              ; preds = %170, %167
  %175 = load i32, ptr %68, align 4, !tbaa !5
  %176 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %177 = getelementptr inbounds %class.InputParameter, ptr %176, i32 0, i32 7
  store i32 %175, ptr %177, align 4, !tbaa !38
  %178 = load i32, ptr %71, align 4, !tbaa !5
  %179 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %180 = getelementptr inbounds %class.InputParameter, ptr %179, i32 0, i32 54
  store i32 %178, ptr %180, align 4, !tbaa !39
  %181 = load i32, ptr %72, align 4, !tbaa !5
  %182 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %183 = getelementptr inbounds %class.InputParameter, ptr %182, i32 0, i32 55
  store i32 %181, ptr %183, align 8, !tbaa !40
  %184 = load i32, ptr %73, align 4, !tbaa !5
  %185 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %186 = getelementptr inbounds %class.InputParameter, ptr %185, i32 0, i32 56
  store i32 %184, ptr %186, align 4, !tbaa !41
  %187 = load i32, ptr %75, align 4, !tbaa !5
  %188 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %189 = getelementptr inbounds %class.InputParameter, ptr %188, i32 0, i32 58
  store i32 %187, ptr %189, align 4, !tbaa !42
  %190 = load i32, ptr %74, align 4, !tbaa !5
  %191 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %192 = getelementptr inbounds %class.InputParameter, ptr %191, i32 0, i32 57
  store i32 %190, ptr %192, align 8, !tbaa !43
  %193 = load i32, ptr %76, align 4, !tbaa !5
  %194 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %195 = getelementptr inbounds %class.InputParameter, ptr %194, i32 0, i32 64
  store i32 %193, ptr %195, align 4, !tbaa !44
  %196 = load i32, ptr %77, align 4, !tbaa !5
  %197 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %198 = getelementptr inbounds %class.InputParameter, ptr %197, i32 0, i32 65
  store i32 %196, ptr %198, align 8, !tbaa !45
  %199 = load i32, ptr %78, align 4, !tbaa !5
  %200 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %201 = getelementptr inbounds %class.InputParameter, ptr %200, i32 0, i32 66
  store i32 %199, ptr %201, align 4, !tbaa !46
  %202 = load i32, ptr %79, align 4, !tbaa !5
  %203 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %204 = getelementptr inbounds %class.InputParameter, ptr %203, i32 0, i32 68
  store i32 %202, ptr %204, align 4, !tbaa !47
  %205 = load i32, ptr %80, align 4, !tbaa !5
  %206 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %207 = getelementptr inbounds %class.InputParameter, ptr %206, i32 0, i32 67
  store i32 %205, ptr %207, align 8, !tbaa !48
  %208 = load i32, ptr %82, align 4, !tbaa !5
  %209 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %210 = getelementptr inbounds %class.InputParameter, ptr %209, i32 0, i32 26
  store i32 %208, ptr %210, align 4, !tbaa !49
  %211 = load i32, ptr %81, align 4, !tbaa !5
  %212 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %213 = getelementptr inbounds %class.InputParameter, ptr %212, i32 0, i32 74
  store i32 %211, ptr %213, align 4, !tbaa !50
  %214 = load double, ptr %64, align 8, !tbaa !9
  %215 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %216 = getelementptr inbounds %class.InputParameter, ptr %215, i32 0, i32 12
  store double %214, ptr %216, align 8, !tbaa !51
  %217 = load double, ptr %64, align 8, !tbaa !9
  %218 = fdiv double %217, 1.000000e+03
  %219 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %220 = getelementptr inbounds %class.InputParameter, ptr %219, i32 0, i32 13
  store double %218, ptr %220, align 8, !tbaa !52
  %221 = load i32, ptr %70, align 4, !tbaa !5
  %222 = icmp ne i32 %221, 0
  %223 = zext i1 %222 to i64
  %224 = select i1 %222, i1 true, i1 false
  %225 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %226 = getelementptr inbounds %class.InputParameter, ptr %225, i32 0, i32 19
  %227 = zext i1 %224 to i8
  store i8 %227, ptr %226, align 4, !tbaa !53
  %228 = load i32, ptr %69, align 4, !tbaa !5
  %229 = icmp eq i32 %228, 1
  %230 = zext i1 %229 to i64
  %231 = select i1 %229, i1 true, i1 false
  %232 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %233 = getelementptr inbounds %class.InputParameter, ptr %232, i32 0, i32 20
  %234 = zext i1 %231 to i8
  store i8 %234, ptr %233, align 1, !tbaa !54
  %235 = load i32, ptr %69, align 4, !tbaa !5
  %236 = icmp eq i32 %235, 0
  %237 = zext i1 %236 to i64
  %238 = select i1 %236, i1 true, i1 false
  %239 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %240 = getelementptr inbounds %class.InputParameter, ptr %239, i32 0, i32 21
  %241 = zext i1 %238 to i8
  store i8 %241, ptr %240, align 2, !tbaa !55
  %242 = load i32, ptr %69, align 4, !tbaa !5
  %243 = icmp eq i32 %242, 2
  %244 = zext i1 %243 to i64
  %245 = select i1 %243, i1 true, i1 false
  %246 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %247 = getelementptr inbounds %class.InputParameter, ptr %246, i32 0, i32 22
  %248 = zext i1 %245 to i8
  store i8 %248, ptr %247, align 1, !tbaa !56
  %249 = load i32, ptr %91, align 4, !tbaa !5
  %250 = icmp ne i32 %249, 0
  %251 = zext i1 %250 to i64
  %252 = select i1 %250, i1 true, i1 false
  %253 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %254 = getelementptr inbounds %class.InputParameter, ptr %253, i32 0, i32 23
  %255 = zext i1 %252 to i8
  store i8 %255, ptr %254, align 8, !tbaa !57
  %256 = load i32, ptr %92, align 4, !tbaa !5
  %257 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %258 = getelementptr inbounds %class.InputParameter, ptr %257, i32 0, i32 24
  store i32 %256, ptr %258, align 4, !tbaa !58
  %259 = load i32, ptr %93, align 4, !tbaa !5
  %260 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %261 = getelementptr inbounds %class.InputParameter, ptr %260, i32 0, i32 25
  store i32 %259, ptr %261, align 8, !tbaa !59
  %262 = load i32, ptr %58, align 4, !tbaa !5
  %263 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %264 = getelementptr inbounds %class.InputParameter, ptr %263, i32 0, i32 14
  store i32 %262, ptr %264, align 8, !tbaa !60
  %265 = load i32, ptr %59, align 4, !tbaa !5
  %266 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %267 = getelementptr inbounds %class.InputParameter, ptr %266, i32 0, i32 15
  store i32 %265, ptr %267, align 4, !tbaa !61
  %268 = load i32, ptr %60, align 4, !tbaa !5
  %269 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %270 = getelementptr inbounds %class.InputParameter, ptr %269, i32 0, i32 16
  store i32 %268, ptr %270, align 8, !tbaa !62
  %271 = load i32, ptr %61, align 4, !tbaa !5
  %272 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %273 = getelementptr inbounds %class.InputParameter, ptr %272, i32 0, i32 17
  store i32 %271, ptr %273, align 4, !tbaa !63
  %274 = load i32, ptr %62, align 4, !tbaa !5
  %275 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %276 = getelementptr inbounds %class.InputParameter, ptr %275, i32 0, i32 18
  store i32 %274, ptr %276, align 8, !tbaa !64
  %277 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %278 = getelementptr inbounds %class.InputParameter, ptr %277, i32 0, i32 83
  store i32 1, ptr %278, align 4, !tbaa !65
  %279 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %280 = getelementptr inbounds %class.InputParameter, ptr %279, i32 0, i32 75
  store i32 0, ptr %280, align 8, !tbaa !66
  %281 = load i32, ptr %97, align 4, !tbaa !5
  %282 = icmp eq i32 %281, 0
  br i1 %282, label %283, label %288

283:                                              ; preds = %174
  %284 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %285 = getelementptr inbounds %class.InputParameter, ptr %284, i32 0, i32 39
  store i32 0, ptr %285, align 8, !tbaa !67
  %286 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %287 = getelementptr inbounds %class.InputParameter, ptr %286, i32 0, i32 40
  store i32 0, ptr %287, align 4, !tbaa !68
  br label %321

288:                                              ; preds = %174
  %289 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %290 = getelementptr inbounds %class.InputParameter, ptr %289, i32 0, i32 40
  store i32 1, ptr %290, align 4, !tbaa !68
  %291 = load i32, ptr %98, align 4, !tbaa !5
  %292 = icmp eq i32 %291, 10
  br i1 %292, label %293, label %296

293:                                              ; preds = %288
  %294 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %295 = getelementptr inbounds %class.InputParameter, ptr %294, i32 0, i32 39
  store i32 2, ptr %295, align 8, !tbaa !67
  br label %296

296:                                              ; preds = %293, %288
  %297 = load i32, ptr %98, align 4, !tbaa !5
  %298 = icmp eq i32 %297, 20
  br i1 %298, label %299, label %302

299:                                              ; preds = %296
  %300 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %301 = getelementptr inbounds %class.InputParameter, ptr %300, i32 0, i32 39
  store i32 3, ptr %301, align 8, !tbaa !67
  br label %302

302:                                              ; preds = %299, %296
  %303 = load i32, ptr %98, align 4, !tbaa !5
  %304 = icmp eq i32 %303, 30
  br i1 %304, label %305, label %308

305:                                              ; preds = %302
  %306 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %307 = getelementptr inbounds %class.InputParameter, ptr %306, i32 0, i32 39
  store i32 4, ptr %307, align 8, !tbaa !67
  br label %308

308:                                              ; preds = %305, %302
  %309 = load i32, ptr %98, align 4, !tbaa !5
  %310 = icmp eq i32 %309, 5
  br i1 %310, label %311, label %314

311:                                              ; preds = %308
  %312 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %313 = getelementptr inbounds %class.InputParameter, ptr %312, i32 0, i32 39
  store i32 1, ptr %313, align 8, !tbaa !67
  br label %314

314:                                              ; preds = %311, %308
  %315 = load i32, ptr %98, align 4, !tbaa !5
  %316 = icmp eq i32 %315, 0
  br i1 %316, label %317, label %320

317:                                              ; preds = %314
  %318 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %319 = getelementptr inbounds %class.InputParameter, ptr %318, i32 0, i32 39
  store i32 5, ptr %319, align 8, !tbaa !67
  br label %320

320:                                              ; preds = %317, %314
  br label %321

321:                                              ; preds = %320, %283
  %322 = load i32, ptr %99, align 4, !tbaa !5
  %323 = icmp eq i32 %322, 0
  br i1 %323, label %324, label %327

324:                                              ; preds = %321
  %325 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %326 = getelementptr inbounds %class.InputParameter, ptr %325, i32 0, i32 49
  store i8 0, ptr %326, align 8, !tbaa !69
  br label %348

327:                                              ; preds = %321
  %328 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %329 = getelementptr inbounds %class.InputParameter, ptr %328, i32 0, i32 49
  store i8 1, ptr %329, align 8, !tbaa !69
  %330 = load i32, ptr %101, align 4, !tbaa !5
  %331 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %332 = getelementptr inbounds %class.InputParameter, ptr %331, i32 0, i32 43
  store i32 %330, ptr %332, align 8, !tbaa !70
  %333 = load i32, ptr %100, align 4, !tbaa !5
  %334 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %335 = getelementptr inbounds %class.InputParameter, ptr %334, i32 0, i32 44
  store i32 %333, ptr %335, align 4, !tbaa !71
  %336 = load i32, ptr %102, align 4, !tbaa !5
  %337 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %338 = getelementptr inbounds %class.InputParameter, ptr %337, i32 0, i32 45
  store i32 %336, ptr %338, align 8, !tbaa !72
  %339 = load i32, ptr %103, align 4, !tbaa !5
  %340 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %341 = getelementptr inbounds %class.InputParameter, ptr %340, i32 0, i32 48
  store i32 %339, ptr %341, align 4, !tbaa !73
  %342 = load i32, ptr %104, align 4, !tbaa !5
  %343 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %344 = getelementptr inbounds %class.InputParameter, ptr %343, i32 0, i32 46
  store i32 %342, ptr %344, align 4, !tbaa !74
  %345 = load i32, ptr %105, align 4, !tbaa !5
  %346 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %347 = getelementptr inbounds %class.InputParameter, ptr %346, i32 0, i32 47
  store i32 %345, ptr %347, align 8, !tbaa !75
  br label %348

348:                                              ; preds = %327, %324
  %349 = load i32, ptr %106, align 4, !tbaa !5
  %350 = icmp eq i32 %349, 0
  br i1 %350, label %351, label %354

351:                                              ; preds = %348
  %352 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %353 = getelementptr inbounds %class.InputParameter, ptr %352, i32 0, i32 84
  store i8 0, ptr %353, align 8, !tbaa !76
  br label %357

354:                                              ; preds = %348
  %355 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %356 = getelementptr inbounds %class.InputParameter, ptr %355, i32 0, i32 84
  store i8 1, ptr %356, align 8, !tbaa !76
  br label %357

357:                                              ; preds = %354, %351
  %358 = load ptr, ptr @g_ip, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %109) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %109) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %108, ptr noundef @.str.167, ptr noundef nonnull align 1 dereferenceable(1) %109)
          to label %359 unwind label %364

359:                                              ; preds = %357
  %360 = invoke noundef zeroext i1 @_ZN14InputParameter14error_checkingENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(368) %358, ptr noundef %108)
          to label %361 unwind label %368

361:                                              ; preds = %359
  %362 = xor i1 %360, true
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %108) #10
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %109) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %109) #10
  br i1 %362, label %363, label %373

363:                                              ; preds = %361
  call void @exit(i32 noundef 0) #11
  unreachable

364:                                              ; preds = %357
  %365 = landingpad { ptr, i32 }
          cleanup
  %366 = extractvalue { ptr, i32 } %365, 0
  store ptr %366, ptr %110, align 8
  %367 = extractvalue { ptr, i32 } %365, 1
  store i32 %367, ptr %111, align 4
  br label %372

368:                                              ; preds = %359
  %369 = landingpad { ptr, i32 }
          cleanup
  %370 = extractvalue { ptr, i32 } %369, 0
  store ptr %370, ptr %110, align 8
  %371 = extractvalue { ptr, i32 } %369, 1
  store i32 %371, ptr %111, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %108) #10
  br label %372

372:                                              ; preds = %368, %364
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %109) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %109) #10
  br label %404

373:                                              ; preds = %361
  %374 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %375 = getelementptr inbounds %class.InputParameter, ptr %374, i32 0, i32 13
  %376 = load double, ptr %375, align 8, !tbaa !52
  invoke void @_Z16init_tech_paramsdb(double noundef %376, i1 noundef zeroext false)
          to label %377 unwind label %389

377:                                              ; preds = %373
  call void @llvm.lifetime.start.p0(i64 1264, ptr %112) #10
  invoke void @_ZN4WireC1Edd14Wire_placementdPN19TechnologyParameter10DeviceTypeE(ptr noundef nonnull align 8 dereferenceable(1264) %112, double noundef 1.000000e+00, double noundef 1.000000e+00, i32 noundef 0, double noundef 2.200000e-02, ptr noundef getelementptr inbounds (%class.TechnologyParameter, ptr @g_tp, i32 0, i32 48))
          to label %378 unwind label %393

378:                                              ; preds = %377
  %379 = load ptr, ptr @g_ip, align 8, !tbaa !11
  invoke void @_ZN14InputParameter10display_ipEv(ptr noundef nonnull align 8 dereferenceable(368) %379)
          to label %380 unwind label %397

380:                                              ; preds = %378
  invoke void @_Z5solveP9uca_org_t(ptr noundef %0)
          to label %381 unwind label %397

381:                                              ; preds = %380
  invoke void @_Z10output_UCAP9uca_org_t(ptr noundef %0)
          to label %382 unwind label %397

382:                                              ; preds = %381
  invoke void @_Z15output_data_csvRK9uca_org_t(ptr noundef nonnull align 8 dereferenceable(8200) %0)
          to label %383 unwind label %397

383:                                              ; preds = %382
  %384 = load ptr, ptr @g_ip, align 8, !tbaa !11
  %385 = icmp eq ptr %384, null
  br i1 %385, label %387, label %386

386:                                              ; preds = %383
  call void @_ZdlPvm(ptr noundef %384, i64 noundef 368) #12
  br label %387

387:                                              ; preds = %386, %383
  store i1 true, ptr %107, align 1
  call void @_ZN4WireD1Ev(ptr noundef nonnull align 8 dereferenceable(1264) %112) #10
  call void @llvm.lifetime.end.p0(i64 1264, ptr %112) #10
  %388 = load i1, ptr %107, align 1
  br i1 %388, label %403, label %402

389:                                              ; preds = %373
  %390 = landingpad { ptr, i32 }
          cleanup
  %391 = extractvalue { ptr, i32 } %390, 0
  store ptr %391, ptr %110, align 8
  %392 = extractvalue { ptr, i32 } %390, 1
  store i32 %392, ptr %111, align 4
  br label %404

393:                                              ; preds = %377
  %394 = landingpad { ptr, i32 }
          cleanup
  %395 = extractvalue { ptr, i32 } %394, 0
  store ptr %395, ptr %110, align 8
  %396 = extractvalue { ptr, i32 } %394, 1
  store i32 %396, ptr %111, align 4
  br label %401

397:                                              ; preds = %382, %381, %380, %378
  %398 = landingpad { ptr, i32 }
          cleanup
  %399 = extractvalue { ptr, i32 } %398, 0
  store ptr %399, ptr %110, align 8
  %400 = extractvalue { ptr, i32 } %398, 1
  store i32 %400, ptr %111, align 4
  call void @_ZN4WireD1Ev(ptr noundef nonnull align 8 dereferenceable(1264) %112) #10
  br label %401

401:                                              ; preds = %397, %393
  call void @llvm.lifetime.end.p0(i64 1264, ptr %112) #10
  br label %404

402:                                              ; preds = %387
  call void @_ZN9uca_org_tD2Ev(ptr noundef nonnull align 8 dereferenceable(8200) %0) #10
  br label %403

403:                                              ; preds = %402, %387
  ret void

404:                                              ; preds = %401, %389, %372
  call void @_ZN9uca_org_tD2Ev(ptr noundef nonnull align 8 dereferenceable(8200) %0) #10
  br label %405

405:                                              ; preds = %404
  %406 = load ptr, ptr %110, align 8
  %407 = load i32, ptr %111, align 4
  %408 = insertvalue { ptr, i32 } poison, ptr %406, 0
  %409 = insertvalue { ptr, i32 } %408, i32 %407, 1
  resume { ptr, i32 } %409
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #6 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn nounwind "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 = { "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 = { nobuiltin allocsize(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: write) }
attributes #6 = { 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 #7 = { nobuiltin nounwind "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 #8 = { nounwind "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 #9 = { builtin allocsize(0) }
attributes #10 = { nounwind }
attributes #11 = { noreturn nounwind }
attributes #12 = { builtin 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !17, i64 304}
!14 = !{!"_ZTS9uca_org_t", !12, i64 0, !12, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !15, i64 48, !10, i64 168, !10, i64 176, !10, i64 184, !7, i64 192, !10, i64 296, !17, i64 304, !18, i64 312, !18, i64 4256}
!15 = !{!"_ZTS8powerDef", !16, i64 0, !16, i64 40, !16, i64 80}
!16 = !{!"_ZTS15powerComponents", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32}
!17 = !{!"bool", !7, i64 0}
!18 = !{!"_ZTS17results_mem_array", !6, i64 0, !6, i64 4, !10, i64 8, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !10, i64 184, !10, i64 192, !10, i64 200, !10, i64 208, !10, i64 216, !10, i64 224, !10, i64 232, !10, i64 240, !10, i64 248, !10, i64 256, !10, i64 264, !15, i64 272, !15, i64 392, !15, i64 512, !15, i64 632, !15, i64 752, !15, i64 872, !15, i64 992, !15, i64 1112, !15, i64 1232, !15, i64 1352, !15, i64 1472, !15, i64 1592, !15, i64 1712, !15, i64 1832, !15, i64 1952, !15, i64 2072, !15, i64 2192, !15, i64 2312, !15, i64 2432, !15, i64 2552, !15, i64 2672, !15, i64 2792, !15, i64 2912, !15, i64 3032, !15, i64 3152, !15, i64 3272, !15, i64 3392, !15, i64 3512, !15, i64 3632, !10, i64 3752, !10, i64 3760, !10, i64 3768, !10, i64 3776, !10, i64 3784, !10, i64 3792, !10, i64 3800, !10, i64 3808, !10, i64 3816, !10, i64 3824, !10, i64 3832, !10, i64 3840, !10, i64 3848, !10, i64 3856, !10, i64 3864, !10, i64 3872, !10, i64 3880, !10, i64 3888, !10, i64 3896, !10, i64 3904, !10, i64 3912, !10, i64 3920, !10, i64 3928, !10, i64 3936}
!19 = !{!20, !6, i64 112}
!20 = !{!"_ZTS14InputParameter", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !17, i64 20, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !6, i64 40, !6, i64 44, !10, i64 48, !10, i64 56, !6, i64 64, !6, i64 68, !6, i64 72, !6, i64 76, !6, i64 80, !17, i64 84, !17, i64 85, !17, i64 86, !17, i64 87, !17, i64 88, !6, i64 92, !6, i64 96, !6, i64 100, !6, i64 104, !6, i64 108, !6, i64 112, !6, i64 116, !6, i64 120, !6, i64 124, !6, i64 128, !6, i64 132, !6, i64 136, !6, i64 140, !6, i64 144, !6, i64 148, !21, i64 152, !6, i64 156, !17, i64 160, !6, i64 164, !6, i64 168, !6, i64 172, !6, i64 176, !6, i64 180, !6, i64 184, !6, i64 188, !17, i64 192, !6, i64 196, !6, i64 200, !6, i64 204, !6, i64 208, !6, i64 212, !6, i64 216, !6, i64 220, !6, i64 224, !6, i64 228, !6, i64 232, !6, i64 236, !6, i64 240, !6, i64 244, !6, i64 248, !6, i64 252, !6, i64 256, !6, i64 260, !6, i64 264, !6, i64 268, !6, i64 272, !6, i64 276, !6, i64 280, !6, i64 284, !6, i64 288, !6, i64 292, !6, i64 296, !17, i64 300, !6, i64 304, !6, i64 308, !6, i64 312, !17, i64 316, !17, i64 317, !6, i64 320, !6, i64 324, !17, i64 328, !10, i64 336, !10, i64 344, !17, i64 352, !6, i64 356, !6, i64 360, !17, i64 364}
!21 = !{!"_ZTS9Wire_type", !7, i64 0}
!22 = !{!20, !6, i64 116}
!23 = !{!20, !6, i64 120}
!24 = !{!20, !6, i64 124}
!25 = !{!20, !6, i64 140}
!26 = !{!20, !6, i64 144}
!27 = !{!20, !6, i64 148}
!28 = !{!20, !6, i64 128}
!29 = !{!20, !6, i64 132}
!30 = !{!20, !6, i64 136}
!31 = !{!20, !6, i64 0}
!32 = !{!20, !6, i64 4}
!33 = !{!20, !6, i64 8}
!34 = !{!20, !6, i64 12}
!35 = !{!20, !6, i64 16}
!36 = !{!20, !17, i64 20}
!37 = !{!20, !6, i64 24}
!38 = !{!20, !6, i64 28}
!39 = !{!20, !6, i64 212}
!40 = !{!20, !6, i64 216}
!41 = !{!20, !6, i64 220}
!42 = !{!20, !6, i64 228}
!43 = !{!20, !6, i64 224}
!44 = !{!20, !6, i64 252}
!45 = !{!20, !6, i64 256}
!46 = !{!20, !6, i64 260}
!47 = !{!20, !6, i64 268}
!48 = !{!20, !6, i64 264}
!49 = !{!20, !6, i64 100}
!50 = !{!20, !6, i64 292}
!51 = !{!20, !10, i64 48}
!52 = !{!20, !10, i64 56}
!53 = !{!20, !17, i64 84}
!54 = !{!20, !17, i64 85}
!55 = !{!20, !17, i64 86}
!56 = !{!20, !17, i64 87}
!57 = !{!20, !17, i64 88}
!58 = !{!20, !6, i64 92}
!59 = !{!20, !6, i64 96}
!60 = !{!20, !6, i64 64}
!61 = !{!20, !6, i64 68}
!62 = !{!20, !6, i64 72}
!63 = !{!20, !6, i64 76}
!64 = !{!20, !6, i64 80}
!65 = !{!20, !6, i64 324}
!66 = !{!20, !6, i64 296}
!67 = !{!20, !21, i64 152}
!68 = !{!20, !6, i64 156}
!69 = !{!20, !17, i64 192}
!70 = !{!20, !6, i64 168}
!71 = !{!20, !6, i64 172}
!72 = !{!20, !6, i64 176}
!73 = !{!20, !6, i64 188}
!74 = !{!20, !6, i64 180}
!75 = !{!20, !6, i64 184}
!76 = !{!20, !17, i64 328}


; 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.TechnologyParameter = type { double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, i64, %"class.TechnologyParameter::DeviceType", %"class.TechnologyParameter::DeviceType", %"class.TechnologyParameter::DeviceType", %"class.TechnologyParameter::DeviceType", %"class.TechnologyParameter::DeviceType", %"class.TechnologyParameter::InterconnectType", %"class.TechnologyParameter::InterconnectType", %"class.TechnologyParameter::InterconnectType", %"class.TechnologyParameter::ScalingFactor", %"class.TechnologyParameter::MemoryType", %"class.TechnologyParameter::MemoryType", %"class.TechnologyParameter::MemoryType" }
%"class.TechnologyParameter::DeviceType" = type { double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double }
%"class.TechnologyParameter::InterconnectType" = type { double, double, double, double, double, double, double, double }
%"class.TechnologyParameter::ScalingFactor" = type { double, double, double }
%"class.TechnologyParameter::MemoryType" = type { double, double, double, double, double, double }
%class.uca_org_t = type { ptr, ptr, double, double, double, double, %class.powerDef, double, double, double, [100 x i8], double, i8, %struct.results_mem_array, %struct.results_mem_array }
%class.powerDef = type { %class.powerComponents, %class.powerComponents, %class.powerComponents }
%class.powerComponents = type { double, double, double, double, double }
%struct.results_mem_array = type { i32, i32, double, i32, i32, i32, i32, i32, i32, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, %class.powerDef, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, 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.std::allocator" = type { i8 }
%class.Wire = type { %class.Component, i32, double, double, i32, double, double, double, double, double, i32, double, double, double, %"class.std::__cxx11::list", %class.Component, %class.Component, %class.Component, double, ptr }
%"class.std::__cxx11::list" = type { %"class.std::__cxx11::_List_base" }
%"class.std::__cxx11::_List_base" = type { %"struct.std::__cxx11::_List_base<Component, std::allocator<Component>>::_List_impl" }
%"struct.std::__cxx11::_List_base<Component, std::allocator<Component>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"struct.std::__detail::_List_node_header" = type { %"struct.std::__detail::_List_node_base", i64 }
%"struct.std::__detail::_List_node_base" = type { ptr, ptr }
%class.Component = type { %class.Area, %class.powerDef, %class.powerDef, double, double }
%class.Area = type { double, double, double }

@g_ip = external local_unnamed_addr global ptr, align 8
@g_tp = external global %class.TechnologyParameter, align 8
@.str.167 = external hidden unnamed_addr constant [6 x i8], align 1

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

; Function Attrs: noreturn nounwind
declare void @exit(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

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

declare void @_ZN9uca_org_tC1Ev(ptr noundef nonnull align 8 dereferenceable(8200)) unnamed_addr #3

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #4

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN14InputParameter14error_checkingENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(368), ptr noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #6 align 2

declare void @_Z16init_tech_paramsdb(double noundef, i1 noundef zeroext) local_unnamed_addr #3

declare void @_ZN4WireC1Edd14Wire_placementdPN19TechnologyParameter10DeviceTypeE(ptr noundef nonnull align 8 dereferenceable(1264), double noundef, double noundef, i32 noundef, double noundef, ptr noundef) unnamed_addr #3

declare void @_Z5solveP9uca_org_t(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z10output_UCAP9uca_org_t(ptr noundef) local_unnamed_addr #2

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #7

; Function Attrs: nounwind
declare void @_ZN4WireD1Ev(ptr noundef nonnull align 8 dereferenceable(1264)) unnamed_addr #8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9uca_org_tD2Ev(ptr noundef nonnull align 8 dereferenceable(8200)) unnamed_addr #6 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z15cacti_interfaceiiiiiiiiidiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii(ptr dead_on_unwind noalias writable sret(%class.uca_org_t) align 8 %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %8, i32 noundef %9, double noundef %10, i32 noundef %11, i32 noundef %12, i32 noundef %13, i32 noundef %14, i32 noundef %15, i32 noundef %16, i32 noundef %17, i32 noundef %18, i32 noundef %19, i32 noundef %20, i32 noundef %21, i32 noundef %22, i32 noundef %23, i32 noundef %24, i32 noundef %25, i32 noundef %26, i32 noundef %27, i32 noundef %28, i32 noundef %29, i32 noundef %30, i32 noundef %31, i32 noundef %32, i32 noundef %33, i32 noundef %34, i32 noundef %35, i32 noundef %36, i32 noundef %37, i32 noundef %38, i32 noundef %39, i32 noundef %40, i32 noundef %41, i32 noundef %42, i32 noundef %43, i32 noundef %44, i32 noundef %45, i32 noundef %46, i32 noundef %47, i32 noundef %48, i32 noundef %49, i32 noundef %50, i32 noundef %51, i32 noundef %52) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %54 = alloca %"class.std::__cxx11::basic_string", align 8
  %55 = alloca %"class.std::allocator", align 1
  %56 = alloca %class.Wire, align 8
  %57 = tail call noalias noundef nonnull dereferenceable(368) ptr @_Znwm(i64 noundef 368) #9
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(368) %57, i8 0, i64 368, i1 false)
  store ptr %57, ptr @g_ip, align 8, !tbaa !5
  tail call void @_ZN9uca_org_tC1Ev(ptr noundef nonnull align 8 dereferenceable(8200) %0)
  %58 = getelementptr inbounds i8, ptr %0, i64 304
  store i8 0, ptr %58, align 8, !tbaa !9
  %59 = load ptr, ptr @g_ip, align 8, !tbaa !5
  %60 = getelementptr inbounds i8, ptr %59, i64 112
  store i32 %30, ptr %60, align 8, !tbaa !17
  %61 = getelementptr inbounds i8, ptr %59, i64 116
  store i32 %31, ptr %61, align 4, !tbaa !20
  %62 = getelementptr inbounds i8, ptr %59, i64 120
  store i32 %32, ptr %62, align 8, !tbaa !21
  %63 = getelementptr inbounds i8, ptr %59, i64 124
  store i32 %33, ptr %63, align 4, !tbaa !22
  %64 = getelementptr inbounds i8, ptr %59, i64 140
  store i32 %34, ptr %64, align 4, !tbaa !23
  %65 = getelementptr inbounds i8, ptr %59, i64 144
  store i32 %35, ptr %65, align 8, !tbaa !24
  %66 = getelementptr inbounds i8, ptr %59, i64 148
  store i32 %36, ptr %66, align 4, !tbaa !25
  %67 = getelementptr inbounds i8, ptr %59, i64 128
  store i32 %41, ptr %67, align 8, !tbaa !26
  %68 = getelementptr inbounds i8, ptr %59, i64 132
  store i32 %42, ptr %68, align 4, !tbaa !27
  %69 = getelementptr inbounds i8, ptr %59, i64 136
  store i32 %40, ptr %69, align 8, !tbaa !28
  store i32 %1, ptr %59, align 8, !tbaa !29
  %70 = getelementptr inbounds i8, ptr %59, i64 4
  store i32 %2, ptr %70, align 4, !tbaa !30
  %71 = getelementptr inbounds i8, ptr %59, i64 8
  store i32 %3, ptr %71, align 8, !tbaa !31
  %72 = getelementptr inbounds i8, ptr %59, i64 12
  store i32 %9, ptr %72, align 4, !tbaa !32
  %73 = getelementptr inbounds i8, ptr %59, i64 16
  store i32 %11, ptr %73, align 8, !tbaa !33
  %74 = icmp ne i32 %12, 0
  %75 = getelementptr inbounds i8, ptr %59, i64 20
  %76 = zext i1 %74 to i8
  store i8 %76, ptr %75, align 4, !tbaa !34
  %77 = icmp eq i32 %12, 0
  %spec.select = select i1 %77, i32 42, i32 %13
  %78 = getelementptr inbounds i8, ptr %59, i64 24
  store i32 %spec.select, ptr %78, align 8
  %79 = getelementptr inbounds i8, ptr %59, i64 28
  store i32 %14, ptr %79, align 4, !tbaa !35
  %80 = getelementptr inbounds i8, ptr %59, i64 212
  store i32 %17, ptr %80, align 4, !tbaa !36
  %81 = getelementptr inbounds i8, ptr %59, i64 216
  store i32 %18, ptr %81, align 8, !tbaa !37
  %82 = getelementptr inbounds i8, ptr %59, i64 220
  store i32 %19, ptr %82, align 4, !tbaa !38
  %83 = getelementptr inbounds i8, ptr %59, i64 228
  store i32 %21, ptr %83, align 4, !tbaa !39
  %84 = getelementptr inbounds i8, ptr %59, i64 224
  store i32 %20, ptr %84, align 8, !tbaa !40
  %85 = getelementptr inbounds i8, ptr %59, i64 252
  store i32 %22, ptr %85, align 4, !tbaa !41
  %86 = getelementptr inbounds i8, ptr %59, i64 256
  store i32 %23, ptr %86, align 8, !tbaa !42
  %87 = getelementptr inbounds i8, ptr %59, i64 260
  store i32 %24, ptr %87, align 4, !tbaa !43
  %88 = getelementptr inbounds i8, ptr %59, i64 268
  store i32 %25, ptr %88, align 4, !tbaa !44
  %89 = getelementptr inbounds i8, ptr %59, i64 264
  store i32 %26, ptr %89, align 8, !tbaa !45
  %90 = getelementptr inbounds i8, ptr %59, i64 100
  store i32 %28, ptr %90, align 4, !tbaa !46
  %91 = getelementptr inbounds i8, ptr %59, i64 292
  store i32 %27, ptr %91, align 4, !tbaa !47
  %92 = getelementptr inbounds i8, ptr %59, i64 48
  store double %10, ptr %92, align 8, !tbaa !48
  %93 = fdiv double %10, 1.000000e+03
  %94 = getelementptr inbounds i8, ptr %59, i64 56
  store double %93, ptr %94, align 8, !tbaa !49
  %95 = insertelement <4 x i32> poison, i32 %16, i64 0
  %96 = insertelement <4 x i32> %95, i32 %15, i64 1
  %97 = shufflevector <4 x i32> %96, <4 x i32> poison, <4 x i32> <i32 0, i32 1, i32 1, i32 1>
  %98 = icmp ne <4 x i32> %97, <i32 0, i32 1, i32 0, i32 2>
  %99 = icmp eq <4 x i32> %97, <i32 0, i32 1, i32 0, i32 2>
  %100 = shufflevector <4 x i1> %98, <4 x i1> %99, <4 x i32> <i32 0, i32 5, i32 6, i32 7>
  %101 = getelementptr inbounds i8, ptr %59, i64 84
  %102 = zext <4 x i1> %100 to <4 x i8>
  store <4 x i8> %102, ptr %101, align 4, !tbaa !50
  %103 = icmp ne i32 %37, 0
  %104 = getelementptr inbounds i8, ptr %59, i64 88
  %105 = zext i1 %103 to i8
  store i8 %105, ptr %104, align 8, !tbaa !51
  %106 = getelementptr inbounds i8, ptr %59, i64 92
  store i32 %38, ptr %106, align 4, !tbaa !52
  %107 = getelementptr inbounds i8, ptr %59, i64 96
  store i32 %39, ptr %107, align 8, !tbaa !53
  %108 = getelementptr inbounds i8, ptr %59, i64 64
  store i32 %4, ptr %108, align 8, !tbaa !54
  %109 = getelementptr inbounds i8, ptr %59, i64 68
  store i32 %5, ptr %109, align 4, !tbaa !55
  %110 = getelementptr inbounds i8, ptr %59, i64 72
  store i32 %6, ptr %110, align 8, !tbaa !56
  %111 = getelementptr inbounds i8, ptr %59, i64 76
  store i32 %7, ptr %111, align 4, !tbaa !57
  %112 = getelementptr inbounds i8, ptr %59, i64 80
  store i32 %8, ptr %112, align 8, !tbaa !58
  %113 = getelementptr inbounds i8, ptr %59, i64 324
  store i32 1, ptr %113, align 4, !tbaa !59
  %114 = getelementptr inbounds i8, ptr %59, i64 296
  store i32 0, ptr %114, align 8, !tbaa !60
  %115 = icmp eq i32 %43, 0
  br i1 %115, label %116, label %119

116:                                              ; preds = %53
  %117 = getelementptr inbounds i8, ptr %59, i64 152
  store i32 0, ptr %117, align 8, !tbaa !61
  %118 = getelementptr inbounds i8, ptr %59, i64 156
  store i32 0, ptr %118, align 4, !tbaa !62
  br label %131

119:                                              ; preds = %53
  %120 = getelementptr inbounds i8, ptr %59, i64 156
  store i32 1, ptr %120, align 4, !tbaa !62
  switch i32 %44, label %131 [
    i32 10, label %121
    i32 20, label %123
    i32 30, label %125
    i32 5, label %127
    i32 0, label %129
  ]

121:                                              ; preds = %119
  %122 = getelementptr inbounds i8, ptr %59, i64 152
  store i32 2, ptr %122, align 8, !tbaa !61
  br label %131

123:                                              ; preds = %119
  %124 = getelementptr inbounds i8, ptr %59, i64 152
  store i32 3, ptr %124, align 8, !tbaa !61
  br label %131

125:                                              ; preds = %119
  %126 = getelementptr inbounds i8, ptr %59, i64 152
  store i32 4, ptr %126, align 8, !tbaa !61
  br label %131

127:                                              ; preds = %119
  %128 = getelementptr inbounds i8, ptr %59, i64 152
  store i32 1, ptr %128, align 8, !tbaa !61
  br label %131

129:                                              ; preds = %119
  %130 = getelementptr inbounds i8, ptr %59, i64 152
  store i32 5, ptr %130, align 8, !tbaa !61
  br label %131

131:                                              ; preds = %127, %125, %123, %121, %119, %129, %116
  %132 = icmp eq i32 %45, 0
  %133 = getelementptr inbounds i8, ptr %59, i64 192
  br i1 %132, label %134, label %135

134:                                              ; preds = %131
  store i8 0, ptr %133, align 8, !tbaa !63
  br label %142

135:                                              ; preds = %131
  store i8 1, ptr %133, align 8, !tbaa !63
  %136 = getelementptr inbounds i8, ptr %59, i64 168
  store i32 %47, ptr %136, align 8, !tbaa !64
  %137 = getelementptr inbounds i8, ptr %59, i64 172
  store i32 %46, ptr %137, align 4, !tbaa !65
  %138 = getelementptr inbounds i8, ptr %59, i64 176
  store i32 %48, ptr %138, align 8, !tbaa !66
  %139 = getelementptr inbounds i8, ptr %59, i64 188
  store i32 %49, ptr %139, align 4, !tbaa !67
  %140 = getelementptr inbounds i8, ptr %59, i64 180
  store i32 %50, ptr %140, align 4, !tbaa !68
  %141 = getelementptr inbounds i8, ptr %59, i64 184
  store i32 %51, ptr %141, align 8, !tbaa !69
  br label %142

142:                                              ; preds = %135, %134
  %143 = icmp ne i32 %52, 0
  %144 = getelementptr inbounds i8, ptr %59, i64 328
  %. = zext i1 %143 to i8
  store i8 %., ptr %144, align 8, !tbaa !70
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %55) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %55) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %54, ptr noundef nonnull @.str.167, ptr noundef nonnull align 1 dereferenceable(1) %55)
          to label %145 unwind label %149

145:                                              ; preds = %142
  %146 = invoke noundef zeroext i1 @_ZN14InputParameter14error_checkingENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(368) %59, ptr noundef nonnull %54)
          to label %147 unwind label %151

147:                                              ; preds = %145
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %54) #10
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %55) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %55) #10
  br i1 %146, label %154, label %148

148:                                              ; preds = %147
  call void @exit(i32 noundef 0) #11
  unreachable

149:                                              ; preds = %142
  %150 = landingpad { ptr, i32 }
          cleanup
  br label %153

151:                                              ; preds = %145
  %152 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %54) #10
  br label %153

153:                                              ; preds = %151, %149
  %.pn = phi { ptr, i32 } [ %152, %151 ], [ %150, %149 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %55) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %55) #10
  br label %176

154:                                              ; preds = %147
  %155 = load ptr, ptr @g_ip, align 8, !tbaa !5
  %156 = getelementptr inbounds i8, ptr %155, i64 56
  %157 = load double, ptr %156, align 8, !tbaa !49
  invoke void @_Z16init_tech_paramsdb(double noundef %157, i1 noundef zeroext false)
          to label %158 unwind label %169

158:                                              ; preds = %154
  call void @llvm.lifetime.start.p0(i64 1264, ptr nonnull %56) #10
  invoke void @_ZN4WireC1Edd14Wire_placementdPN19TechnologyParameter10DeviceTypeE(ptr noundef nonnull align 8 dereferenceable(1264) %56, double noundef 1.000000e+00, double noundef 1.000000e+00, i32 noundef 0, double noundef 2.200000e-02, ptr noundef nonnull getelementptr inbounds (i8, ptr @g_tp, i64 864))
          to label %159 unwind label %171

159:                                              ; preds = %158
  %160 = load ptr, ptr @g_ip, align 8, !tbaa !5
  invoke void @_ZN14InputParameter10display_ipEv(ptr noundef nonnull align 8 dereferenceable(368) %160)
          to label %161 unwind label %173

161:                                              ; preds = %159
  invoke void @_Z5solveP9uca_org_t(ptr noundef nonnull %0)
          to label %162 unwind label %173

162:                                              ; preds = %161
  invoke void @_Z10output_UCAP9uca_org_t(ptr noundef nonnull %0)
          to label %163 unwind label %173

163:                                              ; preds = %162
  invoke void @_Z15output_data_csvRK9uca_org_t(ptr noundef nonnull align 8 dereferenceable(8200) %0)
          to label %164 unwind label %173

164:                                              ; preds = %163
  %165 = load ptr, ptr @g_ip, align 8, !tbaa !5
  %166 = icmp eq ptr %165, null
  br i1 %166, label %168, label %167

167:                                              ; preds = %164
  call void @_ZdlPvm(ptr noundef nonnull %165, i64 noundef 368) #12
  br label %168

168:                                              ; preds = %167, %164
  call void @_ZN4WireD1Ev(ptr noundef nonnull align 8 dereferenceable(1264) %56) #10
  call void @llvm.lifetime.end.p0(i64 1264, ptr nonnull %56) #10
  ret void

169:                                              ; preds = %154
  %170 = landingpad { ptr, i32 }
          cleanup
  br label %176

171:                                              ; preds = %158
  %172 = landingpad { ptr, i32 }
          cleanup
  br label %175

173:                                              ; preds = %163, %162, %161, %159
  %174 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4WireD1Ev(ptr noundef nonnull align 8 dereferenceable(1264) %56) #10
  br label %175

175:                                              ; preds = %173, %171
  %.pn66 = phi { ptr, i32 } [ %174, %173 ], [ %172, %171 ]
  call void @llvm.lifetime.end.p0(i64 1264, ptr nonnull %56) #10
  br label %176

176:                                              ; preds = %175, %169, %153
  %.pn66.pn = phi { ptr, i32 } [ %.pn66, %175 ], [ %170, %169 ], [ %.pn, %153 ]
  call void @_ZN9uca_org_tD2Ev(ptr noundef nonnull align 8 dereferenceable(8200) %0) #10
  resume { ptr, i32 } %.pn66.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #6 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn nounwind "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 = { "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 = { nobuiltin allocsize(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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { 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 #7 = { nobuiltin nounwind "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 #8 = { nounwind "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 #9 = { builtin allocsize(0) }
attributes #10 = { nounwind }
attributes #11 = { noreturn nounwind }
attributes #12 = { builtin 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, !14, i64 304}
!10 = !{!"_ZTS9uca_org_t", !6, i64 0, !6, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !12, i64 48, !11, i64 168, !11, i64 176, !11, i64 184, !7, i64 192, !11, i64 296, !14, i64 304, !15, i64 312, !15, i64 4256}
!11 = !{!"double", !7, i64 0}
!12 = !{!"_ZTS8powerDef", !13, i64 0, !13, i64 40, !13, i64 80}
!13 = !{!"_ZTS15powerComponents", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"_ZTS17results_mem_array", !16, i64 0, !16, i64 4, !11, i64 8, !16, i64 16, !16, i64 20, !16, i64 24, !16, i64 28, !16, i64 32, !16, i64 36, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !11, i64 96, !11, i64 104, !11, i64 112, !11, i64 120, !11, i64 128, !11, i64 136, !11, i64 144, !11, i64 152, !11, i64 160, !11, i64 168, !11, i64 176, !11, i64 184, !11, i64 192, !11, i64 200, !11, i64 208, !11, i64 216, !11, i64 224, !11, i64 232, !11, i64 240, !11, i64 248, !11, i64 256, !11, i64 264, !12, i64 272, !12, i64 392, !12, i64 512, !12, i64 632, !12, i64 752, !12, i64 872, !12, i64 992, !12, i64 1112, !12, i64 1232, !12, i64 1352, !12, i64 1472, !12, i64 1592, !12, i64 1712, !12, i64 1832, !12, i64 1952, !12, i64 2072, !12, i64 2192, !12, i64 2312, !12, i64 2432, !12, i64 2552, !12, i64 2672, !12, i64 2792, !12, i64 2912, !12, i64 3032, !12, i64 3152, !12, i64 3272, !12, i64 3392, !12, i64 3512, !12, i64 3632, !11, i64 3752, !11, i64 3760, !11, i64 3768, !11, i64 3776, !11, i64 3784, !11, i64 3792, !11, i64 3800, !11, i64 3808, !11, i64 3816, !11, i64 3824, !11, i64 3832, !11, i64 3840, !11, i64 3848, !11, i64 3856, !11, i64 3864, !11, i64 3872, !11, i64 3880, !11, i64 3888, !11, i64 3896, !11, i64 3904, !11, i64 3912, !11, i64 3920, !11, i64 3928, !11, i64 3936}
!16 = !{!"int", !7, i64 0}
!17 = !{!18, !16, i64 112}
!18 = !{!"_ZTS14InputParameter", !16, i64 0, !16, i64 4, !16, i64 8, !16, i64 12, !16, i64 16, !14, i64 20, !16, i64 24, !16, i64 28, !16, i64 32, !16, i64 36, !16, i64 40, !16, i64 44, !11, i64 48, !11, i64 56, !16, i64 64, !16, i64 68, !16, i64 72, !16, i64 76, !16, i64 80, !14, i64 84, !14, i64 85, !14, i64 86, !14, i64 87, !14, i64 88, !16, i64 92, !16, i64 96, !16, i64 100, !16, i64 104, !16, i64 108, !16, i64 112, !16, i64 116, !16, i64 120, !16, i64 124, !16, i64 128, !16, i64 132, !16, i64 136, !16, i64 140, !16, i64 144, !16, i64 148, !19, i64 152, !16, i64 156, !14, i64 160, !16, i64 164, !16, i64 168, !16, i64 172, !16, i64 176, !16, i64 180, !16, i64 184, !16, i64 188, !14, i64 192, !16, i64 196, !16, i64 200, !16, i64 204, !16, i64 208, !16, i64 212, !16, i64 216, !16, i64 220, !16, i64 224, !16, i64 228, !16, i64 232, !16, i64 236, !16, i64 240, !16, i64 244, !16, i64 248, !16, i64 252, !16, i64 256, !16, i64 260, !16, i64 264, !16, i64 268, !16, i64 272, !16, i64 276, !16, i64 280, !16, i64 284, !16, i64 288, !16, i64 292, !16, i64 296, !14, i64 300, !16, i64 304, !16, i64 308, !16, i64 312, !14, i64 316, !14, i64 317, !16, i64 320, !16, i64 324, !14, i64 328, !11, i64 336, !11, i64 344, !14, i64 352, !16, i64 356, !16, i64 360, !14, i64 364}
!19 = !{!"_ZTS9Wire_type", !7, i64 0}
!20 = !{!18, !16, i64 116}
!21 = !{!18, !16, i64 120}
!22 = !{!18, !16, i64 124}
!23 = !{!18, !16, i64 140}
!24 = !{!18, !16, i64 144}
!25 = !{!18, !16, i64 148}
!26 = !{!18, !16, i64 128}
!27 = !{!18, !16, i64 132}
!28 = !{!18, !16, i64 136}
!29 = !{!18, !16, i64 0}
!30 = !{!18, !16, i64 4}
!31 = !{!18, !16, i64 8}
!32 = !{!18, !16, i64 12}
!33 = !{!18, !16, i64 16}
!34 = !{!18, !14, i64 20}
!35 = !{!18, !16, i64 28}
!36 = !{!18, !16, i64 212}
!37 = !{!18, !16, i64 216}
!38 = !{!18, !16, i64 220}
!39 = !{!18, !16, i64 228}
!40 = !{!18, !16, i64 224}
!41 = !{!18, !16, i64 252}
!42 = !{!18, !16, i64 256}
!43 = !{!18, !16, i64 260}
!44 = !{!18, !16, i64 268}
!45 = !{!18, !16, i64 264}
!46 = !{!18, !16, i64 100}
!47 = !{!18, !16, i64 292}
!48 = !{!18, !11, i64 48}
!49 = !{!18, !11, i64 56}
!50 = !{!14, !14, i64 0}
!51 = !{!18, !14, i64 88}
!52 = !{!18, !16, i64 92}
!53 = !{!18, !16, i64 96}
!54 = !{!18, !16, i64 64}
!55 = !{!18, !16, i64 68}
!56 = !{!18, !16, i64 72}
!57 = !{!18, !16, i64 76}
!58 = !{!18, !16, i64 80}
!59 = !{!18, !16, i64 324}
!60 = !{!18, !16, i64 296}
!61 = !{!18, !19, i64 152}
!62 = !{!18, !16, i64 156}
!63 = !{!18, !14, i64 192}
!64 = !{!18, !16, i64 168}
!65 = !{!18, !16, i64 172}
!66 = !{!18, !16, i64 176}
!67 = !{!18, !16, i64 188}
!68 = !{!18, !16, i64 180}
!69 = !{!18, !16, i64 184}
!70 = !{!18, !14, i64 328}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,MergedLoadStoreMotionPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass