; LLVM IR from OpenFAST/openfast :: modules/map/src (mapapi)

; 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"

%struct.MAP_InitInputType = type { ptr, double, double, double, [255 x i8], [255 x i8], [255 x i8], [255 x i8], [255 x i8], [255 x i8] }
%struct.MAP_OtherStateType = type { ptr, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32 }
%struct.Domain_t = type { %struct.InnerSolveAttributes_t, %struct.OuterSolveAttributes_t, %struct.DomainOptions_t, ptr, i32, %struct.Vessel_t, %struct.list_t, %struct.list_t, %struct.list_t, %struct.list_t, ptr }
%struct.InnerSolveAttributes_t = type { ptr, double, double, double, [2 x double], [2 x double], [4 x double], [2 x double], [2 x double], [2 x double], [2 x double], [2 x double], [2 x double], double, i32, i32, i32, i32, i32, [2 x i32], i32, i32 }
%struct.OuterSolveAttributes_t = type { i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, double, double, double, double, double, double, i8, i8, i8, i32, i32, i32 }
%struct.DomainOptions_t = type { ptr, double, double, double, i8, i8, i32 }
%struct.Vessel_t = type { %struct.EulerAngle_t, ptr, ptr, ptr, %struct.Point_t, %struct.Point_t, %struct.Force_t }
%struct.EulerAngle_t = type { %struct.VarType_t, %struct.VarType_t, %struct.VarType_t }
%struct.VarType_t = type { ptr, ptr, double, i8, i8, i32, i32 }
%struct.Point_t = type { %struct.VarType_t, %struct.VarType_t, %struct.VarType_t }
%struct.Force_t = type { %struct.VarType_t, %struct.VarType_t, %struct.VarType_t }
%struct.list_t = type { ptr, ptr, ptr, i32, ptr, i32, i32, i32, ptr, %struct.list_attributes_s }
%struct.list_attributes_s = type { ptr, ptr, ptr, i32, ptr, ptr, ptr }
%struct.OutputList_t = type { %struct.list_t, %struct.list_t }
%struct.InitializationData_t = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.MAP_ConstraintStateType = type { ptr, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32 }
%struct.MAP_ParameterType = type { ptr, double, double, double, double, i32 }

@.str = external hidden unnamed_addr constant [50 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [19 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

declare i32 @list_init(ptr noundef) #1

declare i32 @list_attributes_copy(ptr noundef, ptr noundef, 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: nounwind uwtable
define dso_local void @map_init(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10) #2 {
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  store ptr %0, ptr %12, align 8, !tbaa !5
  store ptr %1, ptr %13, align 8, !tbaa !5
  store ptr %2, ptr %14, align 8, !tbaa !5
  store ptr %3, ptr %15, align 8, !tbaa !5
  store ptr %4, ptr %16, align 8, !tbaa !5
  store ptr %5, ptr %17, align 8, !tbaa !5
  store ptr %6, ptr %18, align 8, !tbaa !5
  store ptr %7, ptr %19, align 8, !tbaa !5
  store ptr %8, ptr %20, align 8, !tbaa !5
  store ptr %9, ptr %21, align 8, !tbaa !5
  store ptr %10, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #3
  %26 = load ptr, ptr %12, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.MAP_InitInputType, ptr %26, i32 0, i32 0
  %28 = load ptr, ptr %27, align 8, !tbaa !9
  store ptr %28, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #3
  %29 = load ptr, ptr %18, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.MAP_OtherStateType, ptr %29, i32 0, i32 0
  %31 = load ptr, ptr %30, align 8, !tbaa !12
  store ptr %31, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #3
  store i32 0, ptr %25, align 4, !tbaa !15
  %32 = load ptr, ptr %22, align 8, !tbaa !5
  %33 = load ptr, ptr %21, align 8, !tbaa !5
  call void @map_reset_universal_error(ptr noundef %32, ptr noundef %33)
  %34 = load ptr, ptr %13, align 8, !tbaa !5
  %35 = load ptr, ptr %24, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.Domain_t, ptr %35, i32 0, i32 10
  store ptr %34, ptr %36, align 8, !tbaa !16
  br label %37

37:                                               ; preds = %11
  %38 = load ptr, ptr %20, align 8, !tbaa !5
  %39 = call i32 @map_get_version(ptr noundef %38)
  store i32 %39, ptr %25, align 4, !tbaa !15
  %40 = load ptr, ptr %24, align 8, !tbaa !5
  %41 = load ptr, ptr %22, align 8, !tbaa !5
  %42 = load ptr, ptr %21, align 8, !tbaa !5
  %43 = call i32 @allocate_outlist(ptr noundef %40, ptr noundef %41, ptr noundef %42)
  store i32 %43, ptr %25, align 4, !tbaa !15
  %44 = load i32, ptr %25, align 4, !tbaa !15
  %45 = icmp ne i32 %44, 0
  br i1 %45, label %46, label %49

46:                                               ; preds = %37
  %47 = load ptr, ptr %22, align 8, !tbaa !5
  %48 = load ptr, ptr %21, align 8, !tbaa !5
  call void @set_universal_error(ptr noundef %47, ptr noundef %48, i32 noundef 47)
  br label %267

49:                                               ; preds = %37
  %50 = load ptr, ptr %24, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.Domain_t, ptr %50, i32 0, i32 3
  %52 = load ptr, ptr %51, align 8, !tbaa !29
  %53 = getelementptr inbounds %struct.OutputList_t, ptr %52, i32 0, i32 0
  %54 = call i32 @list_init(ptr noundef %53)
  %55 = load ptr, ptr %24, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.Domain_t, ptr %55, i32 0, i32 3
  %57 = load ptr, ptr %56, align 8, !tbaa !29
  %58 = getelementptr inbounds %struct.OutputList_t, ptr %57, i32 0, i32 1
  %59 = call i32 @list_init(ptr noundef %58)
  %60 = load ptr, ptr %24, align 8, !tbaa !5
  %61 = load ptr, ptr %23, align 8, !tbaa !5
  %62 = load ptr, ptr %22, align 8, !tbaa !5
  %63 = load ptr, ptr %21, align 8, !tbaa !5
  %64 = call i32 @set_model_options_list(ptr noundef %60, ptr noundef %61, ptr noundef %62, ptr noundef %63)
  store i32 %64, ptr %25, align 4, !tbaa !15
  %65 = load i32, ptr %25, align 4, !tbaa !15
  %66 = icmp ne i32 %65, 0
  br i1 %66, label %67, label %70

67:                                               ; preds = %49
  %68 = load ptr, ptr %22, align 8, !tbaa !5
  %69 = load ptr, ptr %21, align 8, !tbaa !5
  call void @set_universal_error(ptr noundef %68, ptr noundef %69, i32 noundef 33)
  br label %267

70:                                               ; preds = %49
  %71 = load ptr, ptr %24, align 8, !tbaa !5
  %72 = load ptr, ptr %23, align 8, !tbaa !5
  %73 = load ptr, ptr %22, align 8, !tbaa !5
  %74 = load ptr, ptr %21, align 8, !tbaa !5
  %75 = call i32 @set_cable_library_list(ptr noundef %71, ptr noundef %72, ptr noundef %73, ptr noundef %74)
  store i32 %75, ptr %25, align 4, !tbaa !15
  %76 = load i32, ptr %25, align 4, !tbaa !15
  %77 = icmp ne i32 %76, 0
  br i1 %77, label %78, label %81

78:                                               ; preds = %70
  %79 = load ptr, ptr %22, align 8, !tbaa !5
  %80 = load ptr, ptr %21, align 8, !tbaa !5
  call void @set_universal_error(ptr noundef %79, ptr noundef %80, i32 noundef 16)
  br label %267

81:                                               ; preds = %70
  %82 = load ptr, ptr %24, align 8, !tbaa !5
  %83 = load ptr, ptr %23, align 8, !tbaa !5
  %84 = load ptr, ptr %22, align 8, !tbaa !5
  %85 = load ptr, ptr %21, align 8, !tbaa !5
  %86 = call i32 @repeat_nodes(ptr noundef %82, ptr noundef %83, ptr noundef %84, ptr noundef %85)
  store i32 %86, ptr %25, align 4, !tbaa !15
  %87 = load ptr, ptr %24, align 8, !tbaa !5
  %88 = load ptr, ptr %23, align 8, !tbaa !5
  %89 = load ptr, ptr %22, align 8, !tbaa !5
  %90 = load ptr, ptr %21, align 8, !tbaa !5
  %91 = call i32 @repeat_lines(ptr noundef %87, ptr noundef %88, ptr noundef %89, ptr noundef %90)
  store i32 %91, ptr %25, align 4, !tbaa !15
  %92 = load ptr, ptr %14, align 8, !tbaa !5
  %93 = load ptr, ptr %13, align 8, !tbaa !5
  %94 = load ptr, ptr %17, align 8, !tbaa !5
  %95 = load ptr, ptr %18, align 8, !tbaa !5
  %96 = load ptr, ptr %19, align 8, !tbaa !5
  %97 = load ptr, ptr %24, align 8, !tbaa !5
  %98 = load ptr, ptr %23, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.InitializationData_t, ptr %98, i32 0, i32 4
  %100 = load ptr, ptr %99, align 8, !tbaa !30
  %101 = load ptr, ptr %22, align 8, !tbaa !5
  %102 = load ptr, ptr %21, align 8, !tbaa !5
  %103 = call i32 @set_node_list(ptr noundef %92, ptr noundef %93, ptr noundef %94, ptr noundef %95, ptr noundef %96, ptr noundef %97, ptr noundef %100, ptr noundef %101, ptr noundef %102)
  store i32 %103, ptr %25, align 4, !tbaa !15
  %104 = load i32, ptr %25, align 4, !tbaa !15
  %105 = icmp ne i32 %104, 0
  br i1 %105, label %106, label %109

106:                                              ; preds = %81
  %107 = load ptr, ptr %22, align 8, !tbaa !5
  %108 = load ptr, ptr %21, align 8, !tbaa !5
  call void @set_universal_error(ptr noundef %107, ptr noundef %108, i32 noundef 16)
  br label %267

109:                                              ; preds = %81
  %110 = load ptr, ptr %17, align 8, !tbaa !5
  %111 = load ptr, ptr %24, align 8, !tbaa !5
  %112 = load ptr, ptr %23, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.InitializationData_t, ptr %112, i32 0, i32 5
  %114 = load ptr, ptr %113, align 8, !tbaa !32
  %115 = load ptr, ptr %22, align 8, !tbaa !5
  %116 = load ptr, ptr %21, align 8, !tbaa !5
  %117 = call i32 @set_line_list(ptr noundef %110, ptr noundef %111, ptr noundef %114, ptr noundef %115, ptr noundef %116)
  store i32 %117, ptr %25, align 4, !tbaa !15
  %118 = load i32, ptr %25, align 4, !tbaa !15
  %119 = icmp ne i32 %118, 0
  br i1 %119, label %120, label %123

120:                                              ; preds = %109
  %121 = load ptr, ptr %22, align 8, !tbaa !5
  %122 = load ptr, ptr %21, align 8, !tbaa !5
  call void @set_universal_error(ptr noundef %121, ptr noundef %122, i32 noundef 16)
  br label %267

123:                                              ; preds = %109
  %124 = load ptr, ptr %24, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.Domain_t, ptr %124, i32 0, i32 3
  %126 = load ptr, ptr %125, align 8, !tbaa !29
  %127 = getelementptr inbounds %struct.OutputList_t, ptr %126, i32 0, i32 0
  %128 = call i32 @list_attributes_copy(ptr noundef %127, ptr noundef @vartype_meter, i32 noundef 1)
  %129 = load ptr, ptr %24, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.Domain_t, ptr %129, i32 0, i32 3
  %131 = load ptr, ptr %130, align 8, !tbaa !29
  %132 = getelementptr inbounds %struct.OutputList_t, ptr %131, i32 0, i32 1
  %133 = call i32 @list_attributes_copy(ptr noundef %132, ptr noundef @vartype_ptr_meter, i32 noundef 1)
  %134 = load ptr, ptr %24, align 8, !tbaa !5
  %135 = load ptr, ptr %20, align 8, !tbaa !5
  %136 = load ptr, ptr %22, align 8, !tbaa !5
  %137 = load ptr, ptr %21, align 8, !tbaa !5
  %138 = call i32 @set_output_list(ptr noundef %134, ptr noundef %135, ptr noundef %136, ptr noundef %137)
  store i32 %138, ptr %25, align 4, !tbaa !15
  %139 = load ptr, ptr %24, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.Domain_t, ptr %139, i32 0, i32 5
  %141 = load ptr, ptr %13, align 8, !tbaa !5
  %142 = load ptr, ptr %22, align 8, !tbaa !5
  %143 = load ptr, ptr %21, align 8, !tbaa !5
  %144 = call i32 @set_vessel(ptr noundef %140, ptr noundef %141, ptr noundef %142, ptr noundef %143)
  store i32 %144, ptr %25, align 4, !tbaa !15
  %145 = load i32, ptr %25, align 4, !tbaa !15
  %146 = icmp ne i32 %145, 0
  br i1 %146, label %147, label %150

147:                                              ; preds = %123
  %148 = load ptr, ptr %22, align 8, !tbaa !5
  %149 = load ptr, ptr %21, align 8, !tbaa !5
  call void @set_universal_error(ptr noundef %148, ptr noundef %149, i32 noundef 69)
  br label %267

150:                                              ; preds = %123
  %151 = load ptr, ptr %24, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.Domain_t, ptr %151, i32 0, i32 2
  %153 = getelementptr inbounds %struct.DomainOptions_t, ptr %152, i32 0, i32 5
  %154 = load i8, ptr %153, align 1, !tbaa !33, !range !34, !noundef !35
  %155 = trunc i8 %154 to i1
  br i1 %155, label %156, label %159

156:                                              ; preds = %150
  %157 = load ptr, ptr %24, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.Domain_t, ptr %157, i32 0, i32 4
  store i32 2, ptr %158, align 8, !tbaa !36
  br label %185

159:                                              ; preds = %150
  %160 = load ptr, ptr %17, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.MAP_ConstraintStateType, ptr %160, i32 0, i32 6
  %162 = load i32, ptr %161, align 8, !tbaa !37
  %163 = icmp ne i32 %162, 0
  br i1 %163, label %164, label %181

164:                                              ; preds = %159
  %165 = load ptr, ptr %24, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.Domain_t, ptr %165, i32 0, i32 1
  %167 = load ptr, ptr %17, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.MAP_ConstraintStateType, ptr %167, i32 0, i32 6
  %169 = load i32, ptr %168, align 8, !tbaa !37
  %170 = load ptr, ptr %22, align 8, !tbaa !5
  %171 = load ptr, ptr %21, align 8, !tbaa !5
  %172 = call i32 @allocate_outer_solve_data(ptr noundef %166, i32 noundef %169, ptr noundef %170, ptr noundef %171)
  store i32 %172, ptr %25, align 4, !tbaa !15
  %173 = load i32, ptr %25, align 4, !tbaa !15
  %174 = icmp ne i32 %173, 0
  br i1 %174, label %175, label %178

175:                                              ; preds = %164
  %176 = load ptr, ptr %22, align 8, !tbaa !5
  %177 = load ptr, ptr %21, align 8, !tbaa !5
  call void @set_universal_error(ptr noundef %176, ptr noundef %177, i32 noundef 72)
  br label %267

178:                                              ; preds = %164
  %179 = load ptr, ptr %24, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.Domain_t, ptr %179, i32 0, i32 4
  store i32 1, ptr %180, align 8, !tbaa !36
  br label %184

181:                                              ; preds = %159
  %182 = load ptr, ptr %24, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.Domain_t, ptr %182, i32 0, i32 4
  store i32 0, ptr %183, align 8, !tbaa !36
  br label %184

184:                                              ; preds = %181, %178
  br label %185

185:                                              ; preds = %184, %156
  %186 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  %187 = load ptr, ptr %14, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.MAP_ParameterType, ptr %187, i32 0, i32 1
  %189 = load double, ptr %188, align 8, !tbaa !39
  %190 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %189)
  %191 = load ptr, ptr %14, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.MAP_ParameterType, ptr %191, i32 0, i32 3
  %193 = load double, ptr %192, align 8, !tbaa !41
  %194 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %193)
  %195 = load ptr, ptr %14, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.MAP_ParameterType, ptr %195, i32 0, i32 2
  %197 = load double, ptr %196, align 8, !tbaa !42
  %198 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %197)
  %199 = load ptr, ptr %24, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.Domain_t, ptr %199, i32 0, i32 5
  %201 = getelementptr inbounds %struct.Vessel_t, ptr %200, i32 0, i32 5
  %202 = getelementptr inbounds %struct.Point_t, ptr %201, i32 0, i32 0
  %203 = getelementptr inbounds %struct.VarType_t, ptr %202, i32 0, i32 2
  %204 = load double, ptr %203, align 8, !tbaa !43
  %205 = load ptr, ptr %24, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.Domain_t, ptr %205, i32 0, i32 5
  %207 = getelementptr inbounds %struct.Vessel_t, ptr %206, i32 0, i32 5
  %208 = getelementptr inbounds %struct.Point_t, ptr %207, i32 0, i32 1
  %209 = getelementptr inbounds %struct.VarType_t, ptr %208, i32 0, i32 2
  %210 = load double, ptr %209, align 8, !tbaa !44
  %211 = load ptr, ptr %24, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.Domain_t, ptr %211, i32 0, i32 5
  %213 = getelementptr inbounds %struct.Vessel_t, ptr %212, i32 0, i32 5
  %214 = getelementptr inbounds %struct.Point_t, ptr %213, i32 0, i32 2
  %215 = getelementptr inbounds %struct.VarType_t, ptr %214, i32 0, i32 2
  %216 = load double, ptr %215, align 8, !tbaa !45
  %217 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %204, double noundef %210, double noundef %216)
  %218 = load ptr, ptr %24, align 8, !tbaa !5
  %219 = load ptr, ptr %14, align 8, !tbaa !5
  %220 = load ptr, ptr %22, align 8, !tbaa !5
  %221 = load ptr, ptr %21, align 8, !tbaa !5
  %222 = call i32 @initialize_cable_library_variables(ptr noundef %218, ptr noundef %219, ptr noundef %220, ptr noundef %221)
  store i32 %222, ptr %25, align 4, !tbaa !15
  %223 = load i32, ptr %25, align 4, !tbaa !15
  %224 = icmp ne i32 %223, 0
  br i1 %224, label %225, label %228

225:                                              ; preds = %185
  %226 = load ptr, ptr %22, align 8, !tbaa !5
  %227 = load ptr, ptr %21, align 8, !tbaa !5
  call void @set_universal_error(ptr noundef %226, ptr noundef %227, i32 noundef 41)
  br label %267

228:                                              ; preds = %185
  %229 = load ptr, ptr %24, align 8, !tbaa !5
  %230 = load ptr, ptr %22, align 8, !tbaa !5
  %231 = load ptr, ptr %21, align 8, !tbaa !5
  %232 = call i32 @set_line_variables_pre_solve(ptr noundef %229, ptr noundef %230, ptr noundef %231)
  store i32 %232, ptr %25, align 4, !tbaa !15
  %233 = load i32, ptr %25, align 4, !tbaa !15
  %234 = icmp ne i32 %233, 0
  br i1 %234, label %235, label %238

235:                                              ; preds = %228
  %236 = load ptr, ptr %22, align 8, !tbaa !5
  %237 = load ptr, ptr %21, align 8, !tbaa !5
  call void @set_universal_error(ptr noundef %236, ptr noundef %237, i32 noundef 86)
  br label %267

238:                                              ; preds = %228
  %239 = load ptr, ptr %24, align 8, !tbaa !5
  %240 = load ptr, ptr %22, align 8, !tbaa !5
  %241 = load ptr, ptr %21, align 8, !tbaa !5
  %242 = call i32 @reset_node_force_to_zero(ptr noundef %239, ptr noundef %240, ptr noundef %241)
  store i32 %242, ptr %25, align 4, !tbaa !15
  %243 = load ptr, ptr %24, align 8, !tbaa !5
  %244 = load ptr, ptr %22, align 8, !tbaa !5
  %245 = load ptr, ptr %21, align 8, !tbaa !5
  %246 = call i32 @set_line_initial_guess(ptr noundef %243, ptr noundef %244, ptr noundef %245)
  store i32 %246, ptr %25, align 4, !tbaa !15
  %247 = load ptr, ptr %24, align 8, !tbaa !5
  %248 = load ptr, ptr %14, align 8, !tbaa !5
  %249 = load ptr, ptr %13, align 8, !tbaa !5
  %250 = load ptr, ptr %17, align 8, !tbaa !5
  %251 = load ptr, ptr %18, align 8, !tbaa !5
  %252 = load ptr, ptr %19, align 8, !tbaa !5
  %253 = load ptr, ptr %22, align 8, !tbaa !5
  %254 = load ptr, ptr %21, align 8, !tbaa !5
  %255 = call i32 @first_solve(ptr noundef %247, ptr noundef %248, ptr noundef %249, ptr noundef %250, ptr noundef %251, ptr noundef %252, ptr noundef %253, ptr noundef %254)
  store i32 %255, ptr %25, align 4, !tbaa !15
  %256 = load i32, ptr %25, align 4, !tbaa !15
  %257 = icmp ne i32 %256, 0
  br i1 %257, label %258, label %261

258:                                              ; preds = %238
  %259 = load ptr, ptr %22, align 8, !tbaa !5
  %260 = load ptr, ptr %21, align 8, !tbaa !5
  call void @set_universal_error(ptr noundef %259, ptr noundef %260, i32 noundef 39)
  br label %267

261:                                              ; preds = %238
  %262 = load ptr, ptr %24, align 8, !tbaa !5
  %263 = load ptr, ptr %22, align 8, !tbaa !5
  %264 = load ptr, ptr %21, align 8, !tbaa !5
  %265 = call i32 @set_line_variables_post_solve(ptr noundef %262, ptr noundef %263, ptr noundef %264)
  store i32 %265, ptr %25, align 4, !tbaa !15
  br label %266

266:                                              ; preds = %261
  br label %267

267:                                              ; preds = %266, %258, %235, %225, %175, %147, %120, %106, %78, %67, %46
  %268 = load ptr, ptr %12, align 8, !tbaa !5
  %269 = load ptr, ptr %14, align 8, !tbaa !5
  %270 = load ptr, ptr %19, align 8, !tbaa !5
  %271 = load ptr, ptr %18, align 8, !tbaa !5
  %272 = load ptr, ptr %24, align 8, !tbaa !5
  %273 = load ptr, ptr %22, align 8, !tbaa !5
  %274 = load ptr, ptr %21, align 8, !tbaa !5
  call void @log_initialization_information(ptr noundef %268, ptr noundef %269, ptr noundef %270, ptr noundef %271, ptr noundef %272, ptr noundef %273, ptr noundef %274)
  %275 = load ptr, ptr %23, align 8, !tbaa !5
  %276 = load ptr, ptr %22, align 8, !tbaa !5
  %277 = load ptr, ptr %21, align 8, !tbaa !5
  %278 = call i32 @free_init_data(ptr noundef %275, ptr noundef %276, ptr noundef %277)
  %279 = load ptr, ptr %23, align 8, !tbaa !5
  call void @MAP_InitInput_Delete(ptr noundef %279)
  %280 = load ptr, ptr %21, align 8, !tbaa !5
  %281 = load i32, ptr %280, align 4, !tbaa !15
  %282 = icmp ne i32 %281, 0
  br i1 %282, label %283, label %286

283:                                              ; preds = %267
  %284 = load ptr, ptr %22, align 8, !tbaa !5
  %285 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %284)
  br label %286

286:                                              ; preds = %283, %267
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  ret void
}

declare void @map_reset_universal_error(ptr noundef, ptr noundef) #1

declare i32 @map_get_version(ptr noundef) #1

declare i32 @allocate_outlist(ptr noundef, ptr noundef, ptr noundef) #1

declare void @set_universal_error(ptr noundef, ptr noundef, i32 noundef) #1

declare i32 @set_model_options_list(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare i32 @set_cable_library_list(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare i32 @repeat_nodes(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare i32 @repeat_lines(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare i32 @set_node_list(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare i32 @set_line_list(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare i64 @vartype_meter(ptr noundef) #1

declare i64 @vartype_ptr_meter(ptr noundef) #1

declare i32 @set_output_list(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare i32 @set_vessel(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare i32 @allocate_outer_solve_data(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1

declare i32 @printf(ptr noundef, ...) #1

declare i32 @initialize_cable_library_variables(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare i32 @set_line_variables_pre_solve(ptr noundef, ptr noundef, ptr noundef) #1

declare i32 @reset_node_force_to_zero(ptr noundef, ptr noundef, ptr noundef) #1

declare i32 @set_line_initial_guess(ptr noundef, ptr noundef, ptr noundef) #1

declare i32 @first_solve(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare i32 @set_line_variables_post_solve(ptr noundef, ptr noundef, ptr noundef) #1

declare void @log_initialization_information(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @free_init_data(ptr noundef, ptr noundef, ptr noundef) #2

declare void @MAP_InitInput_Delete(ptr 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 = { 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 #3 = { 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/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"MAP_InitInputType", !6, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !7, i64 32, !7, i64 287, !7, i64 542, !7, i64 797, !7, i64 1052, !7, i64 1307}
!11 = !{!"double", !7, i64 0}
!12 = !{!13, !6, i64 0}
!13 = !{!"MAP_OtherStateType", !6, i64 0, !6, i64 8, !14, i64 16, !6, i64 24, !14, i64 32, !6, i64 40, !14, i64 48, !6, i64 56, !14, i64 64, !6, i64 72, !14, i64 80, !6, i64 88, !14, i64 96, !6, i64 104, !14, i64 112, !6, i64 120, !14, i64 128, !6, i64 136, !14, i64 144, !6, i64 152, !14, i64 160, !6, i64 168, !14, i64 176, !6, i64 184, !14, i64 192, !6, i64 200, !14, i64 208, !6, i64 216, !14, i64 224, !6, i64 232, !14, i64 240, !6, i64 248, !14, i64 256}
!14 = !{!"int", !7, i64 0}
!15 = !{!14, !14, i64 0}
!16 = !{!17, !6, i64 1448}
!17 = !{!"Domain_t", !18, i64 0, !19, i64 240, !21, i64 408, !6, i64 448, !14, i64 456, !22, i64 464, !27, i64 968, !27, i64 1088, !27, i64 1208, !27, i64 1328, !6, i64 1448}
!18 = !{!"InnerSolveAttributes_t", !6, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !7, i64 32, !7, i64 48, !7, i64 64, !7, i64 96, !7, i64 112, !7, i64 128, !7, i64 144, !7, i64 160, !7, i64 176, !11, i64 192, !14, i64 200, !14, i64 204, !14, i64 208, !14, i64 212, !14, i64 216, !7, i64 220, !14, i64 228, !14, i64 232}
!19 = !{!"OuterSolveAttributes_t", !14, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !11, i64 104, !11, i64 112, !11, i64 120, !11, i64 128, !11, i64 136, !11, i64 144, !20, i64 152, !20, i64 153, !20, i64 154, !14, i64 156, !14, i64 160, !14, i64 164}
!20 = !{!"_Bool", !7, i64 0}
!21 = !{!"DomainOptions_t", !6, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !20, i64 32, !20, i64 33, !14, i64 36}
!22 = !{!"Vessel_t", !23, i64 0, !6, i64 120, !6, i64 128, !6, i64 136, !25, i64 144, !25, i64 264, !26, i64 384}
!23 = !{!"EulerAngle_t", !24, i64 0, !24, i64 40, !24, i64 80}
!24 = !{!"VarType_t", !6, i64 0, !6, i64 8, !11, i64 16, !20, i64 24, !20, i64 25, !14, i64 28, !14, i64 32}
!25 = !{!"Point_t", !24, i64 0, !24, i64 40, !24, i64 80}
!26 = !{!"Force_t", !24, i64 0, !24, i64 40, !24, i64 80}
!27 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16, !14, i64 24, !6, i64 32, !14, i64 40, !14, i64 44, !14, i64 48, !6, i64 56, !28, i64 64}
!28 = !{!"list_attributes_s", !6, i64 0, !6, i64 8, !6, i64 16, !14, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!29 = !{!17, !6, i64 448}
!30 = !{!31, !6, i64 32}
!31 = !{!"InitializationData_t", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!32 = !{!31, !6, i64 40}
!33 = !{!17, !20, i64 441}
!34 = !{i8 0, i8 2}
!35 = !{}
!36 = !{!17, !14, i64 456}
!37 = !{!38, !14, i64 48}
!38 = !{!"MAP_ConstraintStateType", !6, i64 0, !6, i64 8, !14, i64 16, !6, i64 24, !14, i64 32, !6, i64 40, !14, i64 48, !6, i64 56, !14, i64 64, !6, i64 72, !14, i64 80}
!39 = !{!40, !11, i64 8}
!40 = !{!"MAP_ParameterType", !6, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !14, i64 40}
!41 = !{!40, !11, i64 24}
!42 = !{!40, !11, i64 16}
!43 = !{!17, !11, i64 744}
!44 = !{!17, !11, i64 784}
!45 = !{!17, !11, i64 824}


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

@.str = external hidden unnamed_addr constant [50 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [19 x i8], align 1

declare i32 @list_init(ptr noundef) local_unnamed_addr #0

declare i32 @list_attributes_copy(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @map_init(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr nocapture noundef readnone %3, ptr nocapture noundef readnone %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10) local_unnamed_addr #1 {
  %12 = load ptr, ptr %0, align 8, !tbaa !5
  %13 = load ptr, ptr %6, align 8, !tbaa !11
  tail call void @map_reset_universal_error(ptr noundef %10, ptr noundef %9) #3
  %14 = getelementptr inbounds i8, ptr %13, i64 1448
  store ptr %1, ptr %14, align 8, !tbaa !14
  %15 = tail call i32 @map_get_version(ptr noundef %8) #3
  %16 = tail call i32 @allocate_outlist(ptr noundef %13, ptr noundef %10, ptr noundef %9) #3
  %.not = icmp eq i32 %16, 0
  br i1 %.not, label %18, label %17

17:                                               ; preds = %11
  tail call void @set_universal_error(ptr noundef %10, ptr noundef %9, i32 noundef 47) #3
  br label %94

18:                                               ; preds = %11
  %19 = getelementptr inbounds i8, ptr %13, i64 448
  %20 = load ptr, ptr %19, align 8, !tbaa !27
  %21 = tail call i32 @list_init(ptr noundef %20) #3
  %22 = load ptr, ptr %19, align 8, !tbaa !27
  %23 = getelementptr inbounds i8, ptr %22, i64 120
  %24 = tail call i32 @list_init(ptr noundef nonnull %23) #3
  %25 = tail call i32 @set_model_options_list(ptr noundef nonnull %13, ptr noundef %12, ptr noundef %10, ptr noundef %9) #3
  %.not133 = icmp eq i32 %25, 0
  br i1 %.not133, label %27, label %26

26:                                               ; preds = %18
  tail call void @set_universal_error(ptr noundef %10, ptr noundef %9, i32 noundef 33) #3
  br label %94

27:                                               ; preds = %18
  %28 = tail call i32 @set_cable_library_list(ptr noundef nonnull %13, ptr noundef %12, ptr noundef %10, ptr noundef %9) #3
  %.not134 = icmp eq i32 %28, 0
  br i1 %.not134, label %30, label %29

29:                                               ; preds = %27
  tail call void @set_universal_error(ptr noundef %10, ptr noundef %9, i32 noundef 16) #3
  br label %94

30:                                               ; preds = %27
  %31 = tail call i32 @repeat_nodes(ptr noundef nonnull %13, ptr noundef %12, ptr noundef %10, ptr noundef %9) #3
  %32 = tail call i32 @repeat_lines(ptr noundef nonnull %13, ptr noundef %12, ptr noundef %10, ptr noundef %9) #3
  %33 = getelementptr inbounds i8, ptr %12, i64 32
  %34 = load ptr, ptr %33, align 8, !tbaa !28
  %35 = tail call i32 @set_node_list(ptr noundef %2, ptr noundef %1, ptr noundef %5, ptr noundef nonnull %6, ptr noundef %7, ptr noundef nonnull %13, ptr noundef %34, ptr noundef %10, ptr noundef %9) #3
  %.not135 = icmp eq i32 %35, 0
  br i1 %.not135, label %37, label %36

36:                                               ; preds = %30
  tail call void @set_universal_error(ptr noundef %10, ptr noundef %9, i32 noundef 16) #3
  br label %94

37:                                               ; preds = %30
  %38 = getelementptr inbounds i8, ptr %12, i64 40
  %39 = load ptr, ptr %38, align 8, !tbaa !30
  %40 = tail call i32 @set_line_list(ptr noundef %5, ptr noundef nonnull %13, ptr noundef %39, ptr noundef %10, ptr noundef %9) #3
  %.not136 = icmp eq i32 %40, 0
  br i1 %.not136, label %42, label %41

41:                                               ; preds = %37
  tail call void @set_universal_error(ptr noundef %10, ptr noundef %9, i32 noundef 16) #3
  br label %94

42:                                               ; preds = %37
  %43 = load ptr, ptr %19, align 8, !tbaa !27
  %44 = tail call i32 @list_attributes_copy(ptr noundef %43, ptr noundef nonnull @vartype_meter, i32 noundef 1) #3
  %45 = load ptr, ptr %19, align 8, !tbaa !27
  %46 = getelementptr inbounds i8, ptr %45, i64 120
  %47 = tail call i32 @list_attributes_copy(ptr noundef nonnull %46, ptr noundef nonnull @vartype_ptr_meter, i32 noundef 1) #3
  %48 = tail call i32 @set_output_list(ptr noundef nonnull %13, ptr noundef %8, ptr noundef %10, ptr noundef %9) #3
  %49 = getelementptr inbounds i8, ptr %13, i64 464
  %50 = tail call i32 @set_vessel(ptr noundef nonnull %49, ptr noundef %1, ptr noundef %10, ptr noundef %9) #3
  %.not137 = icmp eq i32 %50, 0
  br i1 %.not137, label %52, label %51

51:                                               ; preds = %42
  tail call void @set_universal_error(ptr noundef %10, ptr noundef %9, i32 noundef 69) #3
  br label %94

52:                                               ; preds = %42
  %53 = getelementptr inbounds i8, ptr %13, i64 441
  %54 = load i8, ptr %53, align 1, !tbaa !31, !range !32, !noundef !33
  %55 = trunc nuw i8 %54 to i1
  br i1 %55, label %63, label %56

56:                                               ; preds = %52
  %57 = getelementptr inbounds i8, ptr %5, i64 48
  %58 = load i32, ptr %57, align 8, !tbaa !34
  %.not138 = icmp eq i32 %58, 0
  br i1 %.not138, label %63, label %59

59:                                               ; preds = %56
  %60 = getelementptr inbounds i8, ptr %13, i64 240
  %61 = tail call i32 @allocate_outer_solve_data(ptr noundef nonnull %60, i32 noundef %58, ptr noundef %10, ptr noundef %9) #3
  %.not139 = icmp eq i32 %61, 0
  br i1 %.not139, label %63, label %62

62:                                               ; preds = %59
  tail call void @set_universal_error(ptr noundef %10, ptr noundef %9, i32 noundef 72) #3
  br label %94

63:                                               ; preds = %56, %59, %52
  %.sink = phi i32 [ 2, %52 ], [ 1, %59 ], [ 0, %56 ]
  %64 = getelementptr inbounds i8, ptr %13, i64 456
  store i32 %.sink, ptr %64, align 8, !tbaa !36
  %65 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %66 = getelementptr inbounds i8, ptr %2, i64 8
  %67 = load double, ptr %66, align 8, !tbaa !37
  %68 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, double noundef %67)
  %69 = getelementptr inbounds i8, ptr %2, i64 24
  %70 = load double, ptr %69, align 8, !tbaa !39
  %71 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, double noundef %70)
  %72 = getelementptr inbounds i8, ptr %2, i64 16
  %73 = load double, ptr %72, align 8, !tbaa !40
  %74 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, double noundef %73)
  %75 = getelementptr inbounds i8, ptr %13, i64 744
  %76 = load double, ptr %75, align 8, !tbaa !41
  %77 = getelementptr inbounds i8, ptr %13, i64 784
  %78 = load double, ptr %77, align 8, !tbaa !42
  %79 = getelementptr inbounds i8, ptr %13, i64 824
  %80 = load double, ptr %79, align 8, !tbaa !43
  %81 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef %76, double noundef %78, double noundef %80)
  %82 = tail call i32 @initialize_cable_library_variables(ptr noundef nonnull %13, ptr noundef %2, ptr noundef %10, ptr noundef %9) #3
  %.not140 = icmp eq i32 %82, 0
  br i1 %.not140, label %84, label %83

83:                                               ; preds = %63
  tail call void @set_universal_error(ptr noundef %10, ptr noundef %9, i32 noundef 41) #3
  br label %94

84:                                               ; preds = %63
  %85 = tail call i32 @set_line_variables_pre_solve(ptr noundef nonnull %13, ptr noundef %10, ptr noundef %9) #3
  %.not141 = icmp eq i32 %85, 0
  br i1 %.not141, label %87, label %86

86:                                               ; preds = %84
  tail call void @set_universal_error(ptr noundef %10, ptr noundef %9, i32 noundef 86) #3
  br label %94

87:                                               ; preds = %84
  %88 = tail call i32 @reset_node_force_to_zero(ptr noundef nonnull %13, ptr noundef %10, ptr noundef %9) #3
  %89 = tail call i32 @set_line_initial_guess(ptr noundef nonnull %13, ptr noundef %10, ptr noundef %9) #3
  %90 = tail call i32 @first_solve(ptr noundef nonnull %13, ptr noundef nonnull %2, ptr noundef %1, ptr noundef %5, ptr noundef nonnull %6, ptr noundef %7, ptr noundef %10, ptr noundef %9) #3
  %.not142 = icmp eq i32 %90, 0
  br i1 %.not142, label %92, label %91

91:                                               ; preds = %87
  tail call void @set_universal_error(ptr noundef %10, ptr noundef %9, i32 noundef 39) #3
  br label %94

92:                                               ; preds = %87
  %93 = tail call i32 @set_line_variables_post_solve(ptr noundef nonnull %13, ptr noundef %10, ptr noundef %9) #3
  br label %94

94:                                               ; preds = %92, %91, %86, %83, %62, %51, %41, %36, %29, %26, %17
  tail call void @log_initialization_information(ptr noundef nonnull %0, ptr noundef %2, ptr noundef %7, ptr noundef nonnull %6, ptr noundef nonnull %13, ptr noundef %10, ptr noundef %9) #3
  %95 = tail call i32 @free_init_data(ptr noundef %12, ptr noundef %10, ptr noundef %9)
  tail call void @MAP_InitInput_Delete(ptr noundef %12) #3
  %96 = load i32, ptr %9, align 4, !tbaa !44
  %.not143 = icmp eq i32 %96, 0
  br i1 %.not143, label %99, label %97

97:                                               ; preds = %94
  %98 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, ptr noundef %10)
  br label %99

99:                                               ; preds = %97, %94
  ret void
}

declare void @map_reset_universal_error(ptr noundef, ptr noundef) local_unnamed_addr #0

declare i32 @map_get_version(ptr noundef) local_unnamed_addr #0

declare i32 @allocate_outlist(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

declare void @set_universal_error(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

declare i32 @set_model_options_list(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

declare i32 @set_cable_library_list(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

declare i32 @repeat_nodes(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

declare i32 @repeat_lines(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

declare i32 @set_node_list(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

declare i32 @set_line_list(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

declare i64 @vartype_meter(ptr noundef) #0

declare i64 @vartype_ptr_meter(ptr noundef) #0

declare i32 @set_output_list(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

declare i32 @set_vessel(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

declare i32 @allocate_outer_solve_data(ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

declare i32 @initialize_cable_library_variables(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

declare i32 @set_line_variables_pre_solve(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

declare i32 @reset_node_force_to_zero(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

declare i32 @set_line_initial_guess(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

declare i32 @first_solve(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

declare i32 @set_line_variables_post_solve(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

declare void @log_initialization_information(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @free_init_data(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @MAP_InitInput_Delete(ptr noundef) local_unnamed_addr #0

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #2 = { nofree 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 #3 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"MAP_InitInputType", !7, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !8, i64 32, !8, i64 287, !8, i64 542, !8, i64 797, !8, i64 1052, !8, i64 1307}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!12, !7, i64 0}
!12 = !{!"MAP_OtherStateType", !7, i64 0, !7, i64 8, !13, i64 16, !7, i64 24, !13, i64 32, !7, i64 40, !13, i64 48, !7, i64 56, !13, i64 64, !7, i64 72, !13, i64 80, !7, i64 88, !13, i64 96, !7, i64 104, !13, i64 112, !7, i64 120, !13, i64 128, !7, i64 136, !13, i64 144, !7, i64 152, !13, i64 160, !7, i64 168, !13, i64 176, !7, i64 184, !13, i64 192, !7, i64 200, !13, i64 208, !7, i64 216, !13, i64 224, !7, i64 232, !13, i64 240, !7, i64 248, !13, i64 256}
!13 = !{!"int", !8, i64 0}
!14 = !{!15, !7, i64 1448}
!15 = !{!"Domain_t", !16, i64 0, !17, i64 240, !19, i64 408, !7, i64 448, !13, i64 456, !20, i64 464, !25, i64 968, !25, i64 1088, !25, i64 1208, !25, i64 1328, !7, i64 1448}
!16 = !{!"InnerSolveAttributes_t", !7, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !8, i64 32, !8, i64 48, !8, i64 64, !8, i64 96, !8, i64 112, !8, i64 128, !8, i64 144, !8, i64 160, !8, i64 176, !10, i64 192, !13, i64 200, !13, i64 204, !13, i64 208, !13, i64 212, !13, i64 216, !8, i64 220, !13, i64 228, !13, i64 232}
!17 = !{!"OuterSolveAttributes_t", !13, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !18, i64 152, !18, i64 153, !18, i64 154, !13, i64 156, !13, i64 160, !13, i64 164}
!18 = !{!"_Bool", !8, i64 0}
!19 = !{!"DomainOptions_t", !7, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !18, i64 32, !18, i64 33, !13, i64 36}
!20 = !{!"Vessel_t", !21, i64 0, !7, i64 120, !7, i64 128, !7, i64 136, !23, i64 144, !23, i64 264, !24, i64 384}
!21 = !{!"EulerAngle_t", !22, i64 0, !22, i64 40, !22, i64 80}
!22 = !{!"VarType_t", !7, i64 0, !7, i64 8, !10, i64 16, !18, i64 24, !18, i64 25, !13, i64 28, !13, i64 32}
!23 = !{!"Point_t", !22, i64 0, !22, i64 40, !22, i64 80}
!24 = !{!"Force_t", !22, i64 0, !22, i64 40, !22, i64 80}
!25 = !{!"", !7, i64 0, !7, i64 8, !7, i64 16, !13, i64 24, !7, i64 32, !13, i64 40, !13, i64 44, !13, i64 48, !7, i64 56, !26, i64 64}
!26 = !{!"list_attributes_s", !7, i64 0, !7, i64 8, !7, i64 16, !13, i64 24, !7, i64 32, !7, i64 40, !7, i64 48}
!27 = !{!15, !7, i64 448}
!28 = !{!29, !7, i64 32}
!29 = !{!"InitializationData_t", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48}
!30 = !{!29, !7, i64 40}
!31 = !{!15, !18, i64 441}
!32 = !{i8 0, i8 2}
!33 = !{}
!34 = !{!35, !13, i64 48}
!35 = !{!"MAP_ConstraintStateType", !7, i64 0, !7, i64 8, !13, i64 16, !7, i64 24, !13, i64 32, !7, i64 40, !13, i64 48, !7, i64 56, !13, i64 64, !7, i64 72, !13, i64 80}
!36 = !{!15, !13, i64 456}
!37 = !{!38, !10, i64 8}
!38 = !{!"MAP_ParameterType", !7, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !13, i64 40}
!39 = !{!38, !10, i64 24}
!40 = !{!38, !10, i64 16}
!41 = !{!15, !10, i64 744}
!42 = !{!15, !10, i64 784}
!43 = !{!15, !10, i64 824}
!44 = !{!13, !13, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass