; LLVM IR from yourtion/LearningMasteringAlgorithms-C :: Example/nummeths (main)

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

@stdout = external global ptr, align 8
@.str = external hidden unnamed_addr constant [34 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [14 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca [50 x double], align 16
  %7 = alloca [50 x double], align 16
  %8 = alloca [50 x double], align 16
  %9 = alloca [50 x double], align 16
  %10 = alloca [50 x double], align 16
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 400, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 400, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 400, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 400, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 400, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  %17 = load ptr, ptr @stdout, align 8, !tbaa !9
  %18 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %17, ptr noundef @.str) #4
  %19 = getelementptr inbounds [50 x double], ptr %6, i64 0, i64 0
  store double -3.000000e+00, ptr %19, align 16, !tbaa !11
  %20 = getelementptr inbounds [50 x double], ptr %7, i64 0, i64 0
  store double -5.000000e+00, ptr %20, align 16, !tbaa !11
  %21 = getelementptr inbounds [50 x double], ptr %6, i64 0, i64 1
  store double -2.000000e+00, ptr %21, align 8, !tbaa !11
  %22 = getelementptr inbounds [50 x double], ptr %7, i64 0, i64 1
  store double -1.100000e+00, ptr %22, align 8, !tbaa !11
  %23 = getelementptr inbounds [50 x double], ptr %6, i64 0, i64 2
  store double 2.000000e+00, ptr %23, align 16, !tbaa !11
  %24 = getelementptr inbounds [50 x double], ptr %7, i64 0, i64 2
  store double 1.900000e+00, ptr %24, align 16, !tbaa !11
  %25 = getelementptr inbounds [50 x double], ptr %6, i64 0, i64 3
  store double 3.000000e+00, ptr %25, align 8, !tbaa !11
  %26 = getelementptr inbounds [50 x double], ptr %7, i64 0, i64 3
  store double 4.800000e+00, ptr %26, align 8, !tbaa !11
  %27 = getelementptr inbounds [50 x double], ptr %8, i64 0, i64 0
  store double -2.500000e+00, ptr %27, align 16, !tbaa !11
  %28 = getelementptr inbounds [50 x double], ptr %8, i64 0, i64 1
  store double -1.000000e+00, ptr %28, align 8, !tbaa !11
  %29 = getelementptr inbounds [50 x double], ptr %8, i64 0, i64 2
  store double 0.000000e+00, ptr %29, align 16, !tbaa !11
  %30 = getelementptr inbounds [50 x double], ptr %8, i64 0, i64 3
  store double 1.000000e+00, ptr %30, align 8, !tbaa !11
  %31 = getelementptr inbounds [50 x double], ptr %8, i64 0, i64 4
  store double 1.500000e+00, ptr %31, align 16, !tbaa !11
  %32 = getelementptr inbounds [50 x double], ptr %8, i64 0, i64 5
  store double 2.500000e+00, ptr %32, align 8, !tbaa !11
  %33 = getelementptr inbounds [50 x double], ptr %6, i64 0, i64 0
  %34 = getelementptr inbounds [50 x double], ptr %7, i64 0, i64 0
  %35 = getelementptr inbounds [50 x double], ptr %8, i64 0, i64 0
  %36 = getelementptr inbounds [50 x double], ptr %9, i64 0, i64 0
  %37 = call i32 @interpol(ptr noundef %33, ptr noundef %34, i32 noundef 4, ptr noundef %35, ptr noundef %36, i32 noundef 6)
  %38 = icmp ne i32 %37, 0
  br i1 %38, label %39, label %40

39:                                               ; preds = %2
  store i32 1, ptr %3, align 4
  store i32 1, ptr %16, align 4
  br label %311

40:                                               ; preds = %2
  %41 = load ptr, ptr @stdout, align 8, !tbaa !9
  %42 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %41, ptr noundef @.str.1) #4
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %43

43:                                               ; preds = %59, %40
  %44 = load i32, ptr %14, align 4, !tbaa !5
  %45 = icmp slt i32 %44, 4
  br i1 %45, label %46, label %62

46:                                               ; preds = %43
  %47 = load ptr, ptr @stdout, align 8, !tbaa !9
  %48 = load i32, ptr %14, align 4, !tbaa !5
  %49 = load i32, ptr %14, align 4, !tbaa !5
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds [50 x double], ptr %6, i64 0, i64 %50
  %52 = load double, ptr %51, align 8, !tbaa !11
  %53 = load i32, ptr %14, align 4, !tbaa !5
  %54 = load i32, ptr %14, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [50 x double], ptr %7, i64 0, i64 %55
  %57 = load double, ptr %56, align 8, !tbaa !11
  %58 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %47, ptr noundef @.str.2, i32 noundef %48, double noundef %52, i32 noundef %53, double noundef %57) #4
  br label %59

59:                                               ; preds = %46
  %60 = load i32, ptr %14, align 4, !tbaa !5
  %61 = add nsw i32 %60, 1
  store i32 %61, ptr %14, align 4, !tbaa !5
  br label %43, !llvm.loop !13

62:                                               ; preds = %43
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %63

63:                                               ; preds = %79, %62
  %64 = load i32, ptr %14, align 4, !tbaa !5
  %65 = icmp slt i32 %64, 6
  br i1 %65, label %66, label %82

66:                                               ; preds = %63
  %67 = load ptr, ptr @stdout, align 8, !tbaa !9
  %68 = load i32, ptr %14, align 4, !tbaa !5
  %69 = load i32, ptr %14, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [50 x double], ptr %8, i64 0, i64 %70
  %72 = load double, ptr %71, align 8, !tbaa !11
  %73 = load i32, ptr %14, align 4, !tbaa !5
  %74 = load i32, ptr %14, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [50 x double], ptr %9, i64 0, i64 %75
  %77 = load double, ptr %76, align 8, !tbaa !11
  %78 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %67, ptr noundef @.str.3, i32 noundef %68, double noundef %72, i32 noundef %73, double noundef %77) #4
  br label %79

79:                                               ; preds = %66
  %80 = load i32, ptr %14, align 4, !tbaa !5
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr %14, align 4, !tbaa !5
  br label %63, !llvm.loop !15

82:                                               ; preds = %63
  %83 = getelementptr inbounds [50 x double], ptr %6, i64 0, i64 0
  store double -4.000000e+00, ptr %83, align 16, !tbaa !11
  %84 = getelementptr inbounds [50 x double], ptr %7, i64 0, i64 0
  store double -3.000000e+00, ptr %84, align 16, !tbaa !11
  %85 = getelementptr inbounds [50 x double], ptr %6, i64 0, i64 1
  store double -3.500000e+00, ptr %85, align 8, !tbaa !11
  %86 = getelementptr inbounds [50 x double], ptr %7, i64 0, i64 1
  store double 1.500000e+00, ptr %86, align 8, !tbaa !11
  %87 = getelementptr inbounds [50 x double], ptr %6, i64 0, i64 2
  store double -2.500000e+00, ptr %87, align 16, !tbaa !11
  %88 = getelementptr inbounds [50 x double], ptr %7, i64 0, i64 2
  store double 2.500000e+00, ptr %88, align 16, !tbaa !11
  %89 = getelementptr inbounds [50 x double], ptr %6, i64 0, i64 3
  store double -1.500000e+00, ptr %89, align 8, !tbaa !11
  %90 = getelementptr inbounds [50 x double], ptr %7, i64 0, i64 3
  store double 1.500000e+00, ptr %90, align 8, !tbaa !11
  %91 = getelementptr inbounds [50 x double], ptr %6, i64 0, i64 4
  store double 0.000000e+00, ptr %91, align 16, !tbaa !11
  %92 = getelementptr inbounds [50 x double], ptr %7, i64 0, i64 4
  store double 5.000000e-01, ptr %92, align 16, !tbaa !11
  %93 = getelementptr inbounds [50 x double], ptr %6, i64 0, i64 5
  store double 1.500000e+00, ptr %93, align 8, !tbaa !11
  %94 = getelementptr inbounds [50 x double], ptr %7, i64 0, i64 5
  store double 1.500000e+00, ptr %94, align 8, !tbaa !11
  %95 = getelementptr inbounds [50 x double], ptr %6, i64 0, i64 6
  store double 2.500000e+00, ptr %95, align 16, !tbaa !11
  %96 = getelementptr inbounds [50 x double], ptr %7, i64 0, i64 6
  store double 2.500000e+00, ptr %96, align 16, !tbaa !11
  %97 = getelementptr inbounds [50 x double], ptr %6, i64 0, i64 7
  store double 3.500000e+00, ptr %97, align 8, !tbaa !11
  %98 = getelementptr inbounds [50 x double], ptr %7, i64 0, i64 7
  store double 1.500000e+00, ptr %98, align 8, !tbaa !11
  %99 = getelementptr inbounds [50 x double], ptr %6, i64 0, i64 8
  store double 4.000000e+00, ptr %99, align 16, !tbaa !11
  %100 = getelementptr inbounds [50 x double], ptr %7, i64 0, i64 8
  store double -3.000000e+00, ptr %100, align 16, !tbaa !11
  %101 = getelementptr inbounds [50 x double], ptr %8, i64 0, i64 0
  store double -5.000000e-01, ptr %101, align 16, !tbaa !11
  %102 = getelementptr inbounds [50 x double], ptr %8, i64 0, i64 1
  store double -1.000000e+00, ptr %102, align 8, !tbaa !11
  %103 = getelementptr inbounds [50 x double], ptr %8, i64 0, i64 2
  store double -2.000000e+00, ptr %103, align 16, !tbaa !11
  %104 = getelementptr inbounds [50 x double], ptr %8, i64 0, i64 3
  store double -3.000000e+00, ptr %104, align 8, !tbaa !11
  %105 = getelementptr inbounds [50 x double], ptr %8, i64 0, i64 4
  store double -3.250000e+00, ptr %105, align 16, !tbaa !11
  %106 = getelementptr inbounds [50 x double], ptr %8, i64 0, i64 5
  store double -3.500000e+00, ptr %106, align 8, !tbaa !11
  %107 = getelementptr inbounds [50 x double], ptr %8, i64 0, i64 6
  store double -3.750000e+00, ptr %107, align 16, !tbaa !11
  %108 = getelementptr inbounds [50 x double], ptr %6, i64 0, i64 0
  %109 = getelementptr inbounds [50 x double], ptr %7, i64 0, i64 0
  %110 = getelementptr inbounds [50 x double], ptr %8, i64 0, i64 0
  %111 = getelementptr inbounds [50 x double], ptr %9, i64 0, i64 0
  %112 = call i32 @interpol(ptr noundef %108, ptr noundef %109, i32 noundef 9, ptr noundef %110, ptr noundef %111, i32 noundef 7)
  %113 = icmp ne i32 %112, 0
  br i1 %113, label %114, label %115

114:                                              ; preds = %82
  store i32 1, ptr %3, align 4
  store i32 1, ptr %16, align 4
  br label %311

115:                                              ; preds = %82
  %116 = load ptr, ptr @stdout, align 8, !tbaa !9
  %117 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %116, ptr noundef @.str.1) #4
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %118

118:                                              ; preds = %134, %115
  %119 = load i32, ptr %14, align 4, !tbaa !5
  %120 = icmp slt i32 %119, 9
  br i1 %120, label %121, label %137

121:                                              ; preds = %118
  %122 = load ptr, ptr @stdout, align 8, !tbaa !9
  %123 = load i32, ptr %14, align 4, !tbaa !5
  %124 = load i32, ptr %14, align 4, !tbaa !5
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [50 x double], ptr %6, i64 0, i64 %125
  %127 = load double, ptr %126, align 8, !tbaa !11
  %128 = load i32, ptr %14, align 4, !tbaa !5
  %129 = load i32, ptr %14, align 4, !tbaa !5
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds [50 x double], ptr %7, i64 0, i64 %130
  %132 = load double, ptr %131, align 8, !tbaa !11
  %133 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef @.str.2, i32 noundef %123, double noundef %127, i32 noundef %128, double noundef %132) #4
  br label %134

134:                                              ; preds = %121
  %135 = load i32, ptr %14, align 4, !tbaa !5
  %136 = add nsw i32 %135, 1
  store i32 %136, ptr %14, align 4, !tbaa !5
  br label %118, !llvm.loop !16

137:                                              ; preds = %118
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %138

138:                                              ; preds = %154, %137
  %139 = load i32, ptr %14, align 4, !tbaa !5
  %140 = icmp slt i32 %139, 7
  br i1 %140, label %141, label %157

141:                                              ; preds = %138
  %142 = load ptr, ptr @stdout, align 8, !tbaa !9
  %143 = load i32, ptr %14, align 4, !tbaa !5
  %144 = load i32, ptr %14, align 4, !tbaa !5
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds [50 x double], ptr %8, i64 0, i64 %145
  %147 = load double, ptr %146, align 8, !tbaa !11
  %148 = load i32, ptr %14, align 4, !tbaa !5
  %149 = load i32, ptr %14, align 4, !tbaa !5
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds [50 x double], ptr %9, i64 0, i64 %150
  %152 = load double, ptr %151, align 8, !tbaa !11
  %153 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %142, ptr noundef @.str.3, i32 noundef %143, double noundef %147, i32 noundef %148, double noundef %152) #4
  br label %154

154:                                              ; preds = %141
  %155 = load i32, ptr %14, align 4, !tbaa !5
  %156 = add nsw i32 %155, 1
  store i32 %156, ptr %14, align 4, !tbaa !5
  br label %138, !llvm.loop !17

157:                                              ; preds = %138
  %158 = load ptr, ptr @stdout, align 8, !tbaa !9
  %159 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %158, ptr noundef @.str.4) #4
  %160 = getelementptr inbounds [50 x double], ptr %6, i64 0, i64 0
  store double 4.000000e+00, ptr %160, align 16, !tbaa !11
  %161 = getelementptr inbounds [50 x double], ptr %10, i64 0, i64 0
  store double 1.970000e+02, ptr %161, align 16, !tbaa !11
  %162 = getelementptr inbounds [50 x double], ptr %6, i64 0, i64 1
  store double 6.000000e+00, ptr %162, align 8, !tbaa !11
  %163 = getelementptr inbounds [50 x double], ptr %10, i64 0, i64 1
  store double 2.720000e+02, ptr %163, align 8, !tbaa !11
  %164 = getelementptr inbounds [50 x double], ptr %6, i64 0, i64 2
  store double 2.000000e+00, ptr %164, align 16, !tbaa !11
  %165 = getelementptr inbounds [50 x double], ptr %10, i64 0, i64 2
  store double 1.000000e+02, ptr %165, align 16, !tbaa !11
  %166 = getelementptr inbounds [50 x double], ptr %6, i64 0, i64 3
  store double 5.000000e+00, ptr %166, align 8, !tbaa !11
  %167 = getelementptr inbounds [50 x double], ptr %10, i64 0, i64 3
  store double 2.280000e+02, ptr %167, align 8, !tbaa !11
  %168 = getelementptr inbounds [50 x double], ptr %6, i64 0, i64 4
  store double 7.000000e+00, ptr %168, align 16, !tbaa !11
  %169 = getelementptr inbounds [50 x double], ptr %10, i64 0, i64 4
  store double 3.270000e+02, ptr %169, align 16, !tbaa !11
  %170 = getelementptr inbounds [50 x double], ptr %6, i64 0, i64 5
  store double 6.000000e+00, ptr %170, align 8, !tbaa !11
  %171 = getelementptr inbounds [50 x double], ptr %10, i64 0, i64 5
  store double 2.790000e+02, ptr %171, align 8, !tbaa !11
  %172 = getelementptr inbounds [50 x double], ptr %6, i64 0, i64 6
  store double 3.000000e+00, ptr %172, align 16, !tbaa !11
  %173 = getelementptr inbounds [50 x double], ptr %10, i64 0, i64 6
  store double 1.480000e+02, ptr %173, align 16, !tbaa !11
  %174 = getelementptr inbounds [50 x double], ptr %6, i64 0, i64 7
  store double 8.000000e+00, ptr %174, align 8, !tbaa !11
  %175 = getelementptr inbounds [50 x double], ptr %10, i64 0, i64 7
  store double 3.770000e+02, ptr %175, align 8, !tbaa !11
  %176 = getelementptr inbounds [50 x double], ptr %6, i64 0, i64 8
  store double 5.000000e+00, ptr %176, align 16, !tbaa !11
  %177 = getelementptr inbounds [50 x double], ptr %10, i64 0, i64 8
  store double 2.380000e+02, ptr %177, align 16, !tbaa !11
  %178 = getelementptr inbounds [50 x double], ptr %6, i64 0, i64 9
  store double 3.000000e+00, ptr %178, align 8, !tbaa !11
  %179 = getelementptr inbounds [50 x double], ptr %10, i64 0, i64 9
  store double 1.420000e+02, ptr %179, align 8, !tbaa !11
  %180 = getelementptr inbounds [50 x double], ptr %6, i64 0, i64 10
  store double 1.000000e+00, ptr %180, align 16, !tbaa !11
  %181 = getelementptr inbounds [50 x double], ptr %10, i64 0, i64 10
  store double 6.600000e+01, ptr %181, align 16, !tbaa !11
  %182 = getelementptr inbounds [50 x double], ptr %6, i64 0, i64 11
  store double 5.000000e+00, ptr %182, align 8, !tbaa !11
  %183 = getelementptr inbounds [50 x double], ptr %10, i64 0, i64 11
  store double 2.390000e+02, ptr %183, align 8, !tbaa !11
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %184

184:                                              ; preds = %200, %157
  %185 = load i32, ptr %14, align 4, !tbaa !5
  %186 = icmp slt i32 %185, 12
  br i1 %186, label %187, label %203

187:                                              ; preds = %184
  %188 = load ptr, ptr @stdout, align 8, !tbaa !9
  %189 = load i32, ptr %14, align 4, !tbaa !5
  %190 = load i32, ptr %14, align 4, !tbaa !5
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds [50 x double], ptr %6, i64 0, i64 %191
  %193 = load double, ptr %192, align 8, !tbaa !11
  %194 = load i32, ptr %14, align 4, !tbaa !5
  %195 = load i32, ptr %14, align 4, !tbaa !5
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds [50 x double], ptr %10, i64 0, i64 %196
  %198 = load double, ptr %197, align 8, !tbaa !11
  %199 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %188, ptr noundef @.str.5, i32 noundef %189, double noundef %193, i32 noundef %194, double noundef %198) #4
  br label %200

200:                                              ; preds = %187
  %201 = load i32, ptr %14, align 4, !tbaa !5
  %202 = add nsw i32 %201, 1
  store i32 %202, ptr %14, align 4, !tbaa !5
  br label %184, !llvm.loop !18

203:                                              ; preds = %184
  %204 = getelementptr inbounds [50 x double], ptr %6, i64 0, i64 0
  %205 = getelementptr inbounds [50 x double], ptr %10, i64 0, i64 0
  call void @lsqe(ptr noundef %204, ptr noundef %205, i32 noundef 12, ptr noundef %11, ptr noundef %12)
  %206 = load ptr, ptr @stdout, align 8, !tbaa !9
  %207 = load double, ptr %11, align 8, !tbaa !11
  %208 = load double, ptr %12, align 8, !tbaa !11
  %209 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %206, ptr noundef @.str.6, double noundef %207, double noundef %208) #4
  %210 = load ptr, ptr @stdout, align 8, !tbaa !9
  %211 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %210, ptr noundef @.str.7) #4
  store i32 10, ptr %15, align 4, !tbaa !5
  %212 = getelementptr inbounds [50 x double], ptr %6, i64 0, i64 0
  store double -2.000000e+00, ptr %212, align 16, !tbaa !11
  %213 = getelementptr inbounds [50 x double], ptr %6, i64 0, i64 0
  %214 = call i32 @root(ptr noundef @f, ptr noundef @g, ptr noundef %213, ptr noundef %15, double noundef 1.000000e-04)
  store i32 %214, ptr %13, align 4, !tbaa !5
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %215

215:                                              ; preds = %227, %203
  %216 = load i32, ptr %14, align 4, !tbaa !5
  %217 = load i32, ptr %15, align 4, !tbaa !5
  %218 = icmp slt i32 %216, %217
  br i1 %218, label %219, label %230

219:                                              ; preds = %215
  %220 = load ptr, ptr @stdout, align 8, !tbaa !9
  %221 = load i32, ptr %14, align 4, !tbaa !5
  %222 = load i32, ptr %14, align 4, !tbaa !5
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds [50 x double], ptr %6, i64 0, i64 %223
  %225 = load double, ptr %224, align 8, !tbaa !11
  %226 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %220, ptr noundef @.str.8, i32 noundef %221, double noundef %225) #4
  br label %227

227:                                              ; preds = %219
  %228 = load i32, ptr %14, align 4, !tbaa !5
  %229 = add nsw i32 %228, 1
  store i32 %229, ptr %14, align 4, !tbaa !5
  br label %215, !llvm.loop !19

230:                                              ; preds = %215
  %231 = load i32, ptr %13, align 4, !tbaa !5
  %232 = icmp ne i32 %231, 0
  br i1 %232, label %233, label %236

233:                                              ; preds = %230
  %234 = load ptr, ptr @stdout, align 8, !tbaa !9
  %235 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %234, ptr noundef @.str.9) #4
  br label %244

236:                                              ; preds = %230
  %237 = load ptr, ptr @stdout, align 8, !tbaa !9
  %238 = load i32, ptr %15, align 4, !tbaa !5
  %239 = sub nsw i32 %238, 1
  %240 = sext i32 %239 to i64
  %241 = getelementptr inbounds [50 x double], ptr %6, i64 0, i64 %240
  %242 = load double, ptr %241, align 8, !tbaa !11
  %243 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %237, ptr noundef @.str.10, double noundef %242) #4
  br label %244

244:                                              ; preds = %236, %233
  store i32 10, ptr %15, align 4, !tbaa !5
  %245 = getelementptr inbounds [50 x double], ptr %6, i64 0, i64 0
  store double 5.000000e-01, ptr %245, align 16, !tbaa !11
  %246 = getelementptr inbounds [50 x double], ptr %6, i64 0, i64 0
  %247 = call i32 @root(ptr noundef @f, ptr noundef @g, ptr noundef %246, ptr noundef %15, double noundef 1.000000e-04)
  store i32 %247, ptr %13, align 4, !tbaa !5
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %248

248:                                              ; preds = %260, %244
  %249 = load i32, ptr %14, align 4, !tbaa !5
  %250 = load i32, ptr %15, align 4, !tbaa !5
  %251 = icmp slt i32 %249, %250
  br i1 %251, label %252, label %263

252:                                              ; preds = %248
  %253 = load ptr, ptr @stdout, align 8, !tbaa !9
  %254 = load i32, ptr %14, align 4, !tbaa !5
  %255 = load i32, ptr %14, align 4, !tbaa !5
  %256 = sext i32 %255 to i64
  %257 = getelementptr inbounds [50 x double], ptr %6, i64 0, i64 %256
  %258 = load double, ptr %257, align 8, !tbaa !11
  %259 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %253, ptr noundef @.str.8, i32 noundef %254, double noundef %258) #4
  br label %260

260:                                              ; preds = %252
  %261 = load i32, ptr %14, align 4, !tbaa !5
  %262 = add nsw i32 %261, 1
  store i32 %262, ptr %14, align 4, !tbaa !5
  br label %248, !llvm.loop !20

263:                                              ; preds = %248
  %264 = load i32, ptr %13, align 4, !tbaa !5
  %265 = icmp ne i32 %264, 0
  br i1 %265, label %266, label %269

266:                                              ; preds = %263
  %267 = load ptr, ptr @stdout, align 8, !tbaa !9
  %268 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %267, ptr noundef @.str.9) #4
  br label %277

269:                                              ; preds = %263
  %270 = load ptr, ptr @stdout, align 8, !tbaa !9
  %271 = load i32, ptr %15, align 4, !tbaa !5
  %272 = sub nsw i32 %271, 1
  %273 = sext i32 %272 to i64
  %274 = getelementptr inbounds [50 x double], ptr %6, i64 0, i64 %273
  %275 = load double, ptr %274, align 8, !tbaa !11
  %276 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %270, ptr noundef @.str.10, double noundef %275) #4
  br label %277

277:                                              ; preds = %269, %266
  store i32 10, ptr %15, align 4, !tbaa !5
  %278 = getelementptr inbounds [50 x double], ptr %6, i64 0, i64 0
  store double 2.000000e+00, ptr %278, align 16, !tbaa !11
  %279 = getelementptr inbounds [50 x double], ptr %6, i64 0, i64 0
  %280 = call i32 @root(ptr noundef @f, ptr noundef @g, ptr noundef %279, ptr noundef %15, double noundef 1.000000e-04)
  store i32 %280, ptr %13, align 4, !tbaa !5
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %281

281:                                              ; preds = %293, %277
  %282 = load i32, ptr %14, align 4, !tbaa !5
  %283 = load i32, ptr %15, align 4, !tbaa !5
  %284 = icmp slt i32 %282, %283
  br i1 %284, label %285, label %296

285:                                              ; preds = %281
  %286 = load ptr, ptr @stdout, align 8, !tbaa !9
  %287 = load i32, ptr %14, align 4, !tbaa !5
  %288 = load i32, ptr %14, align 4, !tbaa !5
  %289 = sext i32 %288 to i64
  %290 = getelementptr inbounds [50 x double], ptr %6, i64 0, i64 %289
  %291 = load double, ptr %290, align 8, !tbaa !11
  %292 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %286, ptr noundef @.str.11, i32 noundef %287, double noundef %291) #4
  br label %293

293:                                              ; preds = %285
  %294 = load i32, ptr %14, align 4, !tbaa !5
  %295 = add nsw i32 %294, 1
  store i32 %295, ptr %14, align 4, !tbaa !5
  br label %281, !llvm.loop !21

296:                                              ; preds = %281
  %297 = load i32, ptr %13, align 4, !tbaa !5
  %298 = icmp ne i32 %297, 0
  br i1 %298, label %299, label %302

299:                                              ; preds = %296
  %300 = load ptr, ptr @stdout, align 8, !tbaa !9
  %301 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %300, ptr noundef @.str.9) #4
  br label %310

302:                                              ; preds = %296
  %303 = load ptr, ptr @stdout, align 8, !tbaa !9
  %304 = load i32, ptr %15, align 4, !tbaa !5
  %305 = sub nsw i32 %304, 1
  %306 = sext i32 %305 to i64
  %307 = getelementptr inbounds [50 x double], ptr %6, i64 0, i64 %306
  %308 = load double, ptr %307, align 8, !tbaa !11
  %309 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %303, ptr noundef @.str.10, double noundef %308) #4
  br label %310

310:                                              ; preds = %302, %299
  store i32 0, ptr %3, align 4
  store i32 1, ptr %16, align 4
  br label %311

311:                                              ; preds = %310, %114, %39
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 400, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 400, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 400, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 400, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 400, ptr %6) #4
  %312 = load i32, ptr %3, align 4
  ret i32 %312
}

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

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #2

declare i32 @interpol(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef) #3

declare void @lsqe(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #3

declare i32 @root(ptr noundef, ptr noundef, ptr noundef, ptr noundef, double noundef) #3

; Function Attrs: nounwind uwtable
declare hidden double @f(double noundef) #0

; Function Attrs: nounwind uwtable
declare hidden double @g(double noundef) #0

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 = { "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 }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !14}


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

@stdout = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [34 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [14 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 {
  %3 = alloca [50 x double], align 16
  %4 = alloca [50 x double], align 16
  %5 = alloca [50 x double], align 16
  %6 = alloca [50 x double], align 16
  %7 = alloca [50 x double], align 16
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 400, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 400, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 400, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 400, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 400, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #4
  %11 = load ptr, ptr @stdout, align 8, !tbaa !5
  %12 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %11, ptr noundef nonnull @.str) #4
  %13 = getelementptr inbounds i8, ptr %3, i64 8
  store <2 x double> <double -3.000000e+00, double -2.000000e+00>, ptr %3, align 16, !tbaa !9
  %14 = getelementptr inbounds i8, ptr %4, i64 8
  store <2 x double> <double -5.000000e+00, double -1.100000e+00>, ptr %4, align 16, !tbaa !9
  %15 = getelementptr inbounds i8, ptr %3, i64 16
  %16 = getelementptr inbounds i8, ptr %4, i64 16
  %17 = getelementptr inbounds i8, ptr %3, i64 24
  store <2 x double> <double 2.000000e+00, double 3.000000e+00>, ptr %15, align 16, !tbaa !9
  %18 = getelementptr inbounds i8, ptr %4, i64 24
  store <2 x double> <double 1.900000e+00, double 4.800000e+00>, ptr %16, align 16, !tbaa !9
  %19 = getelementptr inbounds i8, ptr %5, i64 8
  store <2 x double> <double -2.500000e+00, double -1.000000e+00>, ptr %5, align 16, !tbaa !9
  %20 = getelementptr inbounds i8, ptr %5, i64 16
  %21 = getelementptr inbounds i8, ptr %5, i64 24
  store <2 x double> <double 0.000000e+00, double 1.000000e+00>, ptr %20, align 16, !tbaa !9
  %22 = getelementptr inbounds i8, ptr %5, i64 32
  %23 = getelementptr inbounds i8, ptr %5, i64 40
  store <2 x double> <double 1.500000e+00, double 2.500000e+00>, ptr %22, align 16, !tbaa !9
  %24 = call i32 @interpol(ptr noundef nonnull %3, ptr noundef nonnull %4, i32 noundef 4, ptr noundef nonnull %5, ptr noundef nonnull %6, i32 noundef 6) #4
  %.not = icmp eq i32 %24, 0
  br i1 %.not, label %.preheader54.preheader, label %264

.preheader54.preheader:                           ; preds = %2
  %25 = load ptr, ptr @stdout, align 8, !tbaa !5
  %26 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str.1) #4
  %27 = load ptr, ptr @stdout, align 8, !tbaa !5
  %28 = load double, ptr %3, align 16, !tbaa !9
  %29 = load double, ptr %4, align 16, !tbaa !9
  %30 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %27, ptr noundef nonnull @.str.2, i32 noundef 0, double noundef %28, i32 noundef 0, double noundef %29) #4
  %31 = load ptr, ptr @stdout, align 8, !tbaa !5
  %32 = load double, ptr %13, align 8, !tbaa !9
  %33 = load double, ptr %14, align 8, !tbaa !9
  %34 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %31, ptr noundef nonnull @.str.2, i32 noundef 1, double noundef %32, i32 noundef 1, double noundef %33) #4
  %35 = load ptr, ptr @stdout, align 8, !tbaa !5
  %36 = load double, ptr %15, align 16, !tbaa !9
  %37 = load double, ptr %16, align 16, !tbaa !9
  %38 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %35, ptr noundef nonnull @.str.2, i32 noundef 2, double noundef %36, i32 noundef 2, double noundef %37) #4
  %39 = load ptr, ptr @stdout, align 8, !tbaa !5
  %40 = load double, ptr %17, align 8, !tbaa !9
  %41 = load double, ptr %18, align 8, !tbaa !9
  %42 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %39, ptr noundef nonnull @.str.2, i32 noundef 3, double noundef %40, i32 noundef 3, double noundef %41) #4
  %43 = load ptr, ptr @stdout, align 8, !tbaa !5
  %44 = load double, ptr %5, align 16, !tbaa !9
  %45 = load double, ptr %6, align 16, !tbaa !9
  %46 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %43, ptr noundef nonnull @.str.3, i32 noundef 0, double noundef %44, i32 noundef 0, double noundef %45) #4
  %47 = load ptr, ptr @stdout, align 8, !tbaa !5
  %48 = load double, ptr %19, align 8, !tbaa !9
  %49 = getelementptr inbounds i8, ptr %6, i64 8
  %50 = load double, ptr %49, align 8, !tbaa !9
  %51 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %47, ptr noundef nonnull @.str.3, i32 noundef 1, double noundef %48, i32 noundef 1, double noundef %50) #4
  %52 = load ptr, ptr @stdout, align 8, !tbaa !5
  %53 = load double, ptr %20, align 16, !tbaa !9
  %54 = getelementptr inbounds i8, ptr %6, i64 16
  %55 = load double, ptr %54, align 16, !tbaa !9
  %56 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %52, ptr noundef nonnull @.str.3, i32 noundef 2, double noundef %53, i32 noundef 2, double noundef %55) #4
  %57 = load ptr, ptr @stdout, align 8, !tbaa !5
  %58 = load double, ptr %21, align 8, !tbaa !9
  %59 = getelementptr inbounds i8, ptr %6, i64 24
  %60 = load double, ptr %59, align 8, !tbaa !9
  %61 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %57, ptr noundef nonnull @.str.3, i32 noundef 3, double noundef %58, i32 noundef 3, double noundef %60) #4
  %62 = load ptr, ptr @stdout, align 8, !tbaa !5
  %63 = load double, ptr %22, align 16, !tbaa !9
  %64 = getelementptr inbounds i8, ptr %6, i64 32
  %65 = load double, ptr %64, align 16, !tbaa !9
  %66 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %62, ptr noundef nonnull @.str.3, i32 noundef 4, double noundef %63, i32 noundef 4, double noundef %65) #4
  %67 = load ptr, ptr @stdout, align 8, !tbaa !5
  %68 = load double, ptr %23, align 8, !tbaa !9
  %69 = getelementptr inbounds i8, ptr %6, i64 40
  %70 = load double, ptr %69, align 8, !tbaa !9
  %71 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %67, ptr noundef nonnull @.str.3, i32 noundef 5, double noundef %68, i32 noundef 5, double noundef %70) #4
  store <2 x double> <double -4.000000e+00, double -3.500000e+00>, ptr %3, align 16, !tbaa !9
  store <2 x double> <double -3.000000e+00, double 1.500000e+00>, ptr %4, align 16, !tbaa !9
  store <2 x double> <double -2.500000e+00, double -1.500000e+00>, ptr %15, align 16, !tbaa !9
  store <2 x double> <double 2.500000e+00, double 1.500000e+00>, ptr %16, align 16, !tbaa !9
  %72 = getelementptr inbounds i8, ptr %3, i64 32
  %73 = getelementptr inbounds i8, ptr %4, i64 32
  store <2 x double> <double 0.000000e+00, double 1.500000e+00>, ptr %72, align 16, !tbaa !9
  store <2 x double> <double 5.000000e-01, double 1.500000e+00>, ptr %73, align 16, !tbaa !9
  %74 = getelementptr inbounds i8, ptr %3, i64 48
  %75 = getelementptr inbounds i8, ptr %4, i64 48
  store <2 x double> <double 2.500000e+00, double 3.500000e+00>, ptr %74, align 16, !tbaa !9
  store <2 x double> <double 2.500000e+00, double 1.500000e+00>, ptr %75, align 16, !tbaa !9
  %76 = getelementptr inbounds i8, ptr %3, i64 64
  store double 4.000000e+00, ptr %76, align 16, !tbaa !9
  %77 = getelementptr inbounds i8, ptr %4, i64 64
  store double -3.000000e+00, ptr %77, align 16, !tbaa !9
  store <2 x double> <double -5.000000e-01, double -1.000000e+00>, ptr %5, align 16, !tbaa !9
  store <2 x double> <double -2.000000e+00, double -3.000000e+00>, ptr %20, align 16, !tbaa !9
  store <2 x double> <double -3.250000e+00, double -3.500000e+00>, ptr %22, align 16, !tbaa !9
  %78 = getelementptr inbounds i8, ptr %5, i64 48
  store double -3.750000e+00, ptr %78, align 16, !tbaa !9
  %79 = call i32 @interpol(ptr noundef nonnull %3, ptr noundef nonnull %4, i32 noundef 9, ptr noundef nonnull %5, ptr noundef nonnull %6, i32 noundef 7) #4
  %.not50 = icmp eq i32 %79, 0
  br i1 %.not50, label %.preheader.preheader, label %264

.preheader.preheader:                             ; preds = %.preheader54.preheader
  %80 = getelementptr inbounds i8, ptr %4, i64 56
  %81 = getelementptr inbounds i8, ptr %3, i64 56
  %82 = getelementptr inbounds i8, ptr %4, i64 40
  %83 = getelementptr inbounds i8, ptr %3, i64 40
  %84 = load ptr, ptr @stdout, align 8, !tbaa !5
  %85 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %84, ptr noundef nonnull @.str.1) #4
  %86 = load ptr, ptr @stdout, align 8, !tbaa !5
  %87 = load double, ptr %3, align 16, !tbaa !9
  %88 = load double, ptr %4, align 16, !tbaa !9
  %89 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %86, ptr noundef nonnull @.str.2, i32 noundef 0, double noundef %87, i32 noundef 0, double noundef %88) #4
  %90 = load ptr, ptr @stdout, align 8, !tbaa !5
  %91 = load double, ptr %13, align 8, !tbaa !9
  %92 = load double, ptr %14, align 8, !tbaa !9
  %93 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %90, ptr noundef nonnull @.str.2, i32 noundef 1, double noundef %91, i32 noundef 1, double noundef %92) #4
  %94 = load ptr, ptr @stdout, align 8, !tbaa !5
  %95 = load double, ptr %15, align 16, !tbaa !9
  %96 = load double, ptr %16, align 16, !tbaa !9
  %97 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %94, ptr noundef nonnull @.str.2, i32 noundef 2, double noundef %95, i32 noundef 2, double noundef %96) #4
  %98 = load ptr, ptr @stdout, align 8, !tbaa !5
  %99 = load double, ptr %17, align 8, !tbaa !9
  %100 = load double, ptr %18, align 8, !tbaa !9
  %101 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %98, ptr noundef nonnull @.str.2, i32 noundef 3, double noundef %99, i32 noundef 3, double noundef %100) #4
  %102 = load ptr, ptr @stdout, align 8, !tbaa !5
  %103 = load double, ptr %72, align 16, !tbaa !9
  %104 = load double, ptr %73, align 16, !tbaa !9
  %105 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %102, ptr noundef nonnull @.str.2, i32 noundef 4, double noundef %103, i32 noundef 4, double noundef %104) #4
  %106 = load ptr, ptr @stdout, align 8, !tbaa !5
  %107 = load double, ptr %83, align 8, !tbaa !9
  %108 = load double, ptr %82, align 8, !tbaa !9
  %109 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %106, ptr noundef nonnull @.str.2, i32 noundef 5, double noundef %107, i32 noundef 5, double noundef %108) #4
  %110 = load ptr, ptr @stdout, align 8, !tbaa !5
  %111 = load double, ptr %74, align 16, !tbaa !9
  %112 = load double, ptr %75, align 16, !tbaa !9
  %113 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %110, ptr noundef nonnull @.str.2, i32 noundef 6, double noundef %111, i32 noundef 6, double noundef %112) #4
  %114 = load ptr, ptr @stdout, align 8, !tbaa !5
  %115 = load double, ptr %81, align 8, !tbaa !9
  %116 = load double, ptr %80, align 8, !tbaa !9
  %117 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %114, ptr noundef nonnull @.str.2, i32 noundef 7, double noundef %115, i32 noundef 7, double noundef %116) #4
  %118 = load ptr, ptr @stdout, align 8, !tbaa !5
  %119 = load double, ptr %76, align 16, !tbaa !9
  %120 = load double, ptr %77, align 16, !tbaa !9
  %121 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %118, ptr noundef nonnull @.str.2, i32 noundef 8, double noundef %119, i32 noundef 8, double noundef %120) #4
  %122 = load ptr, ptr @stdout, align 8, !tbaa !5
  %123 = load double, ptr %5, align 16, !tbaa !9
  %124 = load double, ptr %6, align 16, !tbaa !9
  %125 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.3, i32 noundef 0, double noundef %123, i32 noundef 0, double noundef %124) #4
  %126 = load ptr, ptr @stdout, align 8, !tbaa !5
  %127 = load double, ptr %19, align 8, !tbaa !9
  %128 = load double, ptr %49, align 8, !tbaa !9
  %129 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %126, ptr noundef nonnull @.str.3, i32 noundef 1, double noundef %127, i32 noundef 1, double noundef %128) #4
  %130 = load ptr, ptr @stdout, align 8, !tbaa !5
  %131 = load double, ptr %20, align 16, !tbaa !9
  %132 = load double, ptr %54, align 16, !tbaa !9
  %133 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %130, ptr noundef nonnull @.str.3, i32 noundef 2, double noundef %131, i32 noundef 2, double noundef %132) #4
  %134 = load ptr, ptr @stdout, align 8, !tbaa !5
  %135 = load double, ptr %21, align 8, !tbaa !9
  %136 = load double, ptr %59, align 8, !tbaa !9
  %137 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %134, ptr noundef nonnull @.str.3, i32 noundef 3, double noundef %135, i32 noundef 3, double noundef %136) #4
  %138 = load ptr, ptr @stdout, align 8, !tbaa !5
  %139 = load double, ptr %22, align 16, !tbaa !9
  %140 = load double, ptr %64, align 16, !tbaa !9
  %141 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %138, ptr noundef nonnull @.str.3, i32 noundef 4, double noundef %139, i32 noundef 4, double noundef %140) #4
  %142 = load ptr, ptr @stdout, align 8, !tbaa !5
  %143 = load double, ptr %23, align 8, !tbaa !9
  %144 = load double, ptr %69, align 8, !tbaa !9
  %145 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %142, ptr noundef nonnull @.str.3, i32 noundef 5, double noundef %143, i32 noundef 5, double noundef %144) #4
  %146 = load ptr, ptr @stdout, align 8, !tbaa !5
  %147 = load double, ptr %78, align 16, !tbaa !9
  %148 = getelementptr inbounds i8, ptr %6, i64 48
  %149 = load double, ptr %148, align 16, !tbaa !9
  %150 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %146, ptr noundef nonnull @.str.3, i32 noundef 6, double noundef %147, i32 noundef 6, double noundef %149) #4
  %151 = load ptr, ptr @stdout, align 8, !tbaa !5
  %152 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %151, ptr noundef nonnull @.str.4) #4
  store double 4.000000e+00, ptr %3, align 16, !tbaa !9
  store <2 x double> <double 1.970000e+02, double 2.720000e+02>, ptr %7, align 16, !tbaa !9
  store <2 x double> <double 6.000000e+00, double 2.000000e+00>, ptr %13, align 8, !tbaa !9
  %153 = getelementptr inbounds i8, ptr %7, i64 16
  store <2 x double> <double 1.000000e+02, double 2.280000e+02>, ptr %153, align 16, !tbaa !9
  store <2 x double> <double 5.000000e+00, double 7.000000e+00>, ptr %17, align 8, !tbaa !9
  %154 = getelementptr inbounds i8, ptr %7, i64 32
  store <2 x double> <double 3.270000e+02, double 2.790000e+02>, ptr %154, align 16, !tbaa !9
  store <2 x double> <double 6.000000e+00, double 3.000000e+00>, ptr %83, align 8, !tbaa !9
  %155 = getelementptr inbounds i8, ptr %7, i64 48
  store <2 x double> <double 1.480000e+02, double 3.770000e+02>, ptr %155, align 16, !tbaa !9
  store <2 x double> <double 8.000000e+00, double 5.000000e+00>, ptr %81, align 8, !tbaa !9
  %156 = getelementptr inbounds i8, ptr %7, i64 64
  %157 = getelementptr inbounds i8, ptr %3, i64 72
  store <2 x double> <double 2.380000e+02, double 1.420000e+02>, ptr %156, align 16, !tbaa !9
  %158 = getelementptr inbounds i8, ptr %3, i64 80
  store <2 x double> <double 3.000000e+00, double 1.000000e+00>, ptr %157, align 8, !tbaa !9
  %159 = getelementptr inbounds i8, ptr %7, i64 80
  %160 = getelementptr inbounds i8, ptr %3, i64 88
  store double 5.000000e+00, ptr %160, align 8, !tbaa !9
  store <2 x double> <double 6.600000e+01, double 2.390000e+02>, ptr %159, align 16, !tbaa !9
  %161 = load ptr, ptr @stdout, align 8, !tbaa !5
  %162 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %161, ptr noundef nonnull @.str.5, i32 noundef 0, double noundef 4.000000e+00, i32 noundef 0, double noundef 1.970000e+02) #4
  %163 = load ptr, ptr @stdout, align 8, !tbaa !5
  %164 = load double, ptr %13, align 8, !tbaa !9
  %165 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %163, ptr noundef nonnull @.str.5, i32 noundef 1, double noundef %164, i32 noundef 1, double noundef 2.720000e+02) #4
  %166 = load ptr, ptr @stdout, align 8, !tbaa !5
  %167 = load double, ptr %15, align 16, !tbaa !9
  %168 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %166, ptr noundef nonnull @.str.5, i32 noundef 2, double noundef %167, i32 noundef 2, double noundef 1.000000e+02) #4
  %169 = load ptr, ptr @stdout, align 8, !tbaa !5
  %170 = load double, ptr %17, align 8, !tbaa !9
  %171 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %169, ptr noundef nonnull @.str.5, i32 noundef 3, double noundef %170, i32 noundef 3, double noundef 2.280000e+02) #4
  %172 = load ptr, ptr @stdout, align 8, !tbaa !5
  %173 = load double, ptr %72, align 16, !tbaa !9
  %174 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %172, ptr noundef nonnull @.str.5, i32 noundef 4, double noundef %173, i32 noundef 4, double noundef 3.270000e+02) #4
  %175 = load ptr, ptr @stdout, align 8, !tbaa !5
  %176 = load double, ptr %83, align 8, !tbaa !9
  %177 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %175, ptr noundef nonnull @.str.5, i32 noundef 5, double noundef %176, i32 noundef 5, double noundef 2.790000e+02) #4
  %178 = load ptr, ptr @stdout, align 8, !tbaa !5
  %179 = load double, ptr %74, align 16, !tbaa !9
  %180 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %178, ptr noundef nonnull @.str.5, i32 noundef 6, double noundef %179, i32 noundef 6, double noundef 1.480000e+02) #4
  %181 = load ptr, ptr @stdout, align 8, !tbaa !5
  %182 = load double, ptr %81, align 8, !tbaa !9
  %183 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %181, ptr noundef nonnull @.str.5, i32 noundef 7, double noundef %182, i32 noundef 7, double noundef 3.770000e+02) #4
  %184 = load ptr, ptr @stdout, align 8, !tbaa !5
  %185 = load double, ptr %76, align 16, !tbaa !9
  %186 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %184, ptr noundef nonnull @.str.5, i32 noundef 8, double noundef %185, i32 noundef 8, double noundef 2.380000e+02) #4
  %187 = load ptr, ptr @stdout, align 8, !tbaa !5
  %188 = load double, ptr %157, align 8, !tbaa !9
  %189 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %187, ptr noundef nonnull @.str.5, i32 noundef 9, double noundef %188, i32 noundef 9, double noundef 1.420000e+02) #4
  %190 = load ptr, ptr @stdout, align 8, !tbaa !5
  %191 = load double, ptr %158, align 16, !tbaa !9
  %192 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %190, ptr noundef nonnull @.str.5, i32 noundef 10, double noundef %191, i32 noundef 10, double noundef 6.600000e+01) #4
  %193 = load ptr, ptr @stdout, align 8, !tbaa !5
  %194 = load double, ptr %160, align 8, !tbaa !9
  %195 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %193, ptr noundef nonnull @.str.5, i32 noundef 11, double noundef %194, i32 noundef 11, double noundef 2.390000e+02) #4
  call void @lsqe(ptr noundef nonnull %3, ptr noundef nonnull %7, i32 noundef 12, ptr noundef nonnull %8, ptr noundef nonnull %9) #4
  %196 = load ptr, ptr @stdout, align 8, !tbaa !5
  %197 = load double, ptr %8, align 8, !tbaa !9
  %198 = load double, ptr %9, align 8, !tbaa !9
  %199 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %196, ptr noundef nonnull @.str.6, double noundef %197, double noundef %198) #4
  %200 = load ptr, ptr @stdout, align 8, !tbaa !5
  %201 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %200, ptr noundef nonnull @.str.7) #4
  store i32 10, ptr %10, align 4, !tbaa !11
  store double -2.000000e+00, ptr %3, align 16, !tbaa !9
  %202 = call i32 @root(ptr noundef nonnull @f, ptr noundef nonnull @g, ptr noundef nonnull %3, ptr noundef nonnull %10, double noundef 1.000000e-04) #4
  %203 = load i32, ptr %10, align 4, !tbaa !11
  %204 = icmp sgt i32 %203, 0
  br i1 %204, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader.preheader, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.preheader.preheader ]
  %205 = load ptr, ptr @stdout, align 8, !tbaa !5
  %206 = getelementptr inbounds [50 x double], ptr %3, i64 0, i64 %indvars.iv
  %207 = load double, ptr %206, align 8, !tbaa !9
  %208 = trunc nuw nsw i64 %indvars.iv to i32
  %209 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %205, ptr noundef nonnull @.str.8, i32 noundef %208, double noundef %207) #4
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %210 = load i32, ptr %10, align 4, !tbaa !11
  %211 = sext i32 %210 to i64
  %212 = icmp slt i64 %indvars.iv.next, %211
  br i1 %212, label %.lr.ph, label %._crit_edge, !llvm.loop !13

._crit_edge:                                      ; preds = %.lr.ph, %.preheader.preheader
  %.lcssa56 = phi i32 [ %203, %.preheader.preheader ], [ %210, %.lr.ph ]
  %.not51 = icmp eq i32 %202, 0
  %213 = load ptr, ptr @stdout, align 8, !tbaa !5
  br i1 %.not51, label %216, label %214

214:                                              ; preds = %._crit_edge
  %215 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %213, ptr noundef nonnull @.str.9) #4
  br label %222

216:                                              ; preds = %._crit_edge
  %217 = add nsw i32 %.lcssa56, -1
  %218 = sext i32 %217 to i64
  %219 = getelementptr inbounds [50 x double], ptr %3, i64 0, i64 %218
  %220 = load double, ptr %219, align 8, !tbaa !9
  %221 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %213, ptr noundef nonnull @.str.10, double noundef %220) #4
  br label %222

222:                                              ; preds = %216, %214
  store i32 10, ptr %10, align 4, !tbaa !11
  store double 5.000000e-01, ptr %3, align 16, !tbaa !9
  %223 = call i32 @root(ptr noundef nonnull @f, ptr noundef nonnull @g, ptr noundef nonnull %3, ptr noundef nonnull %10, double noundef 1.000000e-04) #4
  %224 = load i32, ptr %10, align 4, !tbaa !11
  %225 = icmp sgt i32 %224, 0
  br i1 %225, label %.lr.ph65, label %._crit_edge66

.lr.ph65:                                         ; preds = %222, %.lr.ph65
  %indvars.iv82 = phi i64 [ %indvars.iv.next83, %.lr.ph65 ], [ 0, %222 ]
  %226 = load ptr, ptr @stdout, align 8, !tbaa !5
  %227 = getelementptr inbounds [50 x double], ptr %3, i64 0, i64 %indvars.iv82
  %228 = load double, ptr %227, align 8, !tbaa !9
  %229 = trunc nuw nsw i64 %indvars.iv82 to i32
  %230 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %226, ptr noundef nonnull @.str.8, i32 noundef %229, double noundef %228) #4
  %indvars.iv.next83 = add nuw nsw i64 %indvars.iv82, 1
  %231 = load i32, ptr %10, align 4, !tbaa !11
  %232 = sext i32 %231 to i64
  %233 = icmp slt i64 %indvars.iv.next83, %232
  br i1 %233, label %.lr.ph65, label %._crit_edge66, !llvm.loop !15

._crit_edge66:                                    ; preds = %.lr.ph65, %222
  %.lcssa55 = phi i32 [ %224, %222 ], [ %231, %.lr.ph65 ]
  %.not52 = icmp eq i32 %223, 0
  %234 = load ptr, ptr @stdout, align 8, !tbaa !5
  br i1 %.not52, label %237, label %235

235:                                              ; preds = %._crit_edge66
  %236 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %234, ptr noundef nonnull @.str.9) #4
  br label %243

237:                                              ; preds = %._crit_edge66
  %238 = add nsw i32 %.lcssa55, -1
  %239 = sext i32 %238 to i64
  %240 = getelementptr inbounds [50 x double], ptr %3, i64 0, i64 %239
  %241 = load double, ptr %240, align 8, !tbaa !9
  %242 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %234, ptr noundef nonnull @.str.10, double noundef %241) #4
  br label %243

243:                                              ; preds = %237, %235
  store i32 10, ptr %10, align 4, !tbaa !11
  store double 2.000000e+00, ptr %3, align 16, !tbaa !9
  %244 = call i32 @root(ptr noundef nonnull @f, ptr noundef nonnull @g, ptr noundef nonnull %3, ptr noundef nonnull %10, double noundef 1.000000e-04) #4
  %245 = load i32, ptr %10, align 4, !tbaa !11
  %246 = icmp sgt i32 %245, 0
  br i1 %246, label %.lr.ph70, label %._crit_edge71

.lr.ph70:                                         ; preds = %243, %.lr.ph70
  %indvars.iv85 = phi i64 [ %indvars.iv.next86, %.lr.ph70 ], [ 0, %243 ]
  %247 = load ptr, ptr @stdout, align 8, !tbaa !5
  %248 = getelementptr inbounds [50 x double], ptr %3, i64 0, i64 %indvars.iv85
  %249 = load double, ptr %248, align 8, !tbaa !9
  %250 = trunc nuw nsw i64 %indvars.iv85 to i32
  %251 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %247, ptr noundef nonnull @.str.11, i32 noundef %250, double noundef %249) #4
  %indvars.iv.next86 = add nuw nsw i64 %indvars.iv85, 1
  %252 = load i32, ptr %10, align 4, !tbaa !11
  %253 = sext i32 %252 to i64
  %254 = icmp slt i64 %indvars.iv.next86, %253
  br i1 %254, label %.lr.ph70, label %._crit_edge71, !llvm.loop !16

._crit_edge71:                                    ; preds = %.lr.ph70, %243
  %.lcssa = phi i32 [ %245, %243 ], [ %252, %.lr.ph70 ]
  %.not53 = icmp eq i32 %244, 0
  %255 = load ptr, ptr @stdout, align 8, !tbaa !5
  br i1 %.not53, label %258, label %256

256:                                              ; preds = %._crit_edge71
  %257 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %255, ptr noundef nonnull @.str.9) #4
  br label %264

258:                                              ; preds = %._crit_edge71
  %259 = add nsw i32 %.lcssa, -1
  %260 = sext i32 %259 to i64
  %261 = getelementptr inbounds [50 x double], ptr %3, i64 0, i64 %260
  %262 = load double, ptr %261, align 8, !tbaa !9
  %263 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %255, ptr noundef nonnull @.str.10, double noundef %262) #4
  br label %264

264:                                              ; preds = %256, %258, %.preheader54.preheader, %2
  %.046 = phi i32 [ 1, %2 ], [ 1, %.preheader54.preheader ], [ 0, %258 ], [ 0, %256 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %3) #4
  ret i32 %.046
}

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

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

declare i32 @interpol(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

declare void @lsqe(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare i32 @root(ptr noundef, ptr noundef, ptr noundef, ptr noundef, double noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden double @f(double noundef) #0

; Function Attrs: nounwind uwtable
declare hidden double @g(double noundef) #0

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "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 }

!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, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass