; LLVM IR from HRI-EU/Rcs :: src/RcsCore (Rcs_mathTests)

; 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._MatNd = type { ptr, i32, i32, i32, i8 }

@RCS_GLOBAL_RLOG_CB = external global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [74 x i8], align 1
@RcsLogLevel = external global i32, align 4
@stderr = external global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [11 x i8], align 1
@__func__.testBasicMath = external hidden unnamed_addr constant [14 x i8], align 1
@.str.130 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.131 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.132 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.133 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.134 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.135 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.136 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.137 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.138 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.139 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.140 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.141 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.142 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.143 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.144 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.145 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.146 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.147 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.148 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.149 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.150 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.151 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.152 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.153 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.154 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.155 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.156 = external hidden unnamed_addr constant [32 x i8], align 1

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

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

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

declare void @Vec3d_setRandom(ptr noundef, double noundef, double noundef) #2

declare ptr @MatNd_create(i32 noundef, i32 noundef) #2

declare void @MatNd_setRandom(ptr noundef, double noundef, double noundef) #2

declare void @MatNd_printCommentDigits(ptr noundef, ptr noundef, i32 noundef) #2

declare void @MatNd_destroy(ptr noundef) #2

declare i32 @fflush(ptr noundef) #2

declare void @MatNd_set(ptr noundef, i32 noundef, i32 noundef, double noundef) #2

declare void @MatNd_sqrMulABAt(ptr noundef, ptr noundef, ptr noundef) #2

declare double @VecNd_maxAbsEle(ptr noundef, i32 noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local zeroext i1 @testBasicMath(i32 noundef %0, ptr noundef %1) #3 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i8, align 1
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca [3 x [3 x double]], align 16
  %9 = alloca [3 x [3 x double]], align 16
  %10 = alloca [3 x [3 x double]], align 16
  %11 = alloca [3 x [3 x double]], align 16
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca [10 x double], align 16
  %21 = alloca [10 x double], align 16
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  %27 = alloca double, align 8
  %28 = alloca [3 x double], align 16
  %29 = alloca [3 x double], align 16
  %30 = alloca double, align 8
  store i32 %0, ptr %3, align 4, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #4
  store i8 1, ptr %5, align 1, !tbaa !11
  %31 = call i64 @lround(double noundef 2.300000e+00) #4
  %32 = icmp ne i64 %31, 2
  br i1 %32, label %33, label %52

33:                                               ; preds = %2
  br label %34

34:                                               ; preds = %33
  %35 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !9
  %36 = icmp ne ptr %35, null
  br i1 %36, label %37, label %39

37:                                               ; preds = %34
  %38 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !9
  call void (i32, ptr, ptr, i32, ptr, ...) %38(i32 noundef 2, ptr noundef @.str.3, ptr noundef @__func__.testBasicMath, i32 noundef 1147, ptr noundef @.str.130)
  br label %39

39:                                               ; preds = %37, %34
  %40 = load i32, ptr @RcsLogLevel, align 4, !tbaa !5
  %41 = icmp sle i32 2, %40
  br i1 %41, label %42, label %49

42:                                               ; preds = %39
  %43 = load ptr, ptr @stderr, align 8, !tbaa !9
  %44 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %43, ptr noundef @.str.5, ptr noundef @.str.3, ptr noundef @__func__.testBasicMath, i32 noundef 1147) #4
  %45 = load ptr, ptr @stderr, align 8, !tbaa !9
  %46 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %45, ptr noundef @.str.130) #4
  %47 = load ptr, ptr @stderr, align 8, !tbaa !9
  %48 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %47, ptr noundef @.str.6) #4
  br label %49

49:                                               ; preds = %42, %39
  br label %50

50:                                               ; preds = %49
  br label %51

51:                                               ; preds = %50
  store i8 0, ptr %5, align 1, !tbaa !11
  br label %52

52:                                               ; preds = %51, %2
  %53 = call i64 @lround(double noundef 3.800000e+00) #4
  %54 = icmp ne i64 %53, 4
  br i1 %54, label %55, label %74

55:                                               ; preds = %52
  br label %56

56:                                               ; preds = %55
  %57 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !9
  %58 = icmp ne ptr %57, null
  br i1 %58, label %59, label %61

59:                                               ; preds = %56
  %60 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !9
  call void (i32, ptr, ptr, i32, ptr, ...) %60(i32 noundef 2, ptr noundef @.str.3, ptr noundef @__func__.testBasicMath, i32 noundef 1153, ptr noundef @.str.131)
  br label %61

61:                                               ; preds = %59, %56
  %62 = load i32, ptr @RcsLogLevel, align 4, !tbaa !5
  %63 = icmp sle i32 2, %62
  br i1 %63, label %64, label %71

64:                                               ; preds = %61
  %65 = load ptr, ptr @stderr, align 8, !tbaa !9
  %66 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %65, ptr noundef @.str.5, ptr noundef @.str.3, ptr noundef @__func__.testBasicMath, i32 noundef 1153) #4
  %67 = load ptr, ptr @stderr, align 8, !tbaa !9
  %68 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %67, ptr noundef @.str.131) #4
  %69 = load ptr, ptr @stderr, align 8, !tbaa !9
  %70 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %69, ptr noundef @.str.6) #4
  br label %71

71:                                               ; preds = %64, %61
  br label %72

72:                                               ; preds = %71
  br label %73

73:                                               ; preds = %72
  store i8 0, ptr %5, align 1, !tbaa !11
  br label %74

74:                                               ; preds = %73, %52
  %75 = call i64 @lround(double noundef -2.300000e+00) #4
  %76 = icmp ne i64 %75, -2
  br i1 %76, label %77, label %96

77:                                               ; preds = %74
  br label %78

78:                                               ; preds = %77
  %79 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !9
  %80 = icmp ne ptr %79, null
  br i1 %80, label %81, label %83

81:                                               ; preds = %78
  %82 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !9
  call void (i32, ptr, ptr, i32, ptr, ...) %82(i32 noundef 2, ptr noundef @.str.3, ptr noundef @__func__.testBasicMath, i32 noundef 1159, ptr noundef @.str.132)
  br label %83

83:                                               ; preds = %81, %78
  %84 = load i32, ptr @RcsLogLevel, align 4, !tbaa !5
  %85 = icmp sle i32 2, %84
  br i1 %85, label %86, label %93

86:                                               ; preds = %83
  %87 = load ptr, ptr @stderr, align 8, !tbaa !9
  %88 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %87, ptr noundef @.str.5, ptr noundef @.str.3, ptr noundef @__func__.testBasicMath, i32 noundef 1159) #4
  %89 = load ptr, ptr @stderr, align 8, !tbaa !9
  %90 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %89, ptr noundef @.str.132) #4
  %91 = load ptr, ptr @stderr, align 8, !tbaa !9
  %92 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %91, ptr noundef @.str.6) #4
  br label %93

93:                                               ; preds = %86, %83
  br label %94

94:                                               ; preds = %93
  br label %95

95:                                               ; preds = %94
  store i8 0, ptr %5, align 1, !tbaa !11
  br label %96

96:                                               ; preds = %95, %74
  %97 = call i64 @lround(double noundef -3.800000e+00) #4
  %98 = icmp ne i64 %97, -4
  br i1 %98, label %99, label %118

99:                                               ; preds = %96
  br label %100

100:                                              ; preds = %99
  %101 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !9
  %102 = icmp ne ptr %101, null
  br i1 %102, label %103, label %105

103:                                              ; preds = %100
  %104 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !9
  call void (i32, ptr, ptr, i32, ptr, ...) %104(i32 noundef 2, ptr noundef @.str.3, ptr noundef @__func__.testBasicMath, i32 noundef 1165, ptr noundef @.str.133)
  br label %105

105:                                              ; preds = %103, %100
  %106 = load i32, ptr @RcsLogLevel, align 4, !tbaa !5
  %107 = icmp sle i32 2, %106
  br i1 %107, label %108, label %115

108:                                              ; preds = %105
  %109 = load ptr, ptr @stderr, align 8, !tbaa !9
  %110 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %109, ptr noundef @.str.5, ptr noundef @.str.3, ptr noundef @__func__.testBasicMath, i32 noundef 1165) #4
  %111 = load ptr, ptr @stderr, align 8, !tbaa !9
  %112 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %111, ptr noundef @.str.133) #4
  %113 = load ptr, ptr @stderr, align 8, !tbaa !9
  %114 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %113, ptr noundef @.str.6) #4
  br label %115

115:                                              ; preds = %108, %105
  br label %116

116:                                              ; preds = %115
  br label %117

117:                                              ; preds = %116
  store i8 0, ptr %5, align 1, !tbaa !11
  br label %118

118:                                              ; preds = %117, %96
  %119 = load i32, ptr @RcsLogLevel, align 4, !tbaa !5
  %120 = icmp sle i32 3, %119
  br i1 %120, label %121, label %130

121:                                              ; preds = %118
  %122 = call i64 @lround(double noundef 2.300000e+00) #4
  %123 = call i32 (ptr, ...) @printf(ptr noundef @.str.134, i64 noundef %122)
  %124 = call i64 @lround(double noundef 3.800000e+00) #4
  %125 = call i32 (ptr, ...) @printf(ptr noundef @.str.135, i64 noundef %124)
  %126 = call i64 @lround(double noundef -2.300000e+00) #4
  %127 = call i32 (ptr, ...) @printf(ptr noundef @.str.136, i64 noundef %126)
  %128 = call i64 @lround(double noundef -3.800000e+00) #4
  %129 = call i32 (ptr, ...) @printf(ptr noundef @.str.137, i64 noundef %128)
  br label %130

130:                                              ; preds = %121, %118
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %131 = call ptr @MatNd_create(i32 noundef 3, i32 noundef 6)
  store ptr %131, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %132 = call ptr @MatNd_create(i32 noundef 3, i32 noundef 3)
  store ptr %132, ptr %7, align 8, !tbaa !9
  %133 = load ptr, ptr %6, align 8, !tbaa !9
  call void @MatNd_setRandom(ptr noundef %133, double noundef -1.000000e+00, double noundef 1.000000e+00)
  %134 = load ptr, ptr %7, align 8, !tbaa !9
  %135 = load ptr, ptr %6, align 8, !tbaa !9
  call void @MatNd_sqrMulABAt(ptr noundef %134, ptr noundef %135, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 72, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 72, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 72, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 72, ptr %11) #4
  %136 = getelementptr inbounds [3 x [3 x double]], ptr %8, i64 0, i64 0
  %137 = load ptr, ptr %6, align 8, !tbaa !9
  %138 = getelementptr inbounds %struct._MatNd, ptr %137, i32 0, i32 0
  %139 = load ptr, ptr %138, align 8, !tbaa !13
  call void @VecNd_copy(ptr noundef %136, ptr noundef %139, i32 noundef 9)
  %140 = getelementptr inbounds [3 x [3 x double]], ptr %10, i64 0, i64 0
  %141 = load ptr, ptr %6, align 8, !tbaa !9
  %142 = getelementptr inbounds %struct._MatNd, ptr %141, i32 0, i32 0
  %143 = load ptr, ptr %142, align 8, !tbaa !13
  call void @VecNd_copy(ptr noundef %140, ptr noundef %143, i32 noundef 9)
  %144 = load i32, ptr @RcsLogLevel, align 4, !tbaa !5
  %145 = icmp sle i32 3, %144
  br i1 %145, label %146, label %160

146:                                              ; preds = %130
  br label %147

147:                                              ; preds = %146
  %148 = load ptr, ptr @stderr, align 8, !tbaa !9
  %149 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %148, ptr noundef @.str.22, ptr noundef @__func__.testBasicMath, i32 noundef 1189) #4
  %150 = load ptr, ptr @stderr, align 8, !tbaa !9
  %151 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %150, ptr noundef @.str.138) #4
  %152 = load ptr, ptr @stderr, align 8, !tbaa !9
  %153 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %152, ptr noundef @.str.6) #4
  %154 = load ptr, ptr @stderr, align 8, !tbaa !9
  %155 = call i32 @fflush(ptr noundef %154)
  br label %156

156:                                              ; preds = %147
  br label %157

157:                                              ; preds = %156
  %158 = load ptr, ptr @stderr, align 8, !tbaa !9
  %159 = getelementptr inbounds [3 x [3 x double]], ptr %8, i64 0, i64 0
  call void @Mat3d_fprint(ptr noundef %158, ptr noundef %159)
  br label %160

160:                                              ; preds = %157, %130
  %161 = getelementptr inbounds [3 x [3 x double]], ptr %9, i64 0, i64 0
  %162 = getelementptr inbounds [3 x [3 x double]], ptr %8, i64 0, i64 0
  %163 = call double @Mat3d_inverse(ptr noundef %161, ptr noundef %162)
  %164 = load i32, ptr @RcsLogLevel, align 4, !tbaa !5
  %165 = icmp sle i32 3, %164
  br i1 %165, label %166, label %180

166:                                              ; preds = %160
  br label %167

167:                                              ; preds = %166
  %168 = load ptr, ptr @stderr, align 8, !tbaa !9
  %169 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %168, ptr noundef @.str.22, ptr noundef @__func__.testBasicMath, i32 noundef 1196) #4
  %170 = load ptr, ptr @stderr, align 8, !tbaa !9
  %171 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %170, ptr noundef @.str.139) #4
  %172 = load ptr, ptr @stderr, align 8, !tbaa !9
  %173 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %172, ptr noundef @.str.6) #4
  %174 = load ptr, ptr @stderr, align 8, !tbaa !9
  %175 = call i32 @fflush(ptr noundef %174)
  br label %176

176:                                              ; preds = %167
  br label %177

177:                                              ; preds = %176
  %178 = load ptr, ptr @stderr, align 8, !tbaa !9
  %179 = getelementptr inbounds [3 x [3 x double]], ptr %9, i64 0, i64 0
  call void @Mat3d_fprint(ptr noundef %178, ptr noundef %179)
  br label %180

180:                                              ; preds = %177, %160
  %181 = getelementptr inbounds [3 x [3 x double]], ptr %11, i64 0, i64 0
  %182 = getelementptr inbounds [3 x [3 x double]], ptr %8, i64 0, i64 0
  %183 = getelementptr inbounds [3 x [3 x double]], ptr %9, i64 0, i64 0
  call void @Mat3d_mul(ptr noundef %181, ptr noundef %182, ptr noundef %183)
  %184 = load i32, ptr @RcsLogLevel, align 4, !tbaa !5
  %185 = icmp sle i32 3, %184
  br i1 %185, label %186, label %200

186:                                              ; preds = %180
  br label %187

187:                                              ; preds = %186
  %188 = load ptr, ptr @stderr, align 8, !tbaa !9
  %189 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %188, ptr noundef @.str.22, ptr noundef @__func__.testBasicMath, i32 noundef 1203) #4
  %190 = load ptr, ptr @stderr, align 8, !tbaa !9
  %191 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %190, ptr noundef @.str.140) #4
  %192 = load ptr, ptr @stderr, align 8, !tbaa !9
  %193 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %192, ptr noundef @.str.6) #4
  %194 = load ptr, ptr @stderr, align 8, !tbaa !9
  %195 = call i32 @fflush(ptr noundef %194)
  br label %196

196:                                              ; preds = %187
  br label %197

197:                                              ; preds = %196
  %198 = load ptr, ptr @stderr, align 8, !tbaa !9
  %199 = getelementptr inbounds [3 x [3 x double]], ptr %11, i64 0, i64 0
  call void @Mat3d_fprint(ptr noundef %198, ptr noundef %199)
  br label %200

200:                                              ; preds = %197, %180
  %201 = getelementptr inbounds [3 x [3 x double]], ptr %11, i64 0, i64 0
  call void @Mat3d_addConstToDiag(ptr noundef %201, double noundef -1.000000e+00)
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %202 = getelementptr inbounds [3 x [3 x double]], ptr %11, i64 0, i64 0
  %203 = call double @VecNd_maxAbsEle(ptr noundef %202, i32 noundef 9)
  store double %203, ptr %12, align 8, !tbaa !15
  %204 = load double, ptr %12, align 8, !tbaa !15
  %205 = fcmp ogt double %204, 1.000000e-05
  br i1 %205, label %206, label %216

206:                                              ; preds = %200
  %207 = load i32, ptr @RcsLogLevel, align 4, !tbaa !5
  %208 = icmp sle i32 2, %207
  br i1 %208, label %209, label %215

209:                                              ; preds = %206
  %210 = load ptr, ptr @stderr, align 8, !tbaa !9
  %211 = load double, ptr %12, align 8, !tbaa !15
  %212 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %210, ptr noundef @.str.141, double noundef %211) #4
  %213 = load ptr, ptr @stderr, align 8, !tbaa !9
  %214 = getelementptr inbounds [3 x [3 x double]], ptr %11, i64 0, i64 0
  call void @Mat3d_fprint(ptr noundef %213, ptr noundef %214)
  br label %215

215:                                              ; preds = %209, %206
  store i8 0, ptr %5, align 1, !tbaa !11
  br label %216

216:                                              ; preds = %215, %200
  %217 = getelementptr inbounds [3 x [3 x double]], ptr %10, i64 0, i64 0
  %218 = call double @Mat3d_inverseSelf(ptr noundef %217)
  %219 = load i32, ptr @RcsLogLevel, align 4, !tbaa !5
  %220 = icmp sle i32 3, %219
  br i1 %220, label %221, label %235

221:                                              ; preds = %216
  br label %222

222:                                              ; preds = %221
  %223 = load ptr, ptr @stderr, align 8, !tbaa !9
  %224 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %223, ptr noundef @.str.22, ptr noundef @__func__.testBasicMath, i32 noundef 1223) #4
  %225 = load ptr, ptr @stderr, align 8, !tbaa !9
  %226 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %225, ptr noundef @.str.142) #4
  %227 = load ptr, ptr @stderr, align 8, !tbaa !9
  %228 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %227, ptr noundef @.str.6) #4
  %229 = load ptr, ptr @stderr, align 8, !tbaa !9
  %230 = call i32 @fflush(ptr noundef %229)
  br label %231

231:                                              ; preds = %222
  br label %232

232:                                              ; preds = %231
  %233 = load ptr, ptr @stderr, align 8, !tbaa !9
  %234 = getelementptr inbounds [3 x [3 x double]], ptr %10, i64 0, i64 0
  call void @Mat3d_fprint(ptr noundef %233, ptr noundef %234)
  br label %235

235:                                              ; preds = %232, %216
  %236 = getelementptr inbounds [3 x [3 x double]], ptr %11, i64 0, i64 0
  %237 = getelementptr inbounds [3 x [3 x double]], ptr %8, i64 0, i64 0
  %238 = getelementptr inbounds [3 x [3 x double]], ptr %10, i64 0, i64 0
  call void @Mat3d_mul(ptr noundef %236, ptr noundef %237, ptr noundef %238)
  %239 = load i32, ptr @RcsLogLevel, align 4, !tbaa !5
  %240 = icmp sle i32 3, %239
  br i1 %240, label %241, label %255

241:                                              ; preds = %235
  br label %242

242:                                              ; preds = %241
  %243 = load ptr, ptr @stderr, align 8, !tbaa !9
  %244 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %243, ptr noundef @.str.22, ptr noundef @__func__.testBasicMath, i32 noundef 1230) #4
  %245 = load ptr, ptr @stderr, align 8, !tbaa !9
  %246 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %245, ptr noundef @.str.140) #4
  %247 = load ptr, ptr @stderr, align 8, !tbaa !9
  %248 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %247, ptr noundef @.str.6) #4
  %249 = load ptr, ptr @stderr, align 8, !tbaa !9
  %250 = call i32 @fflush(ptr noundef %249)
  br label %251

251:                                              ; preds = %242
  br label %252

252:                                              ; preds = %251
  %253 = load ptr, ptr @stderr, align 8, !tbaa !9
  %254 = getelementptr inbounds [3 x [3 x double]], ptr %11, i64 0, i64 0
  call void @Mat3d_fprint(ptr noundef %253, ptr noundef %254)
  br label %255

255:                                              ; preds = %252, %235
  %256 = getelementptr inbounds [3 x [3 x double]], ptr %11, i64 0, i64 0
  call void @Mat3d_addConstToDiag(ptr noundef %256, double noundef -1.000000e+00)
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %257 = getelementptr inbounds [3 x [3 x double]], ptr %11, i64 0, i64 0
  %258 = call double @VecNd_maxAbsEle(ptr noundef %257, i32 noundef 9)
  store double %258, ptr %13, align 8, !tbaa !15
  %259 = load double, ptr %13, align 8, !tbaa !15
  %260 = fcmp ogt double %259, 1.000000e-05
  br i1 %260, label %261, label %271

261:                                              ; preds = %255
  %262 = load i32, ptr @RcsLogLevel, align 4, !tbaa !5
  %263 = icmp sle i32 2, %262
  br i1 %263, label %264, label %270

264:                                              ; preds = %261
  %265 = load ptr, ptr @stderr, align 8, !tbaa !9
  %266 = load double, ptr %13, align 8, !tbaa !15
  %267 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %265, ptr noundef @.str.141, double noundef %266) #4
  %268 = load ptr, ptr @stderr, align 8, !tbaa !9
  %269 = getelementptr inbounds [3 x [3 x double]], ptr %11, i64 0, i64 0
  call void @Mat3d_fprint(ptr noundef %268, ptr noundef %269)
  br label %270

270:                                              ; preds = %264, %261
  store i8 0, ptr %5, align 1, !tbaa !11
  br label %271

271:                                              ; preds = %270, %255
  %272 = load ptr, ptr %6, align 8, !tbaa !9
  call void @MatNd_destroy(ptr noundef %272)
  %273 = load ptr, ptr %7, align 8, !tbaa !9
  call void @MatNd_destroy(ptr noundef %273)
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 10, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %274 = call ptr @MatNd_create(i32 noundef 10, i32 noundef 1)
  store ptr %274, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %275 = call ptr @MatNd_create(i32 noundef 10, i32 noundef 1)
  store ptr %275, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %276

276:                                              ; preds = %287, %271
  %277 = load i32, ptr %17, align 4, !tbaa !5
  %278 = icmp slt i32 %277, 10
  br i1 %278, label %280, label %279

279:                                              ; preds = %276
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  br label %290

280:                                              ; preds = %276
  %281 = load ptr, ptr %15, align 8, !tbaa !9
  %282 = load i32, ptr %17, align 4, !tbaa !5
  %283 = load i32, ptr %17, align 4, !tbaa !5
  %284 = sitofp i32 %283 to double
  call void @MatNd_set(ptr noundef %281, i32 noundef %282, i32 noundef 0, double noundef %284)
  %285 = load ptr, ptr %16, align 8, !tbaa !9
  %286 = load i32, ptr %17, align 4, !tbaa !5
  call void @MatNd_set(ptr noundef %285, i32 noundef %286, i32 noundef 0, double noundef 5.000000e-01)
  br label %287

287:                                              ; preds = %280
  %288 = load i32, ptr %17, align 4, !tbaa !5
  %289 = add nsw i32 %288, 1
  store i32 %289, ptr %17, align 4, !tbaa !5
  br label %276, !llvm.loop !17

290:                                              ; preds = %279
  %291 = load i32, ptr @RcsLogLevel, align 4, !tbaa !5
  %292 = icmp sle i32 3, %291
  br i1 %292, label %293, label %296

293:                                              ; preds = %290
  %294 = load ptr, ptr %16, align 8, !tbaa !9
  call void @MatNd_printCommentDigits(ptr noundef @.str.143, ptr noundef %294, i32 noundef 6)
  %295 = load ptr, ptr %15, align 8, !tbaa !9
  call void @MatNd_printCommentDigits(ptr noundef @.str.144, ptr noundef %295, i32 noundef 6)
  br label %296

296:                                              ; preds = %293, %290
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %297 = load ptr, ptr %15, align 8, !tbaa !9
  %298 = load ptr, ptr %16, align 8, !tbaa !9
  %299 = call double @MatNd_scaleSelf(ptr noundef %297, ptr noundef %298)
  store double %299, ptr %18, align 8, !tbaa !15
  %300 = load i32, ptr @RcsLogLevel, align 4, !tbaa !5
  %301 = icmp sle i32 3, %300
  br i1 %301, label %302, label %316

302:                                              ; preds = %296
  %303 = load ptr, ptr %15, align 8, !tbaa !9
  call void @MatNd_printCommentDigits(ptr noundef @.str.145, ptr noundef %303, i32 noundef 6)
  br label %304

304:                                              ; preds = %302
  %305 = load ptr, ptr @stderr, align 8, !tbaa !9
  %306 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %305, ptr noundef @.str.22, ptr noundef @__func__.testBasicMath, i32 noundef 1270) #4
  %307 = load ptr, ptr @stderr, align 8, !tbaa !9
  %308 = load double, ptr %18, align 8, !tbaa !15
  %309 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %307, ptr noundef @.str.146, double noundef %308) #4
  %310 = load ptr, ptr @stderr, align 8, !tbaa !9
  %311 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %310, ptr noundef @.str.6) #4
  %312 = load ptr, ptr @stderr, align 8, !tbaa !9
  %313 = call i32 @fflush(ptr noundef %312)
  br label %314

314:                                              ; preds = %304
  br label %315

315:                                              ; preds = %314
  br label %316

316:                                              ; preds = %315, %296
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %317 = load ptr, ptr %15, align 8, !tbaa !9
  %318 = call double @MatNd_maxAbsEle(ptr noundef %317)
  store double %318, ptr %19, align 8, !tbaa !15
  %319 = load double, ptr %19, align 8, !tbaa !15
  %320 = fcmp ogt double %319, 5.000000e-01
  br i1 %320, label %321, label %340

321:                                              ; preds = %316
  br label %322

322:                                              ; preds = %321
  %323 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !9
  %324 = icmp ne ptr %323, null
  br i1 %324, label %325, label %327

325:                                              ; preds = %322
  %326 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !9
  call void (i32, ptr, ptr, i32, ptr, ...) %326(i32 noundef 2, ptr noundef @.str.3, ptr noundef @__func__.testBasicMath, i32 noundef 1277, ptr noundef @.str.147)
  br label %327

327:                                              ; preds = %325, %322
  %328 = load i32, ptr @RcsLogLevel, align 4, !tbaa !5
  %329 = icmp sle i32 2, %328
  br i1 %329, label %330, label %337

330:                                              ; preds = %327
  %331 = load ptr, ptr @stderr, align 8, !tbaa !9
  %332 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %331, ptr noundef @.str.5, ptr noundef @.str.3, ptr noundef @__func__.testBasicMath, i32 noundef 1277) #4
  %333 = load ptr, ptr @stderr, align 8, !tbaa !9
  %334 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %333, ptr noundef @.str.147) #4
  %335 = load ptr, ptr @stderr, align 8, !tbaa !9
  %336 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %335, ptr noundef @.str.6) #4
  br label %337

337:                                              ; preds = %330, %327
  br label %338

338:                                              ; preds = %337
  br label %339

339:                                              ; preds = %338
  store i8 0, ptr %5, align 1, !tbaa !11
  br label %340

340:                                              ; preds = %339, %316
  call void @llvm.lifetime.start.p0(i64 80, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr %21) #4
  %341 = getelementptr inbounds [10 x double], ptr %20, i64 0, i64 0
  call void @VecNd_setRandom(ptr noundef %341, double noundef -1.000000e+02, double noundef 1.000000e+02, i32 noundef 10)
  %342 = getelementptr inbounds [10 x double], ptr %21, i64 0, i64 0
  %343 = getelementptr inbounds [10 x double], ptr %20, i64 0, i64 0
  call void @VecNd_sort(ptr noundef %342, ptr noundef %343, i32 noundef 10)
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  store i32 1, ptr %22, align 4, !tbaa !5
  br label %344

344:                                              ; preds = %381, %340
  %345 = load i32, ptr %22, align 4, !tbaa !5
  %346 = icmp slt i32 %345, 10
  br i1 %346, label %348, label %347

347:                                              ; preds = %344
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  br label %384

348:                                              ; preds = %344
  %349 = load i32, ptr %22, align 4, !tbaa !5
  %350 = sub nsw i32 %349, 1
  %351 = sext i32 %350 to i64
  %352 = getelementptr inbounds [10 x double], ptr %21, i64 0, i64 %351
  %353 = load double, ptr %352, align 8, !tbaa !15
  %354 = load i32, ptr %22, align 4, !tbaa !5
  %355 = sext i32 %354 to i64
  %356 = getelementptr inbounds [10 x double], ptr %21, i64 0, i64 %355
  %357 = load double, ptr %356, align 8, !tbaa !15
  %358 = fcmp ogt double %353, %357
  br i1 %358, label %359, label %380

359:                                              ; preds = %348
  br label %360

360:                                              ; preds = %359
  %361 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !9
  %362 = icmp ne ptr %361, null
  br i1 %362, label %363, label %366

363:                                              ; preds = %360
  %364 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !9
  %365 = load i32, ptr %22, align 4, !tbaa !5
  call void (i32, ptr, ptr, i32, ptr, ...) %364(i32 noundef 2, ptr noundef @.str.3, ptr noundef @__func__.testBasicMath, i32 noundef 1290, ptr noundef @.str.148, i32 noundef %365)
  br label %366

366:                                              ; preds = %363, %360
  %367 = load i32, ptr @RcsLogLevel, align 4, !tbaa !5
  %368 = icmp sle i32 2, %367
  br i1 %368, label %369, label %377

369:                                              ; preds = %366
  %370 = load ptr, ptr @stderr, align 8, !tbaa !9
  %371 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %370, ptr noundef @.str.5, ptr noundef @.str.3, ptr noundef @__func__.testBasicMath, i32 noundef 1290) #4
  %372 = load ptr, ptr @stderr, align 8, !tbaa !9
  %373 = load i32, ptr %22, align 4, !tbaa !5
  %374 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %372, ptr noundef @.str.148, i32 noundef %373) #4
  %375 = load ptr, ptr @stderr, align 8, !tbaa !9
  %376 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %375, ptr noundef @.str.6) #4
  br label %377

377:                                              ; preds = %369, %366
  br label %378

378:                                              ; preds = %377
  br label %379

379:                                              ; preds = %378
  store i8 0, ptr %5, align 1, !tbaa !11
  br label %380

380:                                              ; preds = %379, %348
  br label %381

381:                                              ; preds = %380
  %382 = load i32, ptr %22, align 4, !tbaa !5
  %383 = add nsw i32 %382, 1
  store i32 %383, ptr %22, align 4, !tbaa !5
  br label %344, !llvm.loop !19

384:                                              ; preds = %347
  %385 = load i32, ptr @RcsLogLevel, align 4, !tbaa !5
  %386 = icmp sle i32 3, %385
  br i1 %386, label %387, label %390

387:                                              ; preds = %384
  %388 = getelementptr inbounds [10 x double], ptr %20, i64 0, i64 0
  call void @VecNd_printComment(ptr noundef @.str.149, ptr noundef %388, i32 noundef 10)
  %389 = getelementptr inbounds [10 x double], ptr %21, i64 0, i64 0
  call void @VecNd_printComment(ptr noundef @.str.150, ptr noundef %389, i32 noundef 10)
  br label %390

390:                                              ; preds = %387, %384
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  store i32 0, ptr %23, align 4, !tbaa !5
  br label %391

391:                                              ; preds = %406, %390
  %392 = load i32, ptr %23, align 4, !tbaa !5
  %393 = icmp slt i32 %392, 10
  br i1 %393, label %395, label %394

394:                                              ; preds = %391
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  br label %409

395:                                              ; preds = %391
  %396 = load i32, ptr %23, align 4, !tbaa !5
  %397 = sitofp i32 %396 to double
  %398 = load i32, ptr %23, align 4, !tbaa !5
  %399 = sext i32 %398 to i64
  %400 = getelementptr inbounds [10 x double], ptr %20, i64 0, i64 %399
  store double %397, ptr %400, align 8, !tbaa !15
  %401 = load i32, ptr %23, align 4, !tbaa !5
  %402 = sitofp i32 %401 to double
  %403 = load i32, ptr %23, align 4, !tbaa !5
  %404 = sext i32 %403 to i64
  %405 = getelementptr inbounds [10 x double], ptr %21, i64 0, i64 %404
  store double %402, ptr %405, align 8, !tbaa !15
  br label %406

406:                                              ; preds = %395
  %407 = load i32, ptr %23, align 4, !tbaa !5
  %408 = add nsw i32 %407, 1
  store i32 %408, ptr %23, align 4, !tbaa !5
  br label %391, !llvm.loop !20

409:                                              ; preds = %394
  %410 = getelementptr inbounds [10 x double], ptr %21, i64 0, i64 0
  call void @VecNd_reverseSelf(ptr noundef %410, i32 noundef 10)
  %411 = load i32, ptr @RcsLogLevel, align 4, !tbaa !5
  %412 = icmp sle i32 3, %411
  br i1 %412, label %413, label %416

413:                                              ; preds = %409
  %414 = getelementptr inbounds [10 x double], ptr %20, i64 0, i64 0
  call void @VecNd_printComment(ptr noundef @.str.151, ptr noundef %414, i32 noundef 10)
  %415 = getelementptr inbounds [10 x double], ptr %21, i64 0, i64 0
  call void @VecNd_printComment(ptr noundef @.str.152, ptr noundef %415, i32 noundef 10)
  br label %416

416:                                              ; preds = %413, %409
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  store i32 0, ptr %24, align 4, !tbaa !5
  br label %417

417:                                              ; preds = %474, %416
  %418 = load i32, ptr %24, align 4, !tbaa !5
  %419 = icmp slt i32 %418, 10
  br i1 %419, label %421, label %420

420:                                              ; preds = %417
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  br label %477

421:                                              ; preds = %417
  %422 = load i32, ptr %24, align 4, !tbaa !5
  %423 = sext i32 %422 to i64
  %424 = getelementptr inbounds [10 x double], ptr %21, i64 0, i64 %423
  %425 = load double, ptr %424, align 8, !tbaa !15
  %426 = load i32, ptr %24, align 4, !tbaa !5
  %427 = sub nsw i32 9, %426
  %428 = sext i32 %427 to i64
  %429 = getelementptr inbounds [10 x double], ptr %20, i64 0, i64 %428
  %430 = load double, ptr %429, align 8, !tbaa !15
  %431 = fcmp une double %425, %430
  br i1 %431, label %432, label %473

432:                                              ; preds = %421
  br label %433

433:                                              ; preds = %432
  %434 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !9
  %435 = icmp ne ptr %434, null
  br i1 %435, label %436, label %449

436:                                              ; preds = %433
  %437 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !9
  %438 = load i32, ptr %24, align 4, !tbaa !5
  %439 = load i32, ptr %24, align 4, !tbaa !5
  %440 = sext i32 %439 to i64
  %441 = getelementptr inbounds [10 x double], ptr %21, i64 0, i64 %440
  %442 = load double, ptr %441, align 8, !tbaa !15
  %443 = load i32, ptr %24, align 4, !tbaa !5
  %444 = sub nsw i32 10, %443
  %445 = sub nsw i32 %444, 1
  %446 = sext i32 %445 to i64
  %447 = getelementptr inbounds [10 x double], ptr %20, i64 0, i64 %446
  %448 = load double, ptr %447, align 8, !tbaa !15
  call void (i32, ptr, ptr, i32, ptr, ...) %437(i32 noundef 2, ptr noundef @.str.3, ptr noundef @__func__.testBasicMath, i32 noundef 1320, ptr noundef @.str.153, i32 noundef %438, double noundef %442, double noundef %448)
  br label %449

449:                                              ; preds = %436, %433
  %450 = load i32, ptr @RcsLogLevel, align 4, !tbaa !5
  %451 = icmp sle i32 2, %450
  br i1 %451, label %452, label %470

452:                                              ; preds = %449
  %453 = load ptr, ptr @stderr, align 8, !tbaa !9
  %454 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %453, ptr noundef @.str.5, ptr noundef @.str.3, ptr noundef @__func__.testBasicMath, i32 noundef 1320) #4
  %455 = load ptr, ptr @stderr, align 8, !tbaa !9
  %456 = load i32, ptr %24, align 4, !tbaa !5
  %457 = load i32, ptr %24, align 4, !tbaa !5
  %458 = sext i32 %457 to i64
  %459 = getelementptr inbounds [10 x double], ptr %21, i64 0, i64 %458
  %460 = load double, ptr %459, align 8, !tbaa !15
  %461 = load i32, ptr %24, align 4, !tbaa !5
  %462 = sub nsw i32 10, %461
  %463 = sub nsw i32 %462, 1
  %464 = sext i32 %463 to i64
  %465 = getelementptr inbounds [10 x double], ptr %20, i64 0, i64 %464
  %466 = load double, ptr %465, align 8, !tbaa !15
  %467 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %455, ptr noundef @.str.153, i32 noundef %456, double noundef %460, double noundef %466) #4
  %468 = load ptr, ptr @stderr, align 8, !tbaa !9
  %469 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %468, ptr noundef @.str.6) #4
  br label %470

470:                                              ; preds = %452, %449
  br label %471

471:                                              ; preds = %470
  br label %472

472:                                              ; preds = %471
  store i8 0, ptr %5, align 1, !tbaa !11
  br label %473

473:                                              ; preds = %472, %421
  br label %474

474:                                              ; preds = %473
  %475 = load i32, ptr %24, align 4, !tbaa !5
  %476 = add nsw i32 %475, 1
  store i32 %476, ptr %24, align 4, !tbaa !5
  br label %417, !llvm.loop !21

477:                                              ; preds = %420
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %28) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %29) #4
  %478 = getelementptr inbounds [3 x double], ptr %28, i64 0, i64 0
  call void @Vec3d_setRandom(ptr noundef %478, double noundef -1.000000e+00, double noundef 1.000000e+00)
  %479 = getelementptr inbounds [3 x double], ptr %28, i64 0, i64 0
  call void @Math_Cart2Cyl(ptr noundef %479, ptr noundef %25, ptr noundef %26, ptr noundef %27)
  %480 = load double, ptr %25, align 8, !tbaa !15
  %481 = load double, ptr %26, align 8, !tbaa !15
  %482 = load double, ptr %27, align 8, !tbaa !15
  %483 = getelementptr inbounds [3 x double], ptr %29, i64 0, i64 0
  call void @Math_Cyl2Cart(double noundef %480, double noundef %481, double noundef %482, ptr noundef %483)
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #4
  %484 = getelementptr inbounds [3 x double], ptr %28, i64 0, i64 0
  %485 = getelementptr inbounds [3 x double], ptr %29, i64 0, i64 0
  %486 = call double @VecNd_sqrDiff(ptr noundef %484, ptr noundef %485, i32 noundef 2)
  store double %486, ptr %30, align 8, !tbaa !15
  br label %487

487:                                              ; preds = %477
  %488 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !9
  %489 = icmp ne ptr %488, null
  br i1 %489, label %490, label %501

490:                                              ; preds = %487
  %491 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !9
  %492 = getelementptr inbounds [3 x double], ptr %28, i64 0, i64 0
  %493 = load double, ptr %492, align 16, !tbaa !15
  %494 = getelementptr inbounds [3 x double], ptr %29, i64 0, i64 0
  %495 = load double, ptr %494, align 16, !tbaa !15
  %496 = getelementptr inbounds [3 x double], ptr %28, i64 0, i64 1
  %497 = load double, ptr %496, align 8, !tbaa !15
  %498 = getelementptr inbounds [3 x double], ptr %29, i64 0, i64 1
  %499 = load double, ptr %498, align 8, !tbaa !15
  %500 = load double, ptr %30, align 8, !tbaa !15
  call void (i32, ptr, ptr, i32, ptr, ...) %491(i32 noundef 3, ptr noundef @.str.3, ptr noundef @__func__.testBasicMath, i32 noundef 1335, ptr noundef @.str.154, double noundef %493, double noundef %495, double noundef %497, double noundef %499, double noundef %500)
  br label %501

501:                                              ; preds = %490, %487
  %502 = load i32, ptr @RcsLogLevel, align 4, !tbaa !5
  %503 = icmp sle i32 3, %502
  br i1 %503, label %504, label %520

504:                                              ; preds = %501
  %505 = load ptr, ptr @stderr, align 8, !tbaa !9
  %506 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %505, ptr noundef @.str.5, ptr noundef @.str.3, ptr noundef @__func__.testBasicMath, i32 noundef 1335) #4
  %507 = load ptr, ptr @stderr, align 8, !tbaa !9
  %508 = getelementptr inbounds [3 x double], ptr %28, i64 0, i64 0
  %509 = load double, ptr %508, align 16, !tbaa !15
  %510 = getelementptr inbounds [3 x double], ptr %29, i64 0, i64 0
  %511 = load double, ptr %510, align 16, !tbaa !15
  %512 = getelementptr inbounds [3 x double], ptr %28, i64 0, i64 1
  %513 = load double, ptr %512, align 8, !tbaa !15
  %514 = getelementptr inbounds [3 x double], ptr %29, i64 0, i64 1
  %515 = load double, ptr %514, align 8, !tbaa !15
  %516 = load double, ptr %30, align 8, !tbaa !15
  %517 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %507, ptr noundef @.str.154, double noundef %509, double noundef %511, double noundef %513, double noundef %515, double noundef %516) #4
  %518 = load ptr, ptr @stderr, align 8, !tbaa !9
  %519 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %518, ptr noundef @.str.6) #4
  br label %520

520:                                              ; preds = %504, %501
  br label %521

521:                                              ; preds = %520
  br label %522

522:                                              ; preds = %521
  %523 = load double, ptr %30, align 8, !tbaa !15
  %524 = fcmp ogt double %523, 1.000000e-05
  br i1 %524, label %525, label %544

525:                                              ; preds = %522
  br label %526

526:                                              ; preds = %525
  %527 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !9
  %528 = icmp ne ptr %527, null
  br i1 %528, label %529, label %531

529:                                              ; preds = %526
  %530 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !9
  call void (i32, ptr, ptr, i32, ptr, ...) %530(i32 noundef 2, ptr noundef @.str.3, ptr noundef @__func__.testBasicMath, i32 noundef 1339, ptr noundef @.str.155)
  br label %531

531:                                              ; preds = %529, %526
  %532 = load i32, ptr @RcsLogLevel, align 4, !tbaa !5
  %533 = icmp sle i32 2, %532
  br i1 %533, label %534, label %541

534:                                              ; preds = %531
  %535 = load ptr, ptr @stderr, align 8, !tbaa !9
  %536 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %535, ptr noundef @.str.5, ptr noundef @.str.3, ptr noundef @__func__.testBasicMath, i32 noundef 1339) #4
  %537 = load ptr, ptr @stderr, align 8, !tbaa !9
  %538 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %537, ptr noundef @.str.155) #4
  %539 = load ptr, ptr @stderr, align 8, !tbaa !9
  %540 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %539, ptr noundef @.str.6) #4
  br label %541

541:                                              ; preds = %534, %531
  br label %542

542:                                              ; preds = %541
  br label %543

543:                                              ; preds = %542
  store i8 0, ptr %5, align 1, !tbaa !11
  br label %544

544:                                              ; preds = %543, %522
  %545 = load ptr, ptr %15, align 8, !tbaa !9
  call void @MatNd_destroy(ptr noundef %545)
  %546 = load ptr, ptr %16, align 8, !tbaa !9
  call void @MatNd_destroy(ptr noundef %546)
  br label %547

547:                                              ; preds = %544
  %548 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !9
  %549 = icmp ne ptr %548, null
  br i1 %549, label %550, label %559

550:                                              ; preds = %547
  %551 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !9
  %552 = load i8, ptr %5, align 1, !tbaa !11, !range !22, !noundef !23
  %553 = trunc i8 %552 to i1
  br i1 %553, label %554, label %555

554:                                              ; preds = %550
  br label %556

555:                                              ; preds = %550
  br label %556

556:                                              ; preds = %555, %554
  %557 = phi ptr [ @.str.20, %554 ], [ @.str.21, %555 ]
  %558 = getelementptr inbounds [8 x i8], ptr %557, i64 0, i64 0
  call void (i32, ptr, ptr, i32, ptr, ...) %551(i32 noundef 1, ptr noundef @.str.18, ptr noundef @__func__.testBasicMath, i32 noundef 1347, ptr noundef @.str.156, ptr noundef %558)
  br label %559

559:                                              ; preds = %556, %547
  %560 = load i32, ptr @RcsLogLevel, align 4, !tbaa !5
  %561 = icmp sle i32 1, %560
  br i1 %561, label %562, label %576

562:                                              ; preds = %559
  %563 = load ptr, ptr @stderr, align 8, !tbaa !9
  %564 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %563, ptr noundef @.str.22, ptr noundef @__func__.testBasicMath, i32 noundef 1347) #4
  %565 = load ptr, ptr @stderr, align 8, !tbaa !9
  %566 = load i8, ptr %5, align 1, !tbaa !11, !range !22, !noundef !23
  %567 = trunc i8 %566 to i1
  br i1 %567, label %568, label %569

568:                                              ; preds = %562
  br label %570

569:                                              ; preds = %562
  br label %570

570:                                              ; preds = %569, %568
  %571 = phi ptr [ @.str.20, %568 ], [ @.str.21, %569 ]
  %572 = getelementptr inbounds [8 x i8], ptr %571, i64 0, i64 0
  %573 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %565, ptr noundef @.str.156, ptr noundef %572) #4
  %574 = load ptr, ptr @stderr, align 8, !tbaa !9
  %575 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %574, ptr noundef @.str.6) #4
  br label %576

576:                                              ; preds = %570, %559
  br label %577

577:                                              ; preds = %576
  br label %578

578:                                              ; preds = %577
  %579 = load i8, ptr %5, align 1, !tbaa !11, !range !22, !noundef !23
  %580 = trunc i8 %579 to i1
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 72, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 72, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 72, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 72, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #4
  ret i1 %580
}

; Function Attrs: nounwind
declare i64 @lround(double noundef) #1

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

declare void @VecNd_copy(ptr noundef, ptr noundef, i32 noundef) #2

declare void @Mat3d_fprint(ptr noundef, ptr noundef) #2

declare double @Mat3d_inverse(ptr noundef, ptr noundef) #2

declare void @Mat3d_mul(ptr noundef, ptr noundef, ptr noundef) #2

declare void @Mat3d_addConstToDiag(ptr noundef, double noundef) #2

declare double @Mat3d_inverseSelf(ptr noundef) #2

declare double @MatNd_scaleSelf(ptr noundef, ptr noundef) #2

declare double @MatNd_maxAbsEle(ptr noundef) #2

declare void @VecNd_setRandom(ptr noundef, double noundef, double noundef, i32 noundef) #2

declare void @VecNd_sort(ptr noundef, ptr noundef, i32 noundef) #2

declare void @VecNd_printComment(ptr noundef, ptr noundef, i32 noundef) #2

declare void @VecNd_reverseSelf(ptr noundef, i32 noundef) #2

declare void @Math_Cart2Cyl(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare void @Math_Cyl2Cart(double noundef, double noundef, double noundef, ptr noundef) #2

declare double @VecNd_sqrDiff(ptr noundef, ptr noundef, i32 noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"_ZTS6_MatNd", !10, i64 0, !6, i64 8, !6, i64 12, !6, i64 16, !12, i64 20}
!15 = !{!16, !16, i64 0}
!16 = !{!"double", !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = distinct !{!20, !18}
!21 = distinct !{!21, !18}
!22 = !{i8 0, i8 2}
!23 = !{}


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

@RCS_GLOBAL_RLOG_CB = external local_unnamed_addr global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [74 x i8], align 1
@RcsLogLevel = external local_unnamed_addr global i32, align 4
@stderr = external local_unnamed_addr global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [11 x i8], align 1
@__func__.testBasicMath = external hidden unnamed_addr constant [14 x i8], align 1
@.str.130 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.131 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.132 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.133 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.134 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.135 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.136 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.137 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.138 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.139 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.140 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.141 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.142 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.143 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.144 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.145 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.146 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.147 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.148 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.149 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.150 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.151 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.152 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.153 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.154 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.155 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.156 = external hidden unnamed_addr constant [32 x i8], align 1

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

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

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

declare void @Vec3d_setRandom(ptr noundef, double noundef, double noundef) local_unnamed_addr #2

declare ptr @MatNd_create(i32 noundef, i32 noundef) local_unnamed_addr #2

declare void @MatNd_setRandom(ptr noundef, double noundef, double noundef) local_unnamed_addr #2

declare void @MatNd_printCommentDigits(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

declare void @MatNd_destroy(ptr noundef) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @fflush(ptr nocapture noundef) local_unnamed_addr #1

declare void @MatNd_set(ptr noundef, i32 noundef, i32 noundef, double noundef) local_unnamed_addr #2

declare void @MatNd_sqrMulABAt(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare double @VecNd_maxAbsEle(ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local zeroext i1 @testBasicMath(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #3 {
  %3 = alloca [3 x [3 x double]], align 16
  %4 = alloca [3 x [3 x double]], align 16
  %5 = alloca [3 x [3 x double]], align 16
  %6 = alloca [3 x [3 x double]], align 16
  %7 = alloca [10 x double], align 16
  %8 = alloca [10 x double], align 16
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca [3 x double], align 16
  %13 = alloca [3 x double], align 16
  %14 = tail call i64 @lround(double noundef 2.300000e+00) #5
  %.not = icmp eq i64 %14, 2
  br i1 %.not, label %28, label %15

15:                                               ; preds = %2
  %16 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %.not73 = icmp eq ptr %16, null
  br i1 %.not73, label %18, label %17

17:                                               ; preds = %15
  tail call void (i32, ptr, ptr, i32, ptr, ...) %16(i32 noundef 2, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.testBasicMath, i32 noundef 1147, ptr noundef nonnull @.str.130)
  br label %18

18:                                               ; preds = %17, %15
  %19 = load i32, ptr @RcsLogLevel, align 4, !tbaa !9
  %20 = icmp sgt i32 %19, 1
  br i1 %20, label %21, label %28

21:                                               ; preds = %18
  %22 = load ptr, ptr @stderr, align 8, !tbaa !5
  %23 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %22, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.testBasicMath, i32 noundef 1147) #6
  %24 = load ptr, ptr @stderr, align 8, !tbaa !5
  %25 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %24, ptr noundef nonnull @.str.130) #6
  %26 = load ptr, ptr @stderr, align 8, !tbaa !5
  %27 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %26, ptr noundef nonnull @.str.6) #6
  br label %28

28:                                               ; preds = %18, %21, %2
  %.0 = phi i8 [ 1, %2 ], [ 0, %21 ], [ 0, %18 ]
  %29 = tail call i64 @lround(double noundef 3.800000e+00) #5
  %.not74 = icmp eq i64 %29, 4
  br i1 %.not74, label %43, label %30

30:                                               ; preds = %28
  %31 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %.not75 = icmp eq ptr %31, null
  br i1 %.not75, label %33, label %32

32:                                               ; preds = %30
  tail call void (i32, ptr, ptr, i32, ptr, ...) %31(i32 noundef 2, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.testBasicMath, i32 noundef 1153, ptr noundef nonnull @.str.131)
  br label %33

33:                                               ; preds = %32, %30
  %34 = load i32, ptr @RcsLogLevel, align 4, !tbaa !9
  %35 = icmp sgt i32 %34, 1
  br i1 %35, label %36, label %43

36:                                               ; preds = %33
  %37 = load ptr, ptr @stderr, align 8, !tbaa !5
  %38 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %37, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.testBasicMath, i32 noundef 1153) #6
  %39 = load ptr, ptr @stderr, align 8, !tbaa !5
  %40 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %39, ptr noundef nonnull @.str.131) #6
  %41 = load ptr, ptr @stderr, align 8, !tbaa !5
  %42 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %41, ptr noundef nonnull @.str.6) #6
  br label %43

43:                                               ; preds = %33, %36, %28
  %.1 = phi i8 [ %.0, %28 ], [ 0, %36 ], [ 0, %33 ]
  %44 = tail call i64 @lround(double noundef -2.300000e+00) #5
  %.not76 = icmp eq i64 %44, -2
  br i1 %.not76, label %58, label %45

45:                                               ; preds = %43
  %46 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %.not77 = icmp eq ptr %46, null
  br i1 %.not77, label %48, label %47

47:                                               ; preds = %45
  tail call void (i32, ptr, ptr, i32, ptr, ...) %46(i32 noundef 2, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.testBasicMath, i32 noundef 1159, ptr noundef nonnull @.str.132)
  br label %48

48:                                               ; preds = %47, %45
  %49 = load i32, ptr @RcsLogLevel, align 4, !tbaa !9
  %50 = icmp sgt i32 %49, 1
  br i1 %50, label %51, label %58

51:                                               ; preds = %48
  %52 = load ptr, ptr @stderr, align 8, !tbaa !5
  %53 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %52, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.testBasicMath, i32 noundef 1159) #6
  %54 = load ptr, ptr @stderr, align 8, !tbaa !5
  %55 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef nonnull @.str.132) #6
  %56 = load ptr, ptr @stderr, align 8, !tbaa !5
  %57 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef nonnull @.str.6) #6
  br label %58

58:                                               ; preds = %48, %51, %43
  %.2 = phi i8 [ %.1, %43 ], [ 0, %51 ], [ 0, %48 ]
  %59 = tail call i64 @lround(double noundef -3.800000e+00) #5
  %.not78 = icmp eq i64 %59, -4
  br i1 %.not78, label %73, label %60

60:                                               ; preds = %58
  %61 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %.not79 = icmp eq ptr %61, null
  br i1 %.not79, label %63, label %62

62:                                               ; preds = %60
  tail call void (i32, ptr, ptr, i32, ptr, ...) %61(i32 noundef 2, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.testBasicMath, i32 noundef 1165, ptr noundef nonnull @.str.133)
  br label %63

63:                                               ; preds = %62, %60
  %64 = load i32, ptr @RcsLogLevel, align 4, !tbaa !9
  %65 = icmp sgt i32 %64, 1
  br i1 %65, label %66, label %.thread

66:                                               ; preds = %63
  %67 = load ptr, ptr @stderr, align 8, !tbaa !5
  %68 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %67, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.testBasicMath, i32 noundef 1165) #6
  %69 = load ptr, ptr @stderr, align 8, !tbaa !5
  %70 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %69, ptr noundef nonnull @.str.133) #6
  %71 = load ptr, ptr @stderr, align 8, !tbaa !5
  %72 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.6) #6
  br label %73

73:                                               ; preds = %66, %58
  %.3.ph = phi i8 [ 0, %66 ], [ %.2, %58 ]
  %.pr = load i32, ptr @RcsLogLevel, align 4, !tbaa !9
  %74 = icmp sgt i32 %.pr, 2
  br i1 %74, label %75, label %.thread

75:                                               ; preds = %73
  %76 = tail call i64 @lround(double noundef 2.300000e+00) #5
  %77 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.134, i64 noundef %76)
  %78 = tail call i64 @lround(double noundef 3.800000e+00) #5
  %79 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.135, i64 noundef %78)
  %80 = tail call i64 @lround(double noundef -2.300000e+00) #5
  %81 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.136, i64 noundef %80)
  %82 = tail call i64 @lround(double noundef -3.800000e+00) #5
  %83 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.137, i64 noundef %82)
  br label %.thread

.thread:                                          ; preds = %63, %75, %73
  %.387 = phi i8 [ %.3.ph, %75 ], [ %.3.ph, %73 ], [ 0, %63 ]
  %84 = tail call ptr @MatNd_create(i32 noundef 3, i32 noundef 6)
  %85 = tail call ptr @MatNd_create(i32 noundef 3, i32 noundef 3)
  tail call void @MatNd_setRandom(ptr noundef %84, double noundef -1.000000e+00, double noundef 1.000000e+00)
  tail call void @MatNd_sqrMulABAt(ptr noundef %85, ptr noundef %84, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %6) #5
  %86 = load ptr, ptr %84, align 8, !tbaa !11
  call void @VecNd_copy(ptr noundef nonnull %3, ptr noundef %86, i32 noundef 9)
  %87 = load ptr, ptr %84, align 8, !tbaa !11
  call void @VecNd_copy(ptr noundef nonnull %5, ptr noundef %87, i32 noundef 9)
  %88 = load i32, ptr @RcsLogLevel, align 4, !tbaa !9
  %89 = icmp sgt i32 %88, 2
  br i1 %89, label %90, label %100

90:                                               ; preds = %.thread
  %91 = load ptr, ptr @stderr, align 8, !tbaa !5
  %92 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %91, ptr noundef nonnull @.str.22, ptr noundef nonnull @__func__.testBasicMath, i32 noundef 1189) #6
  %93 = load ptr, ptr @stderr, align 8, !tbaa !5
  %94 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %93, ptr noundef nonnull @.str.138) #6
  %95 = load ptr, ptr @stderr, align 8, !tbaa !5
  %96 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %95, ptr noundef nonnull @.str.6) #6
  %97 = load ptr, ptr @stderr, align 8, !tbaa !5
  %98 = call i32 @fflush(ptr noundef %97)
  %99 = load ptr, ptr @stderr, align 8, !tbaa !5
  call void @Mat3d_fprint(ptr noundef %99, ptr noundef nonnull %3)
  br label %100

100:                                              ; preds = %90, %.thread
  %101 = call double @Mat3d_inverse(ptr noundef nonnull %4, ptr noundef nonnull %3)
  %102 = load i32, ptr @RcsLogLevel, align 4, !tbaa !9
  %103 = icmp sgt i32 %102, 2
  br i1 %103, label %104, label %114

104:                                              ; preds = %100
  %105 = load ptr, ptr @stderr, align 8, !tbaa !5
  %106 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %105, ptr noundef nonnull @.str.22, ptr noundef nonnull @__func__.testBasicMath, i32 noundef 1196) #6
  %107 = load ptr, ptr @stderr, align 8, !tbaa !5
  %108 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %107, ptr noundef nonnull @.str.139) #6
  %109 = load ptr, ptr @stderr, align 8, !tbaa !5
  %110 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %109, ptr noundef nonnull @.str.6) #6
  %111 = load ptr, ptr @stderr, align 8, !tbaa !5
  %112 = call i32 @fflush(ptr noundef %111)
  %113 = load ptr, ptr @stderr, align 8, !tbaa !5
  call void @Mat3d_fprint(ptr noundef %113, ptr noundef nonnull %4)
  br label %114

114:                                              ; preds = %104, %100
  call void @Mat3d_mul(ptr noundef nonnull %6, ptr noundef nonnull %3, ptr noundef nonnull %4)
  %115 = load i32, ptr @RcsLogLevel, align 4, !tbaa !9
  %116 = icmp sgt i32 %115, 2
  br i1 %116, label %117, label %127

117:                                              ; preds = %114
  %118 = load ptr, ptr @stderr, align 8, !tbaa !5
  %119 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %118, ptr noundef nonnull @.str.22, ptr noundef nonnull @__func__.testBasicMath, i32 noundef 1203) #6
  %120 = load ptr, ptr @stderr, align 8, !tbaa !5
  %121 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %120, ptr noundef nonnull @.str.140) #6
  %122 = load ptr, ptr @stderr, align 8, !tbaa !5
  %123 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.6) #6
  %124 = load ptr, ptr @stderr, align 8, !tbaa !5
  %125 = call i32 @fflush(ptr noundef %124)
  %126 = load ptr, ptr @stderr, align 8, !tbaa !5
  call void @Mat3d_fprint(ptr noundef %126, ptr noundef nonnull %6)
  br label %127

127:                                              ; preds = %117, %114
  call void @Mat3d_addConstToDiag(ptr noundef nonnull %6, double noundef -1.000000e+00)
  %128 = call double @VecNd_maxAbsEle(ptr noundef nonnull %6, i32 noundef 9)
  %129 = fcmp ogt double %128, 1.000000e-05
  br i1 %129, label %130, label %137

130:                                              ; preds = %127
  %131 = load i32, ptr @RcsLogLevel, align 4, !tbaa !9
  %132 = icmp sgt i32 %131, 1
  br i1 %132, label %133, label %137

133:                                              ; preds = %130
  %134 = load ptr, ptr @stderr, align 8, !tbaa !5
  %135 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %134, ptr noundef nonnull @.str.141, double noundef %128) #6
  %136 = load ptr, ptr @stderr, align 8, !tbaa !5
  call void @Mat3d_fprint(ptr noundef %136, ptr noundef nonnull %6)
  br label %137

137:                                              ; preds = %130, %133, %127
  %.4 = phi i8 [ %.387, %127 ], [ 0, %133 ], [ 0, %130 ]
  %138 = call double @Mat3d_inverseSelf(ptr noundef nonnull %5)
  %139 = load i32, ptr @RcsLogLevel, align 4, !tbaa !9
  %140 = icmp sgt i32 %139, 2
  br i1 %140, label %141, label %151

141:                                              ; preds = %137
  %142 = load ptr, ptr @stderr, align 8, !tbaa !5
  %143 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %142, ptr noundef nonnull @.str.22, ptr noundef nonnull @__func__.testBasicMath, i32 noundef 1223) #6
  %144 = load ptr, ptr @stderr, align 8, !tbaa !5
  %145 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %144, ptr noundef nonnull @.str.142) #6
  %146 = load ptr, ptr @stderr, align 8, !tbaa !5
  %147 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %146, ptr noundef nonnull @.str.6) #6
  %148 = load ptr, ptr @stderr, align 8, !tbaa !5
  %149 = call i32 @fflush(ptr noundef %148)
  %150 = load ptr, ptr @stderr, align 8, !tbaa !5
  call void @Mat3d_fprint(ptr noundef %150, ptr noundef nonnull %5)
  br label %151

151:                                              ; preds = %141, %137
  call void @Mat3d_mul(ptr noundef nonnull %6, ptr noundef nonnull %3, ptr noundef nonnull %5)
  %152 = load i32, ptr @RcsLogLevel, align 4, !tbaa !9
  %153 = icmp sgt i32 %152, 2
  br i1 %153, label %154, label %164

154:                                              ; preds = %151
  %155 = load ptr, ptr @stderr, align 8, !tbaa !5
  %156 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %155, ptr noundef nonnull @.str.22, ptr noundef nonnull @__func__.testBasicMath, i32 noundef 1230) #6
  %157 = load ptr, ptr @stderr, align 8, !tbaa !5
  %158 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %157, ptr noundef nonnull @.str.140) #6
  %159 = load ptr, ptr @stderr, align 8, !tbaa !5
  %160 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %159, ptr noundef nonnull @.str.6) #6
  %161 = load ptr, ptr @stderr, align 8, !tbaa !5
  %162 = call i32 @fflush(ptr noundef %161)
  %163 = load ptr, ptr @stderr, align 8, !tbaa !5
  call void @Mat3d_fprint(ptr noundef %163, ptr noundef nonnull %6)
  br label %164

164:                                              ; preds = %154, %151
  call void @Mat3d_addConstToDiag(ptr noundef nonnull %6, double noundef -1.000000e+00)
  %165 = call double @VecNd_maxAbsEle(ptr noundef nonnull %6, i32 noundef 9)
  %166 = fcmp ogt double %165, 1.000000e-05
  br i1 %166, label %167, label %174

167:                                              ; preds = %164
  %168 = load i32, ptr @RcsLogLevel, align 4, !tbaa !9
  %169 = icmp sgt i32 %168, 1
  br i1 %169, label %170, label %174

170:                                              ; preds = %167
  %171 = load ptr, ptr @stderr, align 8, !tbaa !5
  %172 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %171, ptr noundef nonnull @.str.141, double noundef %165) #6
  %173 = load ptr, ptr @stderr, align 8, !tbaa !5
  call void @Mat3d_fprint(ptr noundef %173, ptr noundef nonnull %6)
  br label %174

174:                                              ; preds = %167, %170, %164
  %.5 = phi i8 [ %.4, %164 ], [ 0, %170 ], [ 0, %167 ]
  call void @MatNd_destroy(ptr noundef nonnull %84)
  call void @MatNd_destroy(ptr noundef %85)
  %175 = call ptr @MatNd_create(i32 noundef 10, i32 noundef 1)
  %176 = call ptr @MatNd_create(i32 noundef 10, i32 noundef 1)
  call void @MatNd_set(ptr noundef %175, i32 noundef 0, i32 noundef 0, double noundef 0.000000e+00)
  call void @MatNd_set(ptr noundef %176, i32 noundef 0, i32 noundef 0, double noundef 5.000000e-01)
  call void @MatNd_set(ptr noundef %175, i32 noundef 1, i32 noundef 0, double noundef 1.000000e+00)
  call void @MatNd_set(ptr noundef %176, i32 noundef 1, i32 noundef 0, double noundef 5.000000e-01)
  call void @MatNd_set(ptr noundef %175, i32 noundef 2, i32 noundef 0, double noundef 2.000000e+00)
  call void @MatNd_set(ptr noundef %176, i32 noundef 2, i32 noundef 0, double noundef 5.000000e-01)
  call void @MatNd_set(ptr noundef %175, i32 noundef 3, i32 noundef 0, double noundef 3.000000e+00)
  call void @MatNd_set(ptr noundef %176, i32 noundef 3, i32 noundef 0, double noundef 5.000000e-01)
  call void @MatNd_set(ptr noundef %175, i32 noundef 4, i32 noundef 0, double noundef 4.000000e+00)
  call void @MatNd_set(ptr noundef %176, i32 noundef 4, i32 noundef 0, double noundef 5.000000e-01)
  call void @MatNd_set(ptr noundef %175, i32 noundef 5, i32 noundef 0, double noundef 5.000000e+00)
  call void @MatNd_set(ptr noundef %176, i32 noundef 5, i32 noundef 0, double noundef 5.000000e-01)
  call void @MatNd_set(ptr noundef %175, i32 noundef 6, i32 noundef 0, double noundef 6.000000e+00)
  call void @MatNd_set(ptr noundef %176, i32 noundef 6, i32 noundef 0, double noundef 5.000000e-01)
  call void @MatNd_set(ptr noundef %175, i32 noundef 7, i32 noundef 0, double noundef 7.000000e+00)
  call void @MatNd_set(ptr noundef %176, i32 noundef 7, i32 noundef 0, double noundef 5.000000e-01)
  call void @MatNd_set(ptr noundef %175, i32 noundef 8, i32 noundef 0, double noundef 8.000000e+00)
  call void @MatNd_set(ptr noundef %176, i32 noundef 8, i32 noundef 0, double noundef 5.000000e-01)
  call void @MatNd_set(ptr noundef %175, i32 noundef 9, i32 noundef 0, double noundef 9.000000e+00)
  call void @MatNd_set(ptr noundef %176, i32 noundef 9, i32 noundef 0, double noundef 5.000000e-01)
  %177 = load i32, ptr @RcsLogLevel, align 4, !tbaa !9
  %178 = icmp sgt i32 %177, 2
  br i1 %178, label %179, label %180

179:                                              ; preds = %174
  call void @MatNd_printCommentDigits(ptr noundef nonnull @.str.143, ptr noundef %176, i32 noundef 6)
  call void @MatNd_printCommentDigits(ptr noundef nonnull @.str.144, ptr noundef %175, i32 noundef 6)
  br label %180

180:                                              ; preds = %179, %174
  %181 = call double @MatNd_scaleSelf(ptr noundef %175, ptr noundef %176)
  %182 = load i32, ptr @RcsLogLevel, align 4, !tbaa !9
  %183 = icmp sgt i32 %182, 2
  br i1 %183, label %184, label %193

184:                                              ; preds = %180
  call void @MatNd_printCommentDigits(ptr noundef nonnull @.str.145, ptr noundef %175, i32 noundef 6)
  %185 = load ptr, ptr @stderr, align 8, !tbaa !5
  %186 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %185, ptr noundef nonnull @.str.22, ptr noundef nonnull @__func__.testBasicMath, i32 noundef 1270) #6
  %187 = load ptr, ptr @stderr, align 8, !tbaa !5
  %188 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %187, ptr noundef nonnull @.str.146, double noundef %181) #6
  %189 = load ptr, ptr @stderr, align 8, !tbaa !5
  %190 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %189, ptr noundef nonnull @.str.6) #6
  %191 = load ptr, ptr @stderr, align 8, !tbaa !5
  %192 = call i32 @fflush(ptr noundef %191)
  br label %193

193:                                              ; preds = %184, %180
  %194 = call double @MatNd_maxAbsEle(ptr noundef %175)
  %195 = fcmp ogt double %194, 5.000000e-01
  br i1 %195, label %196, label %209

196:                                              ; preds = %193
  %197 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %.not80 = icmp eq ptr %197, null
  br i1 %.not80, label %199, label %198

198:                                              ; preds = %196
  call void (i32, ptr, ptr, i32, ptr, ...) %197(i32 noundef 2, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.testBasicMath, i32 noundef 1277, ptr noundef nonnull @.str.147)
  br label %199

199:                                              ; preds = %198, %196
  %200 = load i32, ptr @RcsLogLevel, align 4, !tbaa !9
  %201 = icmp sgt i32 %200, 1
  br i1 %201, label %202, label %209

202:                                              ; preds = %199
  %203 = load ptr, ptr @stderr, align 8, !tbaa !5
  %204 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %203, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.testBasicMath, i32 noundef 1277) #6
  %205 = load ptr, ptr @stderr, align 8, !tbaa !5
  %206 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %205, ptr noundef nonnull @.str.147) #6
  %207 = load ptr, ptr @stderr, align 8, !tbaa !5
  %208 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %207, ptr noundef nonnull @.str.6) #6
  br label %209

209:                                              ; preds = %199, %202, %193
  %.6 = phi i8 [ %.5, %193 ], [ 0, %202 ], [ 0, %199 ]
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %8) #5
  call void @VecNd_setRandom(ptr noundef nonnull %7, double noundef -1.000000e+02, double noundef 1.000000e+02, i32 noundef 10)
  call void @VecNd_sort(ptr noundef nonnull %8, ptr noundef nonnull %7, i32 noundef 10)
  %210 = load double, ptr %8, align 16, !tbaa !14
  %211 = getelementptr inbounds i8, ptr %8, i64 8
  %212 = load double, ptr %211, align 8, !tbaa !14
  %213 = fcmp ogt double %210, %212
  br i1 %213, label %214, label %227

214:                                              ; preds = %209
  %215 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %.not85 = icmp eq ptr %215, null
  br i1 %.not85, label %217, label %216

216:                                              ; preds = %214
  call void (i32, ptr, ptr, i32, ptr, ...) %215(i32 noundef 2, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.testBasicMath, i32 noundef 1290, ptr noundef nonnull @.str.148, i32 noundef 1)
  br label %217

217:                                              ; preds = %216, %214
  %218 = load i32, ptr @RcsLogLevel, align 4, !tbaa !9
  %219 = icmp sgt i32 %218, 1
  br i1 %219, label %220, label %227

220:                                              ; preds = %217
  %221 = load ptr, ptr @stderr, align 8, !tbaa !5
  %222 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %221, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.testBasicMath, i32 noundef 1290) #6
  %223 = load ptr, ptr @stderr, align 8, !tbaa !5
  %224 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %223, ptr noundef nonnull @.str.148, i32 noundef 1) #6
  %225 = load ptr, ptr @stderr, align 8, !tbaa !5
  %226 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %225, ptr noundef nonnull @.str.6) #6
  br label %227

227:                                              ; preds = %217, %220, %209
  %.8 = phi i8 [ %.6, %209 ], [ 0, %220 ], [ 0, %217 ]
  %228 = load double, ptr %211, align 8, !tbaa !14
  %229 = getelementptr inbounds i8, ptr %8, i64 16
  %230 = load double, ptr %229, align 16, !tbaa !14
  %231 = fcmp ogt double %228, %230
  br i1 %231, label %232, label %245

232:                                              ; preds = %227
  %233 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %.not85.1 = icmp eq ptr %233, null
  br i1 %.not85.1, label %235, label %234

234:                                              ; preds = %232
  call void (i32, ptr, ptr, i32, ptr, ...) %233(i32 noundef 2, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.testBasicMath, i32 noundef 1290, ptr noundef nonnull @.str.148, i32 noundef 2)
  br label %235

235:                                              ; preds = %234, %232
  %236 = load i32, ptr @RcsLogLevel, align 4, !tbaa !9
  %237 = icmp sgt i32 %236, 1
  br i1 %237, label %238, label %245

238:                                              ; preds = %235
  %239 = load ptr, ptr @stderr, align 8, !tbaa !5
  %240 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %239, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.testBasicMath, i32 noundef 1290) #6
  %241 = load ptr, ptr @stderr, align 8, !tbaa !5
  %242 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %241, ptr noundef nonnull @.str.148, i32 noundef 2) #6
  %243 = load ptr, ptr @stderr, align 8, !tbaa !5
  %244 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %243, ptr noundef nonnull @.str.6) #6
  br label %245

245:                                              ; preds = %238, %235, %227
  %.8.1 = phi i8 [ %.8, %227 ], [ 0, %238 ], [ 0, %235 ]
  %246 = load double, ptr %229, align 16, !tbaa !14
  %247 = getelementptr inbounds i8, ptr %8, i64 24
  %248 = load double, ptr %247, align 8, !tbaa !14
  %249 = fcmp ogt double %246, %248
  br i1 %249, label %250, label %263

250:                                              ; preds = %245
  %251 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %.not85.2 = icmp eq ptr %251, null
  br i1 %.not85.2, label %253, label %252

252:                                              ; preds = %250
  call void (i32, ptr, ptr, i32, ptr, ...) %251(i32 noundef 2, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.testBasicMath, i32 noundef 1290, ptr noundef nonnull @.str.148, i32 noundef 3)
  br label %253

253:                                              ; preds = %252, %250
  %254 = load i32, ptr @RcsLogLevel, align 4, !tbaa !9
  %255 = icmp sgt i32 %254, 1
  br i1 %255, label %256, label %263

256:                                              ; preds = %253
  %257 = load ptr, ptr @stderr, align 8, !tbaa !5
  %258 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %257, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.testBasicMath, i32 noundef 1290) #6
  %259 = load ptr, ptr @stderr, align 8, !tbaa !5
  %260 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %259, ptr noundef nonnull @.str.148, i32 noundef 3) #6
  %261 = load ptr, ptr @stderr, align 8, !tbaa !5
  %262 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %261, ptr noundef nonnull @.str.6) #6
  br label %263

263:                                              ; preds = %256, %253, %245
  %.8.2 = phi i8 [ %.8.1, %245 ], [ 0, %256 ], [ 0, %253 ]
  %264 = load double, ptr %247, align 8, !tbaa !14
  %265 = getelementptr inbounds i8, ptr %8, i64 32
  %266 = load double, ptr %265, align 16, !tbaa !14
  %267 = fcmp ogt double %264, %266
  br i1 %267, label %268, label %281

268:                                              ; preds = %263
  %269 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %.not85.3 = icmp eq ptr %269, null
  br i1 %.not85.3, label %271, label %270

270:                                              ; preds = %268
  call void (i32, ptr, ptr, i32, ptr, ...) %269(i32 noundef 2, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.testBasicMath, i32 noundef 1290, ptr noundef nonnull @.str.148, i32 noundef 4)
  br label %271

271:                                              ; preds = %270, %268
  %272 = load i32, ptr @RcsLogLevel, align 4, !tbaa !9
  %273 = icmp sgt i32 %272, 1
  br i1 %273, label %274, label %281

274:                                              ; preds = %271
  %275 = load ptr, ptr @stderr, align 8, !tbaa !5
  %276 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %275, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.testBasicMath, i32 noundef 1290) #6
  %277 = load ptr, ptr @stderr, align 8, !tbaa !5
  %278 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %277, ptr noundef nonnull @.str.148, i32 noundef 4) #6
  %279 = load ptr, ptr @stderr, align 8, !tbaa !5
  %280 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %279, ptr noundef nonnull @.str.6) #6
  br label %281

281:                                              ; preds = %274, %271, %263
  %.8.3 = phi i8 [ %.8.2, %263 ], [ 0, %274 ], [ 0, %271 ]
  %282 = load double, ptr %265, align 16, !tbaa !14
  %283 = getelementptr inbounds i8, ptr %8, i64 40
  %284 = load double, ptr %283, align 8, !tbaa !14
  %285 = fcmp ogt double %282, %284
  br i1 %285, label %286, label %299

286:                                              ; preds = %281
  %287 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %.not85.4 = icmp eq ptr %287, null
  br i1 %.not85.4, label %289, label %288

288:                                              ; preds = %286
  call void (i32, ptr, ptr, i32, ptr, ...) %287(i32 noundef 2, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.testBasicMath, i32 noundef 1290, ptr noundef nonnull @.str.148, i32 noundef 5)
  br label %289

289:                                              ; preds = %288, %286
  %290 = load i32, ptr @RcsLogLevel, align 4, !tbaa !9
  %291 = icmp sgt i32 %290, 1
  br i1 %291, label %292, label %299

292:                                              ; preds = %289
  %293 = load ptr, ptr @stderr, align 8, !tbaa !5
  %294 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %293, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.testBasicMath, i32 noundef 1290) #6
  %295 = load ptr, ptr @stderr, align 8, !tbaa !5
  %296 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %295, ptr noundef nonnull @.str.148, i32 noundef 5) #6
  %297 = load ptr, ptr @stderr, align 8, !tbaa !5
  %298 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %297, ptr noundef nonnull @.str.6) #6
  br label %299

299:                                              ; preds = %292, %289, %281
  %.8.4 = phi i8 [ %.8.3, %281 ], [ 0, %292 ], [ 0, %289 ]
  %300 = load double, ptr %283, align 8, !tbaa !14
  %301 = getelementptr inbounds i8, ptr %8, i64 48
  %302 = load double, ptr %301, align 16, !tbaa !14
  %303 = fcmp ogt double %300, %302
  br i1 %303, label %304, label %317

304:                                              ; preds = %299
  %305 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %.not85.5 = icmp eq ptr %305, null
  br i1 %.not85.5, label %307, label %306

306:                                              ; preds = %304
  call void (i32, ptr, ptr, i32, ptr, ...) %305(i32 noundef 2, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.testBasicMath, i32 noundef 1290, ptr noundef nonnull @.str.148, i32 noundef 6)
  br label %307

307:                                              ; preds = %306, %304
  %308 = load i32, ptr @RcsLogLevel, align 4, !tbaa !9
  %309 = icmp sgt i32 %308, 1
  br i1 %309, label %310, label %317

310:                                              ; preds = %307
  %311 = load ptr, ptr @stderr, align 8, !tbaa !5
  %312 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %311, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.testBasicMath, i32 noundef 1290) #6
  %313 = load ptr, ptr @stderr, align 8, !tbaa !5
  %314 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %313, ptr noundef nonnull @.str.148, i32 noundef 6) #6
  %315 = load ptr, ptr @stderr, align 8, !tbaa !5
  %316 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %315, ptr noundef nonnull @.str.6) #6
  br label %317

317:                                              ; preds = %310, %307, %299
  %.8.5 = phi i8 [ %.8.4, %299 ], [ 0, %310 ], [ 0, %307 ]
  %318 = load double, ptr %301, align 16, !tbaa !14
  %319 = getelementptr inbounds i8, ptr %8, i64 56
  %320 = load double, ptr %319, align 8, !tbaa !14
  %321 = fcmp ogt double %318, %320
  br i1 %321, label %322, label %335

322:                                              ; preds = %317
  %323 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %.not85.6 = icmp eq ptr %323, null
  br i1 %.not85.6, label %325, label %324

324:                                              ; preds = %322
  call void (i32, ptr, ptr, i32, ptr, ...) %323(i32 noundef 2, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.testBasicMath, i32 noundef 1290, ptr noundef nonnull @.str.148, i32 noundef 7)
  br label %325

325:                                              ; preds = %324, %322
  %326 = load i32, ptr @RcsLogLevel, align 4, !tbaa !9
  %327 = icmp sgt i32 %326, 1
  br i1 %327, label %328, label %335

328:                                              ; preds = %325
  %329 = load ptr, ptr @stderr, align 8, !tbaa !5
  %330 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %329, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.testBasicMath, i32 noundef 1290) #6
  %331 = load ptr, ptr @stderr, align 8, !tbaa !5
  %332 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %331, ptr noundef nonnull @.str.148, i32 noundef 7) #6
  %333 = load ptr, ptr @stderr, align 8, !tbaa !5
  %334 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %333, ptr noundef nonnull @.str.6) #6
  br label %335

335:                                              ; preds = %328, %325, %317
  %.8.6 = phi i8 [ %.8.5, %317 ], [ 0, %328 ], [ 0, %325 ]
  %336 = load double, ptr %319, align 8, !tbaa !14
  %337 = getelementptr inbounds i8, ptr %8, i64 64
  %338 = load double, ptr %337, align 16, !tbaa !14
  %339 = fcmp ogt double %336, %338
  br i1 %339, label %340, label %353

340:                                              ; preds = %335
  %341 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %.not85.7 = icmp eq ptr %341, null
  br i1 %.not85.7, label %343, label %342

342:                                              ; preds = %340
  call void (i32, ptr, ptr, i32, ptr, ...) %341(i32 noundef 2, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.testBasicMath, i32 noundef 1290, ptr noundef nonnull @.str.148, i32 noundef 8)
  br label %343

343:                                              ; preds = %342, %340
  %344 = load i32, ptr @RcsLogLevel, align 4, !tbaa !9
  %345 = icmp sgt i32 %344, 1
  br i1 %345, label %346, label %353

346:                                              ; preds = %343
  %347 = load ptr, ptr @stderr, align 8, !tbaa !5
  %348 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %347, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.testBasicMath, i32 noundef 1290) #6
  %349 = load ptr, ptr @stderr, align 8, !tbaa !5
  %350 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %349, ptr noundef nonnull @.str.148, i32 noundef 8) #6
  %351 = load ptr, ptr @stderr, align 8, !tbaa !5
  %352 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %351, ptr noundef nonnull @.str.6) #6
  br label %353

353:                                              ; preds = %346, %343, %335
  %.8.7 = phi i8 [ %.8.6, %335 ], [ 0, %346 ], [ 0, %343 ]
  %354 = load double, ptr %337, align 16, !tbaa !14
  %355 = getelementptr inbounds i8, ptr %8, i64 72
  %356 = load double, ptr %355, align 8, !tbaa !14
  %357 = fcmp ogt double %354, %356
  br i1 %357, label %358, label %371

358:                                              ; preds = %353
  %359 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %.not85.8 = icmp eq ptr %359, null
  br i1 %.not85.8, label %361, label %360

360:                                              ; preds = %358
  call void (i32, ptr, ptr, i32, ptr, ...) %359(i32 noundef 2, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.testBasicMath, i32 noundef 1290, ptr noundef nonnull @.str.148, i32 noundef 9)
  br label %361

361:                                              ; preds = %360, %358
  %362 = load i32, ptr @RcsLogLevel, align 4, !tbaa !9
  %363 = icmp sgt i32 %362, 1
  br i1 %363, label %364, label %.thread96

364:                                              ; preds = %361
  %365 = load ptr, ptr @stderr, align 8, !tbaa !5
  %366 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %365, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.testBasicMath, i32 noundef 1290) #6
  %367 = load ptr, ptr @stderr, align 8, !tbaa !5
  %368 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %367, ptr noundef nonnull @.str.148, i32 noundef 9) #6
  %369 = load ptr, ptr @stderr, align 8, !tbaa !5
  %370 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %369, ptr noundef nonnull @.str.6) #6
  br label %371

371:                                              ; preds = %364, %353
  %.8.8.ph = phi i8 [ 0, %364 ], [ %.8.7, %353 ]
  %.pr95 = load i32, ptr @RcsLogLevel, align 4, !tbaa !9
  %372 = icmp sgt i32 %.pr95, 2
  br i1 %372, label %373, label %.thread96

373:                                              ; preds = %371
  call void @VecNd_printComment(ptr noundef nonnull @.str.149, ptr noundef nonnull %7, i32 noundef 10)
  call void @VecNd_printComment(ptr noundef nonnull @.str.150, ptr noundef nonnull %8, i32 noundef 10)
  br label %.thread96

.thread96:                                        ; preds = %361, %373, %371
  %.8.898 = phi i8 [ %.8.8.ph, %373 ], [ %.8.8.ph, %371 ], [ 0, %361 ]
  store <2 x double> <double 0.000000e+00, double 1.000000e+00>, ptr %7, align 16, !tbaa !14
  store <2 x double> <double 0.000000e+00, double 1.000000e+00>, ptr %8, align 16, !tbaa !14
  %374 = getelementptr inbounds i8, ptr %7, i64 16
  store <2 x double> <double 2.000000e+00, double 3.000000e+00>, ptr %374, align 16, !tbaa !14
  store <2 x double> <double 2.000000e+00, double 3.000000e+00>, ptr %229, align 16, !tbaa !14
  %375 = getelementptr inbounds i8, ptr %7, i64 32
  store <2 x double> <double 4.000000e+00, double 5.000000e+00>, ptr %375, align 16, !tbaa !14
  store <2 x double> <double 4.000000e+00, double 5.000000e+00>, ptr %265, align 16, !tbaa !14
  %376 = getelementptr inbounds i8, ptr %7, i64 48
  store <2 x double> <double 6.000000e+00, double 7.000000e+00>, ptr %376, align 16, !tbaa !14
  store <2 x double> <double 6.000000e+00, double 7.000000e+00>, ptr %301, align 16, !tbaa !14
  %377 = getelementptr inbounds i8, ptr %7, i64 64
  store <2 x double> <double 8.000000e+00, double 9.000000e+00>, ptr %377, align 16, !tbaa !14
  store <2 x double> <double 8.000000e+00, double 9.000000e+00>, ptr %337, align 16, !tbaa !14
  call void @VecNd_reverseSelf(ptr noundef nonnull %8, i32 noundef 10)
  %378 = load i32, ptr @RcsLogLevel, align 4, !tbaa !9
  %379 = icmp sgt i32 %378, 2
  br i1 %379, label %380, label %.preheader

.preheader:                                       ; preds = %380, %.thread96
  br label %387

380:                                              ; preds = %.thread96
  call void @VecNd_printComment(ptr noundef nonnull @.str.151, ptr noundef nonnull %7, i32 noundef 10)
  call void @VecNd_printComment(ptr noundef nonnull @.str.152, ptr noundef nonnull %8, i32 noundef 10)
  br label %.preheader

381:                                              ; preds = %411
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #5
  call void @Vec3d_setRandom(ptr noundef nonnull %12, double noundef -1.000000e+00, double noundef 1.000000e+00)
  call void @Math_Cart2Cyl(ptr noundef nonnull %12, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef nonnull %11)
  %382 = load double, ptr %9, align 8, !tbaa !14
  %383 = load double, ptr %10, align 8, !tbaa !14
  %384 = load double, ptr %11, align 8, !tbaa !14
  call void @Math_Cyl2Cart(double noundef %382, double noundef %383, double noundef %384, ptr noundef nonnull %13)
  %385 = call double @VecNd_sqrDiff(ptr noundef nonnull %12, ptr noundef nonnull %13, i32 noundef 2)
  %386 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %.not81 = icmp eq ptr %386, null
  br i1 %.not81, label %419, label %412

387:                                              ; preds = %.preheader, %411
  %indvars.iv = phi i64 [ %indvars.iv.next, %411 ], [ 0, %.preheader ]
  %.993 = phi i8 [ %.10, %411 ], [ %.8.898, %.preheader ]
  %388 = getelementptr inbounds [10 x double], ptr %8, i64 0, i64 %indvars.iv
  %389 = load double, ptr %388, align 8, !tbaa !14
  %390 = sub nuw nsw i64 9, %indvars.iv
  %391 = getelementptr inbounds [10 x double], ptr %7, i64 0, i64 %390
  %392 = load double, ptr %391, align 8, !tbaa !14
  %393 = fcmp une double %389, %392
  br i1 %393, label %394, label %411

394:                                              ; preds = %387
  %395 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %.not84 = icmp eq ptr %395, null
  br i1 %.not84, label %398, label %396

396:                                              ; preds = %394
  %397 = trunc nuw nsw i64 %indvars.iv to i32
  call void (i32, ptr, ptr, i32, ptr, ...) %395(i32 noundef 2, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.testBasicMath, i32 noundef 1320, ptr noundef nonnull @.str.153, i32 noundef %397, double noundef %389, double noundef %392)
  br label %398

398:                                              ; preds = %396, %394
  %399 = load i32, ptr @RcsLogLevel, align 4, !tbaa !9
  %400 = icmp sgt i32 %399, 1
  br i1 %400, label %401, label %411

401:                                              ; preds = %398
  %402 = load ptr, ptr @stderr, align 8, !tbaa !5
  %403 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %402, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.testBasicMath, i32 noundef 1320) #6
  %404 = load ptr, ptr @stderr, align 8, !tbaa !5
  %405 = load double, ptr %388, align 8, !tbaa !14
  %406 = load double, ptr %391, align 8, !tbaa !14
  %407 = trunc nuw nsw i64 %indvars.iv to i32
  %408 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %404, ptr noundef nonnull @.str.153, i32 noundef %407, double noundef %405, double noundef %406) #6
  %409 = load ptr, ptr @stderr, align 8, !tbaa !5
  %410 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %409, ptr noundef nonnull @.str.6) #6
  br label %411

411:                                              ; preds = %398, %401, %387
  %.10 = phi i8 [ %.993, %387 ], [ 0, %401 ], [ 0, %398 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 10
  br i1 %exitcond.not, label %381, label %387, !llvm.loop !16

412:                                              ; preds = %381
  %413 = load double, ptr %12, align 16, !tbaa !14
  %414 = load double, ptr %13, align 16, !tbaa !14
  %415 = getelementptr inbounds i8, ptr %12, i64 8
  %416 = load double, ptr %415, align 8, !tbaa !14
  %417 = getelementptr inbounds i8, ptr %13, i64 8
  %418 = load double, ptr %417, align 8, !tbaa !14
  call void (i32, ptr, ptr, i32, ptr, ...) %386(i32 noundef 3, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.testBasicMath, i32 noundef 1335, ptr noundef nonnull @.str.154, double noundef %413, double noundef %414, double noundef %416, double noundef %418, double noundef %385)
  br label %419

419:                                              ; preds = %412, %381
  %420 = load i32, ptr @RcsLogLevel, align 4, !tbaa !9
  %421 = icmp sgt i32 %420, 2
  br i1 %421, label %422, label %435

422:                                              ; preds = %419
  %423 = load ptr, ptr @stderr, align 8, !tbaa !5
  %424 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %423, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.testBasicMath, i32 noundef 1335) #6
  %425 = load ptr, ptr @stderr, align 8, !tbaa !5
  %426 = load double, ptr %12, align 16, !tbaa !14
  %427 = load double, ptr %13, align 16, !tbaa !14
  %428 = getelementptr inbounds i8, ptr %12, i64 8
  %429 = load double, ptr %428, align 8, !tbaa !14
  %430 = getelementptr inbounds i8, ptr %13, i64 8
  %431 = load double, ptr %430, align 8, !tbaa !14
  %432 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %425, ptr noundef nonnull @.str.154, double noundef %426, double noundef %427, double noundef %429, double noundef %431, double noundef %385) #6
  %433 = load ptr, ptr @stderr, align 8, !tbaa !5
  %434 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %433, ptr noundef nonnull @.str.6) #6
  br label %435

435:                                              ; preds = %422, %419
  %436 = fcmp ogt double %385, 1.000000e-05
  br i1 %436, label %437, label %450

437:                                              ; preds = %435
  %438 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %.not82 = icmp eq ptr %438, null
  br i1 %.not82, label %440, label %439

439:                                              ; preds = %437
  call void (i32, ptr, ptr, i32, ptr, ...) %438(i32 noundef 2, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.testBasicMath, i32 noundef 1339, ptr noundef nonnull @.str.155)
  br label %440

440:                                              ; preds = %439, %437
  %441 = load i32, ptr @RcsLogLevel, align 4, !tbaa !9
  %442 = icmp sgt i32 %441, 1
  br i1 %442, label %443, label %450

443:                                              ; preds = %440
  %444 = load ptr, ptr @stderr, align 8, !tbaa !5
  %445 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %444, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.testBasicMath, i32 noundef 1339) #6
  %446 = load ptr, ptr @stderr, align 8, !tbaa !5
  %447 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %446, ptr noundef nonnull @.str.155) #6
  %448 = load ptr, ptr @stderr, align 8, !tbaa !5
  %449 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %448, ptr noundef nonnull @.str.6) #6
  br label %450

450:                                              ; preds = %440, %443, %435
  %.11 = phi i8 [ %.10, %435 ], [ 0, %443 ], [ 0, %440 ]
  call void @MatNd_destroy(ptr noundef %175)
  call void @MatNd_destroy(ptr noundef %176)
  %451 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %.not83 = icmp eq ptr %451, null
  br i1 %.not83, label %454, label %452

452:                                              ; preds = %450
  %453 = trunc nuw i8 %.11 to i1
  %.str.20..str.21 = select i1 %453, ptr @.str.20, ptr @.str.21
  call void (i32, ptr, ptr, i32, ptr, ...) %451(i32 noundef 1, ptr noundef nonnull @.str.18, ptr noundef nonnull @__func__.testBasicMath, i32 noundef 1347, ptr noundef nonnull @.str.156, ptr noundef nonnull %.str.20..str.21)
  br label %454

454:                                              ; preds = %452, %450
  %455 = load i32, ptr @RcsLogLevel, align 4, !tbaa !9
  %456 = icmp sgt i32 %455, 0
  br i1 %456, label %457, label %._crit_edge

._crit_edge:                                      ; preds = %454
  %.pre = trunc nuw i8 %.11 to i1
  br label %465

457:                                              ; preds = %454
  %458 = load ptr, ptr @stderr, align 8, !tbaa !5
  %459 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %458, ptr noundef nonnull @.str.22, ptr noundef nonnull @__func__.testBasicMath, i32 noundef 1347) #6
  %460 = load ptr, ptr @stderr, align 8, !tbaa !5
  %461 = trunc nuw i8 %.11 to i1
  %.str.20..str.211 = select i1 %461, ptr @.str.20, ptr @.str.21
  %462 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %460, ptr noundef nonnull @.str.156, ptr noundef nonnull %.str.20..str.211) #6
  %463 = load ptr, ptr @stderr, align 8, !tbaa !5
  %464 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %463, ptr noundef nonnull @.str.6) #6
  br label %465

465:                                              ; preds = %._crit_edge, %457
  %.pre-phi = phi i1 [ %.pre, %._crit_edge ], [ %461, %457 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %3) #5
  ret i1 %.pre-phi
}

; Function Attrs: nounwind
declare i64 @lround(double noundef) local_unnamed_addr #4

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

declare void @VecNd_copy(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

declare void @Mat3d_fprint(ptr noundef, ptr noundef) local_unnamed_addr #2

declare double @Mat3d_inverse(ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @Mat3d_mul(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @Mat3d_addConstToDiag(ptr noundef, double noundef) local_unnamed_addr #2

declare double @Mat3d_inverseSelf(ptr noundef) local_unnamed_addr #2

declare double @MatNd_scaleSelf(ptr noundef, ptr noundef) local_unnamed_addr #2

declare double @MatNd_maxAbsEle(ptr noundef) local_unnamed_addr #2

declare void @VecNd_setRandom(ptr noundef, double noundef, double noundef, i32 noundef) local_unnamed_addr #2

declare void @VecNd_sort(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

declare void @VecNd_printComment(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

declare void @VecNd_reverseSelf(ptr noundef, i32 noundef) local_unnamed_addr #2

declare void @Math_Cart2Cyl(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @Math_Cyl2Cart(double noundef, double noundef, double noundef, ptr noundef) local_unnamed_addr #2

declare double @VecNd_sqrDiff(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

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

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

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


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