; LLVM IR from CLASS-SZ/class_sz :: class-sz/source (nonlinear)

; 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.precision = type { double, double, double, double, double, double, double, double, double, double, double, double, double, [256 x i8], double, i32, double, i32, i32, double, i32, double, 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, i32, [256 x i8], [256 x i8], [256 x i8], double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, i32, double, double, i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, double, double, double, double, double, i32, double, double, i32, double, double, i32, double, i32, double, double, i32, double, double, double, i32, double, double, double, double, double, i32, double, double, double, double, double, double, double, 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, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, i32, double, double, double, double, i32, double, double, i32, i32, i32, double, double, [2048 x i8] }
%struct.nonlinear_workspace = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, double }
%struct.nonlinear = type { i32, i32, i32, double, double, double, i16, i32, i32, i32, ptr, i16, i16, i32, i32, i32, i32, i32, i16, i32, ptr, ptr, ptr, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, ptr, ptr, i32, i32, i32, i32, i32, ptr, ptr, ptr, i16, [2048 x i8] }

@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.188 = external hidden unnamed_addr constant [10 x i8], align 1
@__func__.nonlinear_hmcode_workspace_init = external hidden unnamed_addr constant [32 x i8], align 1
@.str.189 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.190 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.191 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.192 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.193 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.194 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.195 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.196 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.197 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.198 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.199 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.200 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.201 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.202 = external hidden unnamed_addr constant [47 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 void @class_protect_sprintf(ptr noundef, ptr 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 allocsize(0)
declare noalias ptr @malloc(i64 noundef) #2

; Function Attrs: nounwind uwtable
define dso_local i32 @nonlinear_hmcode_workspace_init(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #3 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca [2048 x i8], align 16
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca [2048 x i8], align 16
  %17 = alloca i32, align 4
  %18 = alloca [2048 x i8], align 16
  %19 = alloca i32, align 4
  %20 = alloca [2048 x i8], align 16
  %21 = alloca i32, align 4
  %22 = alloca [2048 x i8], align 16
  %23 = alloca i32, align 4
  %24 = alloca [2048 x i8], align 16
  %25 = alloca i32, align 4
  %26 = alloca [2048 x i8], align 16
  %27 = alloca i32, align 4
  %28 = alloca [2048 x i8], align 16
  %29 = alloca i32, align 4
  %30 = alloca [2048 x i8], align 16
  %31 = alloca i32, align 4
  %32 = alloca [2048 x i8], align 16
  %33 = alloca i32, align 4
  %34 = alloca [2048 x i8], align 16
  %35 = alloca i32, align 4
  %36 = alloca [2048 x i8], align 16
  %37 = alloca i32, align 4
  %38 = alloca [2048 x i8], align 16
  %39 = alloca i32, align 4
  %40 = alloca [2048 x i8], align 16
  %41 = alloca [2048 x i8], align 16
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.precision, ptr %42, i32 0, i32 163
  %44 = load i32, ptr %43, align 8, !tbaa !9
  %45 = sext i32 %44 to i64
  %46 = mul i64 %45, 8
  %47 = call noalias ptr @malloc(i64 noundef %46) #5
  %48 = load ptr, ptr %9, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.nonlinear_workspace, ptr %48, i32 0, i32 0
  store ptr %47, ptr %49, align 8, !tbaa !13
  %50 = load ptr, ptr %9, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.nonlinear_workspace, ptr %50, i32 0, i32 0
  %52 = load ptr, ptr %51, align 8, !tbaa !13
  %53 = icmp eq ptr %52, null
  br i1 %53, label %54, label %67

54:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %55 = load ptr, ptr %6, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.precision, ptr %55, i32 0, i32 163
  %57 = load i32, ptr %56, align 8, !tbaa !9
  %58 = sext i32 %57 to i64
  %59 = mul i64 %58, 8
  %60 = trunc i64 %59 to i32
  store i32 %60, ptr %12, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 2048, ptr %13) #4
  %61 = getelementptr inbounds [2048 x i8], ptr %13, i64 0, i64 0
  %62 = load i32, ptr %12, align 4, !tbaa !15
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %61, ptr noundef @.str.15, ptr noundef @.str.188, i32 noundef %62)
  %63 = load ptr, ptr %8, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.nonlinear, ptr %63, i32 0, i32 45
  %65 = getelementptr inbounds [2048 x i8], ptr %64, i64 0, i64 0
  %66 = getelementptr inbounds [2048 x i8], ptr %13, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %65, ptr noundef @.str.3, ptr noundef @__func__.nonlinear_hmcode_workspace_init, i32 noundef 3628, ptr noundef %66)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %13) #4
  store i32 1, ptr %5, align 4
  store i32 1, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %456

67:                                               ; preds = %4
  %68 = load ptr, ptr %6, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.precision, ptr %68, i32 0, i32 163
  %70 = load i32, ptr %69, align 8, !tbaa !9
  %71 = sext i32 %70 to i64
  %72 = mul i64 %71, 8
  %73 = call noalias ptr @malloc(i64 noundef %72) #5
  %74 = load ptr, ptr %9, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.nonlinear_workspace, ptr %74, i32 0, i32 1
  store ptr %73, ptr %75, align 8, !tbaa !16
  %76 = load ptr, ptr %9, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.nonlinear_workspace, ptr %76, i32 0, i32 1
  %78 = load ptr, ptr %77, align 8, !tbaa !16
  %79 = icmp eq ptr %78, null
  br i1 %79, label %80, label %93

80:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  %81 = load ptr, ptr %6, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.precision, ptr %81, i32 0, i32 163
  %83 = load i32, ptr %82, align 8, !tbaa !9
  %84 = sext i32 %83 to i64
  %85 = mul i64 %84, 8
  %86 = trunc i64 %85 to i32
  store i32 %86, ptr %15, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 2048, ptr %16) #4
  %87 = getelementptr inbounds [2048 x i8], ptr %16, i64 0, i64 0
  %88 = load i32, ptr %15, align 4, !tbaa !15
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %87, ptr noundef @.str.15, ptr noundef @.str.189, i32 noundef %88)
  %89 = load ptr, ptr %8, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.nonlinear, ptr %89, i32 0, i32 45
  %91 = getelementptr inbounds [2048 x i8], ptr %90, i64 0, i64 0
  %92 = getelementptr inbounds [2048 x i8], ptr %16, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %91, ptr noundef @.str.3, ptr noundef @__func__.nonlinear_hmcode_workspace_init, i32 noundef 3629, ptr noundef %92)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %16) #4
  store i32 1, ptr %5, align 4
  store i32 1, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %456

93:                                               ; preds = %67
  %94 = load ptr, ptr %6, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.precision, ptr %94, i32 0, i32 163
  %96 = load i32, ptr %95, align 8, !tbaa !9
  %97 = sext i32 %96 to i64
  %98 = mul i64 %97, 8
  %99 = call noalias ptr @malloc(i64 noundef %98) #5
  %100 = load ptr, ptr %9, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.nonlinear_workspace, ptr %100, i32 0, i32 2
  store ptr %99, ptr %101, align 8, !tbaa !17
  %102 = load ptr, ptr %9, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.nonlinear_workspace, ptr %102, i32 0, i32 2
  %104 = load ptr, ptr %103, align 8, !tbaa !17
  %105 = icmp eq ptr %104, null
  br i1 %105, label %106, label %119

106:                                              ; preds = %93
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %107 = load ptr, ptr %6, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.precision, ptr %107, i32 0, i32 163
  %109 = load i32, ptr %108, align 8, !tbaa !9
  %110 = sext i32 %109 to i64
  %111 = mul i64 %110, 8
  %112 = trunc i64 %111 to i32
  store i32 %112, ptr %17, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 2048, ptr %18) #4
  %113 = getelementptr inbounds [2048 x i8], ptr %18, i64 0, i64 0
  %114 = load i32, ptr %17, align 4, !tbaa !15
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %113, ptr noundef @.str.15, ptr noundef @.str.190, i32 noundef %114)
  %115 = load ptr, ptr %8, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.nonlinear, ptr %115, i32 0, i32 45
  %117 = getelementptr inbounds [2048 x i8], ptr %116, i64 0, i64 0
  %118 = getelementptr inbounds [2048 x i8], ptr %18, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %117, ptr noundef @.str.3, ptr noundef @__func__.nonlinear_hmcode_workspace_init, i32 noundef 3630, ptr noundef %118)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %18) #4
  store i32 1, ptr %5, align 4
  store i32 1, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  br label %456

119:                                              ; preds = %93
  %120 = load ptr, ptr %6, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.precision, ptr %120, i32 0, i32 163
  %122 = load i32, ptr %121, align 8, !tbaa !9
  store i32 %122, ptr %10, align 4, !tbaa !15
  %123 = load i32, ptr %10, align 4, !tbaa !15
  %124 = sext i32 %123 to i64
  %125 = mul i64 %124, 8
  %126 = call noalias ptr @malloc(i64 noundef %125) #5
  %127 = load ptr, ptr %9, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.nonlinear_workspace, ptr %127, i32 0, i32 3
  store ptr %126, ptr %128, align 8, !tbaa !18
  %129 = load ptr, ptr %9, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.nonlinear_workspace, ptr %129, i32 0, i32 3
  %131 = load ptr, ptr %130, align 8, !tbaa !18
  %132 = icmp eq ptr %131, null
  br i1 %132, label %133, label %144

133:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  %134 = load i32, ptr %10, align 4, !tbaa !15
  %135 = sext i32 %134 to i64
  %136 = mul i64 %135, 8
  %137 = trunc i64 %136 to i32
  store i32 %137, ptr %19, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 2048, ptr %20) #4
  %138 = getelementptr inbounds [2048 x i8], ptr %20, i64 0, i64 0
  %139 = load i32, ptr %19, align 4, !tbaa !15
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %138, ptr noundef @.str.15, ptr noundef @.str.191, i32 noundef %139)
  %140 = load ptr, ptr %8, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.nonlinear, ptr %140, i32 0, i32 45
  %142 = getelementptr inbounds [2048 x i8], ptr %141, i64 0, i64 0
  %143 = getelementptr inbounds [2048 x i8], ptr %20, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %142, ptr noundef @.str.3, ptr noundef @__func__.nonlinear_hmcode_workspace_init, i32 noundef 3634, ptr noundef %143)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %20) #4
  store i32 1, ptr %5, align 4
  store i32 1, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  br label %456

144:                                              ; preds = %119
  %145 = load i32, ptr %10, align 4, !tbaa !15
  %146 = sext i32 %145 to i64
  %147 = mul i64 %146, 8
  %148 = call noalias ptr @malloc(i64 noundef %147) #5
  %149 = load ptr, ptr %9, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.nonlinear_workspace, ptr %149, i32 0, i32 4
  store ptr %148, ptr %150, align 8, !tbaa !19
  %151 = load ptr, ptr %9, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.nonlinear_workspace, ptr %151, i32 0, i32 4
  %153 = load ptr, ptr %152, align 8, !tbaa !19
  %154 = icmp eq ptr %153, null
  br i1 %154, label %155, label %166

155:                                              ; preds = %144
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  %156 = load i32, ptr %10, align 4, !tbaa !15
  %157 = sext i32 %156 to i64
  %158 = mul i64 %157, 8
  %159 = trunc i64 %158 to i32
  store i32 %159, ptr %21, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 2048, ptr %22) #4
  %160 = getelementptr inbounds [2048 x i8], ptr %22, i64 0, i64 0
  %161 = load i32, ptr %21, align 4, !tbaa !15
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %160, ptr noundef @.str.15, ptr noundef @.str.192, i32 noundef %161)
  %162 = load ptr, ptr %8, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.nonlinear, ptr %162, i32 0, i32 45
  %164 = getelementptr inbounds [2048 x i8], ptr %163, i64 0, i64 0
  %165 = getelementptr inbounds [2048 x i8], ptr %22, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %164, ptr noundef @.str.3, ptr noundef @__func__.nonlinear_hmcode_workspace_init, i32 noundef 3635, ptr noundef %165)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %22) #4
  store i32 1, ptr %5, align 4
  store i32 1, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  br label %456

166:                                              ; preds = %144
  %167 = load i32, ptr %10, align 4, !tbaa !15
  %168 = sext i32 %167 to i64
  %169 = mul i64 %168, 8
  %170 = call noalias ptr @malloc(i64 noundef %169) #5
  %171 = load ptr, ptr %9, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.nonlinear_workspace, ptr %171, i32 0, i32 5
  store ptr %170, ptr %172, align 8, !tbaa !20
  %173 = load ptr, ptr %9, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.nonlinear_workspace, ptr %173, i32 0, i32 5
  %175 = load ptr, ptr %174, align 8, !tbaa !20
  %176 = icmp eq ptr %175, null
  br i1 %176, label %177, label %188

177:                                              ; preds = %166
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  %178 = load i32, ptr %10, align 4, !tbaa !15
  %179 = sext i32 %178 to i64
  %180 = mul i64 %179, 8
  %181 = trunc i64 %180 to i32
  store i32 %181, ptr %23, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 2048, ptr %24) #4
  %182 = getelementptr inbounds [2048 x i8], ptr %24, i64 0, i64 0
  %183 = load i32, ptr %23, align 4, !tbaa !15
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %182, ptr noundef @.str.15, ptr noundef @.str.193, i32 noundef %183)
  %184 = load ptr, ptr %8, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.nonlinear, ptr %184, i32 0, i32 45
  %186 = getelementptr inbounds [2048 x i8], ptr %185, i64 0, i64 0
  %187 = getelementptr inbounds [2048 x i8], ptr %24, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %186, ptr noundef @.str.3, ptr noundef @__func__.nonlinear_hmcode_workspace_init, i32 noundef 3636, ptr noundef %187)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %24) #4
  store i32 1, ptr %5, align 4
  store i32 1, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  br label %456

188:                                              ; preds = %166
  %189 = load ptr, ptr %8, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.nonlinear, ptr %189, i32 0, i32 17
  %191 = load i32, ptr %190, align 4, !tbaa !21
  %192 = sext i32 %191 to i64
  %193 = mul i64 %192, 8
  %194 = call noalias ptr @malloc(i64 noundef %193) #5
  %195 = load ptr, ptr %9, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.nonlinear_workspace, ptr %195, i32 0, i32 6
  store ptr %194, ptr %196, align 8, !tbaa !24
  %197 = load ptr, ptr %9, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.nonlinear_workspace, ptr %197, i32 0, i32 6
  %199 = load ptr, ptr %198, align 8, !tbaa !24
  %200 = icmp eq ptr %199, null
  br i1 %200, label %201, label %214

201:                                              ; preds = %188
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #4
  %202 = load ptr, ptr %8, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.nonlinear, ptr %202, i32 0, i32 17
  %204 = load i32, ptr %203, align 4, !tbaa !21
  %205 = sext i32 %204 to i64
  %206 = mul i64 %205, 8
  %207 = trunc i64 %206 to i32
  store i32 %207, ptr %25, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 2048, ptr %26) #4
  %208 = getelementptr inbounds [2048 x i8], ptr %26, i64 0, i64 0
  %209 = load i32, ptr %25, align 4, !tbaa !15
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %208, ptr noundef @.str.15, ptr noundef @.str.194, i32 noundef %209)
  %210 = load ptr, ptr %8, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.nonlinear, ptr %210, i32 0, i32 45
  %212 = getelementptr inbounds [2048 x i8], ptr %211, i64 0, i64 0
  %213 = getelementptr inbounds [2048 x i8], ptr %26, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %212, ptr noundef @.str.3, ptr noundef @__func__.nonlinear_hmcode_workspace_init, i32 noundef 3638, ptr noundef %213)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %26) #4
  store i32 1, ptr %5, align 4
  store i32 1, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  br label %456

214:                                              ; preds = %188
  %215 = load ptr, ptr %8, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.nonlinear, ptr %215, i32 0, i32 17
  %217 = load i32, ptr %216, align 4, !tbaa !21
  %218 = sext i32 %217 to i64
  %219 = mul i64 %218, 8
  %220 = call noalias ptr @malloc(i64 noundef %219) #5
  %221 = load ptr, ptr %9, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.nonlinear_workspace, ptr %221, i32 0, i32 7
  store ptr %220, ptr %222, align 8, !tbaa !25
  %223 = load ptr, ptr %9, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.nonlinear_workspace, ptr %223, i32 0, i32 7
  %225 = load ptr, ptr %224, align 8, !tbaa !25
  %226 = icmp eq ptr %225, null
  br i1 %226, label %227, label %240

227:                                              ; preds = %214
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #4
  %228 = load ptr, ptr %8, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.nonlinear, ptr %228, i32 0, i32 17
  %230 = load i32, ptr %229, align 4, !tbaa !21
  %231 = sext i32 %230 to i64
  %232 = mul i64 %231, 8
  %233 = trunc i64 %232 to i32
  store i32 %233, ptr %27, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 2048, ptr %28) #4
  %234 = getelementptr inbounds [2048 x i8], ptr %28, i64 0, i64 0
  %235 = load i32, ptr %27, align 4, !tbaa !15
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %234, ptr noundef @.str.15, ptr noundef @.str.195, i32 noundef %235)
  %236 = load ptr, ptr %8, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.nonlinear, ptr %236, i32 0, i32 45
  %238 = getelementptr inbounds [2048 x i8], ptr %237, i64 0, i64 0
  %239 = getelementptr inbounds [2048 x i8], ptr %28, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %238, ptr noundef @.str.3, ptr noundef @__func__.nonlinear_hmcode_workspace_init, i32 noundef 3639, ptr noundef %239)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %28) #4
  store i32 1, ptr %5, align 4
  store i32 1, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #4
  br label %456

240:                                              ; preds = %214
  %241 = load ptr, ptr %8, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.nonlinear, ptr %241, i32 0, i32 17
  %243 = load i32, ptr %242, align 4, !tbaa !21
  %244 = sext i32 %243 to i64
  %245 = mul i64 %244, 8
  %246 = call noalias ptr @malloc(i64 noundef %245) #5
  %247 = load ptr, ptr %9, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.nonlinear_workspace, ptr %247, i32 0, i32 8
  store ptr %246, ptr %248, align 8, !tbaa !26
  %249 = load ptr, ptr %9, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct.nonlinear_workspace, ptr %249, i32 0, i32 8
  %251 = load ptr, ptr %250, align 8, !tbaa !26
  %252 = icmp eq ptr %251, null
  br i1 %252, label %253, label %266

253:                                              ; preds = %240
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #4
  %254 = load ptr, ptr %8, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct.nonlinear, ptr %254, i32 0, i32 17
  %256 = load i32, ptr %255, align 4, !tbaa !21
  %257 = sext i32 %256 to i64
  %258 = mul i64 %257, 8
  %259 = trunc i64 %258 to i32
  store i32 %259, ptr %29, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 2048, ptr %30) #4
  %260 = getelementptr inbounds [2048 x i8], ptr %30, i64 0, i64 0
  %261 = load i32, ptr %29, align 4, !tbaa !15
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %260, ptr noundef @.str.15, ptr noundef @.str.196, i32 noundef %261)
  %262 = load ptr, ptr %8, align 8, !tbaa !5
  %263 = getelementptr inbounds %struct.nonlinear, ptr %262, i32 0, i32 45
  %264 = getelementptr inbounds [2048 x i8], ptr %263, i64 0, i64 0
  %265 = getelementptr inbounds [2048 x i8], ptr %30, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %264, ptr noundef @.str.3, ptr noundef @__func__.nonlinear_hmcode_workspace_init, i32 noundef 3640, ptr noundef %265)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %30) #4
  store i32 1, ptr %5, align 4
  store i32 1, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #4
  br label %456

266:                                              ; preds = %240
  %267 = load ptr, ptr %8, align 8, !tbaa !5
  %268 = getelementptr inbounds %struct.nonlinear, ptr %267, i32 0, i32 17
  %269 = load i32, ptr %268, align 4, !tbaa !21
  %270 = sext i32 %269 to i64
  %271 = mul i64 %270, 8
  %272 = call noalias ptr @malloc(i64 noundef %271) #5
  %273 = load ptr, ptr %9, align 8, !tbaa !5
  %274 = getelementptr inbounds %struct.nonlinear_workspace, ptr %273, i32 0, i32 9
  store ptr %272, ptr %274, align 8, !tbaa !27
  %275 = load ptr, ptr %9, align 8, !tbaa !5
  %276 = getelementptr inbounds %struct.nonlinear_workspace, ptr %275, i32 0, i32 9
  %277 = load ptr, ptr %276, align 8, !tbaa !27
  %278 = icmp eq ptr %277, null
  br i1 %278, label %279, label %292

279:                                              ; preds = %266
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #4
  %280 = load ptr, ptr %8, align 8, !tbaa !5
  %281 = getelementptr inbounds %struct.nonlinear, ptr %280, i32 0, i32 17
  %282 = load i32, ptr %281, align 4, !tbaa !21
  %283 = sext i32 %282 to i64
  %284 = mul i64 %283, 8
  %285 = trunc i64 %284 to i32
  store i32 %285, ptr %31, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 2048, ptr %32) #4
  %286 = getelementptr inbounds [2048 x i8], ptr %32, i64 0, i64 0
  %287 = load i32, ptr %31, align 4, !tbaa !15
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %286, ptr noundef @.str.15, ptr noundef @.str.197, i32 noundef %287)
  %288 = load ptr, ptr %8, align 8, !tbaa !5
  %289 = getelementptr inbounds %struct.nonlinear, ptr %288, i32 0, i32 45
  %290 = getelementptr inbounds [2048 x i8], ptr %289, i64 0, i64 0
  %291 = getelementptr inbounds [2048 x i8], ptr %32, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %290, ptr noundef @.str.3, ptr noundef @__func__.nonlinear_hmcode_workspace_init, i32 noundef 3641, ptr noundef %291)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %32) #4
  store i32 1, ptr %5, align 4
  store i32 1, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #4
  br label %456

292:                                              ; preds = %266
  store i32 0, ptr %11, align 4, !tbaa !15
  br label %293

293:                                              ; preds = %436, %292
  %294 = load i32, ptr %11, align 4, !tbaa !15
  %295 = load ptr, ptr %8, align 8, !tbaa !5
  %296 = getelementptr inbounds %struct.nonlinear, ptr %295, i32 0, i32 17
  %297 = load i32, ptr %296, align 4, !tbaa !21
  %298 = icmp slt i32 %294, %297
  br i1 %298, label %299, label %439

299:                                              ; preds = %293
  %300 = load ptr, ptr %8, align 8, !tbaa !5
  %301 = getelementptr inbounds %struct.nonlinear, ptr %300, i32 0, i32 32
  %302 = load i32, ptr %301, align 4, !tbaa !28
  %303 = sext i32 %302 to i64
  %304 = mul i64 %303, 8
  %305 = call noalias ptr @malloc(i64 noundef %304) #5
  %306 = load ptr, ptr %9, align 8, !tbaa !5
  %307 = getelementptr inbounds %struct.nonlinear_workspace, ptr %306, i32 0, i32 6
  %308 = load ptr, ptr %307, align 8, !tbaa !24
  %309 = load i32, ptr %11, align 4, !tbaa !15
  %310 = sext i32 %309 to i64
  %311 = getelementptr inbounds ptr, ptr %308, i64 %310
  store ptr %305, ptr %311, align 8, !tbaa !5
  %312 = load ptr, ptr %9, align 8, !tbaa !5
  %313 = getelementptr inbounds %struct.nonlinear_workspace, ptr %312, i32 0, i32 6
  %314 = load ptr, ptr %313, align 8, !tbaa !24
  %315 = load i32, ptr %11, align 4, !tbaa !15
  %316 = sext i32 %315 to i64
  %317 = getelementptr inbounds ptr, ptr %314, i64 %316
  %318 = load ptr, ptr %317, align 8, !tbaa !5
  %319 = icmp eq ptr %318, null
  br i1 %319, label %320, label %333

320:                                              ; preds = %299
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #4
  %321 = load ptr, ptr %8, align 8, !tbaa !5
  %322 = getelementptr inbounds %struct.nonlinear, ptr %321, i32 0, i32 32
  %323 = load i32, ptr %322, align 4, !tbaa !28
  %324 = sext i32 %323 to i64
  %325 = mul i64 %324, 8
  %326 = trunc i64 %325 to i32
  store i32 %326, ptr %33, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 2048, ptr %34) #4
  %327 = getelementptr inbounds [2048 x i8], ptr %34, i64 0, i64 0
  %328 = load i32, ptr %33, align 4, !tbaa !15
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %327, ptr noundef @.str.15, ptr noundef @.str.198, i32 noundef %328)
  %329 = load ptr, ptr %8, align 8, !tbaa !5
  %330 = getelementptr inbounds %struct.nonlinear, ptr %329, i32 0, i32 45
  %331 = getelementptr inbounds [2048 x i8], ptr %330, i64 0, i64 0
  %332 = getelementptr inbounds [2048 x i8], ptr %34, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %331, ptr noundef @.str.3, ptr noundef @__func__.nonlinear_hmcode_workspace_init, i32 noundef 3644, ptr noundef %332)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %34) #4
  store i32 1, ptr %5, align 4
  store i32 1, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #4
  br label %456

333:                                              ; preds = %299
  %334 = load ptr, ptr %8, align 8, !tbaa !5
  %335 = getelementptr inbounds %struct.nonlinear, ptr %334, i32 0, i32 32
  %336 = load i32, ptr %335, align 4, !tbaa !28
  %337 = sext i32 %336 to i64
  %338 = mul i64 %337, 8
  %339 = call noalias ptr @malloc(i64 noundef %338) #5
  %340 = load ptr, ptr %9, align 8, !tbaa !5
  %341 = getelementptr inbounds %struct.nonlinear_workspace, ptr %340, i32 0, i32 7
  %342 = load ptr, ptr %341, align 8, !tbaa !25
  %343 = load i32, ptr %11, align 4, !tbaa !15
  %344 = sext i32 %343 to i64
  %345 = getelementptr inbounds ptr, ptr %342, i64 %344
  store ptr %339, ptr %345, align 8, !tbaa !5
  %346 = load ptr, ptr %9, align 8, !tbaa !5
  %347 = getelementptr inbounds %struct.nonlinear_workspace, ptr %346, i32 0, i32 7
  %348 = load ptr, ptr %347, align 8, !tbaa !25
  %349 = load i32, ptr %11, align 4, !tbaa !15
  %350 = sext i32 %349 to i64
  %351 = getelementptr inbounds ptr, ptr %348, i64 %350
  %352 = load ptr, ptr %351, align 8, !tbaa !5
  %353 = icmp eq ptr %352, null
  br i1 %353, label %354, label %367

354:                                              ; preds = %333
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #4
  %355 = load ptr, ptr %8, align 8, !tbaa !5
  %356 = getelementptr inbounds %struct.nonlinear, ptr %355, i32 0, i32 32
  %357 = load i32, ptr %356, align 4, !tbaa !28
  %358 = sext i32 %357 to i64
  %359 = mul i64 %358, 8
  %360 = trunc i64 %359 to i32
  store i32 %360, ptr %35, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 2048, ptr %36) #4
  %361 = getelementptr inbounds [2048 x i8], ptr %36, i64 0, i64 0
  %362 = load i32, ptr %35, align 4, !tbaa !15
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %361, ptr noundef @.str.15, ptr noundef @.str.199, i32 noundef %362)
  %363 = load ptr, ptr %8, align 8, !tbaa !5
  %364 = getelementptr inbounds %struct.nonlinear, ptr %363, i32 0, i32 45
  %365 = getelementptr inbounds [2048 x i8], ptr %364, i64 0, i64 0
  %366 = getelementptr inbounds [2048 x i8], ptr %36, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %365, ptr noundef @.str.3, ptr noundef @__func__.nonlinear_hmcode_workspace_init, i32 noundef 3645, ptr noundef %366)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %36) #4
  store i32 1, ptr %5, align 4
  store i32 1, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #4
  br label %456

367:                                              ; preds = %333
  %368 = load ptr, ptr %8, align 8, !tbaa !5
  %369 = getelementptr inbounds %struct.nonlinear, ptr %368, i32 0, i32 32
  %370 = load i32, ptr %369, align 4, !tbaa !28
  %371 = sext i32 %370 to i64
  %372 = mul i64 %371, 8
  %373 = call noalias ptr @malloc(i64 noundef %372) #5
  %374 = load ptr, ptr %9, align 8, !tbaa !5
  %375 = getelementptr inbounds %struct.nonlinear_workspace, ptr %374, i32 0, i32 8
  %376 = load ptr, ptr %375, align 8, !tbaa !26
  %377 = load i32, ptr %11, align 4, !tbaa !15
  %378 = sext i32 %377 to i64
  %379 = getelementptr inbounds ptr, ptr %376, i64 %378
  store ptr %373, ptr %379, align 8, !tbaa !5
  %380 = load ptr, ptr %9, align 8, !tbaa !5
  %381 = getelementptr inbounds %struct.nonlinear_workspace, ptr %380, i32 0, i32 8
  %382 = load ptr, ptr %381, align 8, !tbaa !26
  %383 = load i32, ptr %11, align 4, !tbaa !15
  %384 = sext i32 %383 to i64
  %385 = getelementptr inbounds ptr, ptr %382, i64 %384
  %386 = load ptr, ptr %385, align 8, !tbaa !5
  %387 = icmp eq ptr %386, null
  br i1 %387, label %388, label %401

388:                                              ; preds = %367
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #4
  %389 = load ptr, ptr %8, align 8, !tbaa !5
  %390 = getelementptr inbounds %struct.nonlinear, ptr %389, i32 0, i32 32
  %391 = load i32, ptr %390, align 4, !tbaa !28
  %392 = sext i32 %391 to i64
  %393 = mul i64 %392, 8
  %394 = trunc i64 %393 to i32
  store i32 %394, ptr %37, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 2048, ptr %38) #4
  %395 = getelementptr inbounds [2048 x i8], ptr %38, i64 0, i64 0
  %396 = load i32, ptr %37, align 4, !tbaa !15
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %395, ptr noundef @.str.15, ptr noundef @.str.200, i32 noundef %396)
  %397 = load ptr, ptr %8, align 8, !tbaa !5
  %398 = getelementptr inbounds %struct.nonlinear, ptr %397, i32 0, i32 45
  %399 = getelementptr inbounds [2048 x i8], ptr %398, i64 0, i64 0
  %400 = getelementptr inbounds [2048 x i8], ptr %38, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %399, ptr noundef @.str.3, ptr noundef @__func__.nonlinear_hmcode_workspace_init, i32 noundef 3646, ptr noundef %400)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %38) #4
  store i32 1, ptr %5, align 4
  store i32 1, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #4
  br label %456

401:                                              ; preds = %367
  %402 = load ptr, ptr %8, align 8, !tbaa !5
  %403 = getelementptr inbounds %struct.nonlinear, ptr %402, i32 0, i32 32
  %404 = load i32, ptr %403, align 4, !tbaa !28
  %405 = sext i32 %404 to i64
  %406 = mul i64 %405, 8
  %407 = call noalias ptr @malloc(i64 noundef %406) #5
  %408 = load ptr, ptr %9, align 8, !tbaa !5
  %409 = getelementptr inbounds %struct.nonlinear_workspace, ptr %408, i32 0, i32 9
  %410 = load ptr, ptr %409, align 8, !tbaa !27
  %411 = load i32, ptr %11, align 4, !tbaa !15
  %412 = sext i32 %411 to i64
  %413 = getelementptr inbounds ptr, ptr %410, i64 %412
  store ptr %407, ptr %413, align 8, !tbaa !5
  %414 = load ptr, ptr %9, align 8, !tbaa !5
  %415 = getelementptr inbounds %struct.nonlinear_workspace, ptr %414, i32 0, i32 9
  %416 = load ptr, ptr %415, align 8, !tbaa !27
  %417 = load i32, ptr %11, align 4, !tbaa !15
  %418 = sext i32 %417 to i64
  %419 = getelementptr inbounds ptr, ptr %416, i64 %418
  %420 = load ptr, ptr %419, align 8, !tbaa !5
  %421 = icmp eq ptr %420, null
  br i1 %421, label %422, label %435

422:                                              ; preds = %401
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #4
  %423 = load ptr, ptr %8, align 8, !tbaa !5
  %424 = getelementptr inbounds %struct.nonlinear, ptr %423, i32 0, i32 32
  %425 = load i32, ptr %424, align 4, !tbaa !28
  %426 = sext i32 %425 to i64
  %427 = mul i64 %426, 8
  %428 = trunc i64 %427 to i32
  store i32 %428, ptr %39, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 2048, ptr %40) #4
  %429 = getelementptr inbounds [2048 x i8], ptr %40, i64 0, i64 0
  %430 = load i32, ptr %39, align 4, !tbaa !15
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %429, ptr noundef @.str.15, ptr noundef @.str.201, i32 noundef %430)
  %431 = load ptr, ptr %8, align 8, !tbaa !5
  %432 = getelementptr inbounds %struct.nonlinear, ptr %431, i32 0, i32 45
  %433 = getelementptr inbounds [2048 x i8], ptr %432, i64 0, i64 0
  %434 = getelementptr inbounds [2048 x i8], ptr %40, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %433, ptr noundef @.str.3, ptr noundef @__func__.nonlinear_hmcode_workspace_init, i32 noundef 3647, ptr noundef %434)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %40) #4
  store i32 1, ptr %5, align 4
  store i32 1, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #4
  br label %456

435:                                              ; preds = %401
  br label %436

436:                                              ; preds = %435
  %437 = load i32, ptr %11, align 4, !tbaa !15
  %438 = add nsw i32 %437, 1
  store i32 %438, ptr %11, align 4, !tbaa !15
  br label %293, !llvm.loop !29

439:                                              ; preds = %293
  %440 = load ptr, ptr %6, align 8, !tbaa !5
  %441 = load ptr, ptr %7, align 8, !tbaa !5
  %442 = load ptr, ptr %8, align 8, !tbaa !5
  %443 = load ptr, ptr %9, align 8, !tbaa !5
  %444 = call i32 @nonlinear_hmcode_fill_growtab(ptr noundef %440, ptr noundef %441, ptr noundef %442, ptr noundef %443)
  %445 = icmp eq i32 %444, 1
  br i1 %445, label %446, label %455

446:                                              ; preds = %439
  call void @llvm.lifetime.start.p0(i64 2048, ptr %41) #4
  %447 = getelementptr inbounds [2048 x i8], ptr %41, i64 0, i64 0
  %448 = load ptr, ptr %8, align 8, !tbaa !5
  %449 = getelementptr inbounds %struct.nonlinear, ptr %448, i32 0, i32 45
  %450 = getelementptr inbounds [2048 x i8], ptr %449, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %447, ptr noundef @.str.4, ptr noundef @.str.202, ptr noundef %450)
  %451 = load ptr, ptr %8, align 8, !tbaa !5
  %452 = getelementptr inbounds %struct.nonlinear, ptr %451, i32 0, i32 45
  %453 = getelementptr inbounds [2048 x i8], ptr %452, i64 0, i64 0
  %454 = getelementptr inbounds [2048 x i8], ptr %41, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %453, ptr noundef @.str.3, ptr noundef @__func__.nonlinear_hmcode_workspace_init, i32 noundef 3654, ptr noundef %454)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %41) #4
  store i32 1, ptr %5, align 4
  store i32 1, ptr %14, align 4
  br label %456

455:                                              ; preds = %439
  store i32 0, ptr %5, align 4
  store i32 1, ptr %14, align 4
  br label %456

456:                                              ; preds = %455, %446, %422, %388, %354, %320, %279, %253, %227, %201, %177, %155, %133, %106, %80, %54
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  %457 = load i32, ptr %5, align 4
  ret i32 %457
}

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

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 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 #3 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
attributes #5 = { nounwind allocsize(0) }

!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, !12, i64 2256}
!10 = !{!"precision", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !11, i64 96, !7, i64 104, !11, i64 360, !12, i64 368, !11, i64 376, !12, i64 384, !12, i64 388, !11, i64 392, !12, i64 400, !11, i64 408, !12, i64 416, !11, i64 424, !11, i64 432, !11, i64 440, !11, i64 448, !11, i64 456, !11, i64 464, !11, i64 472, !11, i64 480, !11, i64 488, !11, i64 496, !11, i64 504, !11, i64 512, !11, i64 520, !11, i64 528, !11, i64 536, !11, i64 544, !11, i64 552, !11, i64 560, !11, i64 568, !11, i64 576, !11, i64 584, !11, i64 592, !11, i64 600, !11, i64 608, !11, i64 616, !12, i64 624, !7, i64 628, !7, i64 884, !7, i64 1140, !11, i64 1400, !11, i64 1408, !11, i64 1416, !11, i64 1424, !11, i64 1432, !11, i64 1440, !11, i64 1448, !11, i64 1456, !11, i64 1464, !11, i64 1472, !11, i64 1480, !11, i64 1488, !11, i64 1496, !11, i64 1504, !11, i64 1512, !11, i64 1520, !12, i64 1528, !11, i64 1536, !11, i64 1544, !12, i64 1552, !12, i64 1556, !12, i64 1560, !12, i64 1564, !12, i64 1568, !12, i64 1572, !12, i64 1576, !12, i64 1580, !11, i64 1584, !11, i64 1592, !11, i64 1600, !11, i64 1608, !11, i64 1616, !11, i64 1624, !11, i64 1632, !11, i64 1640, !12, i64 1648, !11, i64 1656, !11, i64 1664, !12, i64 1672, !11, i64 1680, !11, i64 1688, !12, i64 1696, !11, i64 1704, !12, i64 1712, !11, i64 1720, !11, i64 1728, !12, i64 1736, !11, i64 1744, !11, i64 1752, !11, i64 1760, !12, i64 1768, !11, i64 1776, !11, i64 1784, !11, i64 1792, !11, i64 1800, !11, i64 1808, !12, i64 1816, !11, i64 1824, !11, i64 1832, !11, i64 1840, !11, i64 1848, !11, i64 1856, !11, i64 1864, !11, i64 1872, !12, i64 1880, !11, i64 1888, !11, i64 1896, !11, i64 1904, !11, i64 1912, !11, i64 1920, !11, i64 1928, !11, i64 1936, !11, i64 1944, !11, i64 1952, !11, i64 1960, !11, i64 1968, !11, i64 1976, !11, i64 1984, !11, i64 1992, !11, i64 2000, !11, i64 2008, !11, i64 2016, !11, i64 2024, !11, i64 2032, !11, i64 2040, !11, i64 2048, !11, i64 2056, !11, i64 2064, !11, i64 2072, !11, i64 2080, !11, i64 2088, !11, i64 2096, !11, i64 2104, !11, i64 2112, !11, i64 2120, !11, i64 2128, !11, i64 2136, !11, i64 2144, !11, i64 2152, !11, i64 2160, !11, i64 2168, !11, i64 2176, !11, i64 2184, !11, i64 2192, !11, i64 2200, !11, i64 2208, !11, i64 2216, !11, i64 2224, !11, i64 2232, !11, i64 2240, !11, i64 2248, !12, i64 2256, !11, i64 2264, !11, i64 2272, !11, i64 2280, !11, i64 2288, !12, i64 2296, !11, i64 2304, !11, i64 2312, !12, i64 2320, !12, i64 2324, !12, i64 2328, !11, i64 2336, !11, i64 2344, !7, i64 2352}
!11 = !{!"double", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"nonlinear_workspace", !6, 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, !11, i64 80}
!15 = !{!12, !12, i64 0}
!16 = !{!14, !6, i64 8}
!17 = !{!14, !6, i64 16}
!18 = !{!14, !6, i64 24}
!19 = !{!14, !6, i64 32}
!20 = !{!14, !6, i64 40}
!21 = !{!22, !12, i64 84}
!22 = !{!"nonlinear", !12, i64 0, !12, i64 4, !12, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !23, i64 40, !12, i64 44, !12, i64 48, !12, i64 52, !6, i64 56, !23, i64 64, !23, i64 66, !12, i64 68, !12, i64 72, !12, i64 76, !12, i64 80, !12, i64 84, !23, i64 88, !12, i64 92, !6, i64 96, !6, i64 104, !6, i64 112, !12, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !12, i64 184, !12, i64 188, !6, i64 192, !6, i64 200, !6, i64 208, !12, i64 216, !12, i64 220, !12, i64 224, !12, i64 228, !12, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !23, i64 264, !7, i64 266}
!23 = !{!"short", !7, i64 0}
!24 = !{!14, !6, i64 48}
!25 = !{!14, !6, i64 56}
!26 = !{!14, !6, i64 64}
!27 = !{!14, !6, i64 72}
!28 = !{!22, !12, i64 188}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}


; 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.3 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.188 = external hidden unnamed_addr constant [10 x i8], align 1
@__func__.nonlinear_hmcode_workspace_init = external hidden unnamed_addr constant [32 x i8], align 1
@.str.189 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.190 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.191 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.192 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.193 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.194 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.195 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.196 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.197 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.198 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.199 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.200 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.201 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.202 = external hidden unnamed_addr constant [47 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

declare void @class_protect_sprintf(ptr noundef, ptr 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 nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @nonlinear_hmcode_workspace_init(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #3 {
  %5 = alloca [2048 x i8], align 16
  %6 = alloca [2048 x i8], align 16
  %7 = alloca [2048 x i8], align 16
  %8 = alloca [2048 x i8], align 16
  %9 = alloca [2048 x i8], align 16
  %10 = alloca [2048 x i8], align 16
  %11 = alloca [2048 x i8], align 16
  %12 = alloca [2048 x i8], align 16
  %13 = alloca [2048 x i8], align 16
  %14 = alloca [2048 x i8], align 16
  %15 = alloca [2048 x i8], align 16
  %16 = alloca [2048 x i8], align 16
  %17 = alloca [2048 x i8], align 16
  %18 = alloca [2048 x i8], align 16
  %19 = alloca [2048 x i8], align 16
  %20 = getelementptr inbounds i8, ptr %0, i64 2256
  %21 = load i32, ptr %20, align 8, !tbaa !5
  %22 = sext i32 %21 to i64
  %23 = shl nsw i64 %22, 3
  %24 = tail call noalias ptr @malloc(i64 noundef %23) #4
  store ptr %24, ptr %3, align 8, !tbaa !11
  %25 = icmp eq ptr %24, null
  br i1 %25, label %26, label %29

26:                                               ; preds = %4
  %27 = shl i32 %21, 3
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %5) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %5, ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.188, i32 noundef %27) #5
  %28 = getelementptr inbounds i8, ptr %2, i64 266
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %28, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.nonlinear_hmcode_workspace_init, i32 noundef 3628, ptr noundef nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %5) #5
  br label %150

29:                                               ; preds = %4
  %30 = tail call noalias ptr @malloc(i64 noundef %23) #4
  %31 = getelementptr inbounds i8, ptr %3, i64 8
  store ptr %30, ptr %31, align 8, !tbaa !14
  %32 = icmp eq ptr %30, null
  br i1 %32, label %33, label %36

33:                                               ; preds = %29
  %34 = shl i32 %21, 3
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %6) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %6, ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.189, i32 noundef %34) #5
  %35 = getelementptr inbounds i8, ptr %2, i64 266
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %35, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.nonlinear_hmcode_workspace_init, i32 noundef 3629, ptr noundef nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %6) #5
  br label %150

36:                                               ; preds = %29
  %37 = tail call noalias ptr @malloc(i64 noundef %23) #4
  %38 = getelementptr inbounds i8, ptr %3, i64 16
  store ptr %37, ptr %38, align 8, !tbaa !15
  %39 = icmp eq ptr %37, null
  br i1 %39, label %40, label %43

40:                                               ; preds = %36
  %41 = shl i32 %21, 3
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %7) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %7, ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.190, i32 noundef %41) #5
  %42 = getelementptr inbounds i8, ptr %2, i64 266
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %42, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.nonlinear_hmcode_workspace_init, i32 noundef 3630, ptr noundef nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %7) #5
  br label %150

43:                                               ; preds = %36
  %44 = tail call noalias ptr @malloc(i64 noundef %23) #4
  %45 = getelementptr inbounds i8, ptr %3, i64 24
  store ptr %44, ptr %45, align 8, !tbaa !16
  %46 = icmp eq ptr %44, null
  br i1 %46, label %47, label %50

47:                                               ; preds = %43
  %48 = trunc i64 %23 to i32
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %8) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %8, ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.191, i32 noundef %48) #5
  %49 = getelementptr inbounds i8, ptr %2, i64 266
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %49, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.nonlinear_hmcode_workspace_init, i32 noundef 3634, ptr noundef nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %8) #5
  br label %150

50:                                               ; preds = %43
  %51 = tail call noalias ptr @malloc(i64 noundef %23) #4
  %52 = getelementptr inbounds i8, ptr %3, i64 32
  store ptr %51, ptr %52, align 8, !tbaa !17
  %53 = icmp eq ptr %51, null
  br i1 %53, label %54, label %57

54:                                               ; preds = %50
  %55 = trunc i64 %23 to i32
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %9) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %9, ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.192, i32 noundef %55) #5
  %56 = getelementptr inbounds i8, ptr %2, i64 266
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %56, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.nonlinear_hmcode_workspace_init, i32 noundef 3635, ptr noundef nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %9) #5
  br label %150

57:                                               ; preds = %50
  %58 = tail call noalias ptr @malloc(i64 noundef %23) #4
  %59 = getelementptr inbounds i8, ptr %3, i64 40
  store ptr %58, ptr %59, align 8, !tbaa !18
  %60 = icmp eq ptr %58, null
  br i1 %60, label %61, label %64

61:                                               ; preds = %57
  %62 = trunc i64 %23 to i32
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %10) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %10, ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.193, i32 noundef %62) #5
  %63 = getelementptr inbounds i8, ptr %2, i64 266
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %63, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.nonlinear_hmcode_workspace_init, i32 noundef 3636, ptr noundef nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %10) #5
  br label %150

64:                                               ; preds = %57
  %65 = getelementptr inbounds i8, ptr %2, i64 84
  %66 = load i32, ptr %65, align 4, !tbaa !19
  %67 = sext i32 %66 to i64
  %68 = shl nsw i64 %67, 3
  %69 = tail call noalias ptr @malloc(i64 noundef %68) #4
  %70 = getelementptr inbounds i8, ptr %3, i64 48
  store ptr %69, ptr %70, align 8, !tbaa !22
  %71 = icmp eq ptr %69, null
  br i1 %71, label %72, label %75

72:                                               ; preds = %64
  %73 = shl i32 %66, 3
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %11) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %11, ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.194, i32 noundef %73) #5
  %74 = getelementptr inbounds i8, ptr %2, i64 266
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %74, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.nonlinear_hmcode_workspace_init, i32 noundef 3638, ptr noundef nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %11) #5
  br label %150

75:                                               ; preds = %64
  %76 = tail call noalias ptr @malloc(i64 noundef %68) #4
  %77 = getelementptr inbounds i8, ptr %3, i64 56
  store ptr %76, ptr %77, align 8, !tbaa !23
  %78 = icmp eq ptr %76, null
  br i1 %78, label %79, label %82

79:                                               ; preds = %75
  %80 = shl i32 %66, 3
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %12) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %12, ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.195, i32 noundef %80) #5
  %81 = getelementptr inbounds i8, ptr %2, i64 266
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %81, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.nonlinear_hmcode_workspace_init, i32 noundef 3639, ptr noundef nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %12) #5
  br label %150

82:                                               ; preds = %75
  %83 = tail call noalias ptr @malloc(i64 noundef %68) #4
  %84 = getelementptr inbounds i8, ptr %3, i64 64
  store ptr %83, ptr %84, align 8, !tbaa !24
  %85 = icmp eq ptr %83, null
  br i1 %85, label %86, label %89

86:                                               ; preds = %82
  %87 = shl i32 %66, 3
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %13) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %13, ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.196, i32 noundef %87) #5
  %88 = getelementptr inbounds i8, ptr %2, i64 266
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %88, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.nonlinear_hmcode_workspace_init, i32 noundef 3640, ptr noundef nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %13) #5
  br label %150

89:                                               ; preds = %82
  %90 = tail call noalias ptr @malloc(i64 noundef %68) #4
  %91 = getelementptr inbounds i8, ptr %3, i64 72
  store ptr %90, ptr %91, align 8, !tbaa !25
  %92 = icmp eq ptr %90, null
  br i1 %92, label %98, label %.preheader

.preheader:                                       ; preds = %89
  %93 = icmp sgt i32 %66, 0
  br i1 %93, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader
  %94 = getelementptr inbounds i8, ptr %2, i64 188
  %95 = load i32, ptr %94, align 4, !tbaa !26
  %96 = sext i32 %95 to i64
  %97 = shl nsw i64 %96, 3
  %wide.trip.count = zext nneg i32 %66 to i64
  br label %102

98:                                               ; preds = %89
  %99 = shl i32 %66, 3
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %14) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %14, ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.197, i32 noundef %99) #5
  %100 = getelementptr inbounds i8, ptr %2, i64 266
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %100, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.nonlinear_hmcode_workspace_init, i32 noundef 3641, ptr noundef nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %14) #5
  br label %150

101:                                              ; preds = %135
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %102, !llvm.loop !27

102:                                              ; preds = %.lr.ph, %101
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %101 ]
  %103 = tail call noalias ptr @malloc(i64 noundef %97) #4
  %104 = load ptr, ptr %70, align 8, !tbaa !22
  %105 = getelementptr inbounds ptr, ptr %104, i64 %indvars.iv
  store ptr %103, ptr %105, align 8, !tbaa !29
  %106 = load ptr, ptr %70, align 8, !tbaa !22
  %107 = getelementptr inbounds ptr, ptr %106, i64 %indvars.iv
  %108 = load ptr, ptr %107, align 8, !tbaa !29
  %109 = icmp eq ptr %108, null
  br i1 %109, label %110, label %113

110:                                              ; preds = %102
  %111 = shl i32 %95, 3
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %15) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %15, ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.198, i32 noundef %111) #5
  %112 = getelementptr inbounds i8, ptr %2, i64 266
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %112, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.nonlinear_hmcode_workspace_init, i32 noundef 3644, ptr noundef nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %15) #5
  br label %150

113:                                              ; preds = %102
  %114 = tail call noalias ptr @malloc(i64 noundef %97) #4
  %115 = load ptr, ptr %77, align 8, !tbaa !23
  %116 = getelementptr inbounds ptr, ptr %115, i64 %indvars.iv
  store ptr %114, ptr %116, align 8, !tbaa !29
  %117 = load ptr, ptr %77, align 8, !tbaa !23
  %118 = getelementptr inbounds ptr, ptr %117, i64 %indvars.iv
  %119 = load ptr, ptr %118, align 8, !tbaa !29
  %120 = icmp eq ptr %119, null
  br i1 %120, label %121, label %124

121:                                              ; preds = %113
  %122 = shl i32 %95, 3
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %16) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %16, ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.199, i32 noundef %122) #5
  %123 = getelementptr inbounds i8, ptr %2, i64 266
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %123, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.nonlinear_hmcode_workspace_init, i32 noundef 3645, ptr noundef nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %16) #5
  br label %150

124:                                              ; preds = %113
  %125 = tail call noalias ptr @malloc(i64 noundef %97) #4
  %126 = load ptr, ptr %84, align 8, !tbaa !24
  %127 = getelementptr inbounds ptr, ptr %126, i64 %indvars.iv
  store ptr %125, ptr %127, align 8, !tbaa !29
  %128 = load ptr, ptr %84, align 8, !tbaa !24
  %129 = getelementptr inbounds ptr, ptr %128, i64 %indvars.iv
  %130 = load ptr, ptr %129, align 8, !tbaa !29
  %131 = icmp eq ptr %130, null
  br i1 %131, label %132, label %135

132:                                              ; preds = %124
  %133 = shl i32 %95, 3
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %17) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %17, ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.200, i32 noundef %133) #5
  %134 = getelementptr inbounds i8, ptr %2, i64 266
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %134, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.nonlinear_hmcode_workspace_init, i32 noundef 3646, ptr noundef nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %17) #5
  br label %150

135:                                              ; preds = %124
  %136 = tail call noalias ptr @malloc(i64 noundef %97) #4
  %137 = load ptr, ptr %91, align 8, !tbaa !25
  %138 = getelementptr inbounds ptr, ptr %137, i64 %indvars.iv
  store ptr %136, ptr %138, align 8, !tbaa !29
  %139 = load ptr, ptr %91, align 8, !tbaa !25
  %140 = getelementptr inbounds ptr, ptr %139, i64 %indvars.iv
  %141 = load ptr, ptr %140, align 8, !tbaa !29
  %142 = icmp eq ptr %141, null
  br i1 %142, label %143, label %101

143:                                              ; preds = %135
  %144 = shl i32 %95, 3
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %18) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.201, i32 noundef %144) #5
  %145 = getelementptr inbounds i8, ptr %2, i64 266
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %145, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.nonlinear_hmcode_workspace_init, i32 noundef 3647, ptr noundef nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %18) #5
  br label %150

._crit_edge:                                      ; preds = %101, %.preheader
  %146 = tail call i32 @nonlinear_hmcode_fill_growtab(ptr noundef %0, ptr noundef %1, ptr noundef nonnull %2, ptr noundef nonnull %3)
  %147 = icmp eq i32 %146, 1
  br i1 %147, label %148, label %150

148:                                              ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %19) #5
  %149 = getelementptr inbounds i8, ptr %2, i64 266
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %19, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.202, ptr noundef nonnull %149) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %149, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.nonlinear_hmcode_workspace_init, i32 noundef 3654, ptr noundef nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %19) #5
  br label %150

150:                                              ; preds = %._crit_edge, %148, %143, %132, %121, %110, %98, %86, %79, %72, %61, %54, %47, %40, %33, %26
  %.0 = phi i32 [ 1, %26 ], [ 1, %33 ], [ 1, %40 ], [ 1, %47 ], [ 1, %54 ], [ 1, %61 ], [ 1, %72 ], [ 1, %79 ], [ 1, %86 ], [ 1, %98 ], [ 1, %110 ], [ 1, %121 ], [ 1, %132 ], [ 1, %143 ], [ 1, %148 ], [ 0, %._crit_edge ]
  ret i32 %.0
}

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind allocsize(0) }
attributes #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !10, i64 2256}
!6 = !{!"precision", !7, 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, !8, i64 104, !7, i64 360, !10, i64 368, !7, i64 376, !10, i64 384, !10, i64 388, !7, i64 392, !10, i64 400, !7, i64 408, !10, i64 416, !7, i64 424, !7, i64 432, !7, i64 440, !7, i64 448, !7, i64 456, !7, i64 464, !7, i64 472, !7, i64 480, !7, i64 488, !7, i64 496, !7, i64 504, !7, i64 512, !7, i64 520, !7, i64 528, !7, i64 536, !7, i64 544, !7, i64 552, !7, i64 560, !7, i64 568, !7, i64 576, !7, i64 584, !7, i64 592, !7, i64 600, !7, i64 608, !7, i64 616, !10, i64 624, !8, i64 628, !8, i64 884, !8, i64 1140, !7, i64 1400, !7, i64 1408, !7, i64 1416, !7, i64 1424, !7, i64 1432, !7, i64 1440, !7, i64 1448, !7, i64 1456, !7, i64 1464, !7, i64 1472, !7, i64 1480, !7, i64 1488, !7, i64 1496, !7, i64 1504, !7, i64 1512, !7, i64 1520, !10, i64 1528, !7, i64 1536, !7, i64 1544, !10, i64 1552, !10, i64 1556, !10, i64 1560, !10, i64 1564, !10, i64 1568, !10, i64 1572, !10, i64 1576, !10, i64 1580, !7, i64 1584, !7, i64 1592, !7, i64 1600, !7, i64 1608, !7, i64 1616, !7, i64 1624, !7, i64 1632, !7, i64 1640, !10, i64 1648, !7, i64 1656, !7, i64 1664, !10, i64 1672, !7, i64 1680, !7, i64 1688, !10, i64 1696, !7, i64 1704, !10, i64 1712, !7, i64 1720, !7, i64 1728, !10, i64 1736, !7, i64 1744, !7, i64 1752, !7, i64 1760, !10, i64 1768, !7, i64 1776, !7, i64 1784, !7, i64 1792, !7, i64 1800, !7, i64 1808, !10, i64 1816, !7, i64 1824, !7, i64 1832, !7, i64 1840, !7, i64 1848, !7, i64 1856, !7, i64 1864, !7, i64 1872, !10, i64 1880, !7, i64 1888, !7, i64 1896, !7, i64 1904, !7, i64 1912, !7, i64 1920, !7, i64 1928, !7, i64 1936, !7, i64 1944, !7, i64 1952, !7, i64 1960, !7, i64 1968, !7, i64 1976, !7, i64 1984, !7, i64 1992, !7, i64 2000, !7, i64 2008, !7, i64 2016, !7, i64 2024, !7, i64 2032, !7, i64 2040, !7, i64 2048, !7, i64 2056, !7, i64 2064, !7, i64 2072, !7, i64 2080, !7, i64 2088, !7, i64 2096, !7, i64 2104, !7, i64 2112, !7, i64 2120, !7, i64 2128, !7, i64 2136, !7, i64 2144, !7, i64 2152, !7, i64 2160, !7, i64 2168, !7, i64 2176, !7, i64 2184, !7, i64 2192, !7, i64 2200, !7, i64 2208, !7, i64 2216, !7, i64 2224, !7, i64 2232, !7, i64 2240, !7, i64 2248, !10, i64 2256, !7, i64 2264, !7, i64 2272, !7, i64 2280, !7, i64 2288, !10, i64 2296, !7, i64 2304, !7, i64 2312, !10, i64 2320, !10, i64 2324, !10, i64 2328, !7, i64 2336, !7, i64 2344, !8, i64 2352}
!7 = !{!"double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"nonlinear_workspace", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !13, i64 56, !13, i64 64, !13, i64 72, !7, i64 80}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!12, !13, i64 8}
!15 = !{!12, !13, i64 16}
!16 = !{!12, !13, i64 24}
!17 = !{!12, !13, i64 32}
!18 = !{!12, !13, i64 40}
!19 = !{!20, !10, i64 84}
!20 = !{!"nonlinear", !10, i64 0, !10, i64 4, !10, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !21, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !13, i64 56, !21, i64 64, !21, i64 66, !10, i64 68, !10, i64 72, !10, i64 76, !10, i64 80, !10, i64 84, !21, i64 88, !10, i64 92, !13, i64 96, !13, i64 104, !13, i64 112, !10, i64 120, !13, i64 128, !13, i64 136, !13, i64 144, !13, i64 152, !13, i64 160, !13, i64 168, !13, i64 176, !10, i64 184, !10, i64 188, !13, i64 192, !13, i64 200, !13, i64 208, !10, i64 216, !10, i64 220, !10, i64 224, !10, i64 228, !10, i64 232, !13, i64 240, !13, i64 248, !13, i64 256, !21, i64 264, !8, i64 266}
!21 = !{!"short", !8, i64 0}
!22 = !{!12, !13, i64 48}
!23 = !{!12, !13, i64 56}
!24 = !{!12, !13, i64 64}
!25 = !{!12, !13, i64 72}
!26 = !{!20, !10, i64 188}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = !{!13, !13, i64 0}


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