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

@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
@.str.40 = external hidden unnamed_addr constant [2 x i8], align 1
@__func__.testEigenvalues3x3 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.362 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.363 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.364 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.365 = external hidden unnamed_addr constant [16 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 @Mat3d_printCommentDigits(ptr noundef, ptr noundef, i32 noundef) #2

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

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

; Function Attrs: mustprogress uwtable
define dso_local zeroext i1 @testEigenvalues3x3(i32 noundef %0, ptr noundef %1) #4 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i8, align 1
  %6 = alloca double, align 8
  %7 = alloca [3 x [3 x double]], align 16
  %8 = alloca [3 x double], align 16
  %9 = alloca [3 x [3 x double]], align 16
  %10 = 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) #5
  store i8 1, ptr %5, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 72, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 72, ptr %9) #5
  %11 = getelementptr inbounds [3 x [3 x double]], ptr %7, i64 0, i64 0
  call void @Mat3d_setRandom(ptr noundef %11, double noundef 1.000000e+01, double noundef 2.000000e+01)
  %12 = getelementptr inbounds [3 x [3 x double]], ptr %7, i64 0, i64 0
  %13 = getelementptr inbounds [3 x double], ptr %12, i64 0, i64 1
  %14 = load double, ptr %13, align 8, !tbaa !13
  %15 = getelementptr inbounds [3 x [3 x double]], ptr %7, i64 0, i64 1
  %16 = getelementptr inbounds [3 x double], ptr %15, i64 0, i64 0
  store double %14, ptr %16, align 8, !tbaa !13
  %17 = getelementptr inbounds [3 x [3 x double]], ptr %7, i64 0, i64 0
  %18 = getelementptr inbounds [3 x double], ptr %17, i64 0, i64 2
  %19 = load double, ptr %18, align 16, !tbaa !13
  %20 = getelementptr inbounds [3 x [3 x double]], ptr %7, i64 0, i64 2
  %21 = getelementptr inbounds [3 x double], ptr %20, i64 0, i64 0
  store double %19, ptr %21, align 16, !tbaa !13
  %22 = getelementptr inbounds [3 x [3 x double]], ptr %7, i64 0, i64 1
  %23 = getelementptr inbounds [3 x double], ptr %22, i64 0, i64 2
  %24 = load double, ptr %23, align 8, !tbaa !13
  %25 = getelementptr inbounds [3 x [3 x double]], ptr %7, i64 0, i64 2
  %26 = getelementptr inbounds [3 x double], ptr %25, i64 0, i64 1
  store double %24, ptr %26, align 8, !tbaa !13
  %27 = getelementptr inbounds [3 x [3 x double]], ptr %9, i64 0, i64 0
  %28 = getelementptr inbounds [3 x double], ptr %8, i64 0, i64 0
  %29 = getelementptr inbounds [3 x [3 x double]], ptr %7, i64 0, i64 0
  %30 = call zeroext i1 @Mat3d_getEigenVectors(ptr noundef %27, ptr noundef %28, ptr noundef %29)
  %31 = getelementptr inbounds [3 x [3 x double]], ptr %7, i64 0, i64 0
  %32 = call double @Mat3d_determinant(ptr noundef %31)
  store double %32, ptr %6, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %33 = getelementptr inbounds [3 x double], ptr %8, i64 0, i64 0
  %34 = load double, ptr %33, align 16, !tbaa !13
  %35 = getelementptr inbounds [3 x double], ptr %8, i64 0, i64 1
  %36 = load double, ptr %35, align 8, !tbaa !13
  %37 = fmul double %34, %36
  %38 = getelementptr inbounds [3 x double], ptr %8, i64 0, i64 2
  %39 = load double, ptr %38, align 16, !tbaa !13
  %40 = load double, ptr %6, align 8, !tbaa !13
  %41 = fneg double %40
  %42 = call double @llvm.fmuladd.f64(double %37, double %39, double %41)
  %43 = call double @llvm.fabs.f64(double %42)
  store double %43, ptr %10, align 8, !tbaa !13
  %44 = load double, ptr %10, align 8, !tbaa !13
  %45 = fcmp ogt double %44, 1.000000e-08
  br i1 %45, label %46, label %140

46:                                               ; preds = %2
  br label %47

47:                                               ; preds = %46
  %48 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !9
  %49 = icmp ne ptr %48, null
  br i1 %49, label %50, label %53

50:                                               ; preds = %47
  %51 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !9
  %52 = load double, ptr %10, align 8, !tbaa !13
  call void (i32, ptr, ptr, i32, ptr, ...) %51(i32 noundef 1, ptr noundef @.str.3, ptr noundef @__func__.testEigenvalues3x3, i32 noundef 3633, ptr noundef @.str.362, double noundef %52)
  br label %53

53:                                               ; preds = %50, %47
  %54 = load i32, ptr @RcsLogLevel, align 4, !tbaa !5
  %55 = icmp sle i32 1, %54
  br i1 %55, label %56, label %64

56:                                               ; preds = %53
  %57 = load ptr, ptr @stderr, align 8, !tbaa !9
  %58 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %57, ptr noundef @.str.5, ptr noundef @.str.3, ptr noundef @__func__.testEigenvalues3x3, i32 noundef 3633) #5
  %59 = load ptr, ptr @stderr, align 8, !tbaa !9
  %60 = load double, ptr %10, align 8, !tbaa !13
  %61 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %59, ptr noundef @.str.362, double noundef %60) #5
  %62 = load ptr, ptr @stderr, align 8, !tbaa !9
  %63 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %62, ptr noundef @.str.6) #5
  br label %64

64:                                               ; preds = %56, %53
  br label %65

65:                                               ; preds = %64
  br label %66

66:                                               ; preds = %65
  %67 = load i32, ptr @RcsLogLevel, align 4, !tbaa !5
  %68 = icmp sle i32 4, %67
  br i1 %68, label %69, label %139

69:                                               ; preds = %66
  %70 = getelementptr inbounds [3 x [3 x double]], ptr %7, i64 0, i64 0
  call void @Mat3d_printCommentDigits(ptr noundef @.str.40, ptr noundef %70, i32 noundef 8)
  br label %71

71:                                               ; preds = %69
  %72 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !9
  %73 = icmp ne ptr %72, null
  br i1 %73, label %74, label %82

74:                                               ; preds = %71
  %75 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !9
  %76 = getelementptr inbounds [3 x double], ptr %8, i64 0, i64 0
  %77 = load double, ptr %76, align 16, !tbaa !13
  %78 = getelementptr inbounds [3 x double], ptr %8, i64 0, i64 1
  %79 = load double, ptr %78, align 8, !tbaa !13
  %80 = getelementptr inbounds [3 x double], ptr %8, i64 0, i64 2
  %81 = load double, ptr %80, align 16, !tbaa !13
  call void (i32, ptr, ptr, i32, ptr, ...) %75(i32 noundef 4, ptr noundef @.str.3, ptr noundef @__func__.testEigenvalues3x3, i32 noundef 3637, ptr noundef @.str.363, double noundef %77, double noundef %79, double noundef %81)
  br label %82

82:                                               ; preds = %74, %71
  %83 = load i32, ptr @RcsLogLevel, align 4, !tbaa !5
  %84 = icmp sle i32 4, %83
  br i1 %84, label %85, label %98

85:                                               ; preds = %82
  %86 = load ptr, ptr @stderr, align 8, !tbaa !9
  %87 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %86, ptr noundef @.str.5, ptr noundef @.str.3, ptr noundef @__func__.testEigenvalues3x3, i32 noundef 3637) #5
  %88 = load ptr, ptr @stderr, align 8, !tbaa !9
  %89 = getelementptr inbounds [3 x double], ptr %8, i64 0, i64 0
  %90 = load double, ptr %89, align 16, !tbaa !13
  %91 = getelementptr inbounds [3 x double], ptr %8, i64 0, i64 1
  %92 = load double, ptr %91, align 8, !tbaa !13
  %93 = getelementptr inbounds [3 x double], ptr %8, i64 0, i64 2
  %94 = load double, ptr %93, align 16, !tbaa !13
  %95 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %88, ptr noundef @.str.363, double noundef %90, double noundef %92, double noundef %94) #5
  %96 = load ptr, ptr @stderr, align 8, !tbaa !9
  %97 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %96, ptr noundef @.str.6) #5
  br label %98

98:                                               ; preds = %85, %82
  br label %99

99:                                               ; preds = %98
  br label %100

100:                                              ; preds = %99
  br label %101

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

104:                                              ; preds = %101
  %105 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !9
  %106 = load double, ptr %6, align 8, !tbaa !13
  %107 = getelementptr inbounds [3 x double], ptr %8, i64 0, i64 0
  %108 = load double, ptr %107, align 16, !tbaa !13
  %109 = getelementptr inbounds [3 x double], ptr %8, i64 0, i64 1
  %110 = load double, ptr %109, align 8, !tbaa !13
  %111 = fmul double %108, %110
  %112 = getelementptr inbounds [3 x double], ptr %8, i64 0, i64 2
  %113 = load double, ptr %112, align 16, !tbaa !13
  %114 = fmul double %111, %113
  %115 = load double, ptr %10, align 8, !tbaa !13
  call void (i32, ptr, ptr, i32, ptr, ...) %105(i32 noundef 4, ptr noundef @.str.3, ptr noundef @__func__.testEigenvalues3x3, i32 noundef 3639, ptr noundef @.str.364, double noundef %106, double noundef %114, double noundef %115)
  br label %116

116:                                              ; preds = %104, %101
  %117 = load i32, ptr @RcsLogLevel, align 4, !tbaa !5
  %118 = icmp sle i32 4, %117
  br i1 %118, label %119, label %136

119:                                              ; preds = %116
  %120 = load ptr, ptr @stderr, align 8, !tbaa !9
  %121 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %120, ptr noundef @.str.5, ptr noundef @.str.3, ptr noundef @__func__.testEigenvalues3x3, i32 noundef 3639) #5
  %122 = load ptr, ptr @stderr, align 8, !tbaa !9
  %123 = load double, ptr %6, align 8, !tbaa !13
  %124 = getelementptr inbounds [3 x double], ptr %8, i64 0, i64 0
  %125 = load double, ptr %124, align 16, !tbaa !13
  %126 = getelementptr inbounds [3 x double], ptr %8, i64 0, i64 1
  %127 = load double, ptr %126, align 8, !tbaa !13
  %128 = fmul double %125, %127
  %129 = getelementptr inbounds [3 x double], ptr %8, i64 0, i64 2
  %130 = load double, ptr %129, align 16, !tbaa !13
  %131 = fmul double %128, %130
  %132 = load double, ptr %10, align 8, !tbaa !13
  %133 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef @.str.364, double noundef %123, double noundef %131, double noundef %132) #5
  %134 = load ptr, ptr @stderr, align 8, !tbaa !9
  %135 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %134, ptr noundef @.str.6) #5
  br label %136

136:                                              ; preds = %119, %116
  br label %137

137:                                              ; preds = %136
  br label %138

138:                                              ; preds = %137
  br label %139

139:                                              ; preds = %138, %66
  store i8 0, ptr %5, align 1, !tbaa !11
  br label %140

140:                                              ; preds = %139, %2
  br label %141

141:                                              ; preds = %140
  %142 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !9
  %143 = icmp ne ptr %142, null
  br i1 %143, label %144, label %154

144:                                              ; preds = %141
  %145 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !9
  %146 = load i8, ptr %5, align 1, !tbaa !11, !range !15, !noundef !16
  %147 = trunc i8 %146 to i1
  br i1 %147, label %148, label %149

148:                                              ; preds = %144
  br label %150

149:                                              ; preds = %144
  br label %150

150:                                              ; preds = %149, %148
  %151 = phi ptr [ @.str.20, %148 ], [ @.str.21, %149 ]
  %152 = getelementptr inbounds [8 x i8], ptr %151, i64 0, i64 0
  %153 = load double, ptr %10, align 8, !tbaa !13
  call void (i32, ptr, ptr, i32, ptr, ...) %145(i32 noundef 1, ptr noundef @.str.18, ptr noundef @__func__.testEigenvalues3x3, i32 noundef 3644, ptr noundef @.str.365, ptr noundef %152, double noundef %153)
  br label %154

154:                                              ; preds = %150, %141
  %155 = load i32, ptr @RcsLogLevel, align 4, !tbaa !5
  %156 = icmp sle i32 1, %155
  br i1 %156, label %157, label %172

157:                                              ; preds = %154
  %158 = load ptr, ptr @stderr, align 8, !tbaa !9
  %159 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %158, ptr noundef @.str.22, ptr noundef @__func__.testEigenvalues3x3, i32 noundef 3644) #5
  %160 = load ptr, ptr @stderr, align 8, !tbaa !9
  %161 = load i8, ptr %5, align 1, !tbaa !11, !range !15, !noundef !16
  %162 = trunc i8 %161 to i1
  br i1 %162, label %163, label %164

163:                                              ; preds = %157
  br label %165

164:                                              ; preds = %157
  br label %165

165:                                              ; preds = %164, %163
  %166 = phi ptr [ @.str.20, %163 ], [ @.str.21, %164 ]
  %167 = getelementptr inbounds [8 x i8], ptr %166, i64 0, i64 0
  %168 = load double, ptr %10, align 8, !tbaa !13
  %169 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %160, ptr noundef @.str.365, ptr noundef %167, double noundef %168) #5
  %170 = load ptr, ptr @stderr, align 8, !tbaa !9
  %171 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %170, ptr noundef @.str.6) #5
  br label %172

172:                                              ; preds = %165, %154
  br label %173

173:                                              ; preds = %172
  br label %174

174:                                              ; preds = %173
  %175 = load i8, ptr %5, align 1, !tbaa !11, !range !15, !noundef !16
  %176 = trunc i8 %175 to i1
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #5
  ret i1 %176
}

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

declare zeroext i1 @Mat3d_getEigenVectors(ptr noundef, ptr noundef, ptr noundef) #2

declare double @Mat3d_determinant(ptr 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !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, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}


; 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
@.str.40 = external hidden unnamed_addr constant [2 x i8], align 1
@__func__.testEigenvalues3x3 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.362 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.363 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.364 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.365 = external hidden unnamed_addr constant [16 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 @Mat3d_printCommentDigits(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @testEigenvalues3x3(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #4 {
  %3 = alloca [3 x [3 x double]], align 16
  %4 = alloca [3 x double], align 16
  %5 = alloca [3 x [3 x double]], align 16
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %5) #5
  call void @Mat3d_setRandom(ptr noundef nonnull %3, double noundef 1.000000e+01, double noundef 2.000000e+01)
  %6 = getelementptr inbounds i8, ptr %3, i64 8
  %7 = load double, ptr %6, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %3, i64 24
  store double %7, ptr %8, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %3, i64 16
  %10 = load double, ptr %9, align 16, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %3, i64 48
  store double %10, ptr %11, align 16, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %3, i64 40
  %13 = load double, ptr %12, align 8, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %3, i64 56
  store double %13, ptr %14, align 8, !tbaa !5
  %15 = call zeroext i1 @Mat3d_getEigenVectors(ptr noundef nonnull %5, ptr noundef nonnull %4, ptr noundef nonnull %3)
  %16 = call double @Mat3d_determinant(ptr noundef nonnull %3)
  %17 = load double, ptr %4, align 16, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %4, i64 8
  %19 = load double, ptr %18, align 8, !tbaa !5
  %20 = fmul double %17, %19
  %21 = getelementptr inbounds i8, ptr %4, i64 16
  %22 = load double, ptr %21, align 16, !tbaa !5
  %23 = fneg double %16
  %24 = call double @llvm.fmuladd.f64(double %20, double %22, double %23)
  %25 = call double @llvm.fabs.f64(double %24)
  %26 = fcmp ule double %25, 1.000000e-08
  br i1 %26, label %.thread, label %27

27:                                               ; preds = %2
  %28 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !9
  %.not = icmp eq ptr %28, null
  br i1 %.not, label %30, label %29

29:                                               ; preds = %27
  call void (i32, ptr, ptr, i32, ptr, ...) %28(i32 noundef 1, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.testEigenvalues3x3, i32 noundef 3633, ptr noundef nonnull @.str.362, double noundef %25)
  br label %30

30:                                               ; preds = %29, %27
  %31 = load i32, ptr @RcsLogLevel, align 4, !tbaa !11
  %32 = icmp sgt i32 %31, 0
  br i1 %32, label %33, label %.thread

33:                                               ; preds = %30
  %34 = load ptr, ptr @stderr, align 8, !tbaa !9
  %35 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.testEigenvalues3x3, i32 noundef 3633) #6
  %36 = load ptr, ptr @stderr, align 8, !tbaa !9
  %37 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef nonnull @.str.362, double noundef %25) #6
  %38 = load ptr, ptr @stderr, align 8, !tbaa !9
  %39 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %38, ptr noundef nonnull @.str.6) #6
  %.pr = load i32, ptr @RcsLogLevel, align 4, !tbaa !11
  %40 = icmp sgt i32 %.pr, 3
  br i1 %40, label %41, label %.thread

41:                                               ; preds = %33
  call void @Mat3d_printCommentDigits(ptr noundef nonnull @.str.40, ptr noundef nonnull %3, i32 noundef 8)
  %42 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !9
  %.not18 = icmp eq ptr %42, null
  br i1 %.not18, label %47, label %43

43:                                               ; preds = %41
  %44 = load double, ptr %4, align 16, !tbaa !5
  %45 = load double, ptr %18, align 8, !tbaa !5
  %46 = load double, ptr %21, align 16, !tbaa !5
  call void (i32, ptr, ptr, i32, ptr, ...) %42(i32 noundef 4, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.testEigenvalues3x3, i32 noundef 3637, ptr noundef nonnull @.str.363, double noundef %44, double noundef %45, double noundef %46)
  br label %47

47:                                               ; preds = %43, %41
  %48 = load i32, ptr @RcsLogLevel, align 4, !tbaa !11
  %49 = icmp sgt i32 %48, 3
  br i1 %49, label %50, label %60

50:                                               ; preds = %47
  %51 = load ptr, ptr @stderr, align 8, !tbaa !9
  %52 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %51, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.testEigenvalues3x3, i32 noundef 3637) #6
  %53 = load ptr, ptr @stderr, align 8, !tbaa !9
  %54 = load double, ptr %4, align 16, !tbaa !5
  %55 = load double, ptr %18, align 8, !tbaa !5
  %56 = load double, ptr %21, align 16, !tbaa !5
  %57 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef nonnull @.str.363, double noundef %54, double noundef %55, double noundef %56) #6
  %58 = load ptr, ptr @stderr, align 8, !tbaa !9
  %59 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %58, ptr noundef nonnull @.str.6) #6
  br label %60

60:                                               ; preds = %47, %50
  %61 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !9
  %.not19 = icmp eq ptr %61, null
  br i1 %.not19, label %68, label %62

62:                                               ; preds = %60
  %63 = load double, ptr %4, align 16, !tbaa !5
  %64 = load double, ptr %18, align 8, !tbaa !5
  %65 = fmul double %63, %64
  %66 = load double, ptr %21, align 16, !tbaa !5
  %67 = fmul double %65, %66
  call void (i32, ptr, ptr, i32, ptr, ...) %61(i32 noundef 4, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.testEigenvalues3x3, i32 noundef 3639, ptr noundef nonnull @.str.364, double noundef %16, double noundef %67, double noundef %25)
  br label %68

68:                                               ; preds = %62, %60
  %69 = load i32, ptr @RcsLogLevel, align 4, !tbaa !11
  %70 = icmp sgt i32 %69, 3
  br i1 %70, label %71, label %.thread

71:                                               ; preds = %68
  %72 = load ptr, ptr @stderr, align 8, !tbaa !9
  %73 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %72, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.testEigenvalues3x3, i32 noundef 3639) #6
  %74 = load ptr, ptr @stderr, align 8, !tbaa !9
  %75 = load double, ptr %4, align 16, !tbaa !5
  %76 = load double, ptr %18, align 8, !tbaa !5
  %77 = fmul double %75, %76
  %78 = load double, ptr %21, align 16, !tbaa !5
  %79 = fmul double %77, %78
  %80 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %74, ptr noundef nonnull @.str.364, double noundef %16, double noundef %79, double noundef %25) #6
  %81 = load ptr, ptr @stderr, align 8, !tbaa !9
  %82 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %81, ptr noundef nonnull @.str.6) #6
  br label %.thread

.thread:                                          ; preds = %30, %33, %71, %68, %2
  %83 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !9
  %.not20 = icmp eq ptr %83, null
  br i1 %.not20, label %85, label %84

84:                                               ; preds = %.thread
  %.str.20..str.21 = select i1 %26, ptr @.str.20, ptr @.str.21
  call void (i32, ptr, ptr, i32, ptr, ...) %83(i32 noundef 1, ptr noundef nonnull @.str.18, ptr noundef nonnull @__func__.testEigenvalues3x3, i32 noundef 3644, ptr noundef nonnull @.str.365, ptr noundef nonnull %.str.20..str.21, double noundef %25)
  br label %85

85:                                               ; preds = %84, %.thread
  %86 = load i32, ptr @RcsLogLevel, align 4, !tbaa !11
  %87 = icmp sgt i32 %86, 0
  br i1 %87, label %88, label %95

88:                                               ; preds = %85
  %89 = load ptr, ptr @stderr, align 8, !tbaa !9
  %90 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %89, ptr noundef nonnull @.str.22, ptr noundef nonnull @__func__.testEigenvalues3x3, i32 noundef 3644) #6
  %91 = load ptr, ptr @stderr, align 8, !tbaa !9
  %.str.20..str.211 = select i1 %26, ptr @.str.20, ptr @.str.21
  %92 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %91, ptr noundef nonnull @.str.365, ptr noundef nonnull %.str.20..str.211, double noundef %25) #6
  %93 = load ptr, ptr @stderr, align 8, !tbaa !9
  %94 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %93, ptr noundef nonnull @.str.6) #6
  br label %95

95:                                               ; preds = %88, %85
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %3) #5
  ret i1 %26
}

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

declare zeroext i1 @Mat3d_getEigenVectors(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare double @Mat3d_determinant(ptr 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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 #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 = !{!"double", !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 = !{!"int", !7, i64 0}


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