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

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

@stderr = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@RCS_GLOBAL_RLOG_CB = external global ptr, align 8
@__func__.Mat3d_isValid = external hidden unnamed_addr constant [14 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [23 x i8], align 1
@RcsLogLevel = external global i32, align 4
@.str.6 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [15 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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #2

; Function Attrs: nounwind uwtable
declare dso_local double @Mat3d_determinant(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @Mat3d_isFinite(ptr noundef) #3

; Function Attrs: nounwind uwtable
define dso_local zeroext i1 @Mat3d_isValid(ptr noundef %0) #3 {
  %2 = alloca i1, align 1
  %3 = alloca ptr, align 8
  %4 = alloca double, align 8
  %5 = alloca double, align 8
  %6 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  store double 0x3F91DF46A2529D39, ptr %5, align 8, !tbaa !9
  %7 = load ptr, ptr %3, align 8, !tbaa !5
  %8 = icmp ne ptr %7, null
  br i1 %8, label %28, label %9

9:                                                ; preds = %1
  br label %10

10:                                               ; preds = %9
  %11 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %12 = icmp ne ptr %11, null
  br i1 %12, label %13, label %15

13:                                               ; preds = %10
  %14 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  call void (i32, ptr, ptr, i32, ptr, ...) %14(i32 noundef 4, ptr noundef @.str.1, ptr noundef @__func__.Mat3d_isValid, i32 noundef 1287, ptr noundef @.str.5)
  br label %15

15:                                               ; preds = %13, %10
  %16 = load i32, ptr @RcsLogLevel, align 4, !tbaa !11
  %17 = icmp sle i32 4, %16
  br i1 %17, label %18, label %25

18:                                               ; preds = %15
  %19 = load ptr, ptr @stderr, align 8, !tbaa !5
  %20 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %19, ptr noundef @.str.6, ptr noundef @.str.1, ptr noundef @__func__.Mat3d_isValid, i32 noundef 1287) #4
  %21 = load ptr, ptr @stderr, align 8, !tbaa !5
  %22 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %21, ptr noundef @.str.5) #4
  %23 = load ptr, ptr @stderr, align 8, !tbaa !5
  %24 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %23, ptr noundef @.str.3) #4
  br label %25

25:                                               ; preds = %18, %15
  br label %26

26:                                               ; preds = %25
  br label %27

27:                                               ; preds = %26
  store i1 false, ptr %2, align 1
  store i32 1, ptr %6, align 4
  br label %409

28:                                               ; preds = %1
  %29 = load ptr, ptr %3, align 8, !tbaa !5
  %30 = call zeroext i1 @Mat3d_isFinite(ptr noundef %29)
  %31 = zext i1 %30 to i32
  %32 = icmp eq i32 %31, 0
  br i1 %32, label %33, label %58

33:                                               ; preds = %28
  %34 = load i32, ptr @RcsLogLevel, align 4, !tbaa !11
  %35 = icmp sle i32 4, %34
  br i1 %35, label %36, label %57

36:                                               ; preds = %33
  br label %37

37:                                               ; preds = %36
  %38 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %39 = icmp ne ptr %38, null
  br i1 %39, label %40, label %42

40:                                               ; preds = %37
  %41 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  call void (i32, ptr, ptr, i32, ptr, ...) %41(i32 noundef 4, ptr noundef @.str.1, ptr noundef @__func__.Mat3d_isValid, i32 noundef 1296, ptr noundef @.str.7)
  br label %42

42:                                               ; preds = %40, %37
  %43 = load i32, ptr @RcsLogLevel, align 4, !tbaa !11
  %44 = icmp sle i32 4, %43
  br i1 %44, label %45, label %52

45:                                               ; preds = %42
  %46 = load ptr, ptr @stderr, align 8, !tbaa !5
  %47 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef @.str.6, ptr noundef @.str.1, ptr noundef @__func__.Mat3d_isValid, i32 noundef 1296) #4
  %48 = load ptr, ptr @stderr, align 8, !tbaa !5
  %49 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef @.str.7) #4
  %50 = load ptr, ptr @stderr, align 8, !tbaa !5
  %51 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %50, ptr noundef @.str.3) #4
  br label %52

52:                                               ; preds = %45, %42
  br label %53

53:                                               ; preds = %52
  br label %54

54:                                               ; preds = %53
  %55 = load ptr, ptr @stderr, align 8, !tbaa !5
  %56 = load ptr, ptr %3, align 8, !tbaa !5
  call void @Mat3d_fprint(ptr noundef %55, ptr noundef %56)
  br label %57

57:                                               ; preds = %54, %33
  store i1 false, ptr %2, align 1
  store i32 1, ptr %6, align 4
  br label %409

58:                                               ; preds = %28
  %59 = load ptr, ptr %3, align 8, !tbaa !5
  %60 = getelementptr inbounds [3 x double], ptr %59, i64 0
  %61 = getelementptr inbounds [3 x double], ptr %60, i64 0, i64 0
  %62 = load double, ptr %61, align 8, !tbaa !9
  %63 = load ptr, ptr %3, align 8, !tbaa !5
  %64 = getelementptr inbounds [3 x double], ptr %63, i64 1
  %65 = getelementptr inbounds [3 x double], ptr %64, i64 0, i64 0
  %66 = load double, ptr %65, align 8, !tbaa !9
  %67 = load ptr, ptr %3, align 8, !tbaa !5
  %68 = getelementptr inbounds [3 x double], ptr %67, i64 0
  %69 = getelementptr inbounds [3 x double], ptr %68, i64 0, i64 1
  %70 = load double, ptr %69, align 8, !tbaa !9
  %71 = load ptr, ptr %3, align 8, !tbaa !5
  %72 = getelementptr inbounds [3 x double], ptr %71, i64 1
  %73 = getelementptr inbounds [3 x double], ptr %72, i64 0, i64 1
  %74 = load double, ptr %73, align 8, !tbaa !9
  %75 = fmul double %70, %74
  %76 = call double @llvm.fmuladd.f64(double %62, double %66, double %75)
  %77 = load ptr, ptr %3, align 8, !tbaa !5
  %78 = getelementptr inbounds [3 x double], ptr %77, i64 0
  %79 = getelementptr inbounds [3 x double], ptr %78, i64 0, i64 2
  %80 = load double, ptr %79, align 8, !tbaa !9
  %81 = load ptr, ptr %3, align 8, !tbaa !5
  %82 = getelementptr inbounds [3 x double], ptr %81, i64 1
  %83 = getelementptr inbounds [3 x double], ptr %82, i64 0, i64 2
  %84 = load double, ptr %83, align 8, !tbaa !9
  %85 = call double @llvm.fmuladd.f64(double %80, double %84, double %76)
  %86 = call double @llvm.fabs.f64(double %85)
  store double %86, ptr %4, align 8, !tbaa !9
  %87 = load double, ptr %4, align 8, !tbaa !9
  %88 = load double, ptr %5, align 8, !tbaa !9
  %89 = fcmp ogt double %87, %88
  br i1 %89, label %90, label %111

90:                                               ; preds = %58
  br label %91

91:                                               ; preds = %90
  %92 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %93 = icmp ne ptr %92, null
  br i1 %93, label %94, label %97

94:                                               ; preds = %91
  %95 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %96 = load double, ptr %4, align 8, !tbaa !9
  call void (i32, ptr, ptr, i32, ptr, ...) %95(i32 noundef 4, ptr noundef @.str.1, ptr noundef @__func__.Mat3d_isValid, i32 noundef 1308, ptr noundef @.str.8, double noundef %96)
  br label %97

97:                                               ; preds = %94, %91
  %98 = load i32, ptr @RcsLogLevel, align 4, !tbaa !11
  %99 = icmp sle i32 4, %98
  br i1 %99, label %100, label %108

100:                                              ; preds = %97
  %101 = load ptr, ptr @stderr, align 8, !tbaa !5
  %102 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %101, ptr noundef @.str.6, ptr noundef @.str.1, ptr noundef @__func__.Mat3d_isValid, i32 noundef 1308) #4
  %103 = load ptr, ptr @stderr, align 8, !tbaa !5
  %104 = load double, ptr %4, align 8, !tbaa !9
  %105 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %103, ptr noundef @.str.8, double noundef %104) #4
  %106 = load ptr, ptr @stderr, align 8, !tbaa !5
  %107 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %106, ptr noundef @.str.3) #4
  br label %108

108:                                              ; preds = %100, %97
  br label %109

109:                                              ; preds = %108
  br label %110

110:                                              ; preds = %109
  store i1 false, ptr %2, align 1
  store i32 1, ptr %6, align 4
  br label %409

111:                                              ; preds = %58
  %112 = load ptr, ptr %3, align 8, !tbaa !5
  %113 = getelementptr inbounds [3 x double], ptr %112, i64 0
  %114 = getelementptr inbounds [3 x double], ptr %113, i64 0, i64 0
  %115 = load double, ptr %114, align 8, !tbaa !9
  %116 = load ptr, ptr %3, align 8, !tbaa !5
  %117 = getelementptr inbounds [3 x double], ptr %116, i64 2
  %118 = getelementptr inbounds [3 x double], ptr %117, i64 0, i64 0
  %119 = load double, ptr %118, align 8, !tbaa !9
  %120 = load ptr, ptr %3, align 8, !tbaa !5
  %121 = getelementptr inbounds [3 x double], ptr %120, i64 0
  %122 = getelementptr inbounds [3 x double], ptr %121, i64 0, i64 1
  %123 = load double, ptr %122, align 8, !tbaa !9
  %124 = load ptr, ptr %3, align 8, !tbaa !5
  %125 = getelementptr inbounds [3 x double], ptr %124, i64 2
  %126 = getelementptr inbounds [3 x double], ptr %125, i64 0, i64 1
  %127 = load double, ptr %126, align 8, !tbaa !9
  %128 = fmul double %123, %127
  %129 = call double @llvm.fmuladd.f64(double %115, double %119, double %128)
  %130 = load ptr, ptr %3, align 8, !tbaa !5
  %131 = getelementptr inbounds [3 x double], ptr %130, i64 0
  %132 = getelementptr inbounds [3 x double], ptr %131, i64 0, i64 2
  %133 = load double, ptr %132, align 8, !tbaa !9
  %134 = load ptr, ptr %3, align 8, !tbaa !5
  %135 = getelementptr inbounds [3 x double], ptr %134, i64 2
  %136 = getelementptr inbounds [3 x double], ptr %135, i64 0, i64 2
  %137 = load double, ptr %136, align 8, !tbaa !9
  %138 = call double @llvm.fmuladd.f64(double %133, double %137, double %129)
  %139 = call double @llvm.fabs.f64(double %138)
  store double %139, ptr %4, align 8, !tbaa !9
  %140 = load double, ptr %4, align 8, !tbaa !9
  %141 = load double, ptr %5, align 8, !tbaa !9
  %142 = fcmp ogt double %140, %141
  br i1 %142, label %143, label %164

143:                                              ; preds = %111
  br label %144

144:                                              ; preds = %143
  %145 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %146 = icmp ne ptr %145, null
  br i1 %146, label %147, label %150

147:                                              ; preds = %144
  %148 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %149 = load double, ptr %4, align 8, !tbaa !9
  call void (i32, ptr, ptr, i32, ptr, ...) %148(i32 noundef 4, ptr noundef @.str.1, ptr noundef @__func__.Mat3d_isValid, i32 noundef 1316, ptr noundef @.str.9, double noundef %149)
  br label %150

150:                                              ; preds = %147, %144
  %151 = load i32, ptr @RcsLogLevel, align 4, !tbaa !11
  %152 = icmp sle i32 4, %151
  br i1 %152, label %153, label %161

153:                                              ; preds = %150
  %154 = load ptr, ptr @stderr, align 8, !tbaa !5
  %155 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %154, ptr noundef @.str.6, ptr noundef @.str.1, ptr noundef @__func__.Mat3d_isValid, i32 noundef 1316) #4
  %156 = load ptr, ptr @stderr, align 8, !tbaa !5
  %157 = load double, ptr %4, align 8, !tbaa !9
  %158 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %156, ptr noundef @.str.9, double noundef %157) #4
  %159 = load ptr, ptr @stderr, align 8, !tbaa !5
  %160 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %159, ptr noundef @.str.3) #4
  br label %161

161:                                              ; preds = %153, %150
  br label %162

162:                                              ; preds = %161
  br label %163

163:                                              ; preds = %162
  store i1 false, ptr %2, align 1
  store i32 1, ptr %6, align 4
  br label %409

164:                                              ; preds = %111
  %165 = load ptr, ptr %3, align 8, !tbaa !5
  %166 = getelementptr inbounds [3 x double], ptr %165, i64 1
  %167 = getelementptr inbounds [3 x double], ptr %166, i64 0, i64 0
  %168 = load double, ptr %167, align 8, !tbaa !9
  %169 = load ptr, ptr %3, align 8, !tbaa !5
  %170 = getelementptr inbounds [3 x double], ptr %169, i64 2
  %171 = getelementptr inbounds [3 x double], ptr %170, i64 0, i64 0
  %172 = load double, ptr %171, align 8, !tbaa !9
  %173 = load ptr, ptr %3, align 8, !tbaa !5
  %174 = getelementptr inbounds [3 x double], ptr %173, i64 1
  %175 = getelementptr inbounds [3 x double], ptr %174, i64 0, i64 1
  %176 = load double, ptr %175, align 8, !tbaa !9
  %177 = load ptr, ptr %3, align 8, !tbaa !5
  %178 = getelementptr inbounds [3 x double], ptr %177, i64 2
  %179 = getelementptr inbounds [3 x double], ptr %178, i64 0, i64 1
  %180 = load double, ptr %179, align 8, !tbaa !9
  %181 = fmul double %176, %180
  %182 = call double @llvm.fmuladd.f64(double %168, double %172, double %181)
  %183 = load ptr, ptr %3, align 8, !tbaa !5
  %184 = getelementptr inbounds [3 x double], ptr %183, i64 1
  %185 = getelementptr inbounds [3 x double], ptr %184, i64 0, i64 2
  %186 = load double, ptr %185, align 8, !tbaa !9
  %187 = load ptr, ptr %3, align 8, !tbaa !5
  %188 = getelementptr inbounds [3 x double], ptr %187, i64 2
  %189 = getelementptr inbounds [3 x double], ptr %188, i64 0, i64 2
  %190 = load double, ptr %189, align 8, !tbaa !9
  %191 = call double @llvm.fmuladd.f64(double %186, double %190, double %182)
  %192 = call double @llvm.fabs.f64(double %191)
  store double %192, ptr %4, align 8, !tbaa !9
  %193 = load double, ptr %4, align 8, !tbaa !9
  %194 = load double, ptr %5, align 8, !tbaa !9
  %195 = fcmp ogt double %193, %194
  br i1 %195, label %196, label %217

196:                                              ; preds = %164
  br label %197

197:                                              ; preds = %196
  %198 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %199 = icmp ne ptr %198, null
  br i1 %199, label %200, label %203

200:                                              ; preds = %197
  %201 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %202 = load double, ptr %4, align 8, !tbaa !9
  call void (i32, ptr, ptr, i32, ptr, ...) %201(i32 noundef 4, ptr noundef @.str.1, ptr noundef @__func__.Mat3d_isValid, i32 noundef 1324, ptr noundef @.str.10, double noundef %202)
  br label %203

203:                                              ; preds = %200, %197
  %204 = load i32, ptr @RcsLogLevel, align 4, !tbaa !11
  %205 = icmp sle i32 4, %204
  br i1 %205, label %206, label %214

206:                                              ; preds = %203
  %207 = load ptr, ptr @stderr, align 8, !tbaa !5
  %208 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %207, ptr noundef @.str.6, ptr noundef @.str.1, ptr noundef @__func__.Mat3d_isValid, i32 noundef 1324) #4
  %209 = load ptr, ptr @stderr, align 8, !tbaa !5
  %210 = load double, ptr %4, align 8, !tbaa !9
  %211 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %209, ptr noundef @.str.10, double noundef %210) #4
  %212 = load ptr, ptr @stderr, align 8, !tbaa !5
  %213 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %212, ptr noundef @.str.3) #4
  br label %214

214:                                              ; preds = %206, %203
  br label %215

215:                                              ; preds = %214
  br label %216

216:                                              ; preds = %215
  store i1 false, ptr %2, align 1
  store i32 1, ptr %6, align 4
  br label %409

217:                                              ; preds = %164
  %218 = load ptr, ptr %3, align 8, !tbaa !5
  %219 = getelementptr inbounds [3 x double], ptr %218, i64 0
  %220 = getelementptr inbounds [3 x double], ptr %219, i64 0, i64 0
  %221 = load double, ptr %220, align 8, !tbaa !9
  %222 = load ptr, ptr %3, align 8, !tbaa !5
  %223 = getelementptr inbounds [3 x double], ptr %222, i64 0
  %224 = getelementptr inbounds [3 x double], ptr %223, i64 0, i64 0
  %225 = load double, ptr %224, align 8, !tbaa !9
  %226 = load ptr, ptr %3, align 8, !tbaa !5
  %227 = getelementptr inbounds [3 x double], ptr %226, i64 0
  %228 = getelementptr inbounds [3 x double], ptr %227, i64 0, i64 1
  %229 = load double, ptr %228, align 8, !tbaa !9
  %230 = load ptr, ptr %3, align 8, !tbaa !5
  %231 = getelementptr inbounds [3 x double], ptr %230, i64 0
  %232 = getelementptr inbounds [3 x double], ptr %231, i64 0, i64 1
  %233 = load double, ptr %232, align 8, !tbaa !9
  %234 = fmul double %229, %233
  %235 = call double @llvm.fmuladd.f64(double %221, double %225, double %234)
  %236 = load ptr, ptr %3, align 8, !tbaa !5
  %237 = getelementptr inbounds [3 x double], ptr %236, i64 0
  %238 = getelementptr inbounds [3 x double], ptr %237, i64 0, i64 2
  %239 = load double, ptr %238, align 8, !tbaa !9
  %240 = load ptr, ptr %3, align 8, !tbaa !5
  %241 = getelementptr inbounds [3 x double], ptr %240, i64 0
  %242 = getelementptr inbounds [3 x double], ptr %241, i64 0, i64 2
  %243 = load double, ptr %242, align 8, !tbaa !9
  %244 = call double @llvm.fmuladd.f64(double %239, double %243, double %235)
  %245 = fsub double %244, 1.000000e+00
  %246 = call double @llvm.fabs.f64(double %245)
  store double %246, ptr %4, align 8, !tbaa !9
  %247 = load double, ptr %4, align 8, !tbaa !9
  %248 = load double, ptr %5, align 8, !tbaa !9
  %249 = fcmp ogt double %247, %248
  br i1 %249, label %250, label %271

250:                                              ; preds = %217
  br label %251

251:                                              ; preds = %250
  %252 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %253 = icmp ne ptr %252, null
  br i1 %253, label %254, label %257

254:                                              ; preds = %251
  %255 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %256 = load double, ptr %4, align 8, !tbaa !9
  call void (i32, ptr, ptr, i32, ptr, ...) %255(i32 noundef 4, ptr noundef @.str.1, ptr noundef @__func__.Mat3d_isValid, i32 noundef 1332, ptr noundef @.str.11, double noundef %256)
  br label %257

257:                                              ; preds = %254, %251
  %258 = load i32, ptr @RcsLogLevel, align 4, !tbaa !11
  %259 = icmp sle i32 4, %258
  br i1 %259, label %260, label %268

260:                                              ; preds = %257
  %261 = load ptr, ptr @stderr, align 8, !tbaa !5
  %262 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %261, ptr noundef @.str.6, ptr noundef @.str.1, ptr noundef @__func__.Mat3d_isValid, i32 noundef 1332) #4
  %263 = load ptr, ptr @stderr, align 8, !tbaa !5
  %264 = load double, ptr %4, align 8, !tbaa !9
  %265 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %263, ptr noundef @.str.11, double noundef %264) #4
  %266 = load ptr, ptr @stderr, align 8, !tbaa !5
  %267 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %266, ptr noundef @.str.3) #4
  br label %268

268:                                              ; preds = %260, %257
  br label %269

269:                                              ; preds = %268
  br label %270

270:                                              ; preds = %269
  store i1 false, ptr %2, align 1
  store i32 1, ptr %6, align 4
  br label %409

271:                                              ; preds = %217
  %272 = load ptr, ptr %3, align 8, !tbaa !5
  %273 = getelementptr inbounds [3 x double], ptr %272, i64 1
  %274 = getelementptr inbounds [3 x double], ptr %273, i64 0, i64 0
  %275 = load double, ptr %274, align 8, !tbaa !9
  %276 = load ptr, ptr %3, align 8, !tbaa !5
  %277 = getelementptr inbounds [3 x double], ptr %276, i64 1
  %278 = getelementptr inbounds [3 x double], ptr %277, i64 0, i64 0
  %279 = load double, ptr %278, align 8, !tbaa !9
  %280 = load ptr, ptr %3, align 8, !tbaa !5
  %281 = getelementptr inbounds [3 x double], ptr %280, i64 1
  %282 = getelementptr inbounds [3 x double], ptr %281, i64 0, i64 1
  %283 = load double, ptr %282, align 8, !tbaa !9
  %284 = load ptr, ptr %3, align 8, !tbaa !5
  %285 = getelementptr inbounds [3 x double], ptr %284, i64 1
  %286 = getelementptr inbounds [3 x double], ptr %285, i64 0, i64 1
  %287 = load double, ptr %286, align 8, !tbaa !9
  %288 = fmul double %283, %287
  %289 = call double @llvm.fmuladd.f64(double %275, double %279, double %288)
  %290 = load ptr, ptr %3, align 8, !tbaa !5
  %291 = getelementptr inbounds [3 x double], ptr %290, i64 1
  %292 = getelementptr inbounds [3 x double], ptr %291, i64 0, i64 2
  %293 = load double, ptr %292, align 8, !tbaa !9
  %294 = load ptr, ptr %3, align 8, !tbaa !5
  %295 = getelementptr inbounds [3 x double], ptr %294, i64 1
  %296 = getelementptr inbounds [3 x double], ptr %295, i64 0, i64 2
  %297 = load double, ptr %296, align 8, !tbaa !9
  %298 = call double @llvm.fmuladd.f64(double %293, double %297, double %289)
  %299 = fsub double %298, 1.000000e+00
  %300 = call double @llvm.fabs.f64(double %299)
  store double %300, ptr %4, align 8, !tbaa !9
  %301 = load double, ptr %4, align 8, !tbaa !9
  %302 = load double, ptr %5, align 8, !tbaa !9
  %303 = fcmp ogt double %301, %302
  br i1 %303, label %304, label %325

304:                                              ; preds = %271
  br label %305

305:                                              ; preds = %304
  %306 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %307 = icmp ne ptr %306, null
  br i1 %307, label %308, label %311

308:                                              ; preds = %305
  %309 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %310 = load double, ptr %4, align 8, !tbaa !9
  call void (i32, ptr, ptr, i32, ptr, ...) %309(i32 noundef 4, ptr noundef @.str.1, ptr noundef @__func__.Mat3d_isValid, i32 noundef 1340, ptr noundef @.str.12, double noundef %310)
  br label %311

311:                                              ; preds = %308, %305
  %312 = load i32, ptr @RcsLogLevel, align 4, !tbaa !11
  %313 = icmp sle i32 4, %312
  br i1 %313, label %314, label %322

314:                                              ; preds = %311
  %315 = load ptr, ptr @stderr, align 8, !tbaa !5
  %316 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %315, ptr noundef @.str.6, ptr noundef @.str.1, ptr noundef @__func__.Mat3d_isValid, i32 noundef 1340) #4
  %317 = load ptr, ptr @stderr, align 8, !tbaa !5
  %318 = load double, ptr %4, align 8, !tbaa !9
  %319 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %317, ptr noundef @.str.12, double noundef %318) #4
  %320 = load ptr, ptr @stderr, align 8, !tbaa !5
  %321 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %320, ptr noundef @.str.3) #4
  br label %322

322:                                              ; preds = %314, %311
  br label %323

323:                                              ; preds = %322
  br label %324

324:                                              ; preds = %323
  store i1 false, ptr %2, align 1
  store i32 1, ptr %6, align 4
  br label %409

325:                                              ; preds = %271
  %326 = load ptr, ptr %3, align 8, !tbaa !5
  %327 = getelementptr inbounds [3 x double], ptr %326, i64 2
  %328 = getelementptr inbounds [3 x double], ptr %327, i64 0, i64 0
  %329 = load double, ptr %328, align 8, !tbaa !9
  %330 = load ptr, ptr %3, align 8, !tbaa !5
  %331 = getelementptr inbounds [3 x double], ptr %330, i64 2
  %332 = getelementptr inbounds [3 x double], ptr %331, i64 0, i64 0
  %333 = load double, ptr %332, align 8, !tbaa !9
  %334 = load ptr, ptr %3, align 8, !tbaa !5
  %335 = getelementptr inbounds [3 x double], ptr %334, i64 2
  %336 = getelementptr inbounds [3 x double], ptr %335, i64 0, i64 1
  %337 = load double, ptr %336, align 8, !tbaa !9
  %338 = load ptr, ptr %3, align 8, !tbaa !5
  %339 = getelementptr inbounds [3 x double], ptr %338, i64 2
  %340 = getelementptr inbounds [3 x double], ptr %339, i64 0, i64 1
  %341 = load double, ptr %340, align 8, !tbaa !9
  %342 = fmul double %337, %341
  %343 = call double @llvm.fmuladd.f64(double %329, double %333, double %342)
  %344 = load ptr, ptr %3, align 8, !tbaa !5
  %345 = getelementptr inbounds [3 x double], ptr %344, i64 2
  %346 = getelementptr inbounds [3 x double], ptr %345, i64 0, i64 2
  %347 = load double, ptr %346, align 8, !tbaa !9
  %348 = load ptr, ptr %3, align 8, !tbaa !5
  %349 = getelementptr inbounds [3 x double], ptr %348, i64 2
  %350 = getelementptr inbounds [3 x double], ptr %349, i64 0, i64 2
  %351 = load double, ptr %350, align 8, !tbaa !9
  %352 = call double @llvm.fmuladd.f64(double %347, double %351, double %343)
  %353 = fsub double %352, 1.000000e+00
  %354 = call double @llvm.fabs.f64(double %353)
  store double %354, ptr %4, align 8, !tbaa !9
  %355 = load double, ptr %4, align 8, !tbaa !9
  %356 = load double, ptr %5, align 8, !tbaa !9
  %357 = fcmp ogt double %355, %356
  br i1 %357, label %358, label %379

358:                                              ; preds = %325
  br label %359

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

362:                                              ; preds = %359
  %363 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %364 = load double, ptr %4, align 8, !tbaa !9
  call void (i32, ptr, ptr, i32, ptr, ...) %363(i32 noundef 4, ptr noundef @.str.1, ptr noundef @__func__.Mat3d_isValid, i32 noundef 1348, ptr noundef @.str.13, double noundef %364)
  br label %365

365:                                              ; preds = %362, %359
  %366 = load i32, ptr @RcsLogLevel, align 4, !tbaa !11
  %367 = icmp sle i32 4, %366
  br i1 %367, label %368, label %376

368:                                              ; preds = %365
  %369 = load ptr, ptr @stderr, align 8, !tbaa !5
  %370 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %369, ptr noundef @.str.6, ptr noundef @.str.1, ptr noundef @__func__.Mat3d_isValid, i32 noundef 1348) #4
  %371 = load ptr, ptr @stderr, align 8, !tbaa !5
  %372 = load double, ptr %4, align 8, !tbaa !9
  %373 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %371, ptr noundef @.str.13, double noundef %372) #4
  %374 = load ptr, ptr @stderr, align 8, !tbaa !5
  %375 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %374, ptr noundef @.str.3) #4
  br label %376

376:                                              ; preds = %368, %365
  br label %377

377:                                              ; preds = %376
  br label %378

378:                                              ; preds = %377
  store i1 false, ptr %2, align 1
  store i32 1, ptr %6, align 4
  br label %409

379:                                              ; preds = %325
  %380 = load ptr, ptr %3, align 8, !tbaa !5
  %381 = call double @Mat3d_determinant(ptr noundef %380)
  %382 = fsub double %381, 1.000000e+00
  %383 = call double @llvm.fabs.f64(double %382)
  store double %383, ptr %4, align 8, !tbaa !9
  %384 = load double, ptr %4, align 8, !tbaa !9
  %385 = load double, ptr %5, align 8, !tbaa !9
  %386 = fcmp ogt double %384, %385
  br i1 %386, label %387, label %408

387:                                              ; preds = %379
  br label %388

388:                                              ; preds = %387
  %389 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %390 = icmp ne ptr %389, null
  br i1 %390, label %391, label %394

391:                                              ; preds = %388
  %392 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %393 = load double, ptr %4, align 8, !tbaa !9
  call void (i32, ptr, ptr, i32, ptr, ...) %392(i32 noundef 4, ptr noundef @.str.1, ptr noundef @__func__.Mat3d_isValid, i32 noundef 1356, ptr noundef @.str.14, double noundef %393)
  br label %394

394:                                              ; preds = %391, %388
  %395 = load i32, ptr @RcsLogLevel, align 4, !tbaa !11
  %396 = icmp sle i32 4, %395
  br i1 %396, label %397, label %405

397:                                              ; preds = %394
  %398 = load ptr, ptr @stderr, align 8, !tbaa !5
  %399 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %398, ptr noundef @.str.6, ptr noundef @.str.1, ptr noundef @__func__.Mat3d_isValid, i32 noundef 1356) #4
  %400 = load ptr, ptr @stderr, align 8, !tbaa !5
  %401 = load double, ptr %4, align 8, !tbaa !9
  %402 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %400, ptr noundef @.str.14, double noundef %401) #4
  %403 = load ptr, ptr @stderr, align 8, !tbaa !5
  %404 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %403, ptr noundef @.str.3) #4
  br label %405

405:                                              ; preds = %397, %394
  br label %406

406:                                              ; preds = %405
  br label %407

407:                                              ; preds = %406
  store i1 false, ptr %2, align 1
  store i32 1, ptr %6, align 4
  br label %409

408:                                              ; preds = %379
  store i1 true, ptr %2, align 1
  store i32 1, ptr %6, align 4
  br label %409

409:                                              ; preds = %408, %407, %378, %324, %270, %216, %163, %110, %57, %27
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  %410 = load i1, ptr %2, align 1
  ret i1 %410
}

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

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

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

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


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

@stderr = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@RCS_GLOBAL_RLOG_CB = external local_unnamed_addr global ptr, align 8
@__func__.Mat3d_isValid = external hidden unnamed_addr constant [14 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [23 x i8], align 1
@RcsLogLevel = external local_unnamed_addr global i32, align 4
@.str.6 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [15 x i8], align 1

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #1

; Function Attrs: nounwind uwtable
declare dso_local double @Mat3d_determinant(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @Mat3d_isFinite(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local noundef zeroext i1 @Mat3d_isValid(ptr noundef %0) local_unnamed_addr #2 {
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %2, label %15

2:                                                ; preds = %1
  %3 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %.not86 = icmp eq ptr %3, null
  br i1 %.not86, label %5, label %4

4:                                                ; preds = %2
  tail call void (i32, ptr, ptr, i32, ptr, ...) %3(i32 noundef 4, ptr noundef nonnull @.str.1, ptr noundef nonnull @__func__.Mat3d_isValid, i32 noundef 1287, ptr noundef nonnull @.str.5) #3
  br label %5

5:                                                ; preds = %4, %2
  %6 = load i32, ptr @RcsLogLevel, align 4, !tbaa !9
  %7 = icmp sgt i32 %6, 3
  br i1 %7, label %8, label %184

8:                                                ; preds = %5
  %9 = load ptr, ptr @stderr, align 8, !tbaa !5
  %10 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %9, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.1, ptr noundef nonnull @__func__.Mat3d_isValid, i32 noundef 1287) #4
  %11 = load ptr, ptr @stderr, align 8, !tbaa !5
  %12 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %11, ptr noundef nonnull @.str.5) #4
  %13 = load ptr, ptr @stderr, align 8, !tbaa !5
  %14 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.3) #4
  br label %184

15:                                               ; preds = %1
  %16 = tail call zeroext i1 @Mat3d_isFinite(ptr noundef nonnull %0)
  br i1 %16, label %32, label %17

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

20:                                               ; preds = %17
  %21 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %.not94 = icmp eq ptr %21, null
  br i1 %.not94, label %.thread, label %22

22:                                               ; preds = %20
  tail call void (i32, ptr, ptr, i32, ptr, ...) %21(i32 noundef 4, ptr noundef nonnull @.str.1, ptr noundef nonnull @__func__.Mat3d_isValid, i32 noundef 1296, ptr noundef nonnull @.str.7) #3
  %.pr = load i32, ptr @RcsLogLevel, align 4, !tbaa !9
  %23 = icmp sgt i32 %.pr, 3
  br i1 %23, label %.thread, label %30

.thread:                                          ; preds = %20, %22
  %24 = load ptr, ptr @stderr, align 8, !tbaa !5
  %25 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %24, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.1, ptr noundef nonnull @__func__.Mat3d_isValid, i32 noundef 1296) #4
  %26 = load ptr, ptr @stderr, align 8, !tbaa !5
  %27 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %26, ptr noundef nonnull @.str.7) #4
  %28 = load ptr, ptr @stderr, align 8, !tbaa !5
  %29 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %28, ptr noundef nonnull @.str.3) #4
  br label %30

30:                                               ; preds = %.thread, %22
  %31 = load ptr, ptr @stderr, align 8, !tbaa !5
  tail call void @Mat3d_fprint(ptr noundef %31, ptr noundef nonnull %0)
  br label %184

32:                                               ; preds = %15
  %33 = load double, ptr %0, align 8, !tbaa !11
  %34 = getelementptr inbounds i8, ptr %0, i64 24
  %35 = load double, ptr %34, align 8, !tbaa !11
  %36 = getelementptr inbounds i8, ptr %0, i64 8
  %37 = load double, ptr %36, align 8, !tbaa !11
  %38 = getelementptr inbounds i8, ptr %0, i64 32
  %39 = load double, ptr %38, align 8, !tbaa !11
  %40 = fmul double %37, %39
  %41 = tail call double @llvm.fmuladd.f64(double %33, double %35, double %40)
  %42 = getelementptr inbounds i8, ptr %0, i64 16
  %43 = load double, ptr %42, align 8, !tbaa !11
  %44 = getelementptr inbounds i8, ptr %0, i64 40
  %45 = load double, ptr %44, align 8, !tbaa !11
  %46 = tail call double @llvm.fmuladd.f64(double %43, double %45, double %41)
  %47 = tail call double @llvm.fabs.f64(double %46)
  %48 = fcmp ogt double %47, 0x3F91DF46A2529D39
  br i1 %48, label %49, label %62

49:                                               ; preds = %32
  %50 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %.not93 = icmp eq ptr %50, null
  br i1 %.not93, label %52, label %51

51:                                               ; preds = %49
  tail call void (i32, ptr, ptr, i32, ptr, ...) %50(i32 noundef 4, ptr noundef nonnull @.str.1, ptr noundef nonnull @__func__.Mat3d_isValid, i32 noundef 1308, ptr noundef nonnull @.str.8, double noundef %47) #3
  br label %52

52:                                               ; preds = %51, %49
  %53 = load i32, ptr @RcsLogLevel, align 4, !tbaa !9
  %54 = icmp sgt i32 %53, 3
  br i1 %54, label %55, label %184

55:                                               ; preds = %52
  %56 = load ptr, ptr @stderr, align 8, !tbaa !5
  %57 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.1, ptr noundef nonnull @__func__.Mat3d_isValid, i32 noundef 1308) #4
  %58 = load ptr, ptr @stderr, align 8, !tbaa !5
  %59 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %58, ptr noundef nonnull @.str.8, double noundef %47) #4
  %60 = load ptr, ptr @stderr, align 8, !tbaa !5
  %61 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %60, ptr noundef nonnull @.str.3) #4
  br label %184

62:                                               ; preds = %32
  %63 = getelementptr inbounds i8, ptr %0, i64 48
  %64 = load double, ptr %63, align 8, !tbaa !11
  %65 = getelementptr inbounds i8, ptr %0, i64 56
  %66 = load double, ptr %65, align 8, !tbaa !11
  %67 = fmul double %37, %66
  %68 = tail call double @llvm.fmuladd.f64(double %33, double %64, double %67)
  %69 = getelementptr inbounds i8, ptr %0, i64 64
  %70 = load double, ptr %69, align 8, !tbaa !11
  %71 = tail call double @llvm.fmuladd.f64(double %43, double %70, double %68)
  %72 = tail call double @llvm.fabs.f64(double %71)
  %73 = fcmp ogt double %72, 0x3F91DF46A2529D39
  br i1 %73, label %74, label %87

74:                                               ; preds = %62
  %75 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %.not92 = icmp eq ptr %75, null
  br i1 %.not92, label %77, label %76

76:                                               ; preds = %74
  tail call void (i32, ptr, ptr, i32, ptr, ...) %75(i32 noundef 4, ptr noundef nonnull @.str.1, ptr noundef nonnull @__func__.Mat3d_isValid, i32 noundef 1316, ptr noundef nonnull @.str.9, double noundef %72) #3
  br label %77

77:                                               ; preds = %76, %74
  %78 = load i32, ptr @RcsLogLevel, align 4, !tbaa !9
  %79 = icmp sgt i32 %78, 3
  br i1 %79, label %80, label %184

80:                                               ; preds = %77
  %81 = load ptr, ptr @stderr, align 8, !tbaa !5
  %82 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %81, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.1, ptr noundef nonnull @__func__.Mat3d_isValid, i32 noundef 1316) #4
  %83 = load ptr, ptr @stderr, align 8, !tbaa !5
  %84 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %83, ptr noundef nonnull @.str.9, double noundef %72) #4
  %85 = load ptr, ptr @stderr, align 8, !tbaa !5
  %86 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %85, ptr noundef nonnull @.str.3) #4
  br label %184

87:                                               ; preds = %62
  %88 = fmul double %39, %66
  %89 = tail call double @llvm.fmuladd.f64(double %35, double %64, double %88)
  %90 = tail call double @llvm.fmuladd.f64(double %45, double %70, double %89)
  %91 = tail call double @llvm.fabs.f64(double %90)
  %92 = fcmp ogt double %91, 0x3F91DF46A2529D39
  br i1 %92, label %93, label %106

93:                                               ; preds = %87
  %94 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %.not91 = icmp eq ptr %94, null
  br i1 %.not91, label %96, label %95

95:                                               ; preds = %93
  tail call void (i32, ptr, ptr, i32, ptr, ...) %94(i32 noundef 4, ptr noundef nonnull @.str.1, ptr noundef nonnull @__func__.Mat3d_isValid, i32 noundef 1324, ptr noundef nonnull @.str.10, double noundef %91) #3
  br label %96

96:                                               ; preds = %95, %93
  %97 = load i32, ptr @RcsLogLevel, align 4, !tbaa !9
  %98 = icmp sgt i32 %97, 3
  br i1 %98, label %99, label %184

99:                                               ; preds = %96
  %100 = load ptr, ptr @stderr, align 8, !tbaa !5
  %101 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %100, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.1, ptr noundef nonnull @__func__.Mat3d_isValid, i32 noundef 1324) #4
  %102 = load ptr, ptr @stderr, align 8, !tbaa !5
  %103 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %102, ptr noundef nonnull @.str.10, double noundef %91) #4
  %104 = load ptr, ptr @stderr, align 8, !tbaa !5
  %105 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef nonnull @.str.3) #4
  br label %184

106:                                              ; preds = %87
  %107 = fmul double %37, %37
  %108 = tail call double @llvm.fmuladd.f64(double %33, double %33, double %107)
  %109 = tail call double @llvm.fmuladd.f64(double %43, double %43, double %108)
  %110 = fadd double %109, -1.000000e+00
  %111 = tail call double @llvm.fabs.f64(double %110)
  %112 = fcmp ogt double %111, 0x3F91DF46A2529D39
  br i1 %112, label %113, label %126

113:                                              ; preds = %106
  %114 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %.not90 = icmp eq ptr %114, null
  br i1 %.not90, label %116, label %115

115:                                              ; preds = %113
  tail call void (i32, ptr, ptr, i32, ptr, ...) %114(i32 noundef 4, ptr noundef nonnull @.str.1, ptr noundef nonnull @__func__.Mat3d_isValid, i32 noundef 1332, ptr noundef nonnull @.str.11, double noundef %111) #3
  br label %116

116:                                              ; preds = %115, %113
  %117 = load i32, ptr @RcsLogLevel, align 4, !tbaa !9
  %118 = icmp sgt i32 %117, 3
  br i1 %118, label %119, label %184

119:                                              ; preds = %116
  %120 = load ptr, ptr @stderr, align 8, !tbaa !5
  %121 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %120, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.1, ptr noundef nonnull @__func__.Mat3d_isValid, i32 noundef 1332) #4
  %122 = load ptr, ptr @stderr, align 8, !tbaa !5
  %123 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.11, double noundef %111) #4
  %124 = load ptr, ptr @stderr, align 8, !tbaa !5
  %125 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %124, ptr noundef nonnull @.str.3) #4
  br label %184

126:                                              ; preds = %106
  %127 = fmul double %39, %39
  %128 = tail call double @llvm.fmuladd.f64(double %35, double %35, double %127)
  %129 = tail call double @llvm.fmuladd.f64(double %45, double %45, double %128)
  %130 = fadd double %129, -1.000000e+00
  %131 = tail call double @llvm.fabs.f64(double %130)
  %132 = fcmp ogt double %131, 0x3F91DF46A2529D39
  br i1 %132, label %133, label %146

133:                                              ; preds = %126
  %134 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %.not89 = icmp eq ptr %134, null
  br i1 %.not89, label %136, label %135

135:                                              ; preds = %133
  tail call void (i32, ptr, ptr, i32, ptr, ...) %134(i32 noundef 4, ptr noundef nonnull @.str.1, ptr noundef nonnull @__func__.Mat3d_isValid, i32 noundef 1340, ptr noundef nonnull @.str.12, double noundef %131) #3
  br label %136

136:                                              ; preds = %135, %133
  %137 = load i32, ptr @RcsLogLevel, align 4, !tbaa !9
  %138 = icmp sgt i32 %137, 3
  br i1 %138, label %139, label %184

139:                                              ; preds = %136
  %140 = load ptr, ptr @stderr, align 8, !tbaa !5
  %141 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %140, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.1, ptr noundef nonnull @__func__.Mat3d_isValid, i32 noundef 1340) #4
  %142 = load ptr, ptr @stderr, align 8, !tbaa !5
  %143 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %142, ptr noundef nonnull @.str.12, double noundef %131) #4
  %144 = load ptr, ptr @stderr, align 8, !tbaa !5
  %145 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %144, ptr noundef nonnull @.str.3) #4
  br label %184

146:                                              ; preds = %126
  %147 = fmul double %66, %66
  %148 = tail call double @llvm.fmuladd.f64(double %64, double %64, double %147)
  %149 = tail call double @llvm.fmuladd.f64(double %70, double %70, double %148)
  %150 = fadd double %149, -1.000000e+00
  %151 = tail call double @llvm.fabs.f64(double %150)
  %152 = fcmp ogt double %151, 0x3F91DF46A2529D39
  br i1 %152, label %153, label %166

153:                                              ; preds = %146
  %154 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %.not88 = icmp eq ptr %154, null
  br i1 %.not88, label %156, label %155

155:                                              ; preds = %153
  tail call void (i32, ptr, ptr, i32, ptr, ...) %154(i32 noundef 4, ptr noundef nonnull @.str.1, ptr noundef nonnull @__func__.Mat3d_isValid, i32 noundef 1348, ptr noundef nonnull @.str.13, double noundef %151) #3
  br label %156

156:                                              ; preds = %155, %153
  %157 = load i32, ptr @RcsLogLevel, align 4, !tbaa !9
  %158 = icmp sgt i32 %157, 3
  br i1 %158, label %159, label %184

159:                                              ; preds = %156
  %160 = load ptr, ptr @stderr, align 8, !tbaa !5
  %161 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %160, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.1, ptr noundef nonnull @__func__.Mat3d_isValid, i32 noundef 1348) #4
  %162 = load ptr, ptr @stderr, align 8, !tbaa !5
  %163 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %162, ptr noundef nonnull @.str.13, double noundef %151) #4
  %164 = load ptr, ptr @stderr, align 8, !tbaa !5
  %165 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %164, ptr noundef nonnull @.str.3) #4
  br label %184

166:                                              ; preds = %146
  %167 = tail call double @Mat3d_determinant(ptr noundef nonnull %0)
  %168 = fadd double %167, -1.000000e+00
  %169 = tail call double @llvm.fabs.f64(double %168)
  %170 = fcmp ogt double %169, 0x3F91DF46A2529D39
  br i1 %170, label %171, label %184

171:                                              ; preds = %166
  %172 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %.not87 = icmp eq ptr %172, null
  br i1 %.not87, label %174, label %173

173:                                              ; preds = %171
  tail call void (i32, ptr, ptr, i32, ptr, ...) %172(i32 noundef 4, ptr noundef nonnull @.str.1, ptr noundef nonnull @__func__.Mat3d_isValid, i32 noundef 1356, ptr noundef nonnull @.str.14, double noundef %169) #3
  br label %174

174:                                              ; preds = %173, %171
  %175 = load i32, ptr @RcsLogLevel, align 4, !tbaa !9
  %176 = icmp sgt i32 %175, 3
  br i1 %176, label %177, label %184

177:                                              ; preds = %174
  %178 = load ptr, ptr @stderr, align 8, !tbaa !5
  %179 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %178, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.1, ptr noundef nonnull @__func__.Mat3d_isValid, i32 noundef 1356) #4
  %180 = load ptr, ptr @stderr, align 8, !tbaa !5
  %181 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %180, ptr noundef nonnull @.str.14, double noundef %169) #4
  %182 = load ptr, ptr @stderr, align 8, !tbaa !5
  %183 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %182, ptr noundef nonnull @.str.3) #4
  br label %184

184:                                              ; preds = %166, %174, %177, %156, %159, %136, %139, %116, %119, %96, %99, %77, %80, %52, %55, %17, %30, %5, %8
  %.0 = phi i1 [ false, %8 ], [ false, %5 ], [ false, %30 ], [ false, %17 ], [ false, %55 ], [ false, %52 ], [ false, %80 ], [ false, %77 ], [ false, %99 ], [ false, %96 ], [ false, %119 ], [ false, %116 ], [ false, %139 ], [ false, %136 ], [ false, %159 ], [ false, %156 ], [ false, %177 ], [ false, %174 ], [ true, %166 ]
  ret i1 %.0
}

; Function Attrs: nounwind uwtable
declare dso_local void @Mat3d_fprint(ptr noundef, ptr noundef) local_unnamed_addr #2

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
attributes #4 = { 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}


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